From 1c7794e904a75aaeb9f43db3e4b3e62f683c8e1d Mon Sep 17 00:00:00 2001 From: DannyDannyDanny Date: Mon, 6 Apr 2026 10:37:38 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20remove=20rusty-anchor=20Mac=20dependency?= =?UTF-8?q?=20from=20alacritty-sync-system-theme=20=F0=9F=A7=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rusty-anchor now switches themes independently via systemd timer + sunrise-sunset API — no longer needs the Mac to push changes over SSH --- scripts/alacritty-sync-system-theme.sh | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/scripts/alacritty-sync-system-theme.sh b/scripts/alacritty-sync-system-theme.sh index e44b3a5..c323973 100755 --- a/scripts/alacritty-sync-system-theme.sh +++ b/scripts/alacritty-sync-system-theme.sh @@ -44,22 +44,3 @@ 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