commit 3f9700865c7edbbc45d12102ced32b255e716c64 parent 7ae0c51614d709b64ebb0c2a9f4f80ecf4e8e35d Author: Chris Bracken <chris@bracken.jp> Date: Mon, 9 Oct 2023 15:20:59 -0700 Map caps lock to control in .xinitrc Diffstat:
M | .xinitrc | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/.xinitrc b/.xinitrc @@ -11,4 +11,10 @@ xmodmap -e "keycode 108 = Multi_key Alt_R Meta_R Alt_R Meta_R" # Use inverted "natural" scrolling (swap mouse buttons 4 and 5). xmodmap -e "pointer = 1 2 3 5 4 6 7 8 9 10 11 12" +# Turn caps lock into control. +xmodmap -e "clear lock" +xmodmap -e "clear control" +xmodmap -e "keycode 66 = Control_L" +xmodmap -e "add control = Control_L Control_R" + exec /usr/local/bin/i3