diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2021-10-26 08:10:33 -0400 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2021-10-26 08:10:33 -0400 |
| commit | ac66f0df2bec39e0a075fdcc72c5c5636a6fb319 (patch) | |
| tree | 0427b23208241d85e22d71cf5d98f8db07736814 /bin/ddmenu | |
| parent | cc99124e7a063934a0b9a1441ae41277fa30c4b6 (diff) | |
| download | dotfiles-ac66f0df2bec39e0a075fdcc72c5c5636a6fb319.tar.gz dotfiles-ac66f0df2bec39e0a075fdcc72c5c5636a6fb319.tar.xz | |
Add ddmenu, and updated snipmenu
Diffstat (limited to 'bin/ddmenu')
| -rwxr-xr-x | bin/ddmenu | 20 |
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 |
