blob: 492bb2980153fb4e81e1d1bb0cec0aebf71ecea1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/usr/local/bin/dash
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
|