Skip to content

Commit

Permalink
feat: polybar runs on all connected monitors
Browse files Browse the repository at this point in the history
  • Loading branch information
munen committed Dec 2, 2022
1 parent a5f9ce2 commit 718b9de
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/bin/launch_polybar.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
if type "xrandr"; then
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
MONITOR=$m polybar --reload example &
done
else
polybar --reload example &
fi
3 changes: 3 additions & 0 deletions polybar/.config/polybar/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ height = 14pt
radius = 6
bottom = true

monitor = ${env:MONITOR:eDP}


dpi = 286

tray-position = right
Expand Down

0 comments on commit 718b9de

Please sign in to comment.