rename .themestyle.sh to waybar.themestyle

This commit is contained in:
Spangenberg
2023-10-22 15:29:05 +02:00
parent 2165ad6e9a
commit d7b205489d
2 changed files with 7 additions and 7 deletions

View File

@ -6,12 +6,12 @@ killall waybar
# Default theme: /THEMEFOLDER;/VARIATION
themestyle="/ml4w;/ml4w/light"
# Get current theme information from .cache/.themestyle.sh
if [ -f ~/.cache/.themestyle.sh ]; then
themestyle=$(cat ~/.cache/.themestyle.sh)
# Get current theme information from .cache/waybar.themestyle
if [ -f ~/.cache/waybar.themestyle ]; then
themestyle=$(cat ~/.cache/waybar.themestyle)
else
touch ~/.cache/.themestyle.sh
echo "$themestyle" > ~/.cache/.themestyle.sh
touch ~/.cache/waybar.themestyle
echo "$themestyle" > ~/.cache/waybar.themestyle
fi
IFS=';' read -ra arrThemes <<< "$themestyle"