Add multi-monitor support to all themes and made small tweaks to sizing and fonts

This commit is contained in:
2024-12-07 09:45:50 -07:00
parent 1c486f3103
commit 47f67432aa
102 changed files with 689 additions and 5228 deletions

View File

@@ -12,18 +12,19 @@ launch_bar() {
# 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
# Launch the bar multi monitor aware
for mon in $(polybar --list-monitors | cut -d":" -f1); do
if [[ "$style" == "hack" || "$style" == "cuts" ]]; then
MONITOR=$mon polybar -q top -c "$dir/$style/config.ini" &
MONITOR=$mon polybar -q bottom -c "$dir/$style/config.ini" &
elif [[ "$style" == "pwidgets" ]]; then
MONITOR=$mon bash "$dir"/pwidgets/launch.sh --main
else
MONITOR=$mon polybar -q main -c "$dir/$style/config.ini" &
done
fi
fi
done
else
echo "$dir/$style/config.ini" not found
exit 1