- niri 26.04 has no hotplug event: OutputConfigChanged is only an ACK (niri-ipc). Watch WorkspacesChanged, diff sorted output set, apply on change. Proven live: eDP-1 off/on -> 3 output-set transitions, each matched + applied + reloaded. - unit: %h/.local/bin/desk-autoswitch.sh, quoted Environment, drop User/Group (user unit); add desk-autoswitch.sh bin symlink - desk.sh: silence validate/load-config/notify stdout - deploy.sh: deploy repo symlinks (find -type l), so .local/bin links land - docs: event semantics corrected (displays diagram, log)
18 lines
388 B
Desktop File
18 lines
388 B
Desktop File
[Unit]
|
|
Description=Desk Profile Auto-Switch for Blankpad
|
|
After=graphical-session.target
|
|
ConditionHost=blankpad
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=%h/.local/bin/desk-autoswitch.sh watch
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
Environment=DESK_NIRI=/usr/bin/niri
|
|
Environment="DESK_NOTIFY=noctalia msg notification-show"
|
|
|
|
[Install]
|
|
WantedBy=default.target
|