diff --git a/nixos/hosts/phantom-ship.nix b/nixos/hosts/phantom-ship.nix index 17295eb..0f08e9b 100644 --- a/nixos/hosts/phantom-ship.nix +++ b/nixos/hosts/phantom-ship.nix @@ -82,6 +82,7 @@ in git # clone/bootstrap and dotfiles-rebuild timer nodejs # npm for openclaw plugin installs python3 # node-gyp dependency for openclaw plugins + wakeonlan # wake rusty-anchor: wakeonlan 00:16:cb:87:20:ba ]; # OpenClaw AI gateway — Telegram bot, Anthropic API. diff --git a/scripts/alacritty-sync-system-theme.sh b/scripts/alacritty-sync-system-theme.sh index c323973..e44b3a5 100755 --- a/scripts/alacritty-sync-system-theme.sh +++ b/scripts/alacritty-sync-system-theme.sh @@ -44,3 +44,22 @@ fi chmod 0644 "$tmp" mv -f "$tmp" "$ACTIVE" + +# Sync theme to rusty-anchor VT console (best-effort, non-blocking) +RUSTY_ANCHOR_KEY="$HOME/.ssh/id_ed25519_phantom_ship" +RUSTY_ANCHOR_THEME_FILE="/etc/vt-theme" +if [[ -f "$RUSTY_ANCHOR_KEY" ]]; then + last_rusty="$ALACRITTY_DIR/.last-rusty-anchor-theme" + if [[ "$(cat "$last_rusty" 2>/dev/null)" != "$want" ]]; then + ( + ssh -i "$RUSTY_ANCHOR_KEY" \ + -J danny@phantom-ship \ + -o ConnectTimeout=5 \ + -o StrictHostKeyChecking=no \ + danny@10.0.0.2 \ + "echo '$want' | sudo tee $RUSTY_ANCHOR_THEME_FILE > /dev/null && sudo /usr/local/bin/vt-theme '$want' /dev/tty1" \ + 2>/dev/null \ + && printf '%s' "$want" >"$last_rusty" + ) & + fi +fi