Updated polybar to run on all monitors
This commit is contained in:
@@ -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"
|
||||
|
||||
9
dotfiles/.screenlayout/polybar.sh
Normal file
9
dotfiles/.screenlayout/polybar.sh
Normal 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
|
||||
Reference in New Issue
Block a user