.s/scripts/theme/hooks/tmux.sh
2024-05-26 13:49:31 -07:00

16 lines
255 B
Bash
Executable File

#!/bin/bash
OLD_THEME=$1
NEW_THEME=$2
function catflavor() {
flavor="mocha"
if [ $1 = "light" ]; then
flavor="latte"
fi
echo $flavor
}
echo "set -g @catppuccin_flavour $(catflavor $NEW_THEME)" > ~/.tmux/colors
tmux source-file ~/.tmux.conf