From 74eb3a9c4067e5c13399997cfcf561e469e880be Mon Sep 17 00:00:00 2001 From: DannyDannyDanny Date: Sat, 4 Apr 2026 21:18:36 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20rusty-anchor=20WoL,=20auto=20dark/light?= =?UTF-8?q?=20VT=20theme,=20wakeonlan=20on=20phantom-ship=20=F0=9F=A6=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Enable Wake-on-LAN (magic packet) on rusty-anchor enp2s0 via systemd service - Add vt-theme script to rusty-anchor: switches between Catppuccin Latte/Mocha - Theme state persisted in /etc/vt-theme, applied on login via profile.d - alacritty-sync-system-theme.sh now SSHes to rusty-anchor and pushes the macOS light/dark change (best-effort, non-blocking, skips if unchanged) - Add wakeonlan to phantom-ship packages (wakeonlan 00:16:cb:87:20:ba) --- nixos/hosts/phantom-ship.nix | 1 + scripts/alacritty-sync-system-theme.sh | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) 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