Initial commit of fresh adi1090x themes and old qpansl before git tweaks
This commit is contained in:
88
qpanels/scripts/styles.sh
Executable file
88
qpanels/scripts/styles.sh
Executable file
@@ -0,0 +1,88 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
DIR="$HOME/.config/polybar/qpanels"
|
||||
|
||||
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" || "$1" = "--elementary" ]]; then
|
||||
panel="elementary"
|
||||
bg="elementary.jpg"
|
||||
change_panel
|
||||
|
||||
elif [[ "$1" = "--edark" || "$1" = "--elementary_dark" ]]; then
|
||||
panel="elementary_dark"
|
||||
bg="elementary_2.jpg"
|
||||
change_panel
|
||||
|
||||
elif [[ "$1" = "--gnome" ]]; then
|
||||
panel="gnome"
|
||||
bg="gnome.jpg"
|
||||
change_panel
|
||||
|
||||
elif [[ "$1" = "--klight" || "$1" = "--kde" ]]; then
|
||||
panel="kde"
|
||||
bg="kde.jpg"
|
||||
change_panel
|
||||
|
||||
elif [[ "$1" = "--kdark" || "$1" = "--kde_dark" ]]; 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" || "$1" = "--ubuntu_gnome" ]]; then
|
||||
panel="ubuntu_gnome"
|
||||
bg="ubuntu.jpg"
|
||||
change_panel
|
||||
|
||||
elif [[ "$1" = "--unity" || "$1" = "--ubuntu_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
|
||||
Reference in New Issue
Block a user