Created
June 27, 2020 08:12
-
-
Save loplex/58a7aa84b41689b6c3b1c8186a7e5d47 to your computer and use it in GitHub Desktop.
remap Caps Lock key to Shift Left key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### inspiration taken from: https://askubuntu.com/questions/371394/how-to-remap-caps-lock-key-to-shift-left-key | |
set -x | |
# this will make Caps Lock to act as Shift_L | |
xmodmap -e "keycode 66 = Shift_L NoSymbol Shift_L" | |
echo "xmodmap exit code: $?" | |
set +x | |
echo " | |
To get this change for every session, you can export current keymap and make it to be loaded on every session init using: | |
xmodmap -pke > ~/.xmodmap__remap_caps_lock_key_to_left_shift_key | |
echo 'xmodmap ~/.xmodmap__remap_caps_lock_key_to_left_shift_key' >> ~/.xinitrc | |
" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment