From 50a48aa866b160cbefbbf1fb25a0e5f48a1fec49 Mon Sep 17 00:00:00 2001
From: Daniel Liu <mr.picklepinosaur@gmail.com>
Date: Thu, 15 Apr 2021 01:07:20 -0400
Subject: [PATCH] zahutra

---
 .config/zathura/mkzathurarc | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100755 .config/zathura/mkzathurarc

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
-- 
2.20.1