feat: rusty-anchor WoL, auto dark/light VT theme, wakeonlan on phantom-ship 🦀

- 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)
This commit is contained in:
DannyDannyDanny 2026-04-04 21:18:36 +02:00
parent 0985503002
commit 74eb3a9c40
2 changed files with 20 additions and 0 deletions

View file

@ -82,6 +82,7 @@ in
git # clone/bootstrap and dotfiles-rebuild timer git # clone/bootstrap and dotfiles-rebuild timer
nodejs # npm for openclaw plugin installs nodejs # npm for openclaw plugin installs
python3 # node-gyp dependency for openclaw plugins 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. # OpenClaw AI gateway — Telegram bot, Anthropic API.

View file

@ -44,3 +44,22 @@ fi
chmod 0644 "$tmp" chmod 0644 "$tmp"
mv -f "$tmp" "$ACTIVE" 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