diff options
| author | Shokara Kou <shokara@kalli.st> | 2022-01-17 20:44:39 -0500 |
|---|---|---|
| committer | Shokara Kou <shokara@kalli.st> | 2022-01-17 20:44:39 -0500 |
| commit | e8772c497f4f298c27caeee7443b6620a8870b20 (patch) | |
| tree | 30a47c182de6cab7537f50944ef9265da0208d2a | |
| parent | 28609d5c682efdf28d2e79b0905d8455dab8c77b (diff) | |
add angoumenu
In contrib because it's sort of an extension to angou instead of
actually a part of it.
Also primary selection clipboard yay.
| -rwxr-xr-x | angou | 2 | ||||
| -rwxr-xr-x | contrib/angoumenu | 6 |
2 files changed, 7 insertions, 1 deletions
| @@ -3,7 +3,7 @@ | |||
| 3 | # sets the directory with all your passwords | 3 | # sets the directory with all your passwords |
| 4 | ANGOU_DIR=${ANGOU_DIR:-"$HOME/.angou/"} | 4 | ANGOU_DIR=${ANGOU_DIR:-"$HOME/.angou/"} |
| 5 | # sets the command to copy into your clipboard (must accept stdin) | 5 | # sets the command to copy into your clipboard (must accept stdin) |
| 6 | ANGOU_CLIPBOARD=${ANGOU_CLIPBOARD:-"xsel -ib"} | 6 | ANGOU_CLIPBOARD=${ANGOU_CLIPBOARD:-"xsel -i"} |
| 7 | # sets command to use when listing directory structure | 7 | # sets command to use when listing directory structure |
| 8 | ANGOU_LIST=${ANGOU_LIST:-"tree"} | 8 | ANGOU_LIST=${ANGOU_LIST:-"tree"} |
| 9 | 9 | ||
diff --git a/contrib/angoumenu b/contrib/angoumenu new file mode 100755 index 0000000..04bbf95 --- /dev/null +++ b/contrib/angoumenu | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | ANGOU_DIR="${ANGOU_DIR:-~/.angou}" | ||
| 3 | DMENU="dmenu" | ||
| 4 | |||
| 5 | cd "$ANGOU_DIR" | ||
| 6 | find . -name '*.gpg' | sort | sed 's,^\./,,;s,\.gpg$,,' | $DMENU | xargs angou copy | ||
