From 2eb1f07e6031a84650e93c5292a16ca20fa22d61 Mon Sep 17 00:00:00 2001 From: kj_sh604 Date: Sun, 9 Nov 2025 00:40:17 -0500 Subject: feat: return back to awesomeWM --- .local/bin/awesome-xinputD | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 .local/bin/awesome-xinputD (limited to '.local/bin/awesome-xinputD') diff --git a/.local/bin/awesome-xinputD b/.local/bin/awesome-xinputD new file mode 100755 index 0000000..393555a --- /dev/null +++ b/.local/bin/awesome-xinputD @@ -0,0 +1,20 @@ +#!/bin/sh + +apply_settings() { + sleep 2 + xinput set-prop pointer:"Synaptics TM3276-022" "Device Enabled" 0 + xinput set-prop pointer:"G2Touch Multi-Touch by G2TSP" "Device Enabled" 0 + xinput set-prop pointer:"TPPS/2 IBM TrackPoint" "libinput Scrolling Pixel Distance" 10 + xinput set-prop pointer:"Logitech USB Trackball" "libinput Accel Speed" 1.000000 + xinput set-prop pointer:"Logitech K400 Plus" "libinput Accel Speed" 0.800000 + xinput set-prop pointer:"Logitech K400 Plus" "libinput Natural Scrolling Enabled" 1 + [ -f ~/.Xmodmap ] && xmodmap ~/.Xmodmap +} + +apply_settings + +while true; do + state=$(lsusb) + sleep 2 + [ "$state" != "$(lsusb)" ] && apply_settings +done -- cgit v1.2.3