• Martin Thoma
  • Home
  • Categories
  • Tags
  • Archives
  • Support me

Disable Caps Lock

Contents

  • Disable Caps Lock
    • More functionality

I've just hit caps lock accidentally. This key is so useless; I never ever wanted to hit it.

So I deactivated it:

$ setxkbmap -option caps:none

To run this every time at startup, I've added it to /etc/rc.local. However, it did not work. I guess it is executed to soon.

An alternative which worked is adding a file ~/.config/shift.deskop with the following content:

[Desktop Entry]
Type=Application
Name=shift
Exec=setxkbmap -option caps:none
X-GNOME-Autostart-enabled=true

No more issues with caps lock ♡.

More functionality

I've just received a remark by Micha that one could add useful functionality. For example with Xmodmap or within the Ubuntu settings one can make this a compose key for special characters such as ·×⋄.


Published

Mär 4, 2016
by Martin Thoma

Category

Cyberculture

Tags

  • Ubuntu 7

Contact

  • Martin Thoma - A blog about Code, the Web and Cyberculture
  • E-mail subscription
  • RSS-Feed
  • Privacy/Datenschutzerklärung
  • Impressum
  • Powered by Pelican. Theme: Elegant by Talha Mansoor