change themeswitcher.sh

This commit is contained in:
Spangenberg
2023-10-22 21:06:21 +02:00
parent 62e3563dba
commit 69f24b5363
2 changed files with 8 additions and 8 deletions

View File

@ -15,9 +15,9 @@ do
if [ $(find $value -maxdepth 1 -type d | wc -l) = 1 ]; then
result=$(echo $value | sed "s#$HOME/dotfiles/waybar/themes/#/#g")
IFS='/' read -ra arrThemes <<< "$result"
listThemes[${#listThemes[@]}]="/${arrThemes[1]};$result"
if [ -f $themes_path$result/config.sh ]; then
source $themes_path$result/config.sh
listThemes[${#listThemes[@]}]="${arrThemes[1]};${arrThemes[2]}"
if [ -f $themes_path/${arrThemes[1]}/${arrThemes[2]}/config.sh ]; then
source $themes_path/${arrThemes[1]}/${arrThemes[2]}/config.sh
listNames+="$theme_name\n"
else
listNames+="/${arrThemes[1]};$result\n"