From e4cc5369fa45494dcd0405790d0e2e60e19d43f4 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Thu, 27 Jul 2023 16:31:09 -0400 Subject: [PATCH] zathura: added stricter seccomp config --- src/.config/fish/aliases.fish | 6 ++++-- src/.config/zathura-sec/zathurarc | 25 +++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 src/.config/zathura-sec/zathurarc diff --git a/src/.config/fish/aliases.fish b/src/.config/fish/aliases.fish index c0ba2b8..e4bf897 100644 --- a/src/.config/fish/aliases.fish +++ b/src/.config/fish/aliases.fish @@ -1,5 +1,7 @@ # zathura -alias thur="zathura" +function thur; zathura $argv; end +# stricter sandbox zathura +function zathsec; zathura -c ~/.config/zathura-sec $argv; end # Run mpv from clipboard function mpvy; mpv (xsel -b); end @@ -8,7 +10,7 @@ function mpvy; mpv (xsel -b); end function gpgt; export GPG_TTY=(tty); end # Private neovim -function nvimp; nvim -u NONE -c "setlocal history=0 nobackup nomodeline noshelltemp noswapfile noundofile nowritebackup secure viminfo=\"\""; end +function nvimp; nvim -u NONE -c "setlocal history=0 nobackup nomodeline noshelltemp noswapfile noundofile nowritebackup secure viminfo=\"\"" $argv; end # Read pdf file as text function pdfr diff --git a/src/.config/zathura-sec/zathurarc b/src/.config/zathura-sec/zathurarc new file mode 100644 index 0000000..3c40b32 --- /dev/null +++ b/src/.config/zathura-sec/zathurarc @@ -0,0 +1,25 @@ +# zathura profile for opening foreign files + +set sandbox strict + +# make things fit better +set scroll-page-aware true +set adjust-open width + +set font "IBM Plex Sans 12" + +set recolor-darkcolor "#ffffff" +set recolor-lightcolor rgba(0,0,0,0) +set recolor false +set recolor-keephue true +set recolor-reverse-video true + +set default-bg "#000000ff" +set index-bg "#000000" +set index-active-bg "#111111" +set index-active-fg "#FFFFFF" +set inputbar-bg rgba(0,0,0,0.5) +set inputbar-fg "#CCCCCC" +set statusbar-bg rgba(0,0,0,0.5) + +set selection-clipboard clipboard