From ab0645485c3c83f1ed14d89c836306ea42de1605 Mon Sep 17 00:00:00 2001 From: Xamora Date: Thu, 25 Jan 2024 21:48:37 +0100 Subject: [PATCH] Edit RaiseLowerSound; Better nvim --- init.vim | 4 +++- sway-config | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/init.vim b/init.vim index 38d6e7a..037b233 100644 --- a/init.vim +++ b/init.vim @@ -38,6 +38,9 @@ call plug#end() " If there are only terminal and NerdTree, all close autocmd bufenter * if (winnr("$") == 2 && IsNerdTreeEnabled() && g:terminal_id != -1) | qa | endif +" If there is only NerdTree + autocmd bufenter * if (winnr("$") == 1 && IsNerdTreeEnabled()) | q | endif + " Terminal function! ToggleTerminal() if (g:terminal_id == -1) @@ -52,7 +55,6 @@ call plug#end() let g:terminal_id = -1 nnoremap :call ToggleTerminal() - nnoremap :echo win_getid() " NerdTree " diff --git a/sway-config b/sway-config index b0aa425..a54e0b8 100644 --- a/sway-config +++ b/sway-config @@ -252,6 +252,6 @@ bindsym XF86MonBrightnessUp exec brightnessctl set 2%+ bindsym $mod+XF86MonBrightnessDown exec brightnessctl set 1 bindsym XF86AudioMute exec amixer sset Master toggle -bindsym XF86AudioLowerVolume exec amixer sset Master 10%- -bindsym XF86AudioRaiseVolume exec amixer sset Master 10%+ +bindsym XF86AudioLowerVolume exec amixer sset Master 5%- +bindsym XF86AudioRaiseVolume exec amixer sset Master 5%+