#!/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 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