diff options
author | zachir <zachir@librem.one> | 2022-10-09 20:55:29 -0500 |
---|---|---|
committer | zachir <zachir@librem.one> | 2022-10-09 20:55:29 -0500 |
commit | e503a94262ca97a10fed8f0dea31020d1b3747dd (patch) | |
tree | 3d2d9fc77b53cacacbc689948a93dbe8fe6da2dd |
initialize repo
-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"} & |