From e503a94262ca97a10fed8f0dea31020d1b3747dd Mon Sep 17 00:00:00 2001 From: zachir Date: Sun, 9 Oct 2022 20:55:29 -0500 Subject: initialize repo --- README | 4 ++++ barmenu | 7 +++++++ barmenu_run | 3 +++ 3 files changed, 14 insertions(+) create mode 100644 README create mode 100755 barmenu create mode 100755 barmenu_run diff --git a/README b/README new file mode 100644 index 0000000..3a837e7 --- /dev/null +++ b/README @@ -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. diff --git a/barmenu b/barmenu new file mode 100755 index 0000000..a43a079 --- /dev/null +++ b/barmenu @@ -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"} & -- cgit v1.2.3