You are not logged in.
Pages: 1
I have use
setxkbmap -option ctrl:nocapsto remap capslock to contrl.
I've read
man xkeyboard-config, seems setxkbmap doesn't support change behavior of tab key and shift key.
Is there a way to make it?
Thanks in advance!
Last edited by roachsinai (2020-10-04 02:59:33)
Offline
Maybe keyfuzz?
This will be done on the Kernel level. To make it persistent you need to enable a service, I'm not sure if the AUR package includes one.
Offline
Maybe keyfuzz?
This will be done on the Kernel level. To make it persistent you need to enable a service, I'm not sure if the AUR package includes one.
Thanks a lot for your suggestion! I'll try it!
Offline
Assuming you are using Xorg and not Wayland, you can try xmodmap and wrap it as a script or function and run it inside .xinitrc. Following is a example for swap caps_lock and control:
$ xmodmap -pke
...
$xmodmap - <<-EOF
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
EOFLast edited by solskog (2020-10-02 00:17:36)
Offline
Assuming you are using Xorg and not Wayland, you can try xmodmap and wrap it as a script or function and run it inside .xinitrc. Following is a example for swap caps_lock and control:
$ xmodmap -pke ... $xmodmap - <<-EOF 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 EOF
Thanks!Code below exchange Tab and Shift_L.
xmodmap -e "keycode 23 = Shift_L"
xmodmap -e "keycode 50 = Tab"Offline
Offline
Pages: 1