You are not logged in.
Pages: 1
I know this has been asked before, but none of the solutions proposed work for me.
I can currently think of four solutions for this:
* Using xmodmap
* Using setxbmap
* Playing around with udev
* Using DE specific setting
I would like my setting to DE agnostic and as far as possible changing only user config files, so I'm looking for a solution with one of the first two approaches. Referring to previous discussions [1], I tried the following:
* /usr/bin/setxkbmap -option "caps:swapescape"
* Setting caps lock and esc values in .xmodmap file and invoking using /usr/bin/xmodmap ~/.xmodmap
I tried all possible variations, by putting the above in .profile and .xinitrc separately. But, nothing seems to work. How do I solve this problem?
[1] https://bbs.archlinux.org/viewtopic.php?pid=1104840
Last edited by hashken (2014-10-12 13:48:35)
Offline
The first approach, setxkbmap in .xinitrc, works perfectly for me. Are you sure your .xinitrc is actually read?
Offline
How do I check if my .xinitrc is read? I thought it was supposed to be read by default.
Offline
I also use and recommend the first method.
xinitrc is not always read - there isn't a simple way to 'check' but you should know. How do you start X? If you are using a DE (as indicated in the first post) many DE's come with their own display managers (DMs) and often these do not read xinitrc.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Online
Post your ~/.xinitrc.
Maybe you added the swapescape line after the 'exec' line and it's not read.
Offline
I was using cdm as my display manager until now and I guess it was not reading my .xinitrc. Now, I have switched to slim and can confirm that my .xinitrc is being read and Caps Lock and Esc are being swapped.
Thanks a lot for the help.
Offline
Pages: 1