From 248451749a2112d9a0ecaed1dbee81afabe9aa78 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Thu, 24 Nov 2022 15:24:09 +0100 Subject: [PATCH] Update zathura config --- .config/zathura/zathurarc | 47 +++++++++++++++++++++++++++++---------- 1 file changed, 35 insertions(+), 12 deletions(-) diff --git a/.config/zathura/zathurarc b/.config/zathura/zathurarc index 697d410..de05042 100644 --- a/.config/zathura/zathurarc +++ b/.config/zathura/zathurarc @@ -7,9 +7,9 @@ unmap f map f toggle_fullscreen map [fullscreen] f toggle_fullscreen -# Theme -set default-bg "#ffffff" -set default-fg "#eee" +# Initial theme +set default-bg "#cccccc" +set default-fg "#111" set statusbar-bg "#111" set statusbar-fg "#777" set inputbar-bg "#111" @@ -23,14 +23,10 @@ set completion-highlight-bg "#333" set highlight-fg "#ccc" set highlight-color "#111" set highlight-active-color "#333" - -# Dark mode -set recolor -set recolor-darkcolor "#aaa" -set recolor-lightcolor "#111" - -# midnight mode -map focus_inputbar "set default-bg \#111111" +set index-fg "#eee" +set index-bg "#111" +set index-active-fg "#eee" +set index-active-bg "#333" # Hide status bar set guioptions none @@ -38,5 +34,32 @@ set render-loading "false" map J zoom out map K zoom in -map i recolor unmap q + +# +# Hack for switching color themes (change default background too on recolor) +# + +# Default to light recolor +set recolor +set recolor-lightcolor "#cccccc" +set recolor-darkcolor "#111" +set recolor-keephue + +# No recolor +map focus_inputbar ":set recolor true" +map focus_inputbar ":set recolor false" +map focus_inputbar ":set default-bg \#fff" +map 1 feedkeys "" + +# Light recolor +map focus_inputbar ":set default-bg \#cccccc" +map focus_inputbar ":set recolor-lightcolor \#cccccc" +map focus_inputbar ":set recolor-darkcolor \#111" +map 2 feedkeys "" + +# Dark recolor +map focus_inputbar ":set default-bg \#111" +map focus_inputbar ":set recolor-lightcolor \#111" +map focus_inputbar ":set recolor-darkcolor \#aaa" +map 3 feedkeys ""