Added wayland/sway version of the rofi pass wrapper
This commit is contained in:
parent
1f845815b2
commit
09e1fe3f94
14
scripts/rofi-pass-simple-wlr.sh
Executable file
14
scripts/rofi-pass-simple-wlr.sh
Executable 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
|
Loading…
Reference in a new issue