mirror of
https://github.com/kuhyx/screen-locker.git
synced 2026-07-04 15:03:15 +02:00
Extracted from testsAndMisc monorepo. Changes: - Rewrote imports from python_pkg.screen_locker.* → screen_locker.* - Vendored python_pkg.shared.log_integrity → screen_locker._log_integrity - Vendored wake_alarm constants (ALARM_DAYS, WAKE_AFTER_HOURS, RTCWAKE_BIN) into _constants.py - Extracted has_workout_skip_today into new screen_locker._wake_state module - Added tests for _wake_state.py (392 tests, 100% branch coverage) - Moved scripts/service files to repo root - Added standalone pyproject.toml, requirements.txt, .pre-commit-config.yaml, .gitignore - Added GitHub Actions CI workflows Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
19 lines
404 B
Desktop File
19 lines
404 B
Desktop File
[Unit]
|
|
Description=Workout Screen Locker
|
|
After=graphical-session.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
WorkingDirectory=/opt/screen-locker
|
|
Environment=DISPLAY=:0
|
|
Environment=PYTHONPATH=/opt/screen-locker
|
|
ExecStartPre=/bin/sleep 1
|
|
ExecStart=/usr/bin/python3 -m screen_locker.screen_lock --production
|
|
Restart=on-failure
|
|
RestartSec=2s
|
|
RestartPreventExitStatus=0
|
|
User=%u
|
|
|
|
[Install]
|
|
WantedBy=graphical-session.target
|