fixes for passmgr
This commit is contained in:
parent
e08b0ff758
commit
a2b075c855
6 changed files with 4 additions and 21 deletions
|
@ -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
|
|
|
@ -1,6 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# menu for 'pass'
|
# menu for 'pass'
|
||||||
PASSWORD_STORE_DIR="$HOME/.local/share/password-store"
|
|
||||||
MENU="$HOME/.config/scripts/menu/menu"
|
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:")"
|
password="$(find "$PASSWORD_STORE_DIR" -type f -name '*.gpg' | sed "s@$PASSWORD_STORE_DIR/@@g ; s@.gpg@@g" | $MENU "Pass:")"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
PASSWORD_STORE_DIR="$HOME/.local/share/password-store"
|
||||||
|
|
||||||
password="$(~/.config/scripts/menu/menu-pass)"
|
password="$(~/.config/scripts/menu/menu-pass)"
|
||||||
[ -z "$password" ] && exit
|
[ -z "$password" ] && exit
|
||||||
wtype $(pass otp "$password")
|
wtype $(pass otp "$password" | head -n 1)
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
PASSWORD_STORE_DIR="$HOME/.local/share/password-store"
|
||||||
|
|
||||||
password="$(~/.config/scripts/menu/menu-pass)"
|
password="$(~/.config/scripts/menu/menu-pass)"
|
||||||
[ -z "$password" ] && exit
|
[ -z "$password" ] && exit
|
||||||
|
|
|
@ -118,3 +118,4 @@ bar {
|
||||||
|
|
||||||
# Autostart
|
# Autostart
|
||||||
exec_always dunst
|
exec_always dunst
|
||||||
|
exec_always dbus-update-activation-environment WAYLAND_DISPLAY
|
||||||
|
|
|
@ -118,7 +118,6 @@ Plug 'junegunn/goyo.vim'
|
||||||
Plug 'mhinz/vim-signify'
|
Plug 'mhinz/vim-signify'
|
||||||
Plug 'ibhagwan/fzf-lua'
|
Plug 'ibhagwan/fzf-lua'
|
||||||
Plug 'morhetz/gruvbox'
|
Plug 'morhetz/gruvbox'
|
||||||
Plug 'vimwiki/vimwiki'
|
|
||||||
"Plug 'dracula/vim'
|
"Plug 'dracula/vim'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue