literate-dotfiles/docs/zathura.html

162 lines
7.1 KiB
HTML
Raw Permalink Normal View History

2020-01-11 22:04:45 +01:00
<?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-10-25 14:37:10 +02:00
<!-- 2021-06-20 dim. 14:22 -->
2020-01-11 22:04:45 +01:00
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Zathura</title>
<meta name="author" content="Dehaeze Thomas" />
2021-10-25 14:37:10 +02:00
<meta name="generator" content="Org Mode" />
2021-01-01 20:12:34 +01:00
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
2020-01-11 22:04:45 +01:00
</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>
2021-01-01 20:12:34 +01:00
<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>
2020-11-03 16:27:09 +01:00
<ul>
2021-01-01 20:12:34 +01:00
<li><a href="#org69796fa">Extract one page as a PDF</a></li>
2020-11-03 16:27:09 +01:00
</ul>
</li>
2020-01-11 22:04:45 +01:00
</ul>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-orgc0ba73f" class="outline-2">
<h2 id="orgc0ba73f">Configuration</h2>
<div class="outline-text-2" id="text-orgc0ba73f">
2020-01-11 22:04:45 +01:00
<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>
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Use Synctex with Emasc</span>
set synctex true
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-orge5e71df" class="outline-2">
<h2 id="orge5e71df">Bindings</h2>
<div class="outline-text-2" id="text-orge5e71df">
2020-01-11 22:04:45 +01:00
<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
2020-11-03 16:27:09 +01:00
map t toggle_statusbar
2020-01-11 22:04:45 +01:00
map &lt;Space&gt; scroll full-down
map &lt;BackSpace&gt; scroll full-up
2020-11-03 16:27:09 +01:00
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>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-orgbe75730" class="outline-2">
<h2 id="orgbe75730">Colors</h2>
<div class="outline-text-2" id="text-orgbe75730">
2020-01-11 22:04:45 +01:00
<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>
2020-11-03 16:27:09 +01:00
2021-01-01 20:12:34 +01:00
<div id="outline-container-orgc4659f8" class="outline-2">
<h2 id="orgc4659f8">Scripts</h2>
<div class="outline-text-2" id="text-orgc4659f8">
2020-11-03 16:27:09 +01:00
</div>
2021-01-01 20:12:34 +01:00
<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">
2020-11-03 16:27:09 +01:00
<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>
2021-10-25 14:37:10 +02:00
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>
2020-11-03 16:27:09 +01:00
</pre>
</div>
</div>
</div>
</div>
2020-01-11 22:04:45 +01:00
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
2021-10-25 14:37:10 +02:00
<p class="date">Created: 2021-06-20 dim. 14:22</p>
2020-01-11 22:04:45 +01:00
</div>
</body>
</html>