Skip to content

Instantly share code, notes, and snippets.

@lf-araujo
Last active April 30, 2019 13:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lf-araujo/9a059081c2a7202cc30c6701e38fea86 to your computer and use it in GitHub Desktop.
Save lf-araujo/9a059081c2a7202cc30c6701e38fea86 to your computer and use it in GitHub Desktop.
Reactivating gestures after hibernate

Reactivating gestures after hibernate

This is a super quick note on how to reactivate touchpad gestures in Archlinux distributions after hibernation if you use libinput-gestures.

Open you editor, add the following content:

[Unit]
Description=Restart gestures
After=suspend.target
After=hibernate.target
After=hybrid-sleep.target

[Service]
ExecStart=/usr/bin/su --command '/usr/bin/libinput-gestures-setup restart' USERNAME

[Install]
WantedBy=suspend.target
WantedBy=hibernate.target
WantedBy=hybrid-sleep.target

Save it as /etc/systemd/system/start_gestures, then run sudo systemctl enable start_gestures.service and finally sudo systemctl start start_gestures.service.

After the above, the gestures should be working and will continue to even after hibernation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment