literate-dotfiles/docs/zathura.html
2022-05-09 10:05:23 +02:00

162 lines
7.1 KiB
HTML

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2022-05-09 lun. 10:04 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Zathura</title>
<meta name="author" content="Dehaeze Thomas" />
<meta name="generator" content="Org Mode" />
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
</div><div id="content" class="content">
<h1 class="title">Zathura</h1>
<div id="table-of-contents" role="doc-toc">
<h2>Table of Contents</h2>
<div id="text-table-of-contents" role="doc-toc">
<ul>
<li><a href="#orga02dabb">Configuration</a></li>
<li><a href="#org4b78c7c">Bindings</a></li>
<li><a href="#org6728d67">Colors</a></li>
<li><a href="#org881ff49">Scripts</a>
<ul>
<li><a href="#orgf303b50">Extract one page as a PDF</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div id="outline-container-orga02dabb" class="outline-2">
<h2 id="orga02dabb">Configuration</h2>
<div class="outline-text-2" id="text-orga02dabb">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Use clipboard</span>
set selection-clipboard clipboard
<span class="org-comment-delimiter"># </span><span class="org-comment">Remove padding</span>
set statusbar-h-padding <span class="org-highlight-numbers-number">0</span>
set statusbar-v-padding <span class="org-highlight-numbers-number">0</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Padding between pages</span>
set page-padding <span class="org-highlight-numbers-number">1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Use Synctex with Emasc</span>
set synctex true
</pre>
</div>
</div>
</div>
<div id="outline-container-org4b78c7c" class="outline-2">
<h2 id="org4b78c7c">Bindings</h2>
<div class="outline-text-2" id="text-org4b78c7c">
<div class="org-src-container">
<pre class="src src-conf">map u scroll half-up
map d scroll half-down
map D toggle_page_mode
map r reload
map R rotate
map &gt; rotate
map &lt; rotate
map L zoom in
map H zoom out
map i recolor
map p print
map t toggle_statusbar
map &lt;Space&gt; scroll full-down
map &lt;BackSpace&gt; scroll full-up
map &lt;C-s&gt; feedkeys <span class="org-string">":exec /home/thomas/.config/zathura/scripts/extract-pdf-page.sh $FILE&lt;Return&gt;"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org6728d67" class="outline-2">
<h2 id="org6728d67">Colors</h2>
<div class="outline-text-2" id="text-org6728d67">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Base16 Gruvbox dark, soft</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Author: Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox)</span>
set default-bg <span class="org-string">"#32302f"</span>
set default-fg <span class="org-string">"#3c3836"</span>
set statusbar-fg <span class="org-string">"#bdae93"</span>
set statusbar-bg <span class="org-string">"#504945"</span>
set inputbar-bg <span class="org-string">"#32302f"</span>
set inputbar-fg <span class="org-string">"#fbf1c7"</span>
set notification-bg <span class="org-string">"#32302f"</span>
set notification-fg <span class="org-string">"#fbf1c7"</span>
set notification-error-bg <span class="org-string">"#32302f"</span>
set notification-error-fg <span class="org-string">"#fb4934"</span>
set notification-warning-bg <span class="org-string">"#32302f"</span>
set notification-warning-fg <span class="org-string">"#fb4934"</span>
set highlight-color <span class="org-string">"#fabd2f"</span>
set highlight-active-color <span class="org-string">"#83a598"</span>
set completion-bg <span class="org-string">"#3c3836"</span>
set completion-fg <span class="org-string">"#83a598"</span>
set completion-highlight-fg <span class="org-string">"#fbf1c7"</span>
set completion-highlight-bg <span class="org-string">"#83a598"</span>
set recolor-lightcolor <span class="org-string">"#32302f"</span>
set recolor-darkcolor <span class="org-string">"#ebdbb2"</span>
set recolor <span class="org-string">"false"</span>
set recolor-keephue <span class="org-string">"false"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org881ff49" class="outline-2">
<h2 id="org881ff49">Scripts</h2>
<div class="outline-text-2" id="text-org881ff49">
</div>
<div id="outline-container-orgf303b50" class="outline-3">
<h3 id="orgf303b50">Extract one page as a PDF</h3>
<div class="outline-text-3" id="text-orgf303b50">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">tmpfile</span>=/tmp/pdf_page.pdf
<span class="org-comment-delimiter"># </span><span class="org-comment">Ask for page number</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Ideally would get the page from Zathura...</span>
<span class="org-variable-name">pagenum</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">rofi</span> -dmenu -p <span class="org-string">"Page Number"</span><span class="org-rainbow-delimiters-depth-1">)</span>
pdftk <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> <span class="org-type">cat</span> $<span class="org-variable-name">pagenum</span> output <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">tmpfile</span></span><span class="org-string">.pdf"</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
pdf2svg <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">tmpfile</span></span><span class="org-string">.pdf"</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">tmpfile</span></span><span class="org-string">.svg"</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
inkscape <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">tmpfile</span></span><span class="org-string">.svg"</span>
</pre>
</div>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2022-05-09 lun. 10:04</p>
</div>
</body>
</html>