From 65bd43469828a5f59b48352adba4f2d5d88758d0 Mon Sep 17 00:00:00 2001 From: Salt Date: Thu, 4 Jun 2020 08:04:36 -0500 Subject: [PATCH] Polybar: Fully-qualify dirty i3 hack --- .config/polybar/launch.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.config/polybar/launch.sh b/.config/polybar/launch.sh index 825dd767..d7da1ff7 100755 --- a/.config/polybar/launch.sh +++ b/.config/polybar/launch.sh @@ -66,7 +66,9 @@ step_wait() { # Main main() { # Dirty hack for i3 - sleep 2 + if pgrep -x i3 > /dev/null 2>&1; then + sleep 2 + fi step_fallback step_configure step_spawn_primary