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>
|
2020-11-03 16:27:09 +01:00
|
|
|
<!-- 2020-11-03 mar. 16:26 -->
|
2020-01-11 22:04:45 +01:00
|
|
|
<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" />
|
2020-01-11 22:22:46 +01:00
|
|
|
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
|
|
|
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
|
|
|
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
|
|
|
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
|
|
|
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
|
|
|
<script type="text/javascript" src="./js/readtheorg.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>
|
|
|
|
<li><a href="#orgb79ef7e">Configuration</a></li>
|
|
|
|
<li><a href="#orgf927afe">Bindings</a></li>
|
|
|
|
<li><a href="#org0ac6dba">Colors</a></li>
|
2020-11-03 16:27:09 +01:00
|
|
|
<li><a href="#org94a5560">Scripts</a>
|
|
|
|
<ul>
|
|
|
|
<li><a href="#orgdc7f7db">Extract one page as a PDF</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2020-01-11 22:04:45 +01:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="outline-container-orgb79ef7e" class="outline-2">
|
|
|
|
<h2 id="orgb79ef7e">Configuration</h2>
|
|
|
|
<div class="outline-text-2" id="text-orgb79ef7e">
|
|
|
|
<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>
|
|
|
|
</pre>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="outline-container-orgf927afe" class="outline-2">
|
|
|
|
<h2 id="orgf927afe">Bindings</h2>
|
|
|
|
<div class="outline-text-2" id="text-orgf927afe">
|
|
|
|
<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 > rotate
|
|
|
|
map < 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 <Space> scroll full-down
|
|
|
|
map <BackSpace> scroll full-up
|
2020-11-03 16:27:09 +01:00
|
|
|
map <C-s> feedkeys <span class="org-string">":exec /home/thomas/.config/zathura/scripts/extract-pdf-page.sh $FILE<Return>"</span>
|
2020-01-11 22:04:45 +01:00
|
|
|
</pre>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="outline-container-org0ac6dba" class="outline-2">
|
|
|
|
<h2 id="org0ac6dba">Colors</h2>
|
|
|
|
<div class="outline-text-2" id="text-org0ac6dba">
|
|
|
|
<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
|
|
|
|
|
|
|
<div id="outline-container-org94a5560" class="outline-2">
|
|
|
|
<h2 id="org94a5560">Scripts</h2>
|
|
|
|
<div class="outline-text-2" id="text-org94a5560">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="outline-container-orgdc7f7db" class="outline-3">
|
|
|
|
<h3 id="orgdc7f7db">Extract one page as a PDF</h3>
|
|
|
|
<div class="outline-text-3" id="text-orgdc7f7db">
|
|
|
|
<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 && <span class="org-sh-escaped-newline">\</span>
|
|
|
|
pdf2svg $<span class="org-variable-name">tmpfile</span>.pdf $<span class="org-variable-name">tmpfile</span>.svg && <span class="org-sh-escaped-newline">\</span>
|
|
|
|
inkscape $<span class="org-variable-name">tmpfile</span>.svg
|
|
|
|
</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>
|
2020-11-03 16:27:09 +01:00
|
|
|
<p class="date">Created: 2020-11-03 mar. 16:26</p>
|
2020-01-11 22:04:45 +01:00
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|