fixes for passmgr

This commit is contained in:
tavo-wasd 2024-02-05 09:37:35 -06:00
parent e08b0ff758
commit a2b075c855
6 changed files with 4 additions and 21 deletions

View file

@ -1,18 +0,0 @@
#!/bin/sh
# OTP script for 'pass'
PASSWORD_STORE_DIR="$XDG_DATA_HOME/password-store"
# Ask for password name in vault
password="$(find "$PASSWORD_STORE_DIR" -type f -name '*.gpg' |
sed "s@$PASSWORD_STORE_DIR/@@g ; s@.gpg@@g" | menu "OTP:")"
# Exit if none chosen
[ -z "$password" ] && exit
# Otherwise, copy to clipboard and notify OTP
pass otp "$password" | while read -r OUTPUT; do
echo $OUTPUT | xsel -ib
xdotool type "$OUTPUT"
[ -e /usr/bin/notify-send ] && notify-send " $password" "$OUTPUT"
done

View file

@ -1,6 +1,5 @@
#!/bin/sh
# menu for 'pass'
PASSWORD_STORE_DIR="$HOME/.local/share/password-store"
MENU="$HOME/.config/scripts/menu/menu"
password="$(find "$PASSWORD_STORE_DIR" -type f -name '*.gpg' | sed "s@$PASSWORD_STORE_DIR/@@g ; s@.gpg@@g" | $MENU "Pass:")"

View file

@ -1,5 +1,6 @@
#!/bin/sh
PASSWORD_STORE_DIR="$HOME/.local/share/password-store"
password="$(~/.config/scripts/menu/menu-pass)"
[ -z "$password" ] && exit
wtype $(pass otp "$password")
wtype $(pass otp "$password" | head -n 1)

View file

@ -1,4 +1,5 @@
#!/bin/sh
PASSWORD_STORE_DIR="$HOME/.local/share/password-store"
password="$(~/.config/scripts/menu/menu-pass)"
[ -z "$password" ] && exit

View file

@ -118,3 +118,4 @@ bar {
# Autostart
exec_always dunst
exec_always dbus-update-activation-environment WAYLAND_DISPLAY

View file

@ -118,7 +118,6 @@ Plug 'junegunn/goyo.vim'
Plug 'mhinz/vim-signify'
Plug 'ibhagwan/fzf-lua'
Plug 'morhetz/gruvbox'
Plug 'vimwiki/vimwiki'
"Plug 'dracula/vim'
call plug#end()