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