summaryrefslogtreecommitdiffstats
path: root/.local/bin
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/kb7
1 files changed, 4 insertions, 3 deletions
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'