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