commit bf7777b8dc8ce11192bc2404043faca4269d380a parent 10ce43e9faf614d8f23e76c7ded150a28fc0d2ba Author: hhvn <hayden@haydenvh.com> Date: Sat, 6 Feb 2021 12:30:31 +0000 .scripts/input/keyboard: openbsd's X only sees /dev/wskbd Diffstat:
M | .scripts/input/keyboard | | | 9 | +++++---- |
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/.scripts/input/keyboard b/.scripts/input/keyboard @@ -4,7 +4,8 @@ setxkbmap -layout us setxkbmap -option caps:escape # unicomp endurapro - increase trackpoint sensitivity -xinput set-prop "pointer:Unicomp Inc Unicomp 10x Kbrd R7_2_w_PS_R7_38" "Coordinate Transformation Matrix" 4 0 0 0 4 0 0 0 4 -xinput set-prop "pointer:Unicomp Inc Unicomp 10x Kbrd R7_2_w_PS_R7_38" "libinput Accel Speed" 1 -xinput set-prop "pointer:Unicomp Inc Unicomp 10x Kbrd R7_2_w_PS_R7_38" "libinput Button Scrolling Button" 3 -xinput set-prop 'pointer:Unicomp Inc Unicomp 10x Kbrd R7_2_w_PS_R7_38' 'libinput Scroll Method Enabled' 0 0 1 +[ "$(uname)" = "OpenBSD" ] && device=/dev/wskbd || device="pointer:Unicomp Inc Unicomp 10x Kbrd R7_2_w_PS_R7_38" +xinput set-prop "$device" "Coordinate Transformation Matrix" 4 0 0 0 4 0 0 0 4 +xinput set-prop "$device" "libinput Accel Speed" 2 +xinput set-prop "$device" "libinput Button Scrolling Button" 3 +xinput set-prop "$device" 'libinput Scroll Method Enabled' 0 0 1