dotfiles/.config/dmenu/scripts/build-theme.sh
2022-05-29 18:54:44 +02:00

18 lines
412 B
Bash
Executable File

#!/bin/bash
main_folder="/opt/dmenu-scripts/"
folder_themes="/opt/dmenu-scripts/themes"
if [ -z "${1}" ] ; then
echo "# Theme selector canceled"
else
if [ -f "${folder_themes}/${1}" ] ; then
cp -rf ${folder_themes}/${1} ${main_folder}/config.h
cp -rf ${folder_themes}/${1} ${main_folder}/config.def.h
cd ${main_folder}
make install clean
else
echo "# Theme selector canceled"
fi
fi