diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-09-22 22:37:51 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-09-22 22:37:51 +0200 |
commit | d42fdc004ce07d228edfc9607d4d0b23bb3bc99c (patch) | |
tree | 6fa79ec3a6137de9b4660c82c81b225de6dcf216 /.config/i3/autostart##template | |
parent | b50cfe5b45b56fd76f41d196a53b929157044f43 (diff) |
minor updates
Diffstat (limited to '.config/i3/autostart##template')
-rwxr-xr-x | .config/i3/autostart##template | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/.config/i3/autostart##template b/.config/i3/autostart##template index 0e0cff4..c7ef3b6 100755 --- a/.config/i3/autostart##template +++ b/.config/i3/autostart##template @@ -19,11 +19,12 @@ nicotine & {% endif %} flashfocus & -# bw unlock <password> --raw | keyctl padd user bw_session @u -# sh $HOME/.config/i3/unlock_bitwarden & -[ -f "$XDG_CONFIG_HOME/i3/unlock_bitwarden" ] && "$XDG_CONFIG_HOME/i3/unlock_bitwarden" & +# store bitwarden session token using keyctl +{ + keyctl purge user bw_session + bw unlock --passwordenv BITWARDEN_MASTER_PASSWORD --raw | keyctl padd user bw_session @u +} & # auto start lazy script after everything else -sleep 2 [ -f "$HOME/do.sh" ] && . "$HOME/do.sh" |