jozamudi d1bd6aae48 fix(shikane): detect silent deadlocks; re-apply profile on sway reload
watchdog: covers both observed deadlock flavours -- the loud one that repeats
"Received invalid input AtomicChangeDone at state Discarded", and the silent
one that logs nothing and just never leaves VariantInProgress.

shikane-recover-on-reload.sh (new, previously referenced by sway/config but
never committed): shikanectl reload -> sleep 2 -> watchdog check, falling
back to a service restart when reload cannot recover.

clamshell-mode.sh: documents why the laptop panel is no longer enabled
unconditionally on lid-open, which raced shikane's "External Display" profile
(eDP-1 disabled by design) and produced "Atomic commit failed: Device or
resource busy" churn.
2026-10-27 18:32:33 -07:00
2025-07-04 19:57:35 -07:00
2025-03-21 13:06:13 -07:00
2026-02-06 10:28:14 -08:00

Josue's dotfiles

Uses GNU Stow to manage simlink. Place files as they where in $HOME

Usage

clone into $HOME
cd dotfiles
stow .

If stow is not installed use ./install.sh from .dotfiles repo

User services

shikane-watchdog

.config/systemd/user/shikane-watchdog.timer (every 2 min, user unit) runs .config/sway/scripts/shikane-watchdog.sh, which restarts the shikane user service if its state machine is stuck.

Why: shikane 1.1.1 deadlocks when a profile application is discarded mid-way (e.g. by a failing DP atomic commit on the external display). The daemon then keeps logging [WARN shikane::variant] Received invalid input AtomicChangeDone at state Discarded and shikanectl reload no longer recovers it. The watchdog detects that signature in the journal and runs systemctl --user restart shikane (re-applies the active profile in ~1s). It never restarts a healthy or legitimately transitioning daemon.

systemctl --user status shikane-watchdog.timer      # check it's active
systemctl --user disable --now shikane-watchdog.timer  # disable
S
Description
No description provided
Readme
315 KiB
0 Stars 1 Watchers 0 Forks
Languages
Lua 43.4%
Lua 43.4%
Shell 8.3%
Vim Script 5.1%