zahutra
[dotfiles.git] / .config / zathura / mkzathurarc
1 #!/bin/sh
2
3 get_option() {
4     xrdb -query | grep $1 | awk '{print $2}'
5 }
6
7 config_file=$XDG_CONFIG_HOME/zathura/zathurarc
8
9 cat > $config_file <<- CONF
10     set guioptions none
11     set recolor
12     set recolor-darkcolor "$(get_option foreground)"
13     set recolor-lightcolor "$(get_option *.color0:)"
14     set default-bg "$(get_option *.color0:)"
15     map i recolor
16     map b toggle_statusbar
17
18     set font Source Code Pro:size=12 
19     set statusbar-fg "$(get_option *.color0:)"
20     set statusbar-bg "$(get_option *.color2:)"
21     set statusbar-v-padding 2
22     set statusbar-h-padding 8
23 CONF