summaryrefslogtreecommitdiffstats
path: root/bin/hush/setup-inputs
blob: 94e8e7fda2e1c8f83db7ca1157ffcb1d2b0c9bd8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
set -eu
set -o pipefail

# key bindings
setxkbmap -option ctrl:nocaps
setxkbmap -option compose:caps
xmodmap "$HOME"/.Xmodmap
"$(dirname "$0")"/numkeys on

# trackpad settings
xinput set-prop "SynPS/2 Synaptics TouchPad" "libinput Accel Speed" 0.4
xinput set-prop "SynPS/2 Synaptics TouchPad" "libinput Tapping Enabled" 1

# restart services that depend on keyboard reconfigurations
if pgrep readproctitle > /dev/null; then
    svre xcape
    svre kuake
    svre xbindkeys
fi