summary refs log tree commit diff
path: root/bin/mkmenu
diff options
context:
space:
mode:
Diffstat (limited to 'bin/mkmenu')
-rwxr-xr-xbin/mkmenu17
1 files changed, 0 insertions, 17 deletions
diff --git a/bin/mkmenu b/bin/mkmenu
deleted file mode 100755
index 614f512..0000000
--- a/bin/mkmenu
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/bash
-set -e
-[ "$DEBUG" ] && set -x
-[ "$TEST" ] && {
-	jq -cn '{p:"test...",o:[{l:"option a",x:"notify-send a"},{l:"option b",x:"notify-send b"}]}' | env -u TEST $0
-	exit 0
-}
-
-read -r IN
-
-MENU_PROMPT=$(jq -cr '.p' <<<"$IN")
-export MENU_PROMPT
-
-sel=$(jq -cr '.o[].l' <<<"$IN" | menu)
-run=$(jq -cr --arg sel "$sel" '.o[] | select(.l == $sel) | .x' <<<"$IN")
-
-exec sh -c "$run"