Skip to content

Instantly share code, notes, and snippets.

View tuannv1807's full-sized avatar

tuannv1807

View GitHub Profile
@tuannv1807
tuannv1807 / gist:8348decbfd7494bda83c76fc29ea843e
Created June 7, 2023 06:48
Polybar launcher multiple screens
#!/usr/bin/env sh
# Terminate already running bar instances
killall -q polybar
# Wait until the processes have been shut down
while pidof polybar >/dev/null; do sleep 1; done
if type "xrandr"; then
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do