.s/scripts/theme/hooks/tmux.sh

16 lines
255 B
Bash
Raw Normal View History

2024-05-26 16:23:12 -04:00
#!/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