summaryrefslogtreecommitdiffstats
path: root/.local
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2022-01-21 17:16:34 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2022-01-21 17:16:34 +0100
commit578b5ebc47b54e61d75b9c52d8b6461b8c37625e (patch)
treedbbba1687ba45421793ee4a7a706cf1a172b4338 /.local
parenttest (diff)
downloaddotfiles-bsd-578b5ebc47b54e61d75b9c52d8b6461b8c37625e.tar.gz
dotfiles-bsd-578b5ebc47b54e61d75b9c52d8b6461b8c37625e.tar.bz2
dotfiles-bsd-578b5ebc47b54e61d75b9c52d8b6461b8c37625e.tar.xz
dotfiles-bsd-578b5ebc47b54e61d75b9c52d8b6461b8c37625e.tar.zst
dotfiles-bsd-578b5ebc47b54e61d75b9c52d8b6461b8c37625e.zip
small fixes
Diffstat (limited to '.local')
-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'