vimwiki, aliases, un par de giladas
This commit is contained in:
parent
3e2f925b67
commit
c45c4ebb25
|
@ -43,7 +43,7 @@ st.borderpx: 10
|
||||||
st.cwscale: 1.05
|
st.cwscale: 1.05
|
||||||
st.chscale: 1.0
|
st.chscale: 1.0
|
||||||
|
|
||||||
dmenu.font: Iosevka Nerd Font:pixelsize=16:antialias=true:autohint=true;
|
dmenu.font: SFMono Nerd Font:pixelsize=15:antialias=true:autohint=true;
|
||||||
dmenu.background: #222222
|
dmenu.background: #222222
|
||||||
dmenu.foreground: #bbbbbb
|
dmenu.foreground: #bbbbbb
|
||||||
dmenu.selbackground: #008bbd
|
dmenu.selbackground: #008bbd
|
||||||
|
|
|
@ -1,14 +1,11 @@
|
||||||
# env:
|
|
||||||
# TERM: xterm-256color
|
|
||||||
|
|
||||||
window:
|
window:
|
||||||
dimensions:
|
dimensions:
|
||||||
columns: 80
|
columns: 80
|
||||||
lines: 25
|
lines: 25
|
||||||
|
|
||||||
padding:
|
padding:
|
||||||
x: 12
|
x: 14
|
||||||
y: 5
|
y: 7
|
||||||
|
|
||||||
decorations: none
|
decorations: none
|
||||||
|
|
||||||
|
@ -40,7 +37,6 @@ font:
|
||||||
|
|
||||||
draw_bold_text_with_bright_colors: false
|
draw_bold_text_with_bright_colors: false
|
||||||
|
|
||||||
# Colors (Srcery)
|
|
||||||
colors:
|
colors:
|
||||||
# Default colors
|
# Default colors
|
||||||
primary:
|
primary:
|
||||||
|
@ -69,44 +65,10 @@ colors:
|
||||||
cyan: '#6fc3df'
|
cyan: '#6fc3df'
|
||||||
white: '#fcfcfc'
|
white: '#fcfcfc'
|
||||||
|
|
||||||
# colors:
|
|
||||||
|
|
||||||
# # Default colors
|
|
||||||
# primary:
|
|
||||||
# background: '#080808'
|
|
||||||
# foreground: '#B3B1AD'
|
|
||||||
|
|
||||||
# # Cursor colors
|
|
||||||
# cursor:
|
|
||||||
# text: '#FFcc66'
|
|
||||||
# cursor: '#FFcc66'
|
|
||||||
|
|
||||||
# # Normal colors
|
|
||||||
# normal:
|
|
||||||
# black: '#0A0E14'
|
|
||||||
# red: '#FF3333'
|
|
||||||
# green: '#AEC82A'
|
|
||||||
# yellow: '#FFB454'
|
|
||||||
# blue: '#008bbd'
|
|
||||||
# magenta: '#ab6ba6'
|
|
||||||
# cyan: '#6fa69f'
|
|
||||||
# white: '#A89984'
|
|
||||||
|
|
||||||
# # Bright colors
|
|
||||||
# bright:
|
|
||||||
# black: '#222222'
|
|
||||||
# red: '#FF3333'
|
|
||||||
# green: '#Bae67e'
|
|
||||||
# yellow: '#FFd580'
|
|
||||||
# blue: '#73d0ff'
|
|
||||||
# magenta: '#F28779'
|
|
||||||
# cyan: '#95E6CB'
|
|
||||||
# white: '#FFFFFF'
|
|
||||||
|
|
||||||
visual_bell:
|
visual_bell:
|
||||||
duration: 0
|
duration: 0
|
||||||
|
|
||||||
background_opacity: 0.85
|
background_opacity: 0.9
|
||||||
|
|
||||||
selection:
|
selection:
|
||||||
semantic_escape_chars: ""
|
semantic_escape_chars: ""
|
||||||
|
|
|
@ -54,6 +54,7 @@ bspc rule -a Sxiv:fontpreview state=floating
|
||||||
bspc rule -a Toplevel state=floating
|
bspc rule -a Toplevel state=floating
|
||||||
bspc rule -a Firefox state=floating
|
bspc rule -a Firefox state=floating
|
||||||
bspc rule -a Display state=floating
|
bspc rule -a Display state=floating
|
||||||
|
bspc rule -a krita state=floating
|
||||||
|
|
||||||
# Otros
|
# Otros
|
||||||
bspc rule -a Zathura state=tiled
|
bspc rule -a Zathura state=tiled
|
||||||
|
|
|
@ -10,7 +10,8 @@ set reverse
|
||||||
set incsearch
|
set incsearch
|
||||||
set period 1
|
set period 1
|
||||||
set color256
|
set color256
|
||||||
set nopreview
|
set preview
|
||||||
|
set previewer lfview
|
||||||
# All other settings need to go above this comment because reasons
|
# All other settings need to go above this comment because reasons
|
||||||
set icons
|
set icons
|
||||||
|
|
||||||
|
@ -19,7 +20,7 @@ set icons
|
||||||
if [ $w -le 80 ]; then
|
if [ $w -le 80 ]; then
|
||||||
lf -remote "send $id set ratios 1:1"
|
lf -remote "send $id set ratios 1:1"
|
||||||
elif [ $w -le 160 ]; then
|
elif [ $w -le 160 ]; then
|
||||||
lf -remote "send $id set ratios 1:2"
|
lf -remote "send $id set ratios 1:2:2"
|
||||||
else
|
else
|
||||||
lf -remote "send $id set ratios 1:2:3"
|
lf -remote "send $id set ratios 1:2:3"
|
||||||
fi
|
fi
|
||||||
|
@ -27,8 +28,14 @@ set icons
|
||||||
|
|
||||||
# Custom Functions
|
# Custom Functions
|
||||||
cmd open ${{
|
cmd open ${{
|
||||||
case $(file --mime-type $f -b) in
|
case $(file --mime-type $f -bL) in
|
||||||
*) for f in $fx; do setsid run-mailcap $f > /dev/null 2>&1 & done;;
|
text/*|application/json) $EDITOR "$f";;
|
||||||
|
image/gif) setsid sxiv-gif $f 2>/dev/null & ;;
|
||||||
|
image/*) setsid sxiv-rifle $f 2>/dev/null & ;;
|
||||||
|
audio/*) mpv $f ;;
|
||||||
|
video/*) setsid mpv $f -quiet >/dev/null 2>&1 & ;;
|
||||||
|
application/pdf|application/cbz|application/cbr) setsid zathura $fx >/dev/null 2>&1 & ;;
|
||||||
|
*) for f in $fx; do setsid $OPENER $f > /dev/null 2>&1 & done;;
|
||||||
esac
|
esac
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
@ -212,7 +219,7 @@ cmd yes_preview :{{
|
||||||
map ~ no_preview
|
map ~ no_preview
|
||||||
}}
|
}}
|
||||||
|
|
||||||
cmd zip ${{
|
cmd za ${{
|
||||||
set -f
|
set -f
|
||||||
mkdir $1
|
mkdir $1
|
||||||
cp -r $fx $1
|
cp -r $fx $1
|
||||||
|
@ -248,7 +255,6 @@ map <f-9> paste
|
||||||
map <enter> open
|
map <enter> open
|
||||||
map <delete> delete
|
map <delete> delete
|
||||||
map . set hidden!
|
map . set hidden!
|
||||||
map "'" set preview!
|
|
||||||
map ~ no_preview
|
map ~ no_preview
|
||||||
map | top
|
map | top
|
||||||
map ¿ bottom
|
map ¿ bottom
|
||||||
|
@ -264,16 +270,17 @@ map pa paste-append
|
||||||
map po paste-overwrite
|
map po paste-overwrite
|
||||||
map pi paste-interactive
|
map pi paste-interactive
|
||||||
map pr paste-rsync
|
map pr paste-rsync
|
||||||
map o open $f
|
map o &mimeopen $f
|
||||||
map cx $chmod +x "$fs"
|
map O $mimeopen --ask $f
|
||||||
|
map cx $chmod +x "$f"
|
||||||
map bg $setbg $f
|
map bg $setbg $f
|
||||||
map U %du -sh $f
|
map U %du -sh $f
|
||||||
map Y %cp -ri $fs .
|
map Y %cp -ri $fs .
|
||||||
map D %mv -i $fs .
|
map D %mv -i $fs .
|
||||||
map za %zip -r "$f" "$f"
|
|
||||||
map zu $atool --each --extract "$f"
|
|
||||||
mal zl $atool --list "$f"
|
|
||||||
map mp $mpv "$f"
|
map mp $mpv "$f"
|
||||||
|
map za %za -r "$f" "$f"
|
||||||
|
map zu $zu "$f"
|
||||||
|
map zg $hx add "$f"
|
||||||
|
|
||||||
map i push A<c-a> # at the very beginning
|
map i push A<c-a> # at the very beginning
|
||||||
map A rename # at the very end
|
map A rename # at the very end
|
||||||
|
@ -284,8 +291,8 @@ map B bulkrename
|
||||||
map L :Link
|
map L :Link
|
||||||
map f broot_jump
|
map f broot_jump
|
||||||
map <tab> $lf -remote "send $id select '$(fzf)'"
|
map <tab> $lf -remote "send $id select '$(fzf)'"
|
||||||
map / $lf -remote "send $id select \"$(FZF_DEFAULT_COMMAND='fd --max-depth=1' fzf-tmux)\""
|
map / $lf -remote "send $id select \"$(FZF_DEFAULT_COMMAND='fd --max-depth=1' fzf)\""
|
||||||
map F $find | lf -remote "send $id select $(fzf-tmux --height 50% --reverse --border --margin 5% --inline-info --color border:#005688,bg+:#16252E,fg+:#26c6da,hl+:#ffffff,hl:#26c6da)"
|
map F $find | lf -remote "send $id select $(fzf --height 50% --reverse --border --margin 5% --inline-info --color border:#005688,bg+:#16252E,fg+:#26c6da,hl+:#ffffff,hl:#26c6da)"
|
||||||
|
|
||||||
# Movement
|
# Movement
|
||||||
map gu cd ~/doc/
|
map gu cd ~/doc/
|
||||||
|
@ -294,8 +301,8 @@ map gU cd /usr
|
||||||
map gd cd ~/etc
|
map gd cd ~/etc
|
||||||
map g. cd ~/.config
|
map g. cd ~/.config
|
||||||
map gs cd ~/.local/share
|
map gs cd ~/.local/share
|
||||||
map gr cd /run/media/deadguy
|
map gm cd /media
|
||||||
map gm cd /mnt/remote
|
map gr cd /mnt/remote
|
||||||
map gc cd /mnt/cel
|
map gc cd /mnt/cel
|
||||||
map gb cd ~/.local/bin
|
map gb cd ~/.local/bin
|
||||||
map gR cd /
|
map gR cd /
|
||||||
|
|
|
@ -7,8 +7,8 @@ state_file "$XDG_CONFIG_HOME/mpd/mpdstate"
|
||||||
sticker_file "$XDG_CONFIG_HOME/mpd/sticker.sql"
|
sticker_file "$XDG_CONFIG_HOME/mpd/sticker.sql"
|
||||||
|
|
||||||
audio_output {
|
audio_output {
|
||||||
type "alsa"
|
type "pulse"
|
||||||
name "ALSA"
|
name "Pulse Audio"
|
||||||
}
|
}
|
||||||
|
|
||||||
audio_output {
|
audio_output {
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
setlocal nonumber norelativenumber
|
|
||||||
" setlocal statusline=
|
|
|
@ -1,31 +0,0 @@
|
||||||
setl ts=2
|
|
||||||
setl sts=2
|
|
||||||
setl sw=2
|
|
||||||
setl et
|
|
||||||
setl tw=80
|
|
||||||
setlocal colorcolumn=79
|
|
||||||
|
|
||||||
function! Prose()
|
|
||||||
" manual reformatting shortcuts
|
|
||||||
nnoremap <buffer> <silent> Q gqap
|
|
||||||
xnoremap <buffer> <silent> Q gq
|
|
||||||
nnoremap <buffer> <silent> <localleader>Q vapJgqap
|
|
||||||
|
|
||||||
" force top correction on most recent misspelling
|
|
||||||
nnoremap <buffer> <c-s> [s1z=<c-o>
|
|
||||||
inoremap <buffer> <c-s> <c-g>u<Esc>[s1z=`]A<c-g>u
|
|
||||||
|
|
||||||
" replace common punctuation
|
|
||||||
iabbrev <buffer> -- –
|
|
||||||
iabbrev <buffer> --- —
|
|
||||||
iabbrev <buffer> << «
|
|
||||||
iabbrev <buffer> >> »
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
augroup mdownstuff
|
|
||||||
autocmd!
|
|
||||||
autocmd BufEnter call Prose()
|
|
||||||
autocmd BufNewFile *.md call Prose()
|
|
||||||
augroup END
|
|
||||||
|
|
||||||
setl rulerformat=%-12.(%l,%c%V%)\ %P
|
|
|
@ -1,44 +0,0 @@
|
||||||
setlocal wrap
|
|
||||||
setlocal sw=2
|
|
||||||
setlocal tabstop=2
|
|
||||||
setlocal expandtab
|
|
||||||
setlocal textwidth=120
|
|
||||||
setlocal colorcolumn=121
|
|
||||||
setlocal softtabstop=2
|
|
||||||
setlocal linebreak
|
|
||||||
setlocal autoindent
|
|
||||||
setl updatetime=2000
|
|
||||||
|
|
||||||
" Makes autocompletion for references nice
|
|
||||||
setl iskeyword+=:
|
|
||||||
"set iskeyword+=-:
|
|
||||||
"set iskeyword+=_:
|
|
||||||
|
|
||||||
" .tex files always interpreted as latex and not plain tex
|
|
||||||
let g:tex_flavor='latex'
|
|
||||||
let g:Tex_DefaultTargetFormat =" pdf"
|
|
||||||
|
|
||||||
" don't try to force highlighting matching sections
|
|
||||||
let g:vimtex_motion_matchparen=0
|
|
||||||
|
|
||||||
" enable completion
|
|
||||||
let g:vimtex_complete_enable=1
|
|
||||||
|
|
||||||
let g:vimtex_compiler_progname = 'nvr'
|
|
||||||
let g:vimtex_view_use_temp_files = 2
|
|
||||||
let g:vimtex_view_method = 'zathura'
|
|
||||||
let g:vimtex_quickfix_mode = 0 " do not open the quickfix window automatically
|
|
||||||
|
|
||||||
augroup texsave
|
|
||||||
autocmd!
|
|
||||||
autocmd CursorHold,CursorHoldI * silent! wall
|
|
||||||
augroup END
|
|
||||||
|
|
||||||
let b:ale_linters = ['chktex']
|
|
||||||
|
|
||||||
"command Compile normal! :52 split <cr><c-w>j:terminal latexmk %<CR>G
|
|
||||||
|
|
||||||
iab enum \begin{enumerate}<CR>\item{}<CR>\end{enumerate}<esc>k0f{a
|
|
||||||
iab itemz \begin{itemize}<CR>\item{}<CR>\end{itemize}<esc>k0f{a
|
|
||||||
iab fig \begin{figure}<CR>\includegraphics{}<CR>\caption{}<CR>\end{figure}<esc>2k0f{a
|
|
||||||
iab fram \begin{frame}<CR>\end{frame}<esc>kA<CR>
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
setlocal nonumber norelativenumber laststatus=0 showmode
|
||||||
|
setlocal signcolumn=no textwidth=80 wrap sw=2
|
||||||
|
setlocal tabstop=2 expandtab softtabstop=2 linebreak
|
||||||
|
setlocal autoindent noruler colorcolumn=80
|
||||||
|
setlocal spell spelllang=es,en_us,cjk
|
||||||
|
setlocal spellcapcheck
|
||||||
|
|
||||||
|
nnoremap <buffer> <F7> [s<CR>
|
||||||
|
nnoremap <buffer> <F8> ]s<CR>
|
||||||
|
nnoremap <buffer> <F9> z=<CR>
|
|
@ -1,4 +1,4 @@
|
||||||
" Important stuff {{{
|
" Important {{{
|
||||||
scriptencoding utf-8 " Set utf-8 as default script encoding
|
scriptencoding utf-8 " Set utf-8 as default script encoding
|
||||||
let g:loaded_python_provider=1 " Disable python 2 interface
|
let g:loaded_python_provider=1 " Disable python 2 interface
|
||||||
let g:python_host_skip_check=1 " Skip python 2 host check
|
let g:python_host_skip_check=1 " Skip python 2 host check
|
||||||
|
@ -12,19 +12,6 @@ if empty(glob('~/.local/share/nvim/site/autoload/plug.vim'))
|
||||||
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
|
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
|
||||||
endif
|
endif
|
||||||
" }}}
|
" }}}
|
||||||
" Plugins {{{
|
|
||||||
call plug#begin(stdpath('data') . '/plugged')
|
|
||||||
Plug 'dense-analysis/ale'
|
|
||||||
Plug 'othree/yajs.vim', {'for': 'javascript'}
|
|
||||||
Plug 'othree/es.next.syntax.vim', {'for': 'javascript'}
|
|
||||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
|
||||||
Plug 'jpalardy/vim-slime', {'for': ['python', 'foxdot']}
|
|
||||||
Plug 'sheerun/vim-polyglot'
|
|
||||||
Plug 'tmsvg/pear-tree'
|
|
||||||
Plug 'tpope/vim-commentary'
|
|
||||||
Plug 'srcery-colors/srcery-vim'
|
|
||||||
call plug#end()
|
|
||||||
" }}}
|
|
||||||
" Options {{{
|
" Options {{{
|
||||||
set binary
|
set binary
|
||||||
set path+=** " Full tab completion with subfolders and all
|
set path+=** " Full tab completion with subfolders and all
|
||||||
|
@ -108,6 +95,86 @@ let g:markdown_fenced_languages = ['vim', 'help']
|
||||||
let g:vim_jsx_pretty_colorful_config = 1
|
let g:vim_jsx_pretty_colorful_config = 1
|
||||||
let g:jsx_ext_required = 1
|
let g:jsx_ext_required = 1
|
||||||
" }}}
|
" }}}
|
||||||
|
" Functions {{{
|
||||||
|
function! MyHighlights() abort
|
||||||
|
highlight Trail ctermbg=red guibg=red
|
||||||
|
call matchadd('Trail', '\s\+$', 100)
|
||||||
|
highlight ColorColumn ctermbg=magenta
|
||||||
|
call matchadd('ColorColumn', '\%81v', 100)
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! PopOutOfInsertMode() abort
|
||||||
|
if v:insertmode
|
||||||
|
call feedkeys("\<C-\>\<C-n>")
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! Relativize(v) abort
|
||||||
|
if &number
|
||||||
|
let &relativenumber = a:v
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! LocalStatusLine() abort
|
||||||
|
let b:status = '%#error#[HELP]%*'
|
||||||
|
return b:status
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! CmdLine(str)
|
||||||
|
call feedkeys(':' . a:str)
|
||||||
|
endfunction
|
||||||
|
" }}}
|
||||||
|
" AutoCommands {{{
|
||||||
|
if !exists('autocommands_loaded') && has('autocmd')
|
||||||
|
let autocommands_loaded = 1
|
||||||
|
|
||||||
|
aug relativize
|
||||||
|
au BufWinEnter,FocusGained,InsertLeave,WinEnter * call Relativize(1)
|
||||||
|
au BufWinLeave,FocusLost,InsertEnter,WinLeave * call Relativize(0)
|
||||||
|
aug END
|
||||||
|
|
||||||
|
aug term_stuff
|
||||||
|
au TermOpen * setlocal nonumber norelativenumber laststatus=0
|
||||||
|
au TermOpen * setlocal signcolumn=no noruler nocursorline
|
||||||
|
aug END
|
||||||
|
|
||||||
|
aug miscs
|
||||||
|
au CursorHold * silent call CocActionAsync('highlight')
|
||||||
|
au CursorHold * call CocActionAsync('doHover')
|
||||||
|
au User CocJumpPlaceholder call CocActionAsync('showSignatureHelp')
|
||||||
|
au ColorScheme * call MyHighlights()
|
||||||
|
aug END
|
||||||
|
|
||||||
|
aug inserts
|
||||||
|
au InsertEnter * norm zz
|
||||||
|
au InsertEnter * setlocal nocursorline
|
||||||
|
au InsertLeave * setlocal cursorline nopaste
|
||||||
|
au InsertLeave,CompleteDone * if pumvisible() == 0 | pclose | endif
|
||||||
|
au FocusLost,TabLeave * call PopOutOfInsertMode()
|
||||||
|
aug END
|
||||||
|
|
||||||
|
aug skeletons
|
||||||
|
au BufNewFile *.py 0r ~/.config/nvim/templates/py.skeleton
|
||||||
|
au BufNewFile *.sh 0r ~/.config/nvim/templates/sh.skeleton
|
||||||
|
aug END
|
||||||
|
|
||||||
|
aug file_types
|
||||||
|
au FileType typescript,json setlocal formatexpr=CocAction('formatSelected')
|
||||||
|
au FileType help setlocal statusline=%!LocalStatusLine()
|
||||||
|
au FileType json syntax match Comment +\/\/.\+$+
|
||||||
|
au FileType make setlocal noexpandtab
|
||||||
|
au BufNewFile,BufRead requirements*.txt set syntax=python
|
||||||
|
aug END
|
||||||
|
|
||||||
|
aug on_save
|
||||||
|
au BufWritePre * :%s/\s\+$//e
|
||||||
|
au BufWritePost *xresources !xrdb %
|
||||||
|
au BufWritePost *sxhkdrc !pkill -USR1 sxhkd
|
||||||
|
au BufWritePost $MYVIMRC nested source $MYVIMRC
|
||||||
|
au QuitPre * if empty(&buftype) | lclose | endif
|
||||||
|
aug END
|
||||||
|
endif
|
||||||
|
" }}}
|
||||||
" {{{ Ale
|
" {{{ Ale
|
||||||
let g:ale_use_global_executables = 1
|
let g:ale_use_global_executables = 1
|
||||||
let g:ale_completion_enabled = 0
|
let g:ale_completion_enabled = 0
|
||||||
|
@ -221,6 +288,26 @@ endfunction
|
||||||
" Symbol renaming.
|
" Symbol renaming.
|
||||||
nnoremap <leader>rn <Plug>(coc-rename)
|
nnoremap <leader>rn <Plug>(coc-rename)
|
||||||
"}}}
|
"}}}
|
||||||
|
" Wiki {{{
|
||||||
|
let g:vimwiki_list = [{'path': '~/doc/notas', 'path_html': '~/doc/notas/web', 'auto_toc': 1, 'auto_tags': 1, 'auto_diary_index': 1}]
|
||||||
|
let g:vimwiki_hl_headers = 1
|
||||||
|
let g:vimwiki_hl_cb_checked = 1
|
||||||
|
nnoremap <Leader><cr> <Plug>VimwikiFollowLink
|
||||||
|
"}}}
|
||||||
|
" Plugins {{{
|
||||||
|
call plug#begin(stdpath('data') . '/plugged')
|
||||||
|
Plug 'dense-analysis/ale'
|
||||||
|
Plug 'othree/yajs.vim', {'for': 'javascript'}
|
||||||
|
Plug 'othree/es.next.syntax.vim', {'for': 'javascript'}
|
||||||
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||||
|
Plug 'jpalardy/vim-slime', {'for': ['python', 'foxdot']}
|
||||||
|
Plug 'sheerun/vim-polyglot'
|
||||||
|
Plug 'tmsvg/pear-tree'
|
||||||
|
Plug 'tpope/vim-commentary'
|
||||||
|
Plug 'vimwiki/vimwiki'
|
||||||
|
Plug 'srcery-colors/srcery-vim'
|
||||||
|
call plug#end()
|
||||||
|
" }}}
|
||||||
" Colors {{{
|
" Colors {{{
|
||||||
set termguicolors
|
set termguicolors
|
||||||
let g:srcery_transparent_background = 1
|
let g:srcery_transparent_background = 1
|
||||||
|
@ -351,86 +438,6 @@ function! Tabline()
|
||||||
endfunction
|
endfunction
|
||||||
set tabline=%!Tabline()
|
set tabline=%!Tabline()
|
||||||
" }}}
|
" }}}
|
||||||
" Functions {{{
|
|
||||||
function! MyHighlights() abort
|
|
||||||
highlight Trail ctermbg=red guibg=red
|
|
||||||
call matchadd('Trail', '\s\+$', 100)
|
|
||||||
highlight ColorColumn ctermbg=magenta
|
|
||||||
call matchadd('ColorColumn', '\%81v', 100)
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
function! PopOutOfInsertMode() abort
|
|
||||||
if v:insertmode
|
|
||||||
call feedkeys("\<C-\>\<C-n>")
|
|
||||||
endif
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
function! Relativize(v) abort
|
|
||||||
if &number
|
|
||||||
let &relativenumber = a:v
|
|
||||||
endif
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
function! LocalStatusLine() abort
|
|
||||||
let b:status = '%#error#[HELP]%*'
|
|
||||||
return b:status
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
function! CmdLine(str)
|
|
||||||
call feedkeys(':' . a:str)
|
|
||||||
endfunction
|
|
||||||
" }}}
|
|
||||||
" AutoCommands {{{
|
|
||||||
if !exists('autocommands_loaded') && has('autocmd')
|
|
||||||
let autocommands_loaded = 1
|
|
||||||
|
|
||||||
aug relativize
|
|
||||||
au BufWinEnter,FocusGained,InsertLeave,WinEnter * call Relativize(1)
|
|
||||||
au BufWinLeave,FocusLost,InsertEnter,WinLeave * call Relativize(0)
|
|
||||||
aug END
|
|
||||||
|
|
||||||
aug term_stuff
|
|
||||||
au TermOpen * setlocal nonumber norelativenumber laststatus=0
|
|
||||||
au TermOpen * setlocal signcolumn=no noruler nocursorline
|
|
||||||
aug END
|
|
||||||
|
|
||||||
aug miscs
|
|
||||||
au CursorHold * silent call CocActionAsync('highlight')
|
|
||||||
au CursorHold * call CocActionAsync('doHover')
|
|
||||||
au User CocJumpPlaceholder call CocActionAsync('showSignatureHelp')
|
|
||||||
au ColorScheme * call MyHighlights()
|
|
||||||
aug END
|
|
||||||
|
|
||||||
aug inserts
|
|
||||||
au InsertEnter * norm zz
|
|
||||||
au InsertEnter * setlocal nocursorline
|
|
||||||
au InsertLeave * setlocal cursorline nopaste
|
|
||||||
au InsertLeave,CompleteDone * if pumvisible() == 0 | pclose | endif
|
|
||||||
au FocusLost,TabLeave * call PopOutOfInsertMode()
|
|
||||||
aug END
|
|
||||||
|
|
||||||
aug skeletons
|
|
||||||
au BufNewFile *.py 0r ~/.config/nvim/templates/py.skeleton
|
|
||||||
au BufNewFile *.sh 0r ~/.config/nvim/templates/sh.skeleton
|
|
||||||
aug END
|
|
||||||
|
|
||||||
aug file_types
|
|
||||||
au FileType typescript,json setlocal formatexpr=CocAction('formatSelected')
|
|
||||||
au FileType help setlocal statusline=%!LocalStatusLine()
|
|
||||||
au FileType json syntax match Comment +\/\/.\+$+
|
|
||||||
au FileType make setlocal noexpandtab
|
|
||||||
au BufNewFile,BufRead requirements*.txt set syntax=python
|
|
||||||
aug END
|
|
||||||
|
|
||||||
aug on_save
|
|
||||||
au BufWritePre * :%s/\s\+$//e
|
|
||||||
au BufWritePost *xresources !xrdb %
|
|
||||||
au BufWritePost *sxhkdrc !pkill -USR1 sxhkd
|
|
||||||
au BufWritePost $MYVIMRC nested source $MYVIMRC
|
|
||||||
au QuitPre * if empty(&buftype) | lclose | endif
|
|
||||||
aug END
|
|
||||||
endif
|
|
||||||
" }}}
|
|
||||||
" REPL {{{
|
" REPL {{{
|
||||||
let g:slime_paste_file = '$HOME/.cache/slime_paste'
|
let g:slime_paste_file = '$HOME/.cache/slime_paste'
|
||||||
let g:slime_target = 'neovim'
|
let g:slime_target = 'neovim'
|
||||||
|
@ -515,23 +522,19 @@ nnoremap <silent> <leader>ev :vsplit $MYVIMRC<CR>
|
||||||
nnoremap <silent> <leader>sv :source $MYVIMRC<CR>
|
nnoremap <silent> <leader>sv :source $MYVIMRC<CR>
|
||||||
|
|
||||||
" Gotta Go Fast (save, buffer close, quit, messages, SOF, EOF)
|
" Gotta Go Fast (save, buffer close, quit, messages, SOF, EOF)
|
||||||
nnoremap <silent> <leader>w :w!<CR>
|
nnoremap <silent> <leader>g :w!<CR>
|
||||||
nnoremap <silent> <leader>b :bdelete<CR>
|
nnoremap <silent> <leader>b :bdelete<CR>
|
||||||
nnoremap <silent> <leader>q :q!<CR>
|
nnoremap <silent> <leader>q :q!<CR>
|
||||||
nnoremap <silent> <leader>Q :qa!<CR>
|
nnoremap <silent> <leader>Q :qa!<CR>
|
||||||
nnoremap <silent> <leader>m :messsages<CR>
|
nnoremap <silent> <leader>m :messages<CR>
|
||||||
nnoremap <Bar> gg
|
nnoremap <Bar> gg
|
||||||
nnoremap ¿ G
|
nnoremap ¿ G
|
||||||
|
|
||||||
" Splits
|
" Splits
|
||||||
nnoremap <silent> <leader>T :call LaunchTerminal()<CR>
|
nnoremap <silent> <leader>T :call LaunchTerminal()<CR>
|
||||||
nnoremap <silent> <leader>s :split<CR>
|
|
||||||
nnoremap <silent> <leader>v :vsplit<CR>
|
nnoremap <silent> <leader>v :vsplit<CR>
|
||||||
nnoremap <silent> <leader>nv :vnew<CR>
|
nnoremap <silent> <leader>v :vnew<CR>
|
||||||
nnoremap <silent> <leader>ns :new<CR>
|
nnoremap <silent> <leader>s :new<CR>
|
||||||
|
|
||||||
" My vim wants to enter all the time, enter all the time
|
|
||||||
nnoremap <silent> <CR> i<CR><ESC>
|
|
||||||
|
|
||||||
" Quote words under cursor
|
" Quote words under cursor
|
||||||
nnoremap <leader>" viW<esc>a"<esc>gvo<esc>i"<esc>gvo<esc>3l
|
nnoremap <leader>" viW<esc>a"<esc>gvo<esc>i"<esc>gvo<esc>3l
|
||||||
|
@ -541,6 +544,9 @@ nnoremap <leader>' viW<esc>a'<esc>gvo<esc>i'<esc>gvo<esc>3l
|
||||||
nnoremap <silent> <S-j> mz:m+<cr>`z
|
nnoremap <silent> <S-j> mz:m+<cr>`z
|
||||||
nnoremap <silent> <S-k> mz:m-2<cr>`z
|
nnoremap <silent> <S-k> mz:m-2<cr>`z
|
||||||
|
|
||||||
|
" My vim wants to enter all the time, enter all the time
|
||||||
|
nnoremap <silent> +<CR> i<CR><ESC>
|
||||||
|
|
||||||
" Unhighlight search terms
|
" Unhighlight search terms
|
||||||
nnoremap <silent> <leader><space> :noh<C-R>=has('diff')?'<Bar>diffupdate':''<CR><CR><C-L>
|
nnoremap <silent> <leader><space> :noh<C-R>=has('diff')?'<Bar>diffupdate':''<CR><CR><C-L>
|
||||||
|
|
||||||
|
@ -575,6 +581,22 @@ nnoremap X "_x
|
||||||
" Prevent selecting and pasting from overwriting what you originally copied.
|
" Prevent selecting and pasting from overwriting what you originally copied.
|
||||||
xnoremap p pgvy
|
xnoremap p pgvy
|
||||||
|
|
||||||
|
" Global replace
|
||||||
|
nnoremap <Leader>sw
|
||||||
|
\ :let b:sub = input('global replacement: ') <Bar>
|
||||||
|
\ if b:sub !=? '' <Bar>
|
||||||
|
\ execute "%s/<C-r><C-w>/".b:sub.'/g' <Bar>
|
||||||
|
\ unlet b:sub <Bar>
|
||||||
|
\ endif <CR>
|
||||||
|
|
||||||
|
" Global replace with prompt
|
||||||
|
nnoremap <Leader>cw
|
||||||
|
\ :let b:sub = input('interactive replacement: ') <Bar>
|
||||||
|
\ if b:sub !=? '' <Bar>
|
||||||
|
\ execute "%s/<C-r><C-w>/".b:sub.'/gc' <Bar>
|
||||||
|
\ unlet b:sub <Bar>
|
||||||
|
\ endif <CR>
|
||||||
|
|
||||||
" What about the Q
|
" What about the Q
|
||||||
nnoremap Q <nop>
|
nnoremap Q <nop>
|
||||||
map q <nop>
|
map q <nop>
|
||||||
|
@ -637,12 +659,6 @@ vnoremap <Leader>sw "hy
|
||||||
\ execute '%s/'.b:rep."/".b:sub.'/g' <Bar>
|
\ execute '%s/'.b:rep."/".b:sub.'/g' <Bar>
|
||||||
\ unlet b:sub b:rep <Bar>
|
\ unlet b:sub b:rep <Bar>
|
||||||
\ endif <CR>
|
\ endif <CR>
|
||||||
nnoremap <Leader>sw
|
|
||||||
\ :let b:sub = input('global replacement: ') <Bar>
|
|
||||||
\ if b:sub !=? '' <Bar>
|
|
||||||
\ execute "%s/<C-r><C-w>/".b:sub.'/g' <Bar>
|
|
||||||
\ unlet b:sub <Bar>
|
|
||||||
\ endif <CR>
|
|
||||||
|
|
||||||
" prompt before each replace
|
" prompt before each replace
|
||||||
vnoremap <Leader>cw "hy
|
vnoremap <Leader>cw "hy
|
||||||
|
@ -652,12 +668,6 @@ vnoremap <Leader>cw "hy
|
||||||
\ execute '%s/'.b:rep.'/'.b:sub.'/gc' <Bar>
|
\ execute '%s/'.b:rep.'/'.b:sub.'/gc' <Bar>
|
||||||
\ unlet b:sub b:rep <Bar>
|
\ unlet b:sub b:rep <Bar>
|
||||||
\ endif <CR>
|
\ endif <CR>
|
||||||
nnoremap <Leader>cw
|
|
||||||
\ :let b:sub = input('interactive replacement: ') <Bar>
|
|
||||||
\ if b:sub !=? '' <Bar>
|
|
||||||
\ execute "%s/<C-r><C-w>/".b:sub.'/gc' <Bar>
|
|
||||||
\ unlet b:sub <Bar>
|
|
||||||
\ endif <CR>
|
|
||||||
"}}}
|
"}}}
|
||||||
"Terminal {{{
|
"Terminal {{{
|
||||||
" Terminal movement
|
" Terminal movement
|
||||||
|
|
|
@ -1,86 +0,0 @@
|
||||||
" Vim syntax file
|
|
||||||
" Language: GDScript (Godot Scripting Language)
|
|
||||||
" Creator: Adam Watson
|
|
||||||
" Last Revision: 26 May 2015
|
|
||||||
|
|
||||||
" If there's already a language file defined, ignore this one
|
|
||||||
|
|
||||||
if exists("b:current_syntax")
|
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" This language is case sensitive
|
|
||||||
|
|
||||||
" Keywords
|
|
||||||
syn keyword gdConditional if elif else
|
|
||||||
syn keyword gdRepeat while for
|
|
||||||
syn keyword gdOperator and or not in extends
|
|
||||||
syn keyword gdStatement export func pass return break continue seed assert true false null
|
|
||||||
syn keyword gdType var const int real bool string
|
|
||||||
" syn match gdInclude "^extends"
|
|
||||||
|
|
||||||
syn keyword gdType Vector2 Size2 Rect2 Vector3 Matrix32 Plane
|
|
||||||
syn keyword gdType Quat AABB Box3 Matrix3 Transform
|
|
||||||
syn keyword gdType Color Image NodePath RID Object InputEvent
|
|
||||||
syn keyword gdType RawArray IntArray FloatArray StringArray
|
|
||||||
syn keyword gdType Vector2Array Vector3Array ColorArray
|
|
||||||
syn keyword gdType Nil Dictionary Array
|
|
||||||
|
|
||||||
syn keyword gdBuiltin sign cos tan sinh cosh tanh asin acos atan atan2 sqrt
|
|
||||||
syn keyword gdBuiltin fmod fposmod floor ceil round abs sign pow log exp
|
|
||||||
syn keyword gdBuiltin isnan isinf ease decimals stepify lerp dectime randomize
|
|
||||||
syn keyword gdBuiltin rand randf randi random seed rand_seed deg2rad rad2deg
|
|
||||||
syn keyword gdBuiltin linear2db db2linear max min clamp nearest_po2 weakref
|
|
||||||
syn keyword gdBuiltin funcref convert typeof str print printt prints printerr
|
|
||||||
syn keyword gdBuiltin printraw var2str str2var range load inst2dict dict2inst
|
|
||||||
syn keyword gdBuiltin hash print_stack instance_from_id float quit get_scene
|
|
||||||
syn keyword gdBuiltin get_root get_node connect add_to_group remove_child
|
|
||||||
syn keyword gdBuiltin add_child move_child free set_process has_animation
|
|
||||||
syn keyword gdBuiltin play length call_group has_node get_child_count
|
|
||||||
syn keyword gdBuiltin get_child queue_free _input _ready _process _fixed_process
|
|
||||||
|
|
||||||
syn keyword gdTodo TODO FIXME XXX NOTE NOTES HACK contained
|
|
||||||
|
|
||||||
syn match gdComment "\v#.*$" contains=gdTodo
|
|
||||||
|
|
||||||
syn match gdEscapes /\v\\./ contained
|
|
||||||
" Highlight strings, skipping special characters
|
|
||||||
syn region gdString start=/\v"/ end=/\v"/ contains=gdEscapes
|
|
||||||
|
|
||||||
|
|
||||||
syn match gdNumber "\<0[oO]\=\o\+[Ll]\=\>"
|
|
||||||
syn match gdNumber "\<0[xX]\x\+[Ll]\=\>"
|
|
||||||
syn match gdNumber "\<0[bB][01]\+[Ll]\=\>"
|
|
||||||
syn match gdNumber "\<\%([1-9]\d*\|0\)[Ll]\=\>"
|
|
||||||
syn match gdNumber "\<\d\+[jJ]\>"
|
|
||||||
syn match gdNumber "\<\d\+[eE][+-]\=\d\+[jJ]\=\>"
|
|
||||||
syn match gdNumber
|
|
||||||
\ "\<\d\+\.\%([eE][+-]\=\d\+\)\=[jJ]\=\%(\W\|$\)\@="
|
|
||||||
syn match gdNumber
|
|
||||||
\ "\%(^\|\W\)\@<=\d*\.\d\+\%([eE][+-]\=\d\+\)\=[jJ]\=\>"
|
|
||||||
|
|
||||||
|
|
||||||
if version >= 508 || !exists("did_gdscript_syn_inits")
|
|
||||||
if version <= 508
|
|
||||||
let did_gdscript_syn_inits = 1
|
|
||||||
command -nargs=+ HiLink hi link <args>
|
|
||||||
else
|
|
||||||
command -nargs=+ HiLink hi def link <args>
|
|
||||||
endif
|
|
||||||
HiLink gdString String
|
|
||||||
HiLink gdNumber Number
|
|
||||||
HiLink gdStatement Keyword
|
|
||||||
HiLink gdRepeat Repeat
|
|
||||||
HiLink gdConditional Conditional
|
|
||||||
HiLink gdOperator Operator
|
|
||||||
HiLink gdBuiltin Function
|
|
||||||
HiLink gdComment Comment
|
|
||||||
HiLink gdTodo ToDo
|
|
||||||
HiLink gdInclude Include
|
|
||||||
HiLink gdEscapes Statement
|
|
||||||
HiLink gdType Type
|
|
||||||
|
|
||||||
delcommand HiLink
|
|
||||||
endif
|
|
||||||
|
|
||||||
let b:current_syntax = "gdscript"
|
|
|
@ -51,11 +51,11 @@ super + {_,shift} + ntilde
|
||||||
whid {hide,dmenu}
|
whid {hide,dmenu}
|
||||||
|
|
||||||
# Run Applications
|
# Run Applications
|
||||||
super + {b,q,m,s,g,v}
|
super + {b,q,m,s,v}
|
||||||
{$BROWSER,powermenu,monisel,dswitcher,grabar,pavucontrol}
|
{$BROWSER,powermenu,monisel,dswitcher,pavucontrol}
|
||||||
|
|
||||||
super + {a,x,n,z}
|
super + {a,x,i,n,z}
|
||||||
alacritty {_,--class=flota,--class=flota -e connman-ncurses,--class=multi -e termux}
|
alacritty {_,--class=flota,--class=flota -e connman-ncurses,--class=flota -e notas,--class=multi -e termux}
|
||||||
|
|
||||||
super + shift + x
|
super + shift + x
|
||||||
tmenux
|
tmenux
|
||||||
|
@ -63,8 +63,8 @@ super + shift + x
|
||||||
super + space
|
super + space
|
||||||
dmenu_run -p "Apps "
|
dmenu_run -p "Apps "
|
||||||
|
|
||||||
super + shift + g
|
super + {_,shift} + g
|
||||||
corte
|
{grabar,corte}
|
||||||
|
|
||||||
super + {F1,F2,F3,F4}
|
super + {F1,F2,F3,F4}
|
||||||
{fecha,tapa,notifocus,touchpad}
|
{fecha,tapa,notifocus,touchpad}
|
||||||
|
|
|
@ -3,12 +3,12 @@ while read -r file
|
||||||
do
|
do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
"b") setbg "$file" & ;;
|
"b") setbg "$file" & ;;
|
||||||
"m") mv "$file" "$HOME/Pictures/rand" ;;
|
"m") mv "$file" "$HOME/img/rand" ;;
|
||||||
"r") convert -rotate 90 "$file" "$file" ;;
|
"r") convert -rotate 90 "$file" "$file" ;;
|
||||||
"R") convert -rotate -90 "$file" "$file" ;;
|
"R") convert -rotate -90 "$file" "$file" ;;
|
||||||
"f") convert -flop "$file" "$file" ;;
|
"f") convert -flop "$file" "$file" ;;
|
||||||
"y") echo -n "$file" | xsel -i & ;;
|
"y") echo -n "$file" | xsel -i & ;;
|
||||||
"d") rm "$file" ;;
|
"d") rm "$file" ;;
|
||||||
"g") gimp "$file" & ;;
|
"g") krita "$file" & ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
|
@ -11,12 +11,35 @@ alias \
|
||||||
torr='tremc' \
|
torr='tremc' \
|
||||||
py='python ' \
|
py='python ' \
|
||||||
x='xui' \
|
x='xui' \
|
||||||
bm='bashmount' \
|
|
||||||
yt='mpsyt' \
|
yt='mpsyt' \
|
||||||
pudb='python -m pudb.run' \
|
|
||||||
xq='xbps-query' \
|
|
||||||
z='zathura' \
|
z='zathura' \
|
||||||
|
pudb='python -m pudb.run' \
|
||||||
irc='weechat -d "$XDG_CONFIG_HOME"/weechat'
|
irc='weechat -d "$XDG_CONFIG_HOME"/weechat'
|
||||||
|
# XBPS
|
||||||
|
alias \
|
||||||
|
xk='xbps-query' \
|
||||||
|
deps='xbps-query -vRx' \
|
||||||
|
revdeps='xbps-query -vRX' \
|
||||||
|
xp='xbps-query -v -m > ~/doc/xbpaketes'
|
||||||
|
|
||||||
|
# Tmux
|
||||||
|
alias \
|
||||||
|
ta='tmux attach -t' \
|
||||||
|
tn='tmux new-session -s' \
|
||||||
|
tk='tmux kill-session -t' \
|
||||||
|
|
||||||
|
# LaTeX
|
||||||
|
alias \
|
||||||
|
txs='tlmgr search --global' \
|
||||||
|
txi='sudo tlmgr install'
|
||||||
|
|
||||||
|
# Transmission
|
||||||
|
alias \
|
||||||
|
tsk='pkill transmission-daemon' \
|
||||||
|
tsl='transmission-remote --list' \
|
||||||
|
tsx='transmission-remote --remove-and-delete -t' \
|
||||||
|
tsr='transmission-remote --remove -t' \
|
||||||
|
|
||||||
# Git
|
# Git
|
||||||
alias \
|
alias \
|
||||||
git='lab' \
|
git='lab' \
|
||||||
|
@ -73,7 +96,6 @@ alias \
|
||||||
dd='dd status=progress' \
|
dd='dd status=progress' \
|
||||||
dirs='dirs -v -p' \
|
dirs='dirs -v -p' \
|
||||||
dfc='dfc -dmT' \
|
dfc='dfc -dmT' \
|
||||||
atl='atool --each --extract'
|
|
||||||
|
|
||||||
# Comandos
|
# Comandos
|
||||||
alias \
|
alias \
|
||||||
|
@ -82,16 +104,14 @@ alias \
|
||||||
shutdown='loginctl poweroff' \
|
shutdown='loginctl poweroff' \
|
||||||
chau='bspc quit 1' \
|
chau='bspc quit 1' \
|
||||||
path='echo -e ${PATH//:/\\n}' \
|
path='echo -e ${PATH//:/\\n}' \
|
||||||
|
wp='sxiv-rifle ~/img/wallpaper >/dev/null 2>&1' \
|
||||||
pwn='chmod +x' \
|
pwn='chmod +x' \
|
||||||
ta='tmux attach -t' \
|
atl='atool --each --extract' \
|
||||||
tn='tmux new-session -s' \
|
rat='tar -xvJf' \
|
||||||
tk='tmux kill-session -t' \
|
um='udevil mount' \
|
||||||
tsk='pkill transmission-daemon' \
|
uu='udevil umount'
|
||||||
tsl='transmission-remote --list' \
|
|
||||||
tsx='transmission-remote --remove-and-delete -t' \
|
|
||||||
tsr='transmission-remote --remove -t' \
|
|
||||||
wp='sxiv-rifle ~/img/wallpaper >/dev/null 2>&1'
|
|
||||||
|
|
||||||
# Directorios
|
# Directorios
|
||||||
alias gb='cd ~/.local/bin'
|
alias \
|
||||||
alias g.='cd ~/.config'
|
gb='cd ~/.local/bin' \
|
||||||
|
g.='cd ~/.config'
|
|
@ -6,7 +6,7 @@ function () {
|
||||||
local -A bookmarks=(
|
local -A bookmarks=(
|
||||||
'nvim' '~/.config/nvim/init.vim'
|
'nvim' '~/.config/nvim/init.vim'
|
||||||
'lf' '~/.config/lf/lfrc'
|
'lf' '~/.config/lf/lfrc'
|
||||||
'preview' '~/.config/lf/preview'
|
'preview' '~/.local/bin/lfview'
|
||||||
'mpv' '~/.config/mpv/mpv.conf'
|
'mpv' '~/.config/mpv/mpv.conf'
|
||||||
'xres' '~/.config/X11/xresources'
|
'xres' '~/.config/X11/xresources'
|
||||||
'wm' '~/.config/bspwm/bspwmrc'
|
'wm' '~/.config/bspwm/bspwmrc'
|
||||||
|
|
|
@ -48,7 +48,6 @@ handle_extension() {
|
||||||
pdf)
|
pdf)
|
||||||
# Preview as text conversion
|
# Preview as text conversion
|
||||||
pdftotext -l 10 -nopgbrk -q -- "${FILE_PATH}" -
|
pdftotext -l 10 -nopgbrk -q -- "${FILE_PATH}" -
|
||||||
mutool draw -F txt -i -- "${FILE_PATH}" 1-10
|
|
||||||
exiftool "${FILE_PATH}"
|
exiftool "${FILE_PATH}"
|
||||||
exit 1;;
|
exit 1;;
|
||||||
|
|
||||||
|
@ -57,12 +56,6 @@ handle_extension() {
|
||||||
transmission-show -- "${FILE_PATH}"
|
transmission-show -- "${FILE_PATH}"
|
||||||
exit 1;;
|
exit 1;;
|
||||||
|
|
||||||
# OpenDocument
|
|
||||||
odt|ods|odp|sxw)
|
|
||||||
# Preview as text conversion
|
|
||||||
odt2txt "${FILE_PATH}"
|
|
||||||
exit 1;;
|
|
||||||
|
|
||||||
# HTML
|
# HTML
|
||||||
htm|html|xhtml)
|
htm|html|xhtml)
|
||||||
# Preview as text conversion
|
# Preview as text conversion
|
||||||
|
@ -101,7 +94,6 @@ handle_mime() {
|
||||||
image/*) mediainfo "${FILE_PATH}" || exit 1;;
|
image/*) mediainfo "${FILE_PATH}" || exit 1;;
|
||||||
video/* | audio/*|application/octet-stream) mediainfo "${FILE_PATH}" || exit 1;;
|
video/* | audio/*|application/octet-stream) mediainfo "${FILE_PATH}" || exit 1;;
|
||||||
*/pdf) pdftotext -l 10 -nopgbrk -q -- "${FILE_PATH}" - ;;
|
*/pdf) pdftotext -l 10 -nopgbrk -q -- "${FILE_PATH}" - ;;
|
||||||
*opendocument*) odt2txt "${FILE_PATH}" ;;
|
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,20 +44,21 @@ morescreen() { # If there are more than two screens.
|
||||||
|
|
||||||
multimon() { # Multi-monitor handler.
|
multimon() { # Multi-monitor handler.
|
||||||
case "$(echo "$screens" | wc -l)" in
|
case "$(echo "$screens" | wc -l)" in
|
||||||
1) xrandr "$(echo "$allposs" | grep -v "$screens" | awk '{print "--output", $1, "--off"}' | tr '\n' ' ')" ;;
|
|
||||||
2) twoscreen ;;
|
2) twoscreen ;;
|
||||||
*) morescreen ;;
|
*) morescreen ;;
|
||||||
esac ;}
|
esac ;}
|
||||||
|
|
||||||
|
postrun() {
|
||||||
|
setbg
|
||||||
|
{ killall dunst ; setsid dunst & } >/dev/null 2>&1
|
||||||
|
}
|
||||||
|
|
||||||
# Get all possible displays
|
# Get all possible displays
|
||||||
allposs=$(xrandr -q | grep "connected")
|
allposs=$(xrandr -q | grep "connected")
|
||||||
|
|
||||||
# Get all connected screens.
|
# Get all connected screens.
|
||||||
screens=$(echo "$allposs" | grep " connected" | awk '{print $1}')
|
screens=$(echo "$allposs" | awk '/ connected/ {print $1}')
|
||||||
|
|
||||||
multimon
|
multimon
|
||||||
|
|
||||||
# Fix background if screen size/arangement has changed.
|
postrun
|
||||||
setbg
|
|
||||||
# Restart dunst to ensure proper location on screen
|
|
||||||
{ killall dunst ; setsid dunst & } >/dev/null 2>&1
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euf -o pipefail
|
set -euf -o pipefail
|
||||||
|
|
||||||
youtube-dl --add-metadata --youtube-skip-dash-manifest -ic --no-call-home --no-cache-dir --geo-bypass -o "$HOME/Videos/%(title)s.%(ext)s" "$@"
|
youtube-dl --add-metadata --youtube-skip-dash-manifest -ic --no-call-home --no-cache-dir --geo-bypass -o "$HOME/vid/%(title)s.%(ext)s" "$@"
|
||||||
|
|
|
@ -3,5 +3,5 @@ Type=Application
|
||||||
Name=Mail
|
Name=Mail
|
||||||
NoDisplay=true
|
NoDisplay=true
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Exec=/usr/bin/st -e neomutt %u
|
Exec=/bin/alacritty -e neomutt %u
|
||||||
MimeType=x-scheme-handler/mailto;
|
MimeType=x-scheme-handler/mailto;
|
||||||
|
|
|
@ -2,4 +2,4 @@
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=Text editor
|
Name=Text editor
|
||||||
NoDisplay=true
|
NoDisplay=true
|
||||||
Exec=/usr/bin/st -n=flota -e nvim %u
|
Exec=/bin/alacritty --class=flota -e nvim %u
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
(function() {
|
(function() {
|
||||||
// IMPORTANT: when there's no filename, be sure to include a trailing slash at the end.
|
// IMPORTANT: when there's no filename, be sure to include a trailing slash at the end.
|
||||||
const mypage = "file:///home/deadguy/.mozilla/firefox/thsxpwyd.testing-1586723279098/startpage/index.html";
|
const mypage = "file:///home/deadguy/.mozilla/firefox/thsxpwyd.testing-1586723279098/startpage/index.html";
|
||||||
// Don't place the caret in the location bar. Useful if you want a page's search box to have focus instead.
|
|
||||||
var removefocus = "no";
|
|
||||||
// Clear the page's URL from the location bar. Normally not needed, as this should already be the default behavior.
|
// Clear the page's URL from the location bar. Normally not needed, as this should already be the default behavior.
|
||||||
var clearlocationbar = "no";
|
var clearlocationbar = "no";
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title> ~ </title>
|
<title> Hola Si </title>
|
||||||
<link rel="stylesheet" type="text/css" href="style.css">
|
<link rel="stylesheet" type="text/css" href="style.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -20,20 +20,22 @@
|
||||||
<div class="category">
|
<div class="category">
|
||||||
<li><a class="bm" href="https://www.questionablecontent.net/">Questionable Content</a></li>
|
<li><a class="bm" href="https://www.questionablecontent.net/">Questionable Content</a></li>
|
||||||
<li><a class="bm" href="https://www.empoweredcomic.com/">Empowered</a></li>
|
<li><a class="bm" href="https://www.empoweredcomic.com/">Empowered</a></li>
|
||||||
<li><a class="bm" href="https://www.rock.pungas.space/">Rocket Chat</a></li>
|
<li><a class="bm" href="https://rock.pungas.space/">Rocket Chat</a></li>
|
||||||
<li><a class="bm" href="https://discordapp.com/channels/586006476879953932/586006476879953936">Discord</a></li>
|
<li><a class="bm" href="https://discordapp.com/channels/586006476879953932/586006476879953936">Discord</a></li>
|
||||||
<li><a class="bm" href="https://images.google.com/">Google Images</a></li>
|
<li><a class="bm" href="https://images.google.com/">Google Images</a></li>
|
||||||
</div>
|
</div>
|
||||||
<div class="category">
|
<div class="category">
|
||||||
<li><a class="bm" href="https://wiki.archlinux.org">Arch Wiki</a></li>
|
<li><a class="bm" href="https://wiki.archlinux.org">Arch Wiki</a></li>
|
||||||
<li><a class="bm" href="https://gitlab.com/deadguy/hexagons">Dotfiles</a></li>
|
<li><a class="bm" href="https://gitlab.com/deadguy/hexagons">Dotfiles</a></li>
|
||||||
<li><a class="bm" href="https://voidlinux.org/packages">Void Linux</a></li>
|
<li><a class="bm" href="https://voidlinux.org/packages">Void Packages</a></li>
|
||||||
<li><a class="bm" href="https://mail.google.com/">Gmail</a></li>
|
<li><a class="bm" href="//wiki.voidlinux.org"></a>Void Wiki</li>
|
||||||
|
<li><a class="bm" href="https://github.com/">Github</a></li>
|
||||||
|
<li><a class="bm" href="https://mail.google.com/">Gmail</a></li>
|
||||||
</div>
|
</div>
|
||||||
<div class="category">
|
<div class="category">
|
||||||
<li><a class="bm" href="https://youtube.com/">Youtube</a></li>
|
<li><a class="bm" href="https://youtube.com/">Youtube</a></li>
|
||||||
<li><a class="bm" href="https://bandcamp.com/">Bandcamp</a></li>
|
<li><a class="bm" href="https://bandcamp.com/">Bandcamp</a></li>
|
||||||
<li><a class="bm" href="https://twitch.tv/">Deathgrind</a></li>
|
<li><a class="bm" href="https://twitch.tv/">Twitch</a></li>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
2
.xinitrc
2
.xinitrc
|
@ -10,8 +10,8 @@
|
||||||
xrdb -merge "$XDG_CONFIG_HOME"/X11/xresources
|
xrdb -merge "$XDG_CONFIG_HOME"/X11/xresources
|
||||||
setxkbmap -option caps:escape
|
setxkbmap -option caps:escape
|
||||||
xsetroot -cursor_name left_ptr &
|
xsetroot -cursor_name left_ptr &
|
||||||
xset s 0 550
|
|
||||||
randbg &
|
randbg &
|
||||||
|
equiset &
|
||||||
xss-lock -l -- exeflock4 &
|
xss-lock -l -- exeflock4 &
|
||||||
|
|
||||||
exec runsvdir -P ~/.local/service.x 'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................'
|
exec runsvdir -P ~/.local/service.x 'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................'
|
||||||
|
|
2
.zshenv
2
.zshenv
|
@ -84,6 +84,6 @@ export LESSHISTFILE="-"
|
||||||
# }}}
|
# }}}
|
||||||
# Path {{{
|
# Path {{{
|
||||||
typeset -U PATH path
|
typeset -U PATH path
|
||||||
path=(~/.local/bin ~/.config/yarn/bin ~/.local/share/npm/bin $path[@])
|
path=(~/.local/bin ~/.config/yarn/bin ~/.local/share/npm/bin /opt/texlive/2020/bin/x86_64-linux $path[@])
|
||||||
# }}}
|
# }}}
|
||||||
# vim:foldmethod=marker:foldlevel=0
|
# vim:foldmethod=marker:foldlevel=0
|
||||||
|
|
|
@ -10,9 +10,8 @@ alsa-plugins-speex-1.2.2_1
|
||||||
alsa-utils-1.2.2_1
|
alsa-utils-1.2.2_1
|
||||||
atool-0.39.0_5
|
atool-0.39.0_5
|
||||||
audacity-2.3.3_1
|
audacity-2.3.3_1
|
||||||
autopep8-1.5.1_1
|
autopep8-1.5.2_1
|
||||||
base-system-0.113_2
|
base-system-0.113_2
|
||||||
bashmount-3.2.0_2
|
|
||||||
bat-0.15.0_1
|
bat-0.15.0_1
|
||||||
broot-0.13.4_1
|
broot-0.13.4_1
|
||||||
bspwm-0.9.9_2
|
bspwm-0.9.9_2
|
||||||
|
@ -20,7 +19,7 @@ cadence-0.9.1_1
|
||||||
chrony-3.5_2
|
chrony-3.5_2
|
||||||
connman-1.38_1
|
connman-1.38_1
|
||||||
connman-ncurses-1.0_3
|
connman-ncurses-1.0_3
|
||||||
cryptsetup-2.3.1_1
|
cryptsetup-2.3.2_1
|
||||||
ctags-5.8_7
|
ctags-5.8_7
|
||||||
delta-0.0.17_1
|
delta-0.0.17_1
|
||||||
dfc-3.1.1_1
|
dfc-3.1.1_1
|
||||||
|
@ -29,11 +28,10 @@ elogind-243.4_2
|
||||||
fd-8.0.0_1
|
fd-8.0.0_1
|
||||||
ffmpeg-4.2.2_3
|
ffmpeg-4.2.2_3
|
||||||
figlet-2.2.5_6
|
figlet-2.2.5_6
|
||||||
firefox-75.0_1
|
firefox-75.0_2
|
||||||
fzf-0.21.1_1
|
fzf-0.21.1_1
|
||||||
gallery-dl-1.13.4_1
|
gallery-dl-1.13.4_1
|
||||||
gcc-9.3.0_3
|
gcc-9.3.0_3
|
||||||
gimp-2.10.18_1
|
|
||||||
git-2.26.2_1
|
git-2.26.2_1
|
||||||
git-extras-5.1.0_1
|
git-extras-5.1.0_1
|
||||||
git-libsecret-2.26.2_1
|
git-libsecret-2.26.2_1
|
||||||
|
@ -51,13 +49,15 @@ i3lock-color-2.12_2
|
||||||
intel-ucode-20191115_2
|
intel-ucode-20191115_2
|
||||||
jq-1.6_1
|
jq-1.6_1
|
||||||
keychain-2.8.5_1
|
keychain-2.8.5_1
|
||||||
|
krita-4.2.9_2
|
||||||
lf-r14_1
|
lf-r14_1
|
||||||
libX11-devel-1.6.9_1
|
libX11-devel-1.6.9_1
|
||||||
libXft-devel-2.3.3_1
|
libXft-devel-2.3.3_1
|
||||||
libXinerama-devel-1.1.4_1
|
libXinerama-devel-1.1.4_1
|
||||||
librsvg-2.47.1_1
|
librsvg-2.47.1_1
|
||||||
|
linux5.6-5.6.8_1
|
||||||
lynx-2.8.9.1_3
|
lynx-2.8.9.1_3
|
||||||
maim-5.5.3_3
|
maim-5.6.3_1
|
||||||
mdadm-4.1_2
|
mdadm-4.1_2
|
||||||
mediainfo-20.03_1
|
mediainfo-20.03_1
|
||||||
mlocate-0.26_4
|
mlocate-0.26_4
|
||||||
|
@ -79,9 +79,11 @@ p7zip-16.02_5
|
||||||
patch-2.7.6_4
|
patch-2.7.6_4
|
||||||
pavucontrol-4.0_1
|
pavucontrol-4.0_1
|
||||||
pd-0.50.2_1
|
pd-0.50.2_1
|
||||||
|
perl-File-MimeInfo-0.29_1
|
||||||
pinentry-gtk-1.1.0_6
|
pinentry-gtk-1.1.0_6
|
||||||
pinentry-tty-1.1.0_6
|
pinentry-tty-1.1.0_6
|
||||||
pkg-config-0.29.2_2
|
pkg-config-0.29.2_2
|
||||||
|
polkit-0.116_3
|
||||||
powertop-2.12_1
|
powertop-2.12_1
|
||||||
pulseaudio-13.0_1
|
pulseaudio-13.0_1
|
||||||
pulsemixer-1.5.1_1
|
pulsemixer-1.5.1_1
|
||||||
|
@ -96,7 +98,6 @@ python3-pip-20.0.2_1
|
||||||
python3-pycodestyle-2.5.0_2
|
python3-pycodestyle-2.5.0_2
|
||||||
python3-pyflakes-2.1.1_2
|
python3-pyflakes-2.1.1_2
|
||||||
python3-vint-0.3.19_3
|
python3-vint-0.3.19_3
|
||||||
run-mailcap-3.64_1
|
|
||||||
sc3-plugins-3.10.0_2
|
sc3-plugins-3.10.0_2
|
||||||
setxkbmap-1.3.2_1
|
setxkbmap-1.3.2_1
|
||||||
shellcheck-0.7.1_2
|
shellcheck-0.7.1_2
|
||||||
|
@ -106,12 +107,14 @@ socklog-void-20200115_1
|
||||||
supercollider-3.10.4_1
|
supercollider-3.10.4_1
|
||||||
sxhkd-0.6.1_1
|
sxhkd-0.6.1_1
|
||||||
sxiv-26_1
|
sxiv-26_1
|
||||||
|
texlive-bin-2020_1
|
||||||
tmux-3.1_1
|
tmux-3.1_1
|
||||||
toilet-0.3_2
|
toilet-0.3_2
|
||||||
transmission-2.94_5
|
transmission-2.94_5
|
||||||
tremc-0.9.1_1
|
tremc-0.9.1_1
|
||||||
udisks2-2.8.4_1
|
udevil-0.4.4_4
|
||||||
unclutter-xfixes-1.5_1
|
unclutter-xfixes-1.5_1
|
||||||
|
unrar-5.9.2_2
|
||||||
unzip-6.0_13
|
unzip-6.0_13
|
||||||
void-repo-nonfree-9_4
|
void-repo-nonfree-9_4
|
||||||
vpm-1.3_1
|
vpm-1.3_1
|
||||||
|
@ -126,7 +129,10 @@ xcompmgr-1.1.8_1
|
||||||
xdo-0.5.7_1
|
xdo-0.5.7_1
|
||||||
xdotool-3.20160805.1_2
|
xdotool-3.20160805.1_2
|
||||||
xdpyinfo-1.3.2_2
|
xdpyinfo-1.3.2_2
|
||||||
|
xev-1.2.3_2
|
||||||
|
xf86-input-evdev-2.10.6_1
|
||||||
xf86-video-intel-2.99.917.899_2
|
xf86-video-intel-2.99.917.899_2
|
||||||
|
xinput-1.6.3_1
|
||||||
xkill-1.0.5_1
|
xkill-1.0.5_1
|
||||||
xorg-minimal-1.2_2
|
xorg-minimal-1.2_2
|
||||||
xprop-1.2.4_1
|
xprop-1.2.4_1
|
||||||
|
@ -135,11 +141,10 @@ xrdb-1.2.0_2
|
||||||
xset-1.2.4_1
|
xset-1.2.4_1
|
||||||
xsetroot-1.1.2_1
|
xsetroot-1.1.2_1
|
||||||
xss-lock-0.3.0_2
|
xss-lock-0.3.0_2
|
||||||
xtitle-0.4.4_1
|
|
||||||
xtools-0.58_1
|
xtools-0.58_1
|
||||||
xz-5.2.5_1
|
xz-5.2.5_1
|
||||||
yarn-1.22.0_1
|
yarn-1.22.4_1
|
||||||
youtube-dl-2020.03.24_1
|
youtube-dl-2020.05.03_1
|
||||||
zathura-0.4.5_2
|
zathura-0.4.5_2
|
||||||
zathura-cb-0.1.8_2
|
zathura-cb-0.1.8_2
|
||||||
zathura-pdf-mupdf-0.3.5_2
|
zathura-pdf-mupdf-0.3.5_2
|
||||||
|
|
Reference in New Issue