From 6a678e315b3862dd744f760bd812fdc875ed5a6d Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sat, 27 Sep 2025 06:14:17 +0200 Subject: [PATCH] move mouse tunings from .xinitrc to tune-mouse --- tune-mouse | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/tune-mouse b/tune-mouse index e8783ab..b56b311 100755 --- a/tune-mouse +++ b/tune-mouse @@ -60,12 +60,42 @@ if xinput list | grep -q Bamboo; then fi +case $(hostname) in + hike) + xrandr --output eDP1 --rotate right + xinput set-prop "pointer:Goodix Capacitive TouchScreen" "Coordinate Transformation Matrix" 0 1 0 -1 0 1 0 0 1 + + # Make gnubbel behave ok + xinput set-prop 12 "libinput Accel Speed" -1 + + # Need to use us keyboard on this one + setxkbmap us + ;; + nb1) + xinput set-prop "TPPS/2 IBM TrackPoint" "libinput Accel Speed" -0.5 + ;; + nb3) + xinput set-prop "ELAN0670:00 04F3:3150 Touchpad" "Synaptics Two-Finger Scrolling" 1 1 + ;; + blind) + # unused atm - 2025-03-16 + # rotate-by-sensor.sh & + xinput set-prop "ELAN0672:00 04F3:3187 Touchpad" 'Synaptics Two-Finger Scrolling' 1 1 + ;; + mantel) + # Enable button 1 tap + xinput set-prop "SYNA0101:00 06CB:CFB0 Touchpad" "Synaptics Tap Action" 0 0 0 0 1 0 0 + ;; +esac + + # Only continue if there is wacom stuff if ! xinput list | grep -i wacom -q; then exit 0 fi + # xinput set-prop "Wacom Bamboo 16FG 4x5 Finger pad" "Device Enabled" 0 xsetwacom --set "Wacom Bamboo 16FG 4x5 Pen stylus" mode relative