aboutsummaryrefslogtreecommitdiff
path: root/bin/ddmenu
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ddmenu')
-rwxr-xr-xbin/ddmenu20
1 files changed, 20 insertions, 0 deletions
diff --git a/bin/ddmenu b/bin/ddmenu
new file mode 100755
index 0000000..b4c1bc6
--- /dev/null
+++ b/bin/ddmenu
@@ -0,0 +1,20 @@
+#!/bin/sh
+# dmenu for dmenus
+command="$(dmenu "$@" <<EOF
+pass
+pass-type
+otp
+otp-type
+snip
+snip-type
+EOF
+)"
+
+case $command in
+ pass) dpw-menu "$@" ;;
+ pass-type) dpw-menu --type "$@" ;;
+ otp) dpw-menu --otp "$@" ;;
+ otp-type) dpw-menu --otp --type "$@" ;;
+ snip) snipmenu copy "$@" ;;
+ snip-type) snipmenu "$@" ;;
+esac