Skip to content

Instantly share code, notes, and snippets.

@frozenminds
Created December 17, 2024 15:13
Show Gist options
  • Save frozenminds/19aca84b16a1c317f79664ea7126407b to your computer and use it in GitHub Desktop.
Save frozenminds/19aca84b16a1c317f79664ea7126407b to your computer and use it in GitHub Desktop.
Fix USB mouse wheel after Arch Linux sleep
#!/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