aboutsummaryrefslogtreecommitdiff
path: root/.config/i3
diff options
context:
space:
mode:
Diffstat (limited to '.config/i3')
-rwxr-xr-x.config/i3/autostart##template9
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"