swap-watchdog/systemd/force-quit-gui.service
Philip Peterson 20abe80132 Initial commit: swap-watchdog + Force Quit Monitor
Polls /proc/meminfo swap and /proc/pressure/memory PSI every 3s; on a
rising edge into critical, reveals an always-running, normally-minimized
GTK3 process-killer window via kdotool rather than spawning anything new
at the exact moment the system is least able to launch a process.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-06 05:47:14 -08:00

14 lines
304 B
Desktop File

[Unit]
Description=Force Quit Monitor (always-running, starts minimized)
After=graphical-session.target
PartOf=graphical-session.target
[Service]
Type=simple
ExecStart=%h/Code/swap-watchdog/bin/force-quit-gui
Restart=always
RestartSec=5
OOMScoreAdjust=-1000
[Install]
WantedBy=graphical-session.target