#!/bin/sh # shikane-recover-on-reload: run after every sway startup/reload # (wired up via exec_always in the sway config). # # Re-applies the shikane profile, then verifies the daemon came out # the other side: if the re-apply hit the commit-failure race, the # watchdog check (2s later) restarts the service to recover. set -u shikanectl reload 2>/dev/null sleep 2 exec /home/work/.config/sway/scripts/shikane-watchdog.sh