zahutra
authorDaniel Liu <mr.picklepinosaur@gmail.com>
Thu, 15 Apr 2021 05:07:20 +0000 (01:07 -0400)
committerDaniel Liu <mr.picklepinosaur@gmail.com>
Thu, 15 Apr 2021 05:07:20 +0000 (01:07 -0400)
.config/zathura/mkzathurarc [new file with mode: 0755]

diff --git a/.config/zathura/mkzathurarc b/.config/zathura/mkzathurarc
new file mode 100755 (executable)
index 0000000..be3e923
--- /dev/null
@@ -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