diff --git a/scripts/rofi-pass-simple-wlr.sh b/scripts/rofi-pass-simple-wlr.sh new file mode 100755 index 0000000..dae91cc --- /dev/null +++ b/scripts/rofi-pass-simple-wlr.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +if [ ! -z "$PASSWORD_STORE_DIR" ]; then + cd "$PASSWORD_STORE_DIR" +else + cd "$HOME/.password-store" +fi + +if [ -z $@ ]; then + find -name \*.gpg | sed 's/\.\/\(.*\)\.gpg/\1/' +else + #nohup pass show -c "$@" >/dev/null & + nohup sh -c "pass show \"$@\" | head -n 1 | wl-copy --trim-newline" >/dev/null & +fi