Edit RaiseLowerSound; Better nvim
This commit is contained in:
parent
42f35e60ec
commit
ab0645485c
4
init.vim
4
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 <C-S-q> :call ToggleTerminal()<CR>
|
||||
nnoremap <C-S-a> :echo win_getid()<CR>
|
||||
|
||||
" NerdTree
|
||||
"
|
||||
|
|
|
@ -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%+
|
||||
|
||||
|
|
Loading…
Reference in a new issue