Start tracking systemd Units

TODO: gamma.service should be the model for others. ie. Do not call
distrobox-enter directly. Export the app/bin from the distrobox and just
provide the arguments.
This commit is contained in:
John Mertz 2023-04-20 18:11:49 -04:00
parent acd0518e84
commit 84ef21f266
3 changed files with 40 additions and 0 deletions

11
systemd/gamma.service Normal file
View File

@ -0,0 +1,11 @@
[Unit]
Description=Inverting eInk contrast
[Service]
#WorkingDirectory=/var/home/%u/.spool
ExecStart=/var/home/%u/.local/bin/wl-gammactl -c -1.000 -b 2.000 -g 0.500 -m DP-1
Restart=always
TimeoutSec=5
[Install]
WantedBy=graphical.target

View File

@ -0,0 +1,15 @@
[Unit]
Description=Sway window transparency daemon
PartOf=graphical-session.target
After=sway.service
[Service]
Type=simple
ExecStart=/var/home/jpm/scripts/sway/sway-transparency.py
Restart=unless-stopped
Requires=dbus.service
After=dbus.service
TimeoutSec=5
[Install]
WantedBy=default.target

View File

@ -0,0 +1,14 @@
[Unit]
Description=Rotate through cropped wallpapers for %u
[Service]
Type=forking
#PIDFile=/var/home/%u/.spool/wallpaper.pid
WorkingDirectory=/var/home/%u/.spool
ExecStart=/var/home/%u/scripts/distrobox/debian12/wallpaper.pl
#ExecStart=/var/home/%u/scripts/distrobox/debian12/wallpaper.pl -d --path=/home/jpm/wallpapers `cat /var/home/%u/.spool/wallpaper_outputs`
Restart=always
TimeoutSec=5
[Install]
WantedBy=graphical.target