A few weeks ago I wrote a article on disabling the caps lock key in Windows. I decided since I have been writing some Linux articles I may as well show a way to do the same thing in Linux. Its a short, quick fix but it can be useful if you hate capslock like I do.
Below I outline the steps to disable the key:
I have not figured out a global way to disable the capslock key but it is fairly easy to do on a per user basis.
If we want to disable it just for the current session we can issue this command in a shell:
xmodmap -e "remove lock = Caps_Lock"
If you would like to do this on a more permanent basis for every session then you can add this short code to the end of you usrers .bashrc file.
This is generally located in /home/.bashrc:
#remove capslock
if [ "$PS1" ]; then
xmodmap -e "remove lock = Caps_Lock"
...
fi
You can now either logout and log back in as your user or you can simply issue the command “bash” in a shell to update your environment variables.
|
|
|
|
Related posts:
- How to Disable the Caps Lock Key via the Registry in Windows I am always annoyed by the caps lock on a...
- Remap Windows 7 Keys, Disable A Key On The Keyboard I wanted to disable some keys and rearrange some other...
- GPU Linux Shell Temp: Get Nvidia GPU Temperatures Via Linux CLI So as every one knows we just rebuilt our massive...
- Wgetpaste – Upload Directly to Pastebin from the Linux Shell If you use pastebin as much as I do then...
- Possible Errors When Moving Nagios From One Linux Server To Another Linux Server I recently moved Nagios monitoring from one server to another...











Entries (RSS)