diff options
-rw-r--r-- | README | 4 | ||||
-rwxr-xr-x | barmenu | 7 | ||||
-rwxr-xr-x | barmenu_run | 3 |
3 files changed, 14 insertions, 0 deletions
@@ -0,0 +1,4 @@ +"generics" are scripts that will call one of two programs (usually), one if +Wayland is running, and the other if X is. These are generally super rough, so +it's best to bake-in whatever arguments you wish to pass, rather than pass them +to the generic. @@ -0,0 +1,7 @@ +#!/sbin/sh + +if [ -z "$WAYLAND_DISPLAY" -a -n "$DISPLAY" ]; then + dmenu -i -F $@ +else + bemenu $(echo $@ | sed 's/-h/-H/') +fi diff --git a/barmenu_run b/barmenu_run new file mode 100755 index 0000000..6ff709f --- /dev/null +++ b/barmenu_run @@ -0,0 +1,3 @@ +#!/sbin/sh + +dmenu_path | barmenu "$@" | ${SHELL:-"/bin/sh"} & |