diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-03-24 12:41:52 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-03-24 12:41:52 +0100 |
commit | 3c1fb4adbefd9a9c20b51ac7b6bf20ee1bb6a86a (patch) | |
tree | 16f2484cada1df3c63175048ad1ef5420458d27b | |
parent | 580b4254bfdcb99c4968d041ff8e9196391daede (diff) |
use keyctl instead of file
-rw-r--r-- | .config/i3/autostart | 5 | ||||
-rw-r--r-- | .config/imapnotify/pipeframe.conf | 4 | ||||
-rw-r--r-- | .config/neomutt/neomuttrc | 2 | ||||
-rw-r--r-- | .config/xbindkeys/main | 2 | ||||
-rw-r--r-- | .mbsyncrc | 2 |
5 files changed, 9 insertions, 6 deletions
diff --git a/.config/i3/autostart b/.config/i3/autostart index 80f2180..2fc3f6c 100644 --- a/.config/i3/autostart +++ b/.config/i3/autostart @@ -10,6 +10,9 @@ dunst & flashfocus & xset r rate 250 40 autocutsel & -sh ~/.bwunlock & + +# bw unlock <password> --raw | keyctl padd user bw_session @u +sh ~/config/i3/unlock_bitwarden & + zsh -c "xbindkeys -f ~/.config/xbindkeys/main" diff --git a/.config/imapnotify/pipeframe.conf b/.config/imapnotify/pipeframe.conf index 11ebd5a..7f6aeb9 100644 --- a/.config/imapnotify/pipeframe.conf +++ b/.config/imapnotify/pipeframe.conf @@ -5,8 +5,8 @@ "tlsOptions": { "rejectUnauthorized": true }, "username": "loek@mail.pipeframe.xyz", "password": "", - "passwordCmd": "source ~/.bwsession && bw get password efc4ddc3-cd2d-4090-b570-abea0113217a", - "onNewMail": "source ~/.bwsession && mbsync -a", + "passwordCmd": "keyctl request user bw_session | xargs keyctl pipe | xargs bw get password efc4ddc3-cd2d-4090-b570-abea0113217a --session", + "onNewMail": "mbsync -a", "onNewMailPost": "notify-send 'New mail arrived'", "boxes": [ "Inbox" ] } diff --git a/.config/neomutt/neomuttrc b/.config/neomutt/neomuttrc index bc4e4bf..6e87beb 100644 --- a/.config/neomutt/neomuttrc +++ b/.config/neomutt/neomuttrc @@ -11,7 +11,7 @@ set postponed = "+Drafts" # imap credentials set imap_user = "loek@mail.pipeframe.xyz" -set imap_pass = "`bw get password efc4ddc3-cd2d-4090-b570-abea0113217a`" +set imap_pass = "`keyctl request user bw_session | xargs keyctl pipe | xargs bw get password efc4ddc3-cd2d-4090-b570-abea0113217a --session`" # smtp credentials set smtp_pass = $imap_pass diff --git a/.config/xbindkeys/main b/.config/xbindkeys/main index b7d1399..e78f6e1 100644 --- a/.config/xbindkeys/main +++ b/.config/xbindkeys/main @@ -8,7 +8,7 @@ Alt + Tab "st" Mod4 + Return -"sh -c 'source ~/.bwsession && bwmenu'" +"bwmenu" Mod4 + p "maim -usb 4 -c 255,255,255 | xclip -selection clipboard -t image/png" Print @@ -2,7 +2,7 @@ IMAPAccount pipeframe Host mail.pipeframe.xyz Port 993 User loek@mail.pipeframe.xyz -PassCmd "bw get password efc4ddc3-cd2d-4090-b570-abea0113217a" +PassCmd "keyctl request user bw_session | xargs keyctl pipe | xargs bw get password efc4ddc3-cd2d-4090-b570-abea0113217a --session" SSLType IMAPS CertificateFile /etc/ssl/certs/ca-certificates.crt |