From: Daniel Liu Date: Thu, 15 Apr 2021 05:07:20 +0000 (-0400) Subject: zahutra X-Git-Url: https://git.danieliu.xyz/?p=dotfiles.git;a=commitdiff_plain;h=50a48aa866b160cbefbbf1fb25a0e5f48a1fec49;hp=2894bed4452f6e6f781f8d3b84f6ad6bd40a1e62 zahutra --- diff --git a/.config/zathura/mkzathurarc b/.config/zathura/mkzathurarc new file mode 100755 index 0000000..be3e923 --- /dev/null +++ b/.config/zathura/mkzathurarc @@ -0,0 +1,23 @@ +#!/bin/sh + +get_option() { + xrdb -query | grep $1 | awk '{print $2}' +} + +config_file=$XDG_CONFIG_HOME/zathura/zathurarc + +cat > $config_file <<- CONF + set guioptions none + set recolor + set recolor-darkcolor "$(get_option foreground)" + set recolor-lightcolor "$(get_option *.color0:)" + set default-bg "$(get_option *.color0:)" + map i recolor + map b toggle_statusbar + + set font Source Code Pro:size=12 + set statusbar-fg "$(get_option *.color0:)" + set statusbar-bg "$(get_option *.color2:)" + set statusbar-v-padding 2 + set statusbar-h-padding 8 +CONF