aboutsummaryrefslogtreecommitdiff
path: root/bin/ddmenu
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2021-10-26 08:10:33 -0400
committerMitchell Riedstra <mitch@riedstra.dev>2021-10-26 08:10:33 -0400
commitac66f0df2bec39e0a075fdcc72c5c5636a6fb319 (patch)
tree0427b23208241d85e22d71cf5d98f8db07736814 /bin/ddmenu
parentcc99124e7a063934a0b9a1441ae41277fa30c4b6 (diff)
downloaddotfiles-ac66f0df2bec39e0a075fdcc72c5c5636a6fb319.tar.gz
dotfiles-ac66f0df2bec39e0a075fdcc72c5c5636a6fb319.tar.xz
Add ddmenu, and updated snipmenu
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