aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2023-04-02 15:26:08 +0200
committerHimbeerserverDE <himbeerserverde@gmail.com>2023-04-02 15:26:08 +0200
commitfcc459365ee9baaf94a131513614e4b40be30248 (patch)
tree5a3a5e7c31bcc99f72ebfcc03442a3765a091d71
parent263f9ddcdc595384fe1bccbbc30586b99136da14 (diff)
don't cause unnecessary lag waiting for second monitor
-rwxr-xr-xpolybar/normal/scr2.sh1
-rwxr-xr-xpolybar/unsafe/scr2.sh1
2 files changed, 2 insertions, 0 deletions
diff --git a/polybar/normal/scr2.sh b/polybar/normal/scr2.sh
index d3a4b49..47e95f8 100755
--- a/polybar/normal/scr2.sh
+++ b/polybar/normal/scr2.sh
@@ -17,6 +17,7 @@
while [ -z "${SCR2}" ]; do
SCR2=$(xrandr -q | grep ' connected' | grep -v primary | awk '{print $1}')
+ sleep 1
done
sleep 12
diff --git a/polybar/unsafe/scr2.sh b/polybar/unsafe/scr2.sh
index d3a4b49..47e95f8 100755
--- a/polybar/unsafe/scr2.sh
+++ b/polybar/unsafe/scr2.sh
@@ -17,6 +17,7 @@
while [ -z "${SCR2}" ]; do
SCR2=$(xrandr -q | grep ' connected' | grep -v primary | awk '{print $1}')
+ sleep 1
done
sleep 12