change themeswitcher.sh
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
killall waybar
|
||||
|
||||
# Default theme: /THEMEFOLDER;/VARIATION
|
||||
themestyle="/ml4w;/ml4w/light"
|
||||
themestyle="cantina;light"
|
||||
|
||||
# Get current theme information from .cache/waybar.themestyle
|
||||
if [ -f ~/.cache/waybar.themestyle ]; then
|
||||
@ -15,11 +15,11 @@ else
|
||||
fi
|
||||
|
||||
IFS=';' read -ra arrThemes <<< "$themestyle"
|
||||
echo ${arrThemes[0]}
|
||||
#echo ${arrThemes[0]}
|
||||
|
||||
if [ ! -f ~/dotfiles/waybar/themes${arrThemes[1]}/style.css ]; then
|
||||
themestyle="/ml4w;/ml4w/light"
|
||||
if [ ! -f ~/dotfiles/waybar/themes/${arrThemes[0]}/${arrThemes[1]}/style.css ]; then
|
||||
themestyle="/cantina;/cantina/light"
|
||||
fi
|
||||
|
||||
# Loading the configuration and style file based
|
||||
waybar -c ~/dotfiles/waybar/themes${arrThemes[0]}/config -s ~/dotfiles/waybar/themes${arrThemes[1]}/style.css &
|
||||
waybar -c ~/dotfiles/waybar/themes/${arrThemes[0]}/config -s ~/dotfiles/waybar/themes/${arrThemes[0]}/${arrThemes[1]}/style.css &
|
||||
|
Reference in New Issue
Block a user