From 26b99c23018c39437f3b57c30283fb1b2d6e1cf7 Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 16 Oct 2023 18:34:47 +0100 Subject: [PATCH] actually wait til dmenu is done before showing bar --- show_dmenu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/show_dmenu.sh b/show_dmenu.sh index 4d37634..d569c20 100755 --- a/show_dmenu.sh +++ b/show_dmenu.sh @@ -9,7 +9,7 @@ if [ -f /tmp/polybarhidden ]; then else polybar-msg cmd hide touch /tmp/polybarhidden - dmenu_run -fn "SauceCodePro Nerd Font-11" -nf "#f0f0f0" -nb "#0f0f0f" -sf "#f0f0f0" -sb "#8f8aac" + selection=$(dmenu_run -fn "SauceCodePro Nerd Font-11" -nf "#f0f0f0" -nb "#0f0f0f" -sf "#f0f0f0" -sb "#8f8aac") # only assigning a variable here to force the next command to wait til dmenu is done polybar-msg cmd show rm /tmp/polybarhidden fi