from beef-book
This commit is contained in:
parent
a21b549628
commit
a2fabbc27f
3 changed files with 32 additions and 25 deletions
|
@ -28,6 +28,13 @@ if [ "`hostname`" = "beef-book" ]; then
|
||||||
else
|
else
|
||||||
bspc monitor "DP-4" -d 1 2 3 4 5 6 7 8 9
|
bspc monitor "DP-4" -d 1 2 3 4 5 6 7 8 9
|
||||||
fi
|
fi
|
||||||
|
elif [ -n "`polybar -m | grep "VGA-0"`" ]; then
|
||||||
|
if [ -n "`polybar -m | grep "LVDS-1-1"`" ]; then
|
||||||
|
bspc monitor "LVDS-1-1" -d 1 2 3 4 5 6 7
|
||||||
|
bspc monitor "VGA-0" -d 8 9
|
||||||
|
else
|
||||||
|
bspc monitor "VGA-0" -d 1 2 3 4 5 6 7 8 9
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
bspc monitor -d 1 2 3 4 5 6 7 8 9
|
bspc monitor -d 1 2 3 4 5 6 7 8 9
|
||||||
#bspc monitor "DP-1" -d 1 2 3 4 5 6 7 8 9
|
#bspc monitor "DP-1" -d 1 2 3 4 5 6 7 8 9
|
||||||
|
|
4
lf/lfrc
4
lf/lfrc
|
@ -10,8 +10,8 @@ set ignorecase true
|
||||||
cmd open ${{
|
cmd open ${{
|
||||||
case $(file --mime-type "$f" -bL) in
|
case $(file --mime-type "$f" -bL) in
|
||||||
text/*|application/json) $EDITOR "$f";;
|
text/*|application/json) $EDITOR "$f";;
|
||||||
video/*|image/*/application/pdf) xdg-open "$f";;
|
video/*|image/*/application/pdf) xdg-open "$f" &;;
|
||||||
*) xdg-open "$f" ;;
|
*) xdg-open "$f" &;;
|
||||||
esac
|
esac
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
|
|
@ -150,26 +150,26 @@ nnoremap <A-l> <C-w>l
|
||||||
|
|
||||||
" COC
|
" COC
|
||||||
|
|
||||||
" Use tab for trigger completion with characters ahead and navigate.
|
"" Use tab for trigger completion with characters ahead and navigate.
|
||||||
inoremap <silent><expr> <TAB>
|
"inoremap <silent><expr> <TAB>
|
||||||
\ pumvisible() ? "\<C-n>" :
|
" \ pumvisible() ? "\<C-n>" :
|
||||||
\ <SID>check_back_space() ? "\<TAB>" :
|
" \ <SID>check_back_space() ? "\<TAB>" :
|
||||||
\ coc#refresh()
|
" \ coc#refresh()
|
||||||
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
|
"inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
|
||||||
|
"
|
||||||
function! s:check_back_space() abort
|
"function! s:check_back_space() abort
|
||||||
let col = col('.') - 1
|
" let col = col('.') - 1
|
||||||
return !col || getline('.')[col - 1] =~# '\s'
|
" return !col || getline('.')[col - 1] =~# '\s'
|
||||||
endfunction
|
"endfunction
|
||||||
|
"
|
||||||
" Use <c-space> to trigger completion.
|
"" Use <c-space> to trigger completion.
|
||||||
if has('nvim')
|
"if has('nvim')
|
||||||
inoremap <silent><expr> <c-space> coc#refresh()
|
" inoremap <silent><expr> <c-space> coc#refresh()
|
||||||
else
|
"else
|
||||||
inoremap <silent><expr> <c-@> coc#refresh()
|
" inoremap <silent><expr> <c-@> coc#refresh()
|
||||||
endif
|
"endif
|
||||||
|
"
|
||||||
" Make <CR> auto-select the first completion item and notify coc.nvim to
|
"" Make <CR> auto-select the first completion item and notify coc.nvim to
|
||||||
" format on enter, <cr> could be remapped by other vim plugin
|
"" format on enter, <cr> could be remapped by other vim plugin
|
||||||
inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm()
|
"inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm()
|
||||||
\: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
|
" \: (((add a double quote here after uncommenting this)\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
|
||||||
|
|
Loading…
Reference in a new issue