From 578b5ebc47b54e61d75b9c52d8b6461b8c37625e Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 21 Jan 2022 17:16:34 +0100 Subject: small fixes --- .local/bin/kb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to '.local/bin/kb') diff --git a/.local/bin/kb b/.local/bin/kb index 0a73c24..556b1df 100755 --- a/.local/bin/kb +++ b/.local/bin/kb @@ -3,16 +3,17 @@ xset r rate 200 150 setxkbmap -layout us,fr -option grp:alt_shift_toggle setxkbmap -option caps:none -setxkbmap -option ctrl:swapcaps screens=$(xrandr | grep ' connected' | awk '{print $1}') -if ! echo "$screens" | grep 'HDMI-1' >/dev/null 2>&1; then - if ! echo "$screens" | grep 'VGA-1' >/dev/null 2>&1; then +echo $screens +if echo "$screens" | grep 'HDMI-1' >/dev/null 2>&1; then + if echo "$screens" | grep 'VGA-1' >/dev/null 2>&1; then xmodmap -e 'keycode 9 = Tab' xmodmap -e 'keycode 23 = Escape' xmodmap -e 'remove Lock = Caps_Lock' xmodmap -e 'keycode 37 = Escape' fi else + setxkbmap -option ctrl:swapcaps xmodmap -e 'keycode 9 = Tab' xmodmap -e 'keycode 23 = Escape' # xmodmap -e 'keycode 66 = Escape' -- cgit v1.2.3