30 lines
1.1 KiB
Desktop File
30 lines
1.1 KiB
Desktop File
|
|
# systemd --user unit for the gesture daemon, as an alternative to starting
|
||
|
|
# socktop-swipe from the window manager's autostart.
|
||
|
|
#
|
||
|
|
# cp packaging/socktop-swipe.service ~/.config/systemd/user/
|
||
|
|
# systemctl --user enable --now socktop-swipe
|
||
|
|
#
|
||
|
|
# This runs the DAEMON only: it drives a session that something else built and
|
||
|
|
# attached (see socktop-swipe build / attach). If you would rather have one unit
|
||
|
|
# do everything, change ExecStart to `socktop-swipe run` and drop ExecStartPre --
|
||
|
|
# but then the terminal is a child of the unit, and restarting the unit closes
|
||
|
|
# the dashboard.
|
||
|
|
[Unit]
|
||
|
|
Description=socktop-swipe touchscreen gesture daemon
|
||
|
|
Documentation=https://gt.wittyoneoff.com/jason/socktop-swipe
|
||
|
|
After=graphical-session.target
|
||
|
|
PartOf=graphical-session.target
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
Type=simple
|
||
|
|
# Only needed if `terminal:` is set and the terminal is an X client. The gesture
|
||
|
|
# path itself reads evdev directly and needs no display connection at all.
|
||
|
|
Environment=DISPLAY=:0
|
||
|
|
ExecStartPre=/usr/local/bin/socktop-swipe build
|
||
|
|
ExecStart=/usr/local/bin/socktop-swipe daemon
|
||
|
|
Restart=always
|
||
|
|
RestartSec=2
|
||
|
|
|
||
|
|
[Install]
|
||
|
|
WantedBy=graphical-session.target
|