aboutsummaryrefslogtreecommitdiff
path: root/menu_run
diff options
context:
space:
mode:
authorsinanmohd <sinan@firemail.cc>2023-11-04 19:24:23 +0530
committersinanmohd <sinan@firemail.cc>2023-11-04 19:24:23 +0530
commit1263b38d6d49944af620523ea3f2e4c8898b6786 (patch)
tree9fe643abf53425b8ce44d1923bda001005fbff5d /menu_run
parent7ea21826565b907457749a9db8cb4de34b89306a (diff)
wayland/menu: wmenu -> bemenu
Diffstat (limited to 'menu_run')
-rwxr-xr-xmenu_run8
1 files changed, 4 insertions, 4 deletions
diff --git a/menu_run b/menu_run
index 0d5a0c9..16e4453 100755
--- a/menu_run
+++ b/menu_run
@@ -1,8 +1,8 @@
#!/bin/sh
-menu="wmenu"
+menu="bemenu"
cache_dir="${XDG_CACHE_HOME:-"$HOME/.cache"}"
-cache="$cache_dir/wmenu_run"
+cache="$cache_dir/bemenu_run"
uptodate()
{
@@ -38,9 +38,9 @@ main()
if [ -f "$cache" ] && uptodate
then
- "$menu" "$@" < "$cache" | ${SHELL:-"/bin/sh"} &
+ "$menu" -p ' ' "$@" < "$cache" | ${SHELL:-"/bin/sh"} &
else
- get_bin | sort -u | tee "$cache" | "$menu" "$@" | ${SHELL:-"/bin/sh"} &
+ get_bin | sort -u | tee "$cache" | "$menu" -p ' ' "$@" | ${SHELL:-"/bin/sh"} &
fi
}