rice/launch_polybar.sh
2022-01-23 17:56:01 -08:00

13 lines
241 B
Bash

#!/bin/sh
# Kill off previous version of polybar
kill $(pgrep polybar)
if type 'xrandr'; then
for m in $(xrandr --query | grep ' connected' | cut -d ' ' -f1);do
MONITOR=$m polybar --reload cute &
done
else
polybar --reload cute &
fi