Initial commit of fresh adi1090x themes and old qpansl before git tweaks

This commit is contained in:
2024-12-06 14:18:09 -07:00
commit 1c486f3103
545 changed files with 84747 additions and 0 deletions

38
launch.sh Executable file
View File

@@ -0,0 +1,38 @@
#!/usr/bin/env bash
dir="$HOME/.config/polybar"
themes=(`ls --hide="launch.sh" $dir`)
launch_bar() {
if [ -e "$dir/$style/config.ini" ]; then
# Terminate already running bar instances
killall -q polybar
# Wait until the processes have been shut down
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
# Launch the bar
if [[ "$style" == "hack" || "$style" == "cuts" ]]; then
polybar -q top -c "$dir/$style/config.ini" &
polybar -q bottom -c "$dir/$style/config.ini" &
elif [[ "$style" == "pwidgets" ]]; then
bash "$dir"/pwidgets/launch.sh --main
else
#polybar -q main -c "$dir/$style/config.ini" &
for mon in $(polybar --list-monitors | cut -d":" -f1); do
MONITOR=$mon polybar -q main -c "$dir/$style/config.ini" &
done
fi
else
echo "$dir/$style/config.ini" not found
exit 1
fi
}
if [ "$1" = "" ]; then
echo "Please specify a --style"
exit 1
fi
style=${1#--*}
launch_bar