diff --git a/scripts/core/sxmo_dmenu_with_kb.sh b/scripts/core/sxmo_dmenu_with_kb.sh index f855b8a..2ed0fab 100755 --- a/scripts/core/sxmo_dmenu_with_kb.sh +++ b/scripts/core/sxmo_dmenu_with_kb.sh @@ -9,5 +9,7 @@ wasopen="$(sxmo_keyboard.sh isopen && echo "yes")" sxmo_keyboard.sh open OUTPUT="$(cat | dmenu "$@")" +exitcode=$? [ -z "$wasopen" ] && sxmo_keyboard.sh close echo "$OUTPUT" +exit $exitcode