aboutsummaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rwxr-xr-x.config/i3/autostart##template9
-rw-r--r--.config/nvim/init.vim3
2 files changed, 5 insertions, 7 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"
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index 63b9285..767275d 100644
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -182,9 +182,6 @@ let g:which_key_map.y = 'x11-yank'
map <leader>* y/<C-R>0<CR>
let g:which_key_map['*'] = 'search-selected'
-map <leader>h :noh<cr>
-let g:which_key_map.h = 'no-highlighting'
-
map <leader>f :FZF<cr>
let g:which_key_map.f = 'fzf'