Registered Member
|
Since I study Japanese and I never use caps lock I want to rebind it to another key that I can use to change input mode in ibus.
I've tried to edit the keyboard variant I'm using (se, at /usr/share/X11/xkb/symbols/se) and add this to it:
I got this from the Japanese file, and it is the specification for they key used to switch mode on a Japanese computer (normally 'key <HZTG>' but I changed it to <CAPS>). However nothing happens. (I've also unsuccessfully tried to rebind it to other keys just to see if I could get anything to happen) What am I doing wrong? Is there a better way of doing it? |
Administrator
|
You shouldn't be altering files in /usr as they are managed by your package manager, and will be overwritten during updates.
You should use "xmodmap" to make changes to the active keyboard layout.
You simply need to change "Control_L" to the appropriate item, which you will need to determine then ensure this command is run on login.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Thanks!
I was so set on using setxkbmap somehow that I missed xmodmap. I got it working now with:
.. in case anyone else wonders. [Edit] Had to add another line first to disable caps lock. |
Registered Member
|
Such a thing would be very handy, since Caps Lock is useless for me as well. Which file do you have to put this in so it's executed on every login? |
Administrator
|
Simply create a file ending with ".sh" in ~/.kde4/Autostart ( such as rebind-capslock.sh ) and place those lines in that file. After ensuring it is executable, log out and back in again.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
KDE Developer
|
For KDE-way, start
$ kcmshell4 kcm_keyboard (or find it in system settings) Go to the 'Advanced' tab -> Ctrl key position -> Make CapsLock an additional Ctrl |
Registered Member
|
Is there a KDE way to rebind CapsLock to Left Alt?
|
Registered Member
|
I want to swap Caps Lock for Escape. Is there a way to do this from KDE or do I have to do it from the terminal?
|
Registered users: Bing [Bot], Google [Bot], kesang, Yahoo [Bot]