rename .themestyle.sh to waybar.themestyle
This commit is contained in:
parent
2165ad6e9a
commit
d7b205489d
@ -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"
|
||||
|
@ -30,8 +30,8 @@ done
|
||||
listNames=${listNames::-2}
|
||||
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
|
||||
echo "${listThemes[$choice+1]}" > ~/.cache/.themestyle.sh
|
||||
echo "${listThemes[$choice+1]}" > ~/.cache/waybar.themestyle
|
||||
~/dotfiles/waybar/launch.sh
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user