You are not logged in.
I want to swap control and caps lock
On Linux in X-Windows, you use the xmodmap utility. Create a file in your home directory called .xmodmap if it doesn't already exist, and put in the following lines:
!
! Swap Caps_Lock and Control_L
!
remove Lock = Caps_Lock
remove Control = Control_L
keysym Control_L = Caps_Lock
keysym Caps_Lock = Control_L
add Lock = Caps_Lock
add Control = Control_LSave it, and add the line xmodmap ~/.xmodmap into your ~/.bash_profile.
It works only in gnome, where I can see dialog box during start where I can load ~/.xmodmap.
I want to use xmonad, where should I put this line? I added it but nothing happened. When I type it in console, it works.
Last edited by kmp (2008-04-02 19:05:21)
Offline
It depends on *how* you run xmonad. For instance, if you're running it from .xinitrc, just add that line into your .xinitrc before 'exec xmonad' line.
Offline
Works. I used to put it after exec DM and wonder why it doesn't work.
Offline