How can I permanently make caps lock an extra escape?
I have the command setxkbmap -option caps:escape in startup scripts to accomplish the above. But when I connect an external keyboard I need to run it again for it to have effect on the new keyboard.
Is there a more permanent way to do this?
About this post
- Posted
- Archived
- Score
- 7 · 100% up
- Kind
- Text
- ID
- nujcms
6 comments
You can do it with udev. I have it set so the atkbd in my thinkpad acts as a Super button:
Is this supposed to be one line and what is the equivalent of Esc/Tab?
Yep, the wiki has a great article detailing the steps.
You can make this persistent using Xorg configuration files. Putting the following into
/etc/X11/xorg.conf.d/00-keyboard.confshould work:The "localectl" tool can help write that 00-keyboard.conf file for you. The command line looks like this:
This worked, thanks