Skip to content

Instantly share code, notes, and snippets.

@ryoakg
Created February 12, 2021 00:45
Show Gist options
  • Save ryoakg/b2b50e25f464c98903eaaa1b5cdff20a to your computer and use it in GitHub Desktop.
Save ryoakg/b2b50e25f464c98903eaaa1b5cdff20a to your computer and use it in GitHub Desktop.
imwheel systemd unit file
[Unit]
Description=IMWheel
Wants=display-manager.service
After=display-manager.service
[Service]
Type=simple
Environment=XAUTHORITY=%h/.Xauthority
ExecStart=/usr/bin/imwheel -d
ExecStop=/bin/kill -INT $(MAINPID)
RemainAfterExit=yes
[Install]
WantedBy=graphical-session.target
@michaelmob
Copy link

As a user-service:

wget -O ~/.config/systemd/user/imwheel.service \
  https://gist.github.com/ryoakg/b2b50e25f464c98903eaaa1b5cdff20a/raw

systemctl --user enable --now imwheel.service
systemctl --user status imwheel.service

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