[gopass] Add fall-back to dmenu if rofi not found
This commit is contained in:
parent
d5bc2aeab5
commit
6100215c72
2 changed files with 12 additions and 5 deletions
|
|
@ -2,11 +2,18 @@
|
||||||
#
|
#
|
||||||
# Original inspiration from https://github.com/carnager/rofi-pass/
|
# Original inspiration from https://github.com/carnager/rofi-pass/
|
||||||
|
|
||||||
# rofi wrapper. Add custom settings here.
|
# selector wrapper
|
||||||
|
# uses rofi if found, or dmenu if found, complains if no selector available
|
||||||
_rofi() {
|
_rofi() {
|
||||||
# TODO add check for dmenu
|
if type rofi 2>/dev/null; then
|
||||||
exist rofi critical "rofi-gopass" || exit 0
|
echo "rofi found" 1>&2
|
||||||
rofi -dmenu -no-auto-select -i "$@" -p "Entry"
|
rofi -dmenu -no-auto-select -i "$@" -p "Entry"
|
||||||
|
elif type dmenu 2>/dev/null; then
|
||||||
|
echo "dmenu found" 1>&2
|
||||||
|
dmenu -i "$@" -p "Entry"
|
||||||
|
else
|
||||||
|
exist rofi critical "rofi-gopass" || exit 0
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# parse, see https://unix.stackexchange.com/a/331965/8541
|
# parse, see https://unix.stackexchange.com/a/331965/8541
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
The gopass module tries to make interacting with the basic necessities of gopass painless and quick -- it is focused on accessing secrets, and quickly auto-filling forms or copying secrets to the clipboard. It relies on the default gopass auto-deleting clipping, so your secrets are automatically removed after a short while.
|
The gopass module tries to make interacting with the basic necessities of gopass painless and quick -- it is focused on accessing secrets, and quickly auto-filling forms or copying secrets to the clipboard. It relies on the default gopass auto-deleting clipping, so your secrets are automatically removed after a short while.
|
||||||
|
|
||||||
The configuration of gopass is relatively standard, it tries to follow XDG_specifications, putting the default pass store into `~/.local/share`.
|
The configuration of gopass is relatively standard, it tries to follow XDG_specifications, putting the default pass store into `~/.local/share/gopass/passwords`.
|
||||||
|
|
||||||
## rofi-gopass
|
## rofi-gopass
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue