From dc1d5605800021c4b201733d227505af670e02e7 Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Tue, 11 Jul 2023 21:42:40 -0700 Subject: [PATCH] Change keybind strategy --- keybinds.zsh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/keybinds.zsh b/keybinds.zsh index f70fd6c..0236b64 100644 --- a/keybinds.zsh +++ b/keybinds.zsh @@ -2,7 +2,6 @@ # given setup. Just wrap them with the appropriate checks. # Bind caps lock to escape if `xmodmap` exists -if type "xmodmap" > /dev/null; then - xmodmap -e "clear lock" #disable caps lock switch - xmodmap -e "keysym Caps_Lock = Escape" #set caps_lock as escape +if type "setxkbmap" > /dev/null; then + setxkbmap -option caps:escape fi