2025-11-30 21:20:17 +01:00
|
|
|
[Unit]
|
|
|
|
|
Description=Workout Screen Locker
|
|
|
|
|
After=graphical-session.target
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
Type=simple
|
2026-06-22 12:43:58 +02:00
|
|
|
# No WorkingDirectory/PYTHONPATH needed: screen_locker is pip-installed
|
|
|
|
|
# (pip install --user --break-system-packages -e .), so /usr/bin/python3
|
|
|
|
|
# finds it via user site-packages.
|
2025-11-30 21:20:17 +01:00
|
|
|
Environment=DISPLAY=:0
|
2026-04-09 21:44:13 +02:00
|
|
|
ExecStartPre=/bin/sleep 1
|
2026-05-28 07:43:06 +02:00
|
|
|
ExecStart=/usr/bin/python3 -m screen_locker.screen_lock --production
|
2026-04-09 21:44:13 +02:00
|
|
|
Restart=on-failure
|
|
|
|
|
RestartSec=2s
|
|
|
|
|
RestartPreventExitStatus=0
|
2025-11-30 21:20:17 +01:00
|
|
|
User=%u
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=graphical-session.target
|