aboutsummaryrefslogtreecommitdiff
path: root/bin/ddmenu
blob: b4c1bc627c0d05c0bd57e5362feed25a2663aa9e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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