Add custom-config and custom-style for ML4W waybar themes

This commit is contained in:
Stephan Raabe
2023-12-10 14:17:32 +01:00
parent d95dbe3357
commit 830fe0ecdc
3 changed files with 37 additions and 16 deletions
+11 -1
View File
@@ -38,4 +38,14 @@ fi
# -----------------------------------------------------
# Loading the configuration
# -----------------------------------------------------
waybar -c ~/dotfiles/waybar/themes${arrThemes[0]}/config -s ~/dotfiles/waybar/themes${arrThemes[1]}/style.css &
config_file="config"
style_file="style.css"
# Standard files can be overwritten with an existing config-custom or style-custom.css
if [ -f ~/dotfiles/waybar/themes${arrThemes[0]}/config-custom ] ;then
config_file="config-custom"
fi
if [ -f ~/dotfiles/waybar/themes${arrThemes[1]}/style-custom.css ] ;then
style_file="style-custom.css"
fi
waybar -c ~/dotfiles/waybar/themes${arrThemes[0]}/$config_file -s ~/dotfiles/waybar/themes${arrThemes[1]}/$style_file &