ansible-desktop/roles/dwm/files/usr/local/bin/launch-polybar

12 lines
209 B
Plaintext
Raw Normal View History

2023-08-04 22:49:37 +00:00
#!/usr/bin/env bash
set -x
if type "xrandr"; then
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
MONITOR=$m polybar --reload dwm &
done
else
polybar --reload dwm &
fi