literate-dotfiles/docs/zathura.html

162 lines
6.3 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>
<!-- 2021-01-01 ven. 20:09 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Zathura</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<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">
<h1 class="title">Zathura</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#orgc0ba73f">Configuration</a></li>
<li><a href="#orge5e71df">Bindings</a></li>
<li><a href="#orgbe75730">Colors</a></li>
<li><a href="#orgc4659f8">Scripts</a>
<ul>
<li><a href="#org69796fa">Extract one page as a PDF</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div id="outline-container-orgc0ba73f" class="outline-2">
<h2 id="orgc0ba73f">Configuration</h2>
<div class="outline-text-2" id="text-orgc0ba73f">
<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-orge5e71df" class="outline-2">
<h2 id="orge5e71df">Bindings</h2>
<div class="outline-text-2" id="text-orge5e71df">
<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-orgbe75730" class="outline-2">
<h2 id="orgbe75730">Colors</h2>
<div class="outline-text-2" id="text-orgbe75730">
<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-orgc4659f8" class="outline-2">
<h2 id="orgc4659f8">Scripts</h2>
<div class="outline-text-2" id="text-orgc4659f8">
</div>
<div id="outline-container-org69796fa" class="outline-3">
<h3 id="org69796fa">Extract one page as a PDF</h3>
<div class="outline-text-3" id="text-org69796fa">
<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-highlight-numbers-number">1</span> <span class="org-type">cat</span> $<span class="org-variable-name">pagenum</span> output $<span class="org-variable-name">tmpfile</span>.pdf &amp;&amp; <span class="org-sh-escaped-newline">\</span>
pdf2svg $<span class="org-variable-name">tmpfile</span>.pdf $<span class="org-variable-name">tmpfile</span>.svg &amp;&amp; <span class="org-sh-escaped-newline">\</span>
inkscape $<span class="org-variable-name">tmpfile</span>.svg
</pre>
</div>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2021-01-01 ven. 20:09</p>
</div>
</body>
</html>