diff options
Diffstat (limited to 'X11/rofi/pass.rm')
-rwxr-xr-x | X11/rofi/pass.rm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/X11/rofi/pass.rm b/X11/rofi/pass.rm index 44bdc33..a407792 100755 --- a/X11/rofi/pass.rm +++ b/X11/rofi/pass.rm | |||
@@ -1,6 +1,5 @@ | |||
1 | #! /bin/sh | 1 | #! /bin/sh |
2 | 2 | ||
3 | ROFI_ARGS=( '-font' 'Hack 22' ) | ||
4 | ENTRIES="$(find ~/.password-store -name '*gpg' -printf %P\\n | sed 's/.gpg$//')" | 3 | ENTRIES="$(find ~/.password-store -name '*gpg' -printf %P\\n | sed 's/.gpg$//')" |
5 | 4 | ||
6 | # Give rofi available passwords and exit | 5 | # Give rofi available passwords and exit |
@@ -16,6 +15,6 @@ fi | |||
16 | <<<"$ENTRIES" grep -q $1 && \ | 15 | <<<"$ENTRIES" grep -q $1 && \ |
17 | coproc ( | 16 | coproc ( |
18 | pass rm $1 &>/dev/null && \ | 17 | pass rm $1 &>/dev/null && \ |
19 | rofi "${ROFI_ARGS[@]}" -e "Removed: $1" || \ | 18 | rofi -e "Removed: $1" || \ |
20 | rofi "${ROFI_ARGS[@]}" -e "Fail to remove $1" | 19 | rofi -e "Fail to remove $1" |
21 | ) | 20 | ) |