Updated polybar to run on all monitors

This commit is contained in:
Random936
2025-04-28 15:59:20 -07:00
parent 6bf4a7deff
commit 3e3e8034d4
5 changed files with 12 additions and 1 deletions

View File

@@ -10,3 +10,4 @@ function load_script() {
load_script "$HOME/.screenlayout/wallpapers.sh"
load_script "$HOME/.screenlayout/layout.sh"
load_script "$HOME/.screenlayout/wallpapers.sh"
load_script "$HOME/.screenlayout/polybar.sh"

View File

@@ -0,0 +1,9 @@
#!/usr/bin/env bash
if which xrandr; then
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
MONITOR=$m polybar --reload example &
done
else
polybar --reload example &
fi