dotfiles/themes/select-theme

34 lines
928 B
Plaintext
Raw Normal View History

2021-01-07 08:09:41 +00:00
#!/bin/bash
if [ -z $1 ]
then
echo "Missing theme argument"
exit
fi
theme=$1
themedir=$MY_THEMES_DIR/$theme
configdir=$MY_CONFIG_DIR
echo "Setting up $theme theme"
# move theme files
cp $themedir/colorlist $configdir/Xconfigfiles/colorlist
cp $themedir/termitetheme $configdir/termite/termitetheme
cp $themedir/dunstcolors $configdir/dunst/dunstcolors
cp $themedir/theme.vim $MY_VIM_HOME/theme.vim
cp $themedir/fehbg $configdir/other-scripts/fehbg
rm $configdir/alacritty/colors.yml.bak
mv $configdir/alacritty/colors.yml $configdir/alacritty/colors.yml.bak
ln -sT $themedir/alacritty_colors.yml $configdir/alacritty/colors.yml
ln -sT $themedir/sway_colors $configdir/sway/conf.d/99_colors_override
2021-01-07 08:09:41 +00:00
FG=black
if [[ $theme == *"light"* ]]; then
FG=white
fi
echo "PRIMARY_FG=$FG" > ~/.dotfiles/symlinks/zshrc.theme
echo "$theme detected as a $FG theme"
notify-send "$theme detected as $FG theme" --icon=dialog-information