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 # Default theme: /THEMEFOLDER;/VARIATION
themestyle="/ml4w;/ml4w/light" themestyle="/ml4w;/ml4w/light"
# Get current theme information from .cache/.themestyle.sh # Get current theme information from .cache/waybar.themestyle
if [ -f ~/.cache/.themestyle.sh ]; then if [ -f ~/.cache/waybar.themestyle ]; then
themestyle=$(cat ~/.cache/.themestyle.sh) themestyle=$(cat ~/.cache/waybar.themestyle)
else else
touch ~/.cache/.themestyle.sh touch ~/.cache/waybar.themestyle
echo "$themestyle" > ~/.cache/.themestyle.sh echo "$themestyle" > ~/.cache/waybar.themestyle
fi fi
IFS=';' read -ra arrThemes <<< "$themestyle" IFS=';' read -ra arrThemes <<< "$themestyle"

View File

@ -30,8 +30,8 @@ done
listNames=${listNames::-2} listNames=${listNames::-2}
choice=$(echo -e "$listNames" | rofi -dmenu -config ~/dotfiles/rofi/config-wallpaper.rasi -no-show-icons -width 30 -p "Themes" -format i) choice=$(echo -e "$listNames" | rofi -dmenu -config ~/dotfiles/rofi/config-wallpaper.rasi -no-show-icons -width 30 -p "Themes" -format i)
# Set new theme by writing the theme information to ~/.cache/.themestyle.sh # Set new theme by writing the theme information to ~/.cache/waybar.themestyle
if [ "$choice" ]; then if [ "$choice" ]; then
echo "${listThemes[$choice+1]}" > ~/.cache/.themestyle.sh echo "${listThemes[$choice+1]}" > ~/.cache/waybar.themestyle
~/dotfiles/waybar/launch.sh ~/dotfiles/waybar/launch.sh
fi fi