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>
2022-05-09 10:05:23 +02:00
<!-- 2022-05-09 lun. 10:04 -->
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>
2022-05-09 10:05:23 +02:00
</div><div id="content" class="content">
2020-01-11 22:04:45 +01:00
<h1 class="title">Zathura</h1>
2022-05-09 10:05:23 +02:00
<div id="table-of-contents" role="doc-toc">
2020-01-11 22:04:45 +01:00
<h2>Table of Contents</h2>
2022-05-09 10:05:23 +02:00
<div id="text-table-of-contents" role="doc-toc">
2020-01-11 22:04:45 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<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>
2020-11-03 16:27:09 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#orgf303b50">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>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orga02dabb" class="outline-2">
<h2 id="orga02dabb">Configuration</h2>
<div class="outline-text-2" id="text-orga02dabb">
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>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org4b78c7c" class="outline-2">
<h2 id="org4b78c7c">Bindings</h2>
<div class="outline-text-2" id="text-org4b78c7c">
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>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org6728d67" class="outline-2">
<h2 id="org6728d67">Colors</h2>
<div class="outline-text-2" id="text-org6728d67">
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
2022-05-09 10:05:23 +02:00
<div id="outline-container-org881ff49" class="outline-2">
<h2 id="org881ff49">Scripts</h2>
<div class="outline-text-2" id="text-org881ff49">
2020-11-03 16:27:09 +01:00
</div>
2022-05-09 10:05:23 +02:00
<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">
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>
2022-05-09 10:05:23 +02:00
<p class="date">Created: 2022-05-09 lun. 10:04</p>
2020-01-11 22:04:45 +01:00
</div>
</body>
</html>