# The touchpad's settings again after waking, in the operator's session: X applies the module's # input class when the device appears, and this covers a wake that does not initialise it again. # Runs as root from the power module; the reset itself runs as the session's owner. sleep 2 owner=$(ps -o user= -C i3 | head -n 1) [ -n "$owner" ] && runuser -u "$owner" -- /usr/local/lib/asus-zephyrus-g14/bin/zephyrus-touchpad reset true