aboutsummaryrefslogtreecommitdiff
path: root/config/polybar/panels/scripts/styles.sh
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus.morhtuuzh@gmx.com>2023-07-25 23:46:05 +0200
committerAnhgelus Morhtuuzh <anhgelus.morhtuuzh@gmx.com>2023-07-25 23:46:05 +0200
commitc57e8ab185623510e527400a34d729b313daffc4 (patch)
tree7b67d44894255ce4810d8074d68fce88f66d37d0 /config/polybar/panels/scripts/styles.sh
parent9f004955033387eebf3f58aec2501fba5020f307 (diff)
feat(polybar): update polybar style
Diffstat (limited to 'config/polybar/panels/scripts/styles.sh')
-rwxr-xr-xconfig/polybar/panels/scripts/styles.sh88
1 files changed, 88 insertions, 0 deletions
diff --git a/config/polybar/panels/scripts/styles.sh b/config/polybar/panels/scripts/styles.sh
new file mode 100755
index 0000000..fc627c7
--- /dev/null
+++ b/config/polybar/panels/scripts/styles.sh
@@ -0,0 +1,88 @@
+#!/usr/bin/env bash
+
+DIR="$HOME/.config/polybar/panels"
+
+change_panel() {
+ # replace config with selected panel
+ cat "$DIR"/panel/"${panel}.ini" > "$DIR"/config.ini
+
+ # Change wallpaper
+ feh --bg-fill "$DIR"/wallpapers/"$bg"
+
+ # Restarting polybar
+ polybar-msg cmd restart
+}
+
+if [[ "$1" = "--budgie" ]]; then
+ panel="budgie"
+ bg="budgie.jpg"
+ change_panel
+
+elif [[ "$1" = "--deepin" ]]; then
+ panel="deepin"
+ bg="deepin.jpg"
+ change_panel
+
+elif [[ "$1" = "--elight" ]]; then
+ panel="elementary"
+ bg="elementary.jpg"
+ change_panel
+
+elif [[ "$1" = "--edark" ]]; then
+ panel="elementary_dark"
+ bg="elementary_2.jpg"
+ change_panel
+
+elif [[ "$1" = "--gnome" ]]; then
+ panel="gnome"
+ bg="gnome.jpg"
+ change_panel
+
+elif [[ "$1" = "--klight" ]]; then
+ panel="kde"
+ bg="kde.jpg"
+ change_panel
+
+elif [[ "$1" = "--kdark" ]]; then
+ panel="kde_dark"
+ bg="kde_2.jpg"
+ change_panel
+
+elif [[ "$1" = "--liri" ]]; then
+ panel="liri"
+ bg="liri.png"
+ change_panel
+
+elif [[ "$1" = "--mint" ]]; then
+ panel="mint"
+ bg="mint.jpg"
+ change_panel
+
+elif [[ "$1" = "--ugnome" ]]; then
+ panel="ubuntu_gnome"
+ bg="ubuntu.jpg"
+ change_panel
+
+elif [[ "$1" = "--unity" ]]; then
+ panel="ubuntu_unity"
+ bg="ubuntu.jpg"
+ change_panel
+
+elif [[ "$1" = "--xubuntu" ]]; then
+ panel="xubuntu"
+ bg="xubuntu.png"
+ change_panel
+
+elif [[ "$1" = "--zorin" ]]; then
+ panel="zorin"
+ bg="zorin.png"
+ change_panel
+
+else
+ cat <<- _EOF_
+ No option specified, Available options:
+ --budgie --deepin --elight --edark --gnome --klight
+ --kdark --liri --mint --ugnome --unity --xubuntu
+ --zorin
+ _EOF_
+fi