You are not logged in.

#1 2008-04-02 19:03:27

kmp
Member
Registered: 2008-03-29
Posts: 11

where to put xmodmap?

I want to swap control and caps lock

steve yegge wrote:

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_L

Save 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

#2 2008-04-02 19:10:39

bender02
Member
From: Germany
Registered: 2007-02-04
Posts: 1,328

Re: where to put xmodmap?

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

#3 2008-04-02 19:26:09

kmp
Member
Registered: 2008-03-29
Posts: 11

Re: where to put xmodmap?

Works. I used to put it after exec DM and wonder why it doesn't work.

Offline

Board footer

Powered by FluxBB