This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Xmodmap troubles

Tags: None
(comma "," separated)
User avatar
vHanda
KDE Developer
Posts
84
Karma
0
OS

Xmodmap troubles

Tue Jan 26, 2010 7:55 am
Hi. I know this isn't KDE specific, but I'm still gonna ask the question.

I'm trying to change the default key bindings of my keyboard (standard QWERTY). I want to remove the Caps Lock key entirely, add Alt_L in place of Caps_Lock and set Alt_L as Control_L.

I tried creating a simple script for it.
Code: Select all
xmodmap -e "remove lock = Caps_Lock"
xmodmap -e "remove mod1 = Alt_L"

xmodmap -e "add control = Alt_L"
xmodmap -e "add mod1 = Caps_Lock"


But this doesn't seem to work that well. It works great in GTK application and konsole, but the Control key just doesn't work in KDE apps. The funny thing is that even though it works great in Konsole, it doesn't work in Konsole emacs ( emacs -nw ).

Does anyone know how I can fix this? Or is there some other way of changing the default key bindings?

I had tried to edit the keyboard layout a long time back, but I seem to have forgotten where the file was located. Not that I knew how to load it.
User avatar
Riinse
Registered Member
Posts
167
Karma
2
OS

Re: Xmodmap troubles

Thu Jan 28, 2010 2:09 pm
its been quite a long time since i used xmodmap, but i always placed the commands in the file ~/.Xmodmap and set the commmand xmodmap ~/.Xmodmap in ~/.bashrc.

if you are using .Xmodmap file, you don't have to put xmodmap -e in front of every entry.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]