Files
dotfiles/hosts/sctfw004/systemd/kanshi.service
T
connor 7e95a41f33 Share hypr_refresh; capture the work laptop's own units
Both laptops run hypr_refresh and their unit files had diverged. The work
laptop's is the refined one — Type=oneshot, which is correct for a script
that exits, a 15s interval with AccuracySec, and a comment explaining the
wallpaper-daemon guard. system76 had Type=simple with Restart=on-failure,
which respawns a oneshot script continuously. Shared version wins.

Three more units existed only on the work laptop and were untracked:
backlight-probe, kanshi and mopidy.
2026-09-14 15:16:38 -04:00

22 lines
473 B
Desktop File

[Unit]
Description=kanshi dynamic output configuration
PartOf=graphical-session.target
StartLimitIntervalSec=60
StartLimitBurst=5
[Service]
Type=simple
ExecStart=/usr/bin/kanshi
Restart=always
RestartSec=1
# kanshi 1.5.1 can wedge into a tight profile-list loop that forks a shell per
# iteration. These bound the blast radius rather than prevent it.
CPUQuota=20%
LogRateLimitIntervalSec=10s
LogRateLimitBurst=200
TasksMax=64
[Install]
WantedBy=graphical-session.target