From 00c4b66b7769d219851e239cb3f5c9fbbd31cb1b Mon Sep 17 00:00:00 2001 From: root_sti Date: Thu, 7 Sep 2023 00:52:48 -0300 Subject: [PATCH] Back to origin. --- wms_switcher.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wms_switcher.sh b/wms_switcher.sh index 721051f..a86a9de 100755 --- a/wms_switcher.sh +++ b/wms_switcher.sh @@ -5,6 +5,7 @@ . /tmp/wms_var AMW=$(lsw) # all maped windows +DELAY=.2 if [ -n "$AMW" ]; then TARGET=$(\ @@ -12,7 +13,7 @@ if [ -n "$AMW" ]; then printf '%s\n' "$wid | $(atomx WM_CLASS $wid) | $(wname $wid)" done | cut -c 1-100 | $XMENU | cut -d '|' -f 1) -sleep .1; +sleep $DELAY && wms_mainrole.sh "$TARGET" # focus target fi