14 lines
282 B
Bash
Executable File
14 lines
282 B
Bash
Executable File
#!/bin/sh
|
|
|
|
[ -z "$THEME_DIR" ] && THEME_DIR="$HOME/.config/xthemes"
|
|
if [ ! -d "$THEME_DIR/$1" ]; then
|
|
echo "Theme $1 does not exist!"
|
|
exit 1
|
|
fi
|
|
|
|
CURRENT_THEME="$(cat ~/.config/xtheme/name)"
|
|
|
|
cd "$THEME_DIR" || exit 1
|
|
stow -t "$HOME" -D "$CURRENT_THEME"
|
|
stow -t "$HOME" "$1"
|