Added wayland/sway version of the rofi pass wrapper

This commit is contained in:
Thomas Kolb 2021-07-09 11:09:41 +02:00
parent 1f845815b2
commit 09e1fe3f94

14
scripts/rofi-pass-simple-wlr.sh Executable file
View file

@ -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