dotfiles/home/r0r5chach/.config/rofi/passmgr-menu/passmgr

9 lines
265 B
Plaintext
Raw Normal View History

2023-07-11 04:43:17 +00:00
set -o pipefail
id=$(lpass ls | rofi -config "~/.config/rofi/passmgr-menu/passmgr.rasi" -dmenu -p ">>> " | awk ' { print substr($3,0, length($3)-1) }')
if [ $? != 1 ]; then
lpass show --password $id | wl-copy
notify-send --app-name=LastPass Password Copied
fi