fix(darkman): set tmux mode correctly

This commit is contained in:
2025-09-07 18:17:51 +02:00
parent 906c498a08
commit 6010a26f0b
2 changed files with 12 additions and 6 deletions

View File

@@ -1,7 +1,10 @@
#!/bin/bash
#!/usr/bin/env bash
CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
set -euo pipefail
BASE="$(dirname $0)/../../.."
ln -fs dark-mode.conf ~/.config/tmux/current-theme.conf
ln -fvs "${BASE}/config/tmux/dark-mode.conf" "${CONFIG_HOME}/tmux/current-theme.conf"
if tmux list-sessions; then
tmux source ~/.tmux.conf
tmux source "${CONFIG_HOME}/tmux/tmux.conf"
fi

View File

@@ -1,7 +1,10 @@
#!/bin/bash
#!/usr/bin/env bash
CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
set -eou pipefail
BASE="$(dirname $0)/../../.."
ln -fs light-mode.conf ~/.config/tmux/current-theme.conf
ln -fvs "${BASE}/config/tmux/light-mode.conf" "${CONFIG_HOME}/tmux/current-theme.conf"
if tmux list-sessions; then
tmux source ~/.tmux.conf
tmux source "${CONFIG_HOME}/tmux/tmux.conf"
fi