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