Create launch

This commit is contained in:
Vlad Doster 2020-01-01 18:37:14 -05:00 committed by GitHub
parent ea017304fa
commit b9cf706f41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

11
.config/polybar/launch Normal file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env bash
name=main
pkill polybar
if type "xrandr"; then
for monitor in $(xrandr --query | grep " connected" | cut -d" " -f1); do
MONITOR=${monitor} polybar --reload ${name}&
done
else
polybar --reload ${name} &
fi