dotfiles/bin/mktheme

12 lines
230 B
Bash
Executable File

#! /bin/sh
[ -z "$THEME_DIR" ] && THEME_DIR="$HOME/.config/xthemes"
if [ -d "$THEME_DIR/$1" || -f "$THEME_DIR/$1" ];
echo "Theme $1 already exists!"
exit 1
fi
cp -r "$THEME_DIR/$(curtheme)" "$THEME_DIR/$1"
chtheme "$1"