From a2fabbc27fcdc574ad22aa992fd758bbb757ae2b Mon Sep 17 00:00:00 2001 From: Cheri Date: Thu, 31 Dec 2020 10:56:25 +0200 Subject: [PATCH] from beef-book --- bspwm/bspwmrc | 7 +++++++ lf/lfrc | 4 ++-- nvim/init.vim | 46 +++++++++++++++++++++++----------------------- 3 files changed, 32 insertions(+), 25 deletions(-) diff --git a/bspwm/bspwmrc b/bspwm/bspwmrc index 06a6f45..18e0f65 100755 --- a/bspwm/bspwmrc +++ b/bspwm/bspwmrc @@ -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 diff --git a/lf/lfrc b/lf/lfrc index bdf07ac..5e1e3b1 100644 --- a/lf/lfrc +++ b/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 }} diff --git a/nvim/init.vim b/nvim/init.vim index 45d0e55..13dc810 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -150,26 +150,26 @@ nnoremap l " COC -" Use tab for trigger completion with characters ahead and navigate. -inoremap - \ pumvisible() ? "\" : - \ check_back_space() ? "\" : - \ coc#refresh() -inoremap pumvisible() ? "\" : "\" - -function! s:check_back_space() abort - let col = col('.') - 1 - return !col || getline('.')[col - 1] =~# '\s' -endfunction - -" Use to trigger completion. -if has('nvim') - inoremap coc#refresh() -else - inoremap coc#refresh() -endif - -" Make auto-select the first completion item and notify coc.nvim to -" format on enter, could be remapped by other vim plugin -inoremap pumvisible() ? coc#_select_confirm() - \: "\u\\=coc#on_enter()\" +"" Use tab for trigger completion with characters ahead and navigate. +"inoremap +" \ pumvisible() ? "\" : +" \ check_back_space() ? "\" : +" \ coc#refresh() +"inoremap pumvisible() ? "\" : "\" +" +"function! s:check_back_space() abort +" let col = col('.') - 1 +" return !col || getline('.')[col - 1] =~# '\s' +"endfunction +" +"" Use to trigger completion. +"if has('nvim') +" inoremap coc#refresh() +"else +" inoremap coc#refresh() +"endif +" +"" Make auto-select the first completion item and notify coc.nvim to +"" format on enter, could be remapped by other vim plugin +"inoremap pumvisible() ? coc#_select_confirm() +" \: (((add a double quote here after uncommenting this)\u\\=coc#on_enter()\"