summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2022-10-09 20:55:29 -0500
committerzachir <zachir@librem.one>2022-10-09 20:55:29 -0500
commite503a94262ca97a10fed8f0dea31020d1b3747dd (patch)
tree3d2d9fc77b53cacacbc689948a93dbe8fe6da2dd
initialize repo
-rw-r--r--README4
-rwxr-xr-xbarmenu7
-rwxr-xr-xbarmenu_run3
3 files changed, 14 insertions, 0 deletions
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"} &