Pdf

用於重新著色的 Zathura 快捷鍵/feedkeys 配置

  • December 30, 2020

我曾經在我的 .zathurarc 配置中有以下內容,它曾經允許我通過按 Shift-1、Shift-2、Shift-3、Shift-4 來更改配色方案,以切換到原始配色方案,深色為琥珀色分別為藍灰色、黑底綠、黑底藍:

map ! feedkeys  ":set recolor-lightcolor \#ffffff<Return>:set recolor-darkcolor \#000000<Return>" # original (black on white) 
map @ feedkeys  ":set recolor-lightcolor \#0a0a12<Return>:set recolor-darkcolor \#ff9900<Return>" # amber on dark slate
map \# feedkeys ":set recolor-lightcolor \#000000<Return>:set recolor-darkcolor \#00B800<Return>" # green on black
map $ feedkeys  ":set recolor-lightcolor \#002b36<Return>:set recolor-darkcolor \#839496<Return>" # bluish (midnight mode)

最近版本的 zathura 不適用於這個,特別是他們似乎不喜歡這個<Return>位,我想。有誰知道我如何修改這些以再次工作?

上述解決方案對我不起作用(使用 Zathura 0.4.7),但以下是有效的:

(注:還添加了“set recolor true”只是為了測試方便)

set recolor true

# midnight mode    
map <F1> focus_inputbar ":set recolor-lightcolor \#002b36"    
map <F2> focus_inputbar ":set recolor-darkcolor \#839496"    
map ! feedkeys "<F1><Return><F2><Return>"    
# amber on dark slate        
map <F3> focus_inputbar ":set recolor-lightcolor \#0a0a12"    
map <F4> focus_inputbar ":set recolor-darkcolor \#ff9900"    
map @ feedkeys "<F3><Return><F4><Return>"    
# green on black    
map <F6> focus_inputbar ":set recolor-lightcolor #000000"    
map <F7> focus_inputbar ":set recolor-darkcolor \#00B800"    
map \# feedkeys "<F6><Return><F7><Return>"    
# original (black on white)    
map <F8> focus_inputbar ":set recolor-lightcolor \#ffffff"    
map <F9> focus_inputbar ":set recolor-darkcolor \#000000"    
map $ feedkeys "<F8><Return><F9><Return>"  

引用自:https://unix.stackexchange.com/questions/456837