Skip to content

Commit

Permalink
use the --nosync option for gopass in both scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-heusel committed Jul 30, 2023
1 parent 466ac8a commit 65a65f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion roles/custom-scripts/files/my_scripts/gopass_qr.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/env bash
set -o nounset # Treat unset variables as an error

password=$(gopass list --flat | rofi -dmenu -i -l 5 -p "gopass->qr" | xargs gopass show --password)
password=$(gopass --nosync list --flat | rofi -dmenu -i -l 5 -p "gopass->qr" | xargs gopass show --password)
tmpfile=$(mktemp /tmp/gopass-qr.XXXXXX)
qrencode "$password" --dpi=500 -s 20 -m 1 -o $tmpfile && sxiv -bpq -Z $tmpfile

Expand Down
2 changes: 1 addition & 1 deletion roles/custom-scripts/files/my_scripts/gopass_selector.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/env bash
set -o nounset # Treat unset variables as an error

gopass list --flat | \
gopass --nosync list --flat | \
rofi -dmenu -i -l 5 -p "gopass" | \
tee >(xargs gopass show -c) \
>(awk '{b=$1" ins clipboard kopiert!"; print b}' | xargs -I "{}" notify-send "gopass" "{}")
Expand Down

0 comments on commit 65a65f7

Please sign in to comment.