diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-11-10 08:01:59 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-11-10 08:01:59 +0100 |
commit | 62abc7130767a34062a5caf0c3d65b587cd4f27a (patch) | |
tree | b6a36c7dfe5436a9f0d477a78e59347ffe529943 /.local/bin | |
parent | new screens script (diff) | |
download | dotfiles-bsd-62abc7130767a34062a5caf0c3d65b587cd4f27a.tar.gz dotfiles-bsd-62abc7130767a34062a5caf0c3d65b587cd4f27a.tar.bz2 dotfiles-bsd-62abc7130767a34062a5caf0c3d65b587cd4f27a.tar.xz dotfiles-bsd-62abc7130767a34062a5caf0c3d65b587cd4f27a.tar.zst dotfiles-bsd-62abc7130767a34062a5caf0c3d65b587cd4f27a.zip |
swapped caps_lock / ctrl_l
Diffstat (limited to '.local/bin')
-rwxr-xr-x | .local/bin/kb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.local/bin/kb b/.local/bin/kb index 1cbfb28..492bb29 100755 --- a/.local/bin/kb +++ b/.local/bin/kb @@ -4,3 +4,13 @@ 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'; then + if ! xrandr | grep 'VGA-1 connected'; then + 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" + fi +fi |