testsAndMisc/scripts/digital_wellbeing/systemd/thesis-work-tracker@.service
Copilot 684e3a1bdb Add thesis work tracker with window monitoring and hosts-based distraction blocking (#5)
* Initial plan

* Add bachelor thesis work tracker system - core implementation

Co-authored-by: kuhyx <147418882+kuhyx@users.noreply.github.com>

* Add status script and improve installer for thesis tracker

Co-authored-by: kuhyx <147418882+kuhyx@users.noreply.github.com>

* Security improvements: fix sourcing, temp files, validation, and error handling

Co-authored-by: kuhyx <147418882+kuhyx@users.noreply.github.com>

* Update README to clarify bachelor vs master's thesis naming

Co-authored-by: kuhyx <147418882+kuhyx@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kuhyx <147418882+kuhyx@users.noreply.github.com>
2026-01-16 20:50:38 +01:00

30 lines
642 B
Desktop File

[Unit]
Description=Bachelor Thesis Work Tracker
Documentation=man:systemd.service(5)
After=graphical.target
Wants=graphical.target
[Service]
Type=simple
ExecStart=/usr/local/bin/thesis_work_tracker.sh
Restart=always
RestartSec=10
# Run as the user who is logged in (for X11/window detection)
User=%i
Environment="DISPLAY=:0"
Environment="XAUTHORITY=/home/%i/.Xauthority"
# Logging
StandardOutput=append:/var/log/thesis-work-tracker/tracker.log
StandardError=append:/var/log/thesis-work-tracker/tracker.log
# Security hardening
NoNewPrivileges=false
PrivateTmp=true
ProtectSystem=false
ProtectHome=false
[Install]
WantedBy=default.target