blob: 0a73c24d38ab1dd3988170972db435ebebc9ea0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/usr/local/bin/dash
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
xmodmap -e 'keycode 9 = Tab'
xmodmap -e 'keycode 23 = Escape'
xmodmap -e 'remove Lock = Caps_Lock'
xmodmap -e 'keycode 37 = Escape'
fi
else
xmodmap -e 'keycode 9 = Tab'
xmodmap -e 'keycode 23 = Escape'
# xmodmap -e 'keycode 66 = Escape'
fi
mouse=$(xinput list | grep 'HARPOON' | awk '{print $10}' | sed 's/id=//')
xinput --set-prop "$mouse" 'libinput Accel Speed' -0.40
notify-send -u low -t 2000 'kb' ' Keyboard set'
# vim: filetype=sh
|