From 26e11047ced2dc8673fd380ab43e2d13f1383f98 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Wed, 5 Mar 2025 15:07:20 +0200 Subject: [PATCH] chore(config): tweak tmux config & theme activator --- config/tmux/theme-activate.sh | 4 ++++ config/tmux/tmux.conf | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config/tmux/theme-activate.sh b/config/tmux/theme-activate.sh index 56d89de..66ca578 100755 --- a/config/tmux/theme-activate.sh +++ b/config/tmux/theme-activate.sh @@ -12,5 +12,9 @@ # License: MIT THEME_FILE="$HOME/.local/state/tmux/tmux-dark-notify-theme.conf" +THEME_BACKUP="$HOME/.dotfiles/config/tmux/theme-dark.conf" + +# If THEME_FILE doesn't exist, link $THEME_BACKUP to it +[[ ! -e $THEME_FILE ]] && ln -s "$THEME_BACKUP" "$THEME_FILE" [[ -e $THEME_FILE ]] && tmux source-file "$THEME_FILE" diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf index b67c304..b215241 100644 --- a/config/tmux/tmux.conf +++ b/config/tmux/tmux.conf @@ -145,7 +145,7 @@ run-shell "$HOME/.dotfiles/config/tmux/rename-session.sh" # Load theme based on tmux-dark-notify state. # This script helps states where dark-notify is not available, # and we want to have light or dark state constantly available. -# run-shell "$HOME/.dotfiles/config/tmux/theme-activate.sh" +run-shell "$HOME/.dotfiles/config/tmux/theme-activate.sh" # ── Sourcing the plugins ──────────────────────────────────────────────