diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2022-01-21 17:16:34 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2022-01-21 17:16:34 +0100 |
commit | 578b5ebc47b54e61d75b9c52d8b6461b8c37625e (patch) | |
tree | dbbba1687ba45421793ee4a7a706cf1a172b4338 /.local | |
parent | test (diff) | |
download | dotfiles-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/kb | 7 |
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' |