Wallpaper setting script actually works now

This commit is contained in:
Sasha Koshka 2024-01-31 13:28:42 -05:00
parent 80d28f7004
commit 0dd701da37
1 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ EOF
case "$key" in
"mode") mode="$value";;
"file") file="$value";;
"color") color="$color";;
"color") color="$value";;
*) echo "$name: bad key $key in $configFilePath" >&2;;
esac
done < "$configFilePath"
@ -44,8 +44,8 @@ EOF
;;
esac
[ -n color ] && shouldHaveInstalled xsetroot && \
[ -n "$color" ] && shouldHaveInstalled xsetroot && \
xsetroot -solid "$color"
[ -n mode ] && shouldHaveInstalled xwallpaper && \
[ -n "$mode" ] && shouldHaveInstalled xwallpaper && \
xwallpaper "--${mode}" "$file"
fi