Map CAPSLOCK to CTRL *and* ESC

Hello all,

on my MAC I used Karabiner to remap CAPSLOCK to CTRL (if held down) or ESC if only pressed short. Is there a way to accomplish this in Manjaro (I’m on KDE)?

Thanks!

Hello,

I did some googling around and found that it is possible with xcape.
To check if it is already installed on your system open terminal and pacman -Q xcape.
If not you can install it, its in community repo I think.

Also you can check this.

Hope this helps.

Cheers…

P.S. Also check this post as well.

Indeed there is. :slight_smile:

setxkbmap -option caps:ctrl_modifier
xcape -e 'Caps_Lock=Escape'

This is only temporary, there are several ways to make it permanent. Do you want this to apply to just your user or system wide?

This only works for X, if you use wayland or need it to apply in the console (TTY) too then maybe try interception-tools.

https://stackoverflow.com/questions/41364833/karabiner-for-linux

1 Like

Thank you!

Do you want this to apply to just your user or system wide?

I want to apply this for my user and added

to my .zshrc. Remapping of CAPS_LOCK to CTRL I did with the Keyboard > Advanced Settings.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.