altercation wrote:This works here in testing (in, say, a bash script or on the command line)setxkbmap -option # reset everything to default state!
xmodmap -e "remove Lock = Caps_Lock"
xmodmap -e "keysym Caps_Lock = F13"Did you try it with an openbox keybind? If so, did it launch or do whatever behavior you set it for?
Hello,My laptop (a Thinkpad T40) didn't come with a super key, so I made an .Xmodmap file to turn CapsLock into super. Then, to make the change take place automatically every time I booted up, I put(sleep 1s && xmodmap /home/tmacdonald/.Xmodmap) & in autostart.sh. The problem is that it doesn't do anything.
I'm using Xmodmap to customise some non-standard keys on my keyboard. Using GDM to get X, I am running Xmodmap ("xmodmap $HOME/.xmodmap") as a startup job in gnome-session-properties.The customisations work well, but if I leave X and then return -- say, to check on of the *top programs running in a TTY -- the Xmodmap customisations are gone.
Possible Duplicate:
Why won’t my xmodmap command run on startup/login?
I have my .bashrc file with the three following commands:
xmodmap ~/.xmodmap
synclient TapButton2=2
synclient ClickFinger2=3
They are supposed to execute when I log in, right?
Hi there,
I'm a little confused about the automatic startup of Xmodmap.
I followed some post a while ago, and it said to make an ~/.xmodmap file like so:
! Swap caps lock and escape
remove Lock = Caps_Lock
keysym Escape = Caps_Lock
keysym Caps_Lock = Escape
add Lock = Caps_Lock
I did, and it now I can swap esc and caps lock by doing xmodmap ~/.xmodmap.
Hello,I'm using Statler on an IBM T40, which doesn't have a designated super key. However, I found some Xmodmap trickery on the internet, which turns off Caps Lock and sets the button to act as super. I did that on #! 9.04 too, and it works great. On Statler, however, Xmodmap won't load when I first boot up. I have to restart X and log in--which is pretty annoying.
I recently upgraded by thinkpad X220 from F17 using fedup --network, and since then my xmodmap settings are undone every time I suspend/resume the laptop.
Something similar was reported previously:
https://bugzilla.redhat.com/show_bug.cgi?id=692760
however, I've never noticed this before.
For now I'm just leaving a terminal window open and manually re-running xmodmap after each resume,
I know how to use xmodmap to remap the Caps lock key so it acts as a Control key, or as an Escape key.