Fix for spawning scripts that require no args
For example, "ddspawn vifm" is generating the failing commad "st vifm -e vifm" without this fix. This proposed change fixes this issue so that "ddspawn vifm" generates the correct "st -e vifm". It also simplify the i3 command in my view. Thanks for sharing this helpful script, I used it everywhere!
This commit is contained in:
parent
4b8d80ed67
commit
fd7c65f8ff
1 changed files with 1 additions and 1 deletions
|
@ -13,5 +13,5 @@ then
|
||||||
i3 "[instance=\"dropdown_$1\"] scratchpad show; [instance=\"dropdown_$1\"] move position center"
|
i3 "[instance=\"dropdown_$1\"] scratchpad show; [instance=\"dropdown_$1\"] move position center"
|
||||||
else
|
else
|
||||||
echo "Window not detected... spawning."
|
echo "Window not detected... spawning."
|
||||||
i3 "exec --no-startup-id $TERMINAL -n dropdown_$1 $(echo "$@" | cut -d ' ' -f2-) -e $1"
|
i3 "exec --no-startup-id $TERMINAL -n dropdown_$1 ${@:2} -e $1"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue