From d7b205489d636da451ed5b5242aacd7d5a34d47d Mon Sep 17 00:00:00 2001 From: Spangenberg Date: Sun, 22 Oct 2023 15:29:05 +0200 Subject: [PATCH] rename .themestyle.sh to waybar.themestyle --- waybar/launch.sh | 10 +++++----- waybar/themeswitcher.sh | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/waybar/launch.sh b/waybar/launch.sh index 2b651e0..386bd6b 100755 --- a/waybar/launch.sh +++ b/waybar/launch.sh @@ -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" diff --git a/waybar/themeswitcher.sh b/waybar/themeswitcher.sh index 0965a54..fafe9dc 100755 --- a/waybar/themeswitcher.sh +++ b/waybar/themeswitcher.sh @@ -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