diff --git a/src/.config/fish/aliases.fish b/src/.config/fish/aliases.fish index 1fdd486..c0ba2b8 100644 --- a/src/.config/fish/aliases.fish +++ b/src/.config/fish/aliases.fish @@ -85,6 +85,3 @@ function prob_cpp; echo $EDITOR src/(basename (xsel -b)).cpp; end abbr -a cpp --function prob_cpp function prob_py; echo $EDITOR src/(basename (xsel -b)).py; end abbr -a py --function prob_py -# in .config/nvim/typst.vim there is a bind that copies the path -function prob_pdf; echo zathura (xsel -b); end -abbr -a pdf --function prob_pdf diff --git a/src/.config/nvim/typst.vim b/src/.config/nvim/typst.vim index 19ceb59..829d7c8 100644 --- a/src/.config/nvim/typst.vim +++ b/src/.config/nvim/typst.vim @@ -29,6 +29,6 @@ function TypstWatch() endfunc nnoremap fc :call TypstWatch() -nnoremap fr :call setreg("+", expand("%:p:r") . ".pdf"):echo "Copied path." +nnoremap fr :silent exec "!zathura --fork " . expand("%:p:r") . ".pdf &" au Filetype typst let g:AutoPairs = {'(':')', '[':']', '{':'}',"'":"'",'"':'"', '$':'$', "```" : "```", "`": "`"} diff --git a/src/.config/zathura/zathurarc b/src/.config/zathura/zathurarc index 678029b..d60a64a 100644 --- a/src/.config/zathura/zathurarc +++ b/src/.config/zathura/zathurarc @@ -1,6 +1,16 @@ +# might break things, but more secure +set sandbox strict + +set statusbar-home-tilde true + +# make things fit better +set scroll-page-aware true +set adjust-open width + set recolor-darkcolor "#ffffff" set recolor-lightcolor "#000000" -# set recolor true +set recolor true +set recolor-keephue true set default-bg "#000000ff" set index-bg "#000000"