summaryrefslogtreecommitdiffstats
path: root/.local/bin
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-11-22 18:31:13 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-11-22 18:31:13 +0100
commit345ba77359047822dea9d2b9d249c969b71589f1 (patch)
tree0a452bd7e595a07396a345120a8567afeda95908 /.local/bin
parentCool (diff)
downloaddotfiles-bsd-345ba77359047822dea9d2b9d249c969b71589f1.tar.gz
dotfiles-bsd-345ba77359047822dea9d2b9d249c969b71589f1.tar.bz2
dotfiles-bsd-345ba77359047822dea9d2b9d249c969b71589f1.tar.xz
dotfiles-bsd-345ba77359047822dea9d2b9d249c969b71589f1.tar.zst
dotfiles-bsd-345ba77359047822dea9d2b9d249c969b71589f1.zip
Keys update
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/kb16
1 files changed, 6 insertions, 10 deletions
diff --git a/.local/bin/kb b/.local/bin/kb
index d21690b..7762abb 100755
--- a/.local/bin/kb
+++ b/.local/bin/kb
@@ -2,21 +2,17 @@
xset r rate 200 150
setxkbmap -layout us,fr -option grp:alt_shift_toggle
+setxkbmap -option caps:none
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 '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"
+ xmodmap -e 'keycode 23 = Escape'
+ xmodmap -e 'keycode 37 = Tab'
+ xmodmap -e 'keycode 66 = Control'
fi
else
- setxkbmap -option caps:swapescape
+ xmodmap -e 'keycode 23 = Escape'
+ xmodmap -e 'keycode 66 = Tab'
fi
notify-send -u low -t 2000 'kb' ' Keyboard set'