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>
14 lines
304 B
Desktop File
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
|