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

17 lines
388 B
Bash
Raw Normal View History

2024-05-26 16:23:12 -04:00
#!/bin/bash
OLD_THEME=$1
NEW_THEME=$2
2025-01-02 21:00:17 -05:00
function coolors() {
flavor="212922-294936-3e6259-5b8266-aef6c7"
2024-05-26 16:23:12 -04:00
if [ $1 = "light" ]; then
2025-01-02 21:00:17 -05:00
# flavor="393d3f-d5bbb1-9cc4b2-c98ca7-e76d83"
flavor = "74d3ae-678d58-a6c48a-f6e7cb-dd9787"
2024-05-26 16:23:12 -04:00
fi
echo $flavor
}
2025-01-02 21:00:17 -05:00
echo "set -g @tmux_colorful_color_scheme 'https://coolors.co/$(coolors $NEW_THEME)'" > ~/.tmux/colors
2024-05-26 16:23:12 -04:00
tmux source-file ~/.tmux.conf