sibir
Posts: 18
Joined: Mon Dec 11, 2017 4:29 pm

How to disable caps-lock

Mon Apr 13, 2020 5:05 pm

Looking for a quick how-to I was surprised not to find anything (easily) here.

So if you want to permanently disable the caps-lock key on the keyboard for the user "pi" and you are running Buster, add this line

Code: Select all

@setxkbmap -option caps:none
to your /etc/xdg/lxsession/LXDE-pi/autostart

You need root-access to write to that file, so you could use

Code: Select all

sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
If you are on an older (pre-Buster) release the /lxsession folder is in /home/pi/.config/

If you use a different username go to the corresponding folder in /etc/xdg/lxsession/

User avatar
Botspot
Posts: 1241
Joined: Thu Jan 17, 2019 9:47 pm
Location: Texas
Contact: Website

Re: How to disable caps-lock

Mon Apr 27, 2020 12:22 am

sibir wrote:
Mon Apr 13, 2020 5:05 pm
Looking for a quick how-to I was surprised not to find anything (easily) here.

So if you want to permanently disable the caps-lock key on the keyboard
"Looking for a quick how-to..." Did you happen to find this one? AFAIK it's permanent. ;)
Image
Want to make your own Raspbian image?
  • Hard way: Mess with confusing terminal commands.
  • Easy way: Let Pi-Power-Tools do it all for you!
Boot your image in a VM, Flash from the Internet at top speed, Mount (to drop files in), Edit partitions, Shrink/Expand, Repair, and more. Enjoy! :)
https://github.com/Botspot/Pi-Power-Tools

Return to “Beginners”