UPdaootst

This commit is contained in:
Marco Thomas
2021-12-31 11:28:54 +01:00
parent 13f3d6885b
commit 876be58b84
3 changed files with 9 additions and 21 deletions

View File

@@ -1,7 +1,10 @@
killall -q polybar
for mon in $(xrandr | grep 'connected' | awk '{print $1}'):
do
echo ${mon}
MON=${mon} polybar -r bar &
done
if type "xrandr"; then
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
echo $m
MON=$m polybar --reload bar &
done
else
polybar --reload bar &
fi