From dc9cb2bdde37ed97095ad98ad1856c8d4e4f1669 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sun, 22 Nov 2020 16:52:57 +0100 Subject: Cool --- .local/bin/kb | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to '.local/bin/kb') diff --git a/.local/bin/kb b/.local/bin/kb index 1b7a4ea..d21690b 100755 --- a/.local/bin/kb +++ b/.local/bin/kb @@ -2,16 +2,22 @@ xset r rate 200 150 setxkbmap -layout us,fr -option grp:alt_shift_toggle -xmodmap -e "keycode 9 = Tab" -xmodmap -e "keycode 23 = Escape" if ! xrandr | grep 'HDMI-1 connected' >/dev/null 2>&1; then if ! xrandr | grep 'VGA-1 connected' >/dev/null 2>&1; then + echo + setxkbmap -option ctrl:swapcaps xmodmap -e "remove Lock = Caps_Lock" - xmodmap -e "remove Control = Control_L" - xmodmap -e "keysym Control_L = Caps_Lock" - xmodmap -e "keysym Caps_Lock = Control_L" - xmodmap -e "add Lock = Caps_Lock" - xmodmap -e "add Control = Control_L" + xmodmap -e 'keycode 37 = Escape' + # setxkbmap -option caps:escape + # xmodmap -e "remove Control = Control_L" + # xmodmap -e "keysym Control_L = Caps_Lock" + # xmodmap -e "keysym Caps_Lock = Control_L" + # xmodmap -e "add Lock = Caps_Lock" + # xmodmap -e "add Control = Control_L" fi +else + setxkbmap -option caps:swapescape fi notify-send -u low -t 2000 'kb' ' Keyboard set' + +# vim: filetype=sh -- cgit v1.2.3