Created
December 17, 2024 15:13
-
-
Save frozenminds/19aca84b16a1c317f79664ea7126407b to your computer and use it in GitHub Desktop.
Fix USB mouse wheel after Arch Linux sleep
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
##### | |
# Fix USB mouse wheel after Arch Linux sleep | |
# | |
# @file /usr/lib/systemd/system-sleep/fix-mouse-wheel.sh | |
# @todo make executable `chmod +x /usr/lib/systemd/system-sleep/fix-mouse-wheel.sh` | |
##### | |
if [[ pre = "${1}" ]]; then | |
modprobe -r usbhid | |
else | |
modprobe usbhid | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment