2025-11-30 21:20:17 +01:00
|
|
|
[Unit]
|
|
|
|
|
Description=Workout Screen Locker
|
|
|
|
|
After=graphical-session.target
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
Type=simple
|
2026-05-28 07:43:06 +02:00
|
|
|
WorkingDirectory=/opt/screen-locker
|
2025-11-30 21:20:17 +01:00
|
|
|
Environment=DISPLAY=:0
|
2026-05-28 07:43:06 +02:00
|
|
|
Environment=PYTHONPATH=/opt/screen-locker
|
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
|