rice/launch_polybar.sh

13 lines
241 B
Bash
Raw Normal View History

2022-01-24 01:56:01 +00:00
#!/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