literate-dotfiles/docs/qutebrowser.html

1073 lines
81 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:05 -->
2020-01-11 22:04:45 +01:00
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Qutebrowser Configuration</title>
<meta name="author" content="Dehaeze Thomas" />
2021-04-25 19:10:57 +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>
2021-10-25 14:37:10 +02:00
</div><div id="content" class="content">
2020-01-11 22:04:45 +01:00
<h1 class="title">Qutebrowser Configuration</h1>
2021-10-25 14:37:10 +02:00
<div id="table-of-contents" role="doc-toc">
2020-01-11 22:04:45 +01:00
<h2>Table of Contents</h2>
2021-10-25 14:37:10 +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="#org0f5a5cf">Import</a></li>
<li><a href="#orgc57ecfe">Auto Config</a></li>
<li><a href="#orgc8e2eaa">General config</a></li>
<li><a href="#org07373cc">Qt</a></li>
<li><a href="#orgcfd6aff">Content</a></li>
<li><a href="#org4dee2d6">Editor</a></li>
<li><a href="#org1043812">Downloads</a></li>
<li><a href="#org08561a1">File Select</a></li>
<li><a href="#orga69da83">Colors</a></li>
<li><a href="#org983558a">Fonts</a></li>
<li><a href="#orgb9d48fc">Input</a></li>
<li><a href="#org2885992">New Instance Options</a></li>
<li><a href="#orgf33fe1f">Spell Check</a></li>
<li><a href="#org4bf01f4">Status Bar</a></li>
<li><a href="#orgb3d46cc">Tabs</a></li>
<li><a href="#orgf858a63">Urls and Search Engines</a></li>
<li><a href="#org11e854c">Normal Bindings</a></li>
<li><a href="#org87cb2b6">Custom Bindings</a></li>
<li><a href="#org34d03fb">Userscripts</a>
2020-01-11 22:04:45 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#org1d019e2">Create a new password</a></li>
<li><a href="#org240eb0e">Download Youtube Video</a></li>
<li><a href="#org9abd12f">Password_fill_rc</a></li>
<li><a href="#org560ce97">Org-Capture</a></li>
<li><a href="#org4b422b4">Org-Protocol-Capture-HTML</a></li>
<li><a href="#orgde3ccfd">Open Bookmark with Linkding</a></li>
<li><a href="#orgb3f6fdd">Add Url to Linkding</a></li>
<li><a href="#orgde783ef">Add Url to Buku using Rofi</a></li>
<li><a href="#orgc511486">Add Url to Buku without asking for information</a></li>
<li><a href="#orga8af67b">Download with aria2c</a></li>
<li><a href="#org54624ed">Download with aria2c on the Homelab</a></li>
<li><a href="#orgedf060f">Save to PNG</a></li>
<li><a href="#org97b8e49">Save to PDF</a></li>
<li><a href="#orged5f886">Get OTP number</a></li>
<li><a href="#org6fe8d72">Download AES video</a></li>
<li><a href="#org4c66329">Display URL as a QRcode</a></li>
2020-01-11 22:04:45 +01:00
</ul>
</li>
</ul>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org0f5a5cf" class="outline-2">
<h2 id="org0f5a5cf">Import</h2>
<div class="outline-text-2" id="text-org0f5a5cf">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-python"><span class="org-keyword">from</span> qutebrowser.config.configfiles <span class="org-keyword">import</span> ConfigAPI
<span class="org-keyword">from</span> qutebrowser.config.config <span class="org-keyword">import</span> ConfigContainer
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-keyword">import</span> sys, os
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgc57ecfe" class="outline-2">
<h2 id="orgc57ecfe">Auto Config</h2>
<div class="outline-text-2" id="text-orgc57ecfe">
2021-02-10 18:02:02 +01:00
<p>
Do not load config set with <code>:set</code> command in qutebrowser.
</p>
<div class="org-src-container">
<pre class="src src-python">config.load_autoconfig(<span class="org-constant">True</span>)
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgc8e2eaa" class="outline-2">
<h2 id="orgc8e2eaa">General config</h2>
<div class="outline-text-2" id="text-orgc8e2eaa">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-python"><span class="org-variable-name">c.aliases</span> = {<span class="org-string">'w'</span>: <span class="org-string">'session-save'</span>, <span class="org-string">'q'</span>: <span class="org-string">'quit'</span>, <span class="org-string">'wq'</span>: <span class="org-string">'quit --save'</span>}
<span class="org-variable-name">c.auto_save.session</span> = <span class="org-constant">False</span>
<span class="org-variable-name">c.backend</span> = <span class="org-string">'webengine'</span>
<span class="org-variable-name">c.confirm_quit</span> = [<span class="org-string">'downloads'</span>]
2020-01-11 22:04:45 +01:00
</pre>
</div>
2021-04-25 19:10:57 +02:00
<div class="org-src-container">
<pre class="src src-python"><span class="org-variable-name">c.aliases</span>[<span class="org-string">'paywall'</span>] = <span class="org-string">"open https://www.google.com/search?q=cache:{url}"</span>
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org07373cc" class="outline-2">
<h2 id="org07373cc">Qt</h2>
<div class="outline-text-2" id="text-org07373cc">
2021-04-25 19:10:57 +02:00
<p>
Linked to <a href="https://github.com/qutebrowser/qutebrowser/issues/6401">issue</a>.
</p>
<div class="org-src-container">
<pre class="src src-python"><span class="org-variable-name">c.qt.workarounds.remove_service_workers</span> = <span class="org-constant">True</span>
</pre>
</div>
2020-01-11 22:04:45 +01:00
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgcfd6aff" class="outline-2">
<h2 id="orgcfd6aff">Content</h2>
<div class="outline-text-2" id="text-orgcfd6aff">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-python"><span class="org-variable-name">c.content.autoplay</span> = <span class="org-constant">False</span>
2021-10-25 14:37:10 +02:00
<span class="org-variable-name">c.content.notifications.enabled</span> = <span class="org-constant">False</span>
2021-01-08 01:43:48 +01:00
<span class="org-variable-name">c.content.geolocation</span> = <span class="org-string">'ask'</span>
<span class="org-variable-name">c.content.javascript.alert</span> = <span class="org-constant">True</span>
<span class="org-variable-name">c.content.javascript.can_access_clipboard</span> = <span class="org-constant">True</span>
<span class="org-variable-name">c.content.pdfjs</span> = <span class="org-constant">False</span>
<span class="org-variable-name">c.content.proxy</span> = <span class="org-string">'system'</span>
2021-02-10 18:02:02 +01:00
<span class="org-variable-name">c.content.blocking.method</span> = <span class="org-string">'both'</span>
2021-04-25 19:10:57 +02:00
<span class="org-variable-name">c.content.blocking.adblock.lists</span> = [<span class="org-string">'https://easylist.to/easylist/easylist.txt'</span>, <span class="org-string">'https://easylist.to/easylist/easyprivacy.txt'</span>, <span class="org-string">'https://secure.fanboy.co.nz/fanboy-cookiemonster.txt'</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-org4dee2d6" class="outline-2">
<h2 id="org4dee2d6">Editor</h2>
<div class="outline-text-2" id="text-org4dee2d6">
2020-03-19 10:42:30 +01:00
<div class="org-src-container">
2021-10-25 14:37:10 +02:00
<pre class="src src-python"><span class="org-variable-name">c.editor.command</span> = [<span class="org-string">'/usr/bin/alacritty'</span>, <span class="org-string">'--class'</span>, <span class="org-string">'terminal,Floating'</span>, <span class="org-string">'-e'</span>, <span class="org-string">'nvim'</span>, <span class="org-string">'{}'</span>]
2020-03-19 10:42:30 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org1043812" class="outline-2">
<h2 id="org1043812">Downloads</h2>
<div class="outline-text-2" id="text-org1043812">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-python"><span class="org-variable-name">c.downloads.location.directory</span> = <span class="org-string">'$HOME/Downloads/'</span>
<span class="org-variable-name">c.downloads.location.prompt</span> = <span class="org-constant">True</span>
<span class="org-variable-name">c.downloads.location.remember</span> = <span class="org-constant">True</span>
<span class="org-variable-name">c.downloads.location.suggestion</span> = <span class="org-string">'path'</span>
<span class="org-variable-name">c.downloads.position</span> = <span class="org-string">'bottom'</span>
<span class="org-variable-name">c.downloads.remove_finished</span> = <span class="org-highlight-numbers-number">10000</span>
2021-10-25 14:37:10 +02:00
<span class="org-comment-delimiter"># </span><span class="org-comment">c.downloads.open_dispatcher = 'linkhandler'</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-org08561a1" class="outline-2">
<h2 id="org08561a1">File Select</h2>
<div class="outline-text-2" id="text-org08561a1">
2021-02-10 18:02:02 +01:00
<div class="org-src-container">
<pre class="src src-python"><span class="org-variable-name">c.fileselect.handler</span> = <span class="org-string">"default"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">c.fileselect.single_file.command = ['termine', '-e', 'ranger', '--choosefile', '{}']</span>
2021-10-25 14:37:10 +02:00
<span class="org-comment-delimiter"># </span><span class="org-comment">c.fileselect.multiple_files.command = ['alacritty', '-e', 'ranger', '--choosefiles', '{}']</span>
2021-02-10 18:02:02 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orga69da83" class="outline-2">
<h2 id="orga69da83">Colors</h2>
<div class="outline-text-2" id="text-orga69da83">
2021-01-01 20:12:34 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-python"><span class="org-comment-delimiter"># </span><span class="org-comment">c.colors.webpage.darkmode.enabled = True</span>
2021-01-01 20:12:34 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org983558a" class="outline-2">
<h2 id="org983558a">Fonts</h2>
<div class="outline-text-2" id="text-org983558a">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-python"><span class="org-variable-name">c.fonts.default_family</span> = [<span class="org-string">"Hack Nerd Font Mono"</span>, <span class="org-string">"DejaVu Sans Mono"</span>, <span class="org-string">"Monaco"</span>]
<span class="org-variable-name">c.fonts.prompts</span> = <span class="org-string">'10pt monospace'</span>
<span class="org-variable-name">c.fonts.statusbar</span> = <span class="org-string">'10pt monospace'</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-orgb9d48fc" class="outline-2">
<h2 id="orgb9d48fc">Input</h2>
<div class="outline-text-2" id="text-orgb9d48fc">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-python">c.<span class="org-builtin">input</span>.insert_mode.auto_enter = <span class="org-constant">True</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Very annoying when automatically leave insert mode</span>
c.<span class="org-builtin">input</span>.insert_mode.auto_leave = <span class="org-constant">False</span>
c.<span class="org-builtin">input</span>.insert_mode.auto_load = <span class="org-constant">False</span>
c.<span class="org-builtin">input</span>.insert_mode.plugins = <span class="org-constant">True</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-org2885992" class="outline-2">
<h2 id="org2885992">New Instance Options</h2>
<div class="outline-text-2" id="text-org2885992">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-python"><span class="org-variable-name">c.new_instance_open_target</span> = <span class="org-string">'tab'</span>
<span class="org-variable-name">c.new_instance_open_target_window</span> = <span class="org-string">'last-focused'</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-orgf33fe1f" class="outline-2">
<h2 id="orgf33fe1f">Spell Check</h2>
<div class="outline-text-2" id="text-orgf33fe1f">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-python"><span class="org-variable-name">c.spellcheck.languages</span> = [<span class="org-string">'en-US'</span>, <span class="org-string">'fr-FR'</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-org4bf01f4" class="outline-2">
<h2 id="org4bf01f4">Status Bar</h2>
<div class="outline-text-2" id="text-org4bf01f4">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-python"><span class="org-comment-delimiter"># </span><span class="org-comment">Hide the statusbar unless a message is shown.</span>
<span class="org-variable-name">c.statusbar.position</span> = <span class="org-string">'bottom'</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">List of widgets displayed in the statusbar.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Valid values:</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">- url: Current page URL.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">- scroll: Percentage of the current page position like `10%`.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">- scroll_raw: Raw percentage of the current page position like `10`.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">- history: Display an arrow when possible to go back/forward in history.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">- tabs: Current active tab, e.g. `2`.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">- keypress: Display pressed keys when composing a vi command.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">- progress: Progress bar for the current page loading.</span>
<span class="org-variable-name">c.statusbar.widgets</span> = [<span class="org-string">'keypress'</span>, <span class="org-string">'url'</span>, <span class="org-string">'scroll'</span>, <span class="org-string">'history'</span>, <span class="org-string">'progress'</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-orgb3d46cc" class="outline-2">
<h2 id="orgb3d46cc">Tabs</h2>
<div class="outline-text-2" id="text-orgb3d46cc">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-python"><span class="org-comment-delimiter"># </span><span class="org-comment">Open new tabs (middleclick/ctrl+click) in the background.</span>
<span class="org-variable-name">c.tabs.background</span> = <span class="org-constant">True</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Mouse button with which to close tabs.</span>
<span class="org-variable-name">c.tabs.close_mouse_button</span> = <span class="org-string">'right'</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">How to behave when the last tab is closed.</span>
2022-05-09 10:05:23 +02:00
<span class="org-variable-name">c.tabs.last_close</span> = <span class="org-string">'ignore'</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Switch between tabs using the mouse wheel.</span>
<span class="org-variable-name">c.tabs.mousewheel_switching</span> = <span class="org-constant">False</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Position of new tabs opened from another tab.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Valid values:</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">- prev: Before the current tab.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">- next: After the current tab.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">- first: At the beginning.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">- last: At the end.</span>
<span class="org-variable-name">c.tabs.new_position.related</span> = <span class="org-string">'next'</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Position of new tabs which aren't opened from another tab.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Valid values:</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">- prev: Before the current tab.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">- next: After the current tab.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">- first: At the beginning.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">- last: At the end.</span>
<span class="org-variable-name">c.tabs.new_position.unrelated</span> = <span class="org-string">'last'</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Position of the tab bar.</span>
<span class="org-variable-name">c.tabs.position</span> = <span class="org-string">'left'</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Which tab to select when the focused tab is removed.</span>
<span class="org-variable-name">c.tabs.select_on_remove</span> = <span class="org-string">'next'</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Width (in pixels or as percentage of the window) of the tab bar if it's vertical.</span>
<span class="org-variable-name">c.tabs.width</span> = <span class="org-highlight-numbers-number">30</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Wrap when changing tabs.</span>
<span class="org-variable-name">c.tabs.wrap</span> = <span class="org-constant">False</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-orgf858a63" class="outline-2">
<h2 id="orgf858a63">Urls and Search Engines</h2>
<div class="outline-text-2" id="text-orgf858a63">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-python"><span class="org-variable-name">c.url.searchengines</span> = {
<span class="org-string">'DEFAULT'</span>: <span class="org-string">'https://www.duckduckgo.org/?q={}'</span>,
<span class="org-string">'wi'</span>: <span class="org-string">'https://en.wikipedia.org/wiki/Special:Search?search={}'</span>,
<span class="org-string">'go'</span>: <span class="org-string">'https://www.google.com/search?q={}'</span>,
<span class="org-string">'gc'</span>: <span class="org-string">'https://scholar.google.fr/scholar?hl=fr&amp;as_sdt=0%2C5&amp;q={}&amp;btnG='</span>,
<span class="org-string">'gm'</span>: <span class="org-string">'https://www.google.com/maps/search/{}/'</span>,
<span class="org-string">'gh'</span>: <span class="org-string">'https://github.com/search?q={}'</span>,
2022-05-09 10:05:23 +02:00
<span class="org-string">'yt'</span>: <span class="org-string">'https://www.youtube.com/results?search_query={}'</span>,
2021-01-08 01:43:48 +01:00
<span class="org-string">'re'</span>: <span class="org-string">'https://www.reddit.com/search?q={}'</span>,
<span class="org-string">'lb'</span>: <span class="org-string">'http://gen.lib.rus.ec/search.php?req={}'</span>,
<span class="org-string">'la'</span>: <span class="org-string">'http://gen.lib.rus.ec/scimag/index.php?s={}'</span>,
<span class="org-string">'sm'</span>: <span class="org-string">'https://www.openstreetmap.org/search?query={}'</span>,
<span class="org-string">'am'</span>: <span class="org-string">'https://www.amazon.fr/s?k={}'</span>,
<span class="org-string">'md'</span>: <span class="org-string">'https://fr.mathworks.com/help/search.html?qdoc={}&amp;submitsearch='</span>,
<span class="org-string">'tf'</span>: <span class="org-string">'https://translate.google.com/#view=home&amp;op=translate&amp;sl=en&amp;tl=fr&amp;text={}'</span>,
<span class="org-string">'te'</span>: <span class="org-string">'https://translate.google.com/#view=home&amp;op=translate&amp;sl=fr&amp;tl=en&amp;text={}'</span>,
2021-10-25 14:37:10 +02:00
<span class="org-string">'lb'</span>: <span class="org-string">'https://www.leboncoin.fr/recherche?text={}'</span>,
2021-01-08 01:43:48 +01:00
}
2020-03-19 10:42:30 +01:00
</pre>
</div>
2020-01-11 22:04:45 +01:00
2020-03-19 10:42:30 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-python"><span class="org-variable-name">c.url.start_pages</span> = [<span class="org-string">'https://homer.tdehaeze.xyz/'</span>]
<span class="org-variable-name">c.url.default_page</span> = <span class="org-string">'https://homer.tdehaeze.xyz/'</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-org11e854c" class="outline-2">
<h2 id="org11e854c">Normal Bindings</h2>
<div class="outline-text-2" id="text-org11e854c">
2020-03-19 10:42:30 +01:00
<p>
Zooming
</p>
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-python">config.bind(<span class="org-string">'+'</span>, <span class="org-string">'zoom-in'</span>)
config.bind(<span class="org-string">'-'</span>, <span class="org-string">'zoom-out'</span>)
config.bind(<span class="org-string">'='</span>, <span class="org-string">'zoom'</span>)
2020-01-11 22:04:45 +01:00
</pre>
</div>
2020-03-19 10:42:30 +01:00
<p>
Inputs blocks
</p>
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-python">config.bind(<span class="org-string">';t'</span>, <span class="org-string">'hint inputs'</span>)
config.bind(<span class="org-string">'gi'</span>, <span class="org-string">'hint inputs --first'</span>)
2020-01-11 22:04:45 +01:00
</pre>
</div>
2020-03-19 10:42:30 +01:00
<p>
Opening New Window
</p>
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-python">config.bind(<span class="org-string">'&lt;Ctrl-N&gt;'</span>, <span class="org-string">'open -w'</span>)
2020-01-11 22:04:45 +01:00
</pre>
</div>
2020-03-19 10:42:30 +01:00
<p>
History
</p>
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-python">config.bind(<span class="org-string">'H'</span>, <span class="org-string">'back'</span>)
config.bind(<span class="org-string">'L'</span>, <span class="org-string">'forward'</span>)
2020-01-11 22:04:45 +01:00
</pre>
</div>
2020-03-19 10:42:30 +01:00
<p>
Move tabs around
</p>
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-python">config.bind(<span class="org-string">'d'</span>, <span class="org-string">'tab-close'</span>)
config.bind(<span class="org-string">'&lt;'</span>, <span class="org-string">'tab-move -'</span>)
config.bind(<span class="org-string">'&gt;'</span>, <span class="org-string">'tab-move +'</span>)
config.bind(<span class="org-string">'gO'</span>, <span class="org-string">'tab-give'</span>) <span class="org-comment-delimiter"># </span><span class="org-comment">Open current tab in a new window</span>
config.bind(<span class="org-string">'J'</span>, <span class="org-string">'tab-next'</span>)
config.bind(<span class="org-string">'K'</span>, <span class="org-string">'tab-prev'</span>)
2020-01-11 22:04:45 +01:00
</pre>
</div>
2020-03-19 10:42:30 +01:00
<p>
Bookmarks and Quickmark
</p>
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-python">config.bind(<span class="org-string">'M'</span>, <span class="org-string">'bookmark-add'</span>)
config.bind(<span class="org-string">'m'</span>, <span class="org-string">'quickmark-save'</span>)
2020-01-11 22:04:45 +01:00
</pre>
</div>
2020-03-19 10:42:30 +01:00
<p>
Open New Pages/Tabs
</p>
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-python">config.bind(<span class="org-string">'o'</span>, <span class="org-string">'set-cmd-text -s :open'</span>)
config.bind(<span class="org-string">'O'</span>, <span class="org-string">'set-cmd-text -s :open -t'</span>)
2020-01-11 22:04:45 +01:00
</pre>
</div>
2020-03-19 10:42:30 +01:00
<p>
Open new page/tab with clipboard content
</p>
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-python">config.bind(<span class="org-string">'pp'</span>, <span class="org-string">'open -- {clipboard}'</span>)
config.bind(<span class="org-string">'pP'</span>, <span class="org-string">'open -t -- {clipboard}'</span>)
2020-01-11 22:04:45 +01:00
</pre>
</div>
2020-03-19 10:42:30 +01:00
<p>
Link Hinting
</p>
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-python">config.bind(<span class="org-string">'f'</span>, <span class="org-string">'hint'</span>)
config.bind(<span class="org-string">'F'</span>, <span class="org-string">'hint all tab'</span>)
2020-01-11 22:04:45 +01:00
</pre>
</div>
2020-03-19 10:42:30 +01:00
<p>
Yanking url
</p>
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-python">config.bind(<span class="org-string">'yy'</span>, <span class="org-string">'yank'</span>)
2020-01-11 22:04:45 +01:00
</pre>
</div>
2020-03-19 10:42:30 +01:00
<p>
Go to specific websites
</p>
2020-03-01 22:51:16 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-python">config.bind(<span class="org-string">'gy'</span>, <span class="org-string">'open -t https://www.youtube.com/feed/subscriptions'</span>)
config.bind(<span class="org-string">'gf'</span>, <span class="org-string">'open -t https://rss.tdehaeze.xyz/'</span>)
config.bind(<span class="org-string">'gr'</span>, <span class="org-string">'open -t https://www.reddit.com/'</span>)
2020-03-19 10:42:30 +01:00
2021-01-08 01:43:48 +01:00
config.bind(<span class="org-string">'gh'</span>, <span class="org-string">'open -t https://homer.tdehaeze.xyz/'</span>)
2022-05-09 10:05:23 +02:00
config.bind(<span class="org-string">'ge'</span>, <span class="org-string">'open -t http://intranet.esrf.fr/'</span>)
config.bind(<span class="org-string">'gc'</span>, <span class="org-string">'open -t https://calendar.esrf.fr/'</span>)
2020-11-03 16:27:09 +01:00
2021-01-08 01:43:48 +01:00
config.bind(<span class="org-string">'gb'</span>, <span class="org-string">'open -t qute://bookmarks'</span>)
config.bind(<span class="org-string">'gH'</span>, <span class="org-string">'open -t qute://history'</span>)
config.bind(<span class="org-string">'gs'</span>, <span class="org-string">'open -t qute://settings'</span>)
2020-03-01 22:51:16 +01:00
</pre>
</div>
2022-05-09 10:05:23 +02:00
<p>
Quit.
</p>
<div class="org-src-container">
<pre class="src src-python">config.bind(<span class="org-string">'D'</span>, <span class="org-string">'close'</span>)
</pre>
</div>
2020-03-01 22:51:16 +01:00
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org87cb2b6" class="outline-2">
<h2 id="org87cb2b6">Custom Bindings</h2>
<div class="outline-text-2" id="text-org87cb2b6">
2020-03-19 10:42:30 +01:00
<p>
Create a Password for the current website
</p>
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-10-25 14:37:10 +02:00
<pre class="src src-python"><span class="org-variable-name">c.aliases</span>[<span class="org-string">'Password_Add'</span>] = <span class="org-string">'spawn --userscript ~/.config/qutebrowser/userscripts/add-passowrd.sh'</span>
config.bind(<span class="org-string">',P'</span>, <span class="org-string">'Password_Add'</span>)
2020-01-11 22:04:45 +01:00
</pre>
</div>
2020-03-19 10:42:30 +01:00
2022-05-09 10:05:23 +02:00
<div class="org-src-container">
<pre class="src src-python"><span class="org-variable-name">c.aliases</span>[<span class="org-string">'proxy_homelab_on'</span>] = <span class="org-string">'set content.proxy socks5://localhost:8080'</span>
<span class="org-variable-name">c.aliases</span>[<span class="org-string">'proxy_homelab_off'</span>] = <span class="org-string">'config-unset content.proxy'</span>
</pre>
</div>
<div class="org-src-container">
<pre class="src src-python"><span class="org-variable-name">c.aliases</span>[<span class="org-string">'proxy_esrf_on'</span>] = <span class="org-string">'set content.proxy socks5://localhost:8081'</span>
<span class="org-variable-name">c.aliases</span>[<span class="org-string">'proxy_esrf_off'</span>] = <span class="org-string">'config-unset content.proxy'</span>
</pre>
</div>
2020-03-19 10:42:30 +01:00
<p>
2020-03-22 23:04:07 +01:00
Use Pass to fill password and username (configuration is done in <code>~/.config/qutebrowser/password_fill_rc</code>)
2020-03-19 10:42:30 +01:00
</p>
<div class="org-src-container">
2021-10-25 14:37:10 +02:00
<pre class="src src-python"><span class="org-variable-name">c.aliases</span>[<span class="org-string">'Password_Fill'</span>] = <span class="org-string">'spawn --userscript password_fill'</span>
config.bind(<span class="org-string">',p'</span>, <span class="org-string">'Password_Fill'</span>)
</pre>
</div>
<p>
Get Two Factor Authentication number.
</p>
<div class="org-src-container">
<pre class="src src-python"><span class="org-variable-name">c.aliases</span>[<span class="org-string">'OTP'</span>] = <span class="org-string">'spawn --userscript ~/.config/qutebrowser/userscripts/get-otp.sh'</span>
config.bind(<span class="org-string">',2'</span>, <span class="org-string">'OTP'</span>)
2020-03-19 10:42:30 +01:00
</pre>
2020-01-11 22:04:45 +01:00
</div>
2020-03-19 10:42:30 +01:00
<p>
2020-03-22 23:04:07 +01:00
Open Youtube video using <code>mpv</code>
2020-03-19 10:42:30 +01:00
</p>
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-10-25 14:37:10 +02:00
<pre class="src src-python"><span class="org-variable-name">c.aliases</span>[<span class="org-string">'MPV_view'</span>] = <span class="org-string">'spawn --detach mpv --force-window yes {url}'</span>
config.bind(<span class="org-string">',m'</span>, <span class="org-string">'MPV_view'</span>)
<span class="org-variable-name">c.aliases</span>[<span class="org-string">'MPV_view_hint'</span>] = <span class="org-string">'hint links spawn --detach mpv --force-window yes {hint-url}'</span>
config.bind(<span class="org-string">';m'</span>, <span class="org-string">'MPV_view_hint'</span>)
2020-01-11 22:04:45 +01:00
</pre>
</div>
2020-03-19 10:42:30 +01:00
<p>
2020-05-26 08:40:15 +02:00
Download Youtube video / entire playlist
2020-03-19 10:42:30 +01:00
</p>
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-10-25 14:37:10 +02:00
<pre class="src src-python"><span class="org-variable-name">c.aliases</span>[<span class="org-string">'Download_Youtube'</span>] = <span class="org-string">'spawn --userscript ~/.config/qutebrowser/userscripts/yt-download.sh {url}'</span>
config.bind(<span class="org-string">',v'</span>, <span class="org-string">'Download_Youtube'</span>)
<span class="org-variable-name">c.aliases</span>[<span class="org-string">'Download_Youtube_hint'</span>] = <span class="org-string">'hint links spawn --userscript ~/.config/qutebrowser/userscripts/yt-download.sh {hint-url}'</span>
config.bind(<span class="org-string">';v'</span>, <span class="org-string">'Download_Youtube_hint'</span>)
2020-01-11 22:04:45 +01:00
</pre>
</div>
2020-03-19 10:42:30 +01:00
<p>
2021-10-25 14:37:10 +02:00
Add page to Bookmarks using <code>linkding</code>
2020-03-19 10:42:30 +01:00
</p>
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-10-25 14:37:10 +02:00
<pre class="src src-python"><span class="org-variable-name">c.aliases</span>[<span class="org-string">'Bookmark_Add'</span>] = <span class="org-string">'spawn --userscript ~/.config/qutebrowser/userscripts/linkding-add.sh'</span>
config.bind(<span class="org-string">',b'</span>, <span class="org-string">'Bookmark_Add'</span>)
2020-05-26 08:40:15 +02:00
</pre>
</div>
<p>
Download with <code>aria2c</code>
</p>
<div class="org-src-container">
2021-10-25 14:37:10 +02:00
<pre class="src src-python"><span class="org-variable-name">c.aliases</span>[<span class="org-string">'Download_Local'</span>] = <span class="org-string">'hint links spawn --userscript ~/.config/qutebrowser/userscripts/aria2c-add.sh {hint-url}'</span>
config.bind(<span class="org-string">',d'</span>, <span class="org-string">'Download_Local'</span>)
<span class="org-variable-name">c.aliases</span>[<span class="org-string">'Download_Homelab'</span>] = <span class="org-string">'hint links spawn --userscript ~/.config/qutebrowser/userscripts/aria2c-add-homelab.sh {hint-url}'</span>
config.bind(<span class="org-string">',D'</span>, <span class="org-string">'Download_Homelab'</span>)
2020-01-11 22:04:45 +01:00
</pre>
</div>
2020-03-19 10:42:30 +01:00
<p>
2021-10-25 14:37:10 +02:00
Open bookmark using <code>linkding</code>
2020-03-19 10:42:30 +01:00
</p>
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-10-25 14:37:10 +02:00
<pre class="src src-python"><span class="org-variable-name">c.aliases</span>[<span class="org-string">'Open_Bookmark'</span>] = <span class="org-string">'spawn --userscript ~/.config/qutebrowser/userscripts/linkding-open.sh'</span>
config.bind(<span class="org-string">',o'</span>, <span class="org-string">'Open_Bookmark'</span>)
2020-01-11 22:04:45 +01:00
</pre>
</div>
2020-03-19 10:42:30 +01:00
<p>
2021-10-25 14:37:10 +02:00
Open with <code>linkhandler</code>
2020-03-19 10:42:30 +01:00
</p>
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-10-25 14:37:10 +02:00
<pre class="src src-python"><span class="org-variable-name">c.aliases</span>[<span class="org-string">'Open_Default'</span>] = <span class="org-string">'hint links spawn --detach linkhandler {hint-url}'</span>
config.bind(<span class="org-string">',O'</span>, <span class="org-string">'Open_Default'</span>)
2020-11-03 16:27:09 +01:00
</pre>
</div>
<p>
2021-10-25 14:37:10 +02:00
Org Capture
2020-11-03 16:27:09 +01:00
</p>
<div class="org-src-container">
2021-10-25 14:37:10 +02:00
<pre class="src src-python"><span class="org-variable-name">c.aliases</span>[<span class="org-string">'Org_Capture'</span>] = <span class="org-string">'spawn --userscript ~/.config/qutebrowser/userscripts/org-capture.sh'</span>
config.bind(<span class="org-string">',r'</span>, <span class="org-string">'Org_Capture'</span>)
<span class="org-variable-name">c.aliases</span>[<span class="org-string">'Org_Capture_hint'</span>] = <span class="org-string">'hint links userscript ~/.config/qutebrowser/userscripts/org-capture.sh'</span>
config.bind(<span class="org-string">';R'</span>, <span class="org-string">'Org_Capture_hint'</span>)
2020-01-11 22:04:45 +01:00
</pre>
</div>
2021-01-01 20:12:34 +01:00
<p>
2021-10-25 14:37:10 +02:00
Screenshot of webpage to png
2021-01-01 20:12:34 +01:00
</p>
<div class="org-src-container">
2021-10-25 14:37:10 +02:00
<pre class="src src-python"><span class="org-variable-name">c.aliases</span>[<span class="org-string">'Save_PDF'</span>] = <span class="org-string">'spawn --userscript html-to-pdf.sh'</span>
config.bind(<span class="org-string">',s'</span>, <span class="org-string">'Save_PDF'</span>)
<span class="org-variable-name">c.aliases</span>[<span class="org-string">'Save_PNG'</span>] = <span class="org-string">'spawn --userscript html-to-png.sh'</span>
config.bind(<span class="org-string">',S'</span>, <span class="org-string">'Save_PNG'</span>)
2021-01-01 20:12:34 +01:00
</pre>
</div>
2020-04-05 11:30:26 +02:00
<p>
2021-10-25 14:37:10 +02:00
Download AES video
2020-04-05 11:30:26 +02:00
</p>
<div class="org-src-container">
2021-10-25 14:37:10 +02:00
<pre class="src src-python"><span class="org-variable-name">c.aliases</span>[<span class="org-string">'Download_AES'</span>] = <span class="org-string">'spawn --userscript aes-download.sh'</span>
config.bind(<span class="org-string">',E'</span>, <span class="org-string">'Download_AES'</span>)
2020-04-05 11:30:26 +02:00
</pre>
</div>
2020-03-19 10:42:30 +01:00
<p>
2021-10-25 14:37:10 +02:00
Download a torrent
2020-03-19 10:42:30 +01:00
</p>
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-10-25 14:37:10 +02:00
<pre class="src src-python"><span class="org-variable-name">c.aliases</span>[<span class="org-string">'Download_Torrent_Homelab'</span>] = <span class="org-string">'hint links spawn torrent-add {hint-url}'</span>
config.bind(<span class="org-string">',t'</span>, <span class="org-string">'Download_Torrent_Homelab'</span>)
2020-01-11 22:04:45 +01:00
</pre>
</div>
2020-03-19 10:42:30 +01:00
<p>
See Amazon price history using CamelCamelCamel
</p>
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-10-25 14:37:10 +02:00
<pre class="src src-python"><span class="org-variable-name">c.aliases</span>[<span class="org-string">'CamelCamelCamel'</span>] = <span class="org-string">'open -t https://fr.camelcamelcamel.com/search?sq={url}'</span>
config.bind(<span class="org-string">',A'</span>, <span class="org-string">'CamelCamelCamel'</span>)
2020-05-26 08:40:15 +02:00
</pre>
</div>
<p>
Org Roam Entry for the current page
</p>
<div class="org-src-container">
2021-10-25 14:37:10 +02:00
<pre class="src src-python"><span class="org-variable-name">c.aliases</span>[<span class="org-string">'Org_Roam_Save'</span>] = <span class="org-string">"open javascript:void(location.href='org-protocol://roam-ref?template=r&amp;ref='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title))"</span>
config.bind(<span class="org-string">',R'</span>, <span class="org-string">'Org_Roam_Save'</span>)
2020-01-11 22:04:45 +01:00
</pre>
</div>
2021-02-10 18:02:02 +01:00
2021-10-25 14:37:10 +02:00
<p>
Display Current URL as a QRcode (useful to open in on a phone).
</p>
2021-02-10 18:02:02 +01:00
<div class="org-src-container">
2021-10-25 14:37:10 +02:00
<pre class="src src-python"><span class="org-variable-name">c.aliases</span>[<span class="org-string">'QRcode'</span>] = <span class="org-string">"spawn --userscript ~/.config/qutebrowser/userscripts/url-to-qrcode.sh {url}"</span>
config.bind(<span class="org-string">',q'</span>, <span class="org-string">'QRcode'</span>)
2021-02-10 18:02:02 +01:00
</pre>
</div>
2020-01-11 22:04:45 +01:00
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org34d03fb" class="outline-2">
<h2 id="org34d03fb">Userscripts</h2>
<div class="outline-text-2" id="text-org34d03fb">
2021-10-25 14:37:10 +02:00
<p>
<a href="https://qutebrowser.org/doc/userscripts.html">Here</a> is the documentation related to userscripts.
</p>
2020-01-11 22:04:45 +01:00
</div>
2020-05-26 08:40:15 +02:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-org1d019e2" class="outline-3">
<h3 id="org1d019e2">Create a new password</h3>
<div class="outline-text-3" id="text-org1d019e2">
2020-03-01 22:51:16 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-bash"><span class="org-variable-name">url</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</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">QUTE_URL</span></span><span class="org-string">"</span> | awk -F<span class="org-rainbow-delimiters-depth-2">[</span>/:<span class="org-rainbow-delimiters-depth-2">]</span> <span class="org-string">'{print $4}'</span> | rofi -p <span class="org-string">"URL"</span> -dmenu -lines <span class="org-highlight-numbers-number">1</span><span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-variable-name">username</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"dehaeze.thomas@gmail.com\nthomas.dehaeze@esrf.fr\ntdehaeze"</span> | rofi -p <span class="org-string">"Username"</span> -dmenu -lines <span class="org-highlight-numbers-number">5</span><span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-variable-name">password</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">rofi</span> -p <span class="org-string">"Password"</span> -dmenu -password -lines <span class="org-highlight-numbers-number">1</span><span class="org-rainbow-delimiters-depth-1">)</span>
2020-03-01 22:51:16 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">url</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span> || <span class="org-rainbow-delimiters-depth-1">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">username</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span> || <span class="org-rainbow-delimiters-depth-1">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">password</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
2022-05-09 10:05:23 +02:00
notify-send --hint=string:x-dunst-stack-tag:0vRM5AMP --urgency=critical <span class="org-string">"Pass"</span> <span class="org-string">"Failed to Add Password"</span>
2021-01-08 01:43:48 +01:00
<span class="org-keyword">else</span>
<span class="org-type">echo</span> -e <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">password</span></span><span class="org-string">\nlogin: </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">username</span></span><span class="org-string">\nurl: </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_URL</span></span><span class="org-string">"</span> &gt; /tmp/add-password.txt
pass insert --multiline <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">url</span></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">username</span></span><span class="org-string">"</span> &lt; /tmp/add-password.txt;
<span class="org-type">rm</span> /tmp/add-password.txt
2022-05-09 10:05:23 +02:00
notify-send --hint=string:x-dunst-stack-tag:0vRM5AMP <span class="org-string">"Pass &#62525;"</span> <span class="org-string">"Password Added"</span>
2021-01-08 01:43:48 +01:00
<span class="org-keyword">fi</span>
2020-03-01 22:51:16 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org240eb0e" class="outline-3">
<h3 id="org240eb0e">Download Youtube Video</h3>
<div class="outline-text-3" id="text-org240eb0e">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-bash"><span class="org-type">cd</span> ~/Documents/to-watch/ || <span class="org-keyword">exit</span>;
2020-05-26 08:40:15 +02:00
2021-01-08 01:43:48 +01:00
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</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">1</span></span><span class="org-string">"</span> == *<span class="org-string">"list"</span>* <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-variable-name">choice</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"Video\nPlaylist"</span> | rofi -dmenu -only-match -i<span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-keyword">fi</span>
2020-05-26 08:40:15 +02:00
2021-01-08 01:43:48 +01:00
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -n <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">choice</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span> &amp;&amp; <span class="org-rainbow-delimiters-depth-1">[</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">choice</span></span><span class="org-string">"</span> = <span class="org-string">"Playlist"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
2022-05-09 10:05:23 +02:00
notify-send --hint=string:x-dunst-stack-tag:iOGRwrDG <span class="org-string">"Youtube &#61798;"</span> <span class="org-string">"Downloading Playlist..."</span>;
2021-01-08 01:43:48 +01:00
youtube-dl -i -f <span class="org-string">'bestvideo[height&lt;=720]+bestaudio/best[height&lt;=720]'</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">1</span></span><span class="org-string">"</span> -o <span class="org-string">"%(playlist_title)s/%(playlist_index)s-%(title)s.%(ext)s"</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
2022-05-09 10:05:23 +02:00
notify-send --hint=string:x-dunst-stack-tag:iOGRwrDG <span class="org-string">"Youtube &#61798;"</span> <span class="org-string">"Downloaded"</span> || <span class="org-sh-escaped-newline">\</span>
notify-send --hint=string:x-dunst-stack-tag:iOGRwrDG --urgency=critical <span class="org-string">"Youtube &#61798;"</span> <span class="org-string">"Failed to download"</span>
2021-01-08 01:43:48 +01:00
<span class="org-keyword">else</span>
2022-05-09 10:05:23 +02:00
notify-send --hint=string:x-dunst-stack-tag:iOGRwrDG <span class="org-string">"Youtube &#61798;"</span> <span class="org-string">"Downloading Video..."</span>;
2021-01-08 01:43:48 +01:00
youtube-dl --no-playlist -f <span class="org-string">'bestvideo[height&lt;=720]+bestaudio/best[height&lt;=720]'</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">1</span></span><span class="org-string">"</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
2022-05-09 10:05:23 +02:00
notify-send --hint=string:x-dunst-stack-tag:iOGRwrDG <span class="org-string">"Youtube &#61798;"</span> <span class="org-string">"Downloaded"</span> || <span class="org-sh-escaped-newline">\</span>
notify-send --hint=string:x-dunst-stack-tag:iOGRwrDG --urgency=critical <span class="org-string">"Youtube &#61798;"</span> <span class="org-string">"Failed to download"</span>
2021-01-08 01:43:48 +01:00
<span class="org-keyword">fi</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-org9abd12f" class="outline-3">
<h3 id="org9abd12f">Password_fill_rc</h3>
<div class="outline-text-3" id="text-org9abd12f">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Show all password fields in the menu</span>
<span class="org-function-name">query_entries</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">safe queried url for choose_entry</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">the subdomains are removed</span>
<span class="org-builtin">export</span> <span class="org-variable-name">queried_url</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">expr</span> match <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-string">'.*\.\(.*\..*\)'</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-builtin">mapfile</span> -t files &lt; &lt;<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-type">find</span> -L <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">PREFIX</span></span><span class="org-string">"</span> -iname <span class="org-string">'*.gpg'</span> -printf <span class="org-string">'%P\n'</span> |sed <span class="org-string">'s,\.gpg$,,'</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
2020-11-03 16:27:09 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Even if there is only one entry, always show a menu</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">for user confirmation.</span>
<span class="org-function-name">choose_entry</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-variable-name">MENU_COMMAND</span>=<span class="org-rainbow-delimiters-depth-2">(</span>
rofi -dmenu
-p <span class="org-string">"qutebrowser&gt; "</span>
-filter <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">queried_url</span></span><span class="org-string">"</span>
-mesg $<span class="org-string">'Pick a password entry for &lt;b&gt;'"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{QUTE_URL//&amp;/&amp;amp;}</span></span><span class="org-string">"'&lt;/b&gt;'</span>
<span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-variable-name">file</span>=$<span class="org-rainbow-delimiters-depth-2">(</span> <span class="org-builtin">printf</span> <span class="org-string">"%s\n"</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">{files[@]}</span></span><span class="org-string">"</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">{MENU_COMMAND[@]}</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2020-03-01 22:51:16 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-org560ce97" class="outline-3">
<h3 id="org560ce97">Org-Capture</h3>
<div class="outline-text-3" id="text-org560ce97">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-bash"><span class="org-builtin">readonly</span> <span class="org-variable-name">CAPTURE_SCRIPT</span>=~/.config/qutebrowser/userscripts/org-protocol-capture-html.sh
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</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">QUTE_MODE</span></span><span class="org-string">"</span> = <span class="org-string">"hints"</span> <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">if we start with hints, we juste want to capture the URL</span>
$<span class="org-variable-name">CAPTURE_SCRIPT</span> --template <span class="org-string">"pu"</span> --url <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{QUTE_URL}</span></span><span class="org-string">"</span>
<span class="org-keyword">elif</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> -n <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_SELECTED_TEXT</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">if text is selected, we want to capture the text</span>
$<span class="org-variable-name">CAPTURE_SCRIPT</span> --template <span class="org-string">"pt"</span> --heading <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{QUTE_TITLE}</span></span><span class="org-string">"</span> --url <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{QUTE_URL}</span></span><span class="org-string">"</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">{QUTE_SELECTED_TEXT}</span></span><span class="org-string">"</span>
<span class="org-keyword">else</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">if no text is selected, we want to capture the url</span>
$<span class="org-variable-name">CAPTURE_SCRIPT</span> --template <span class="org-string">"pu"</span> --heading <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{QUTE_TITLE}</span></span><span class="org-string">"</span> --url <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{QUTE_URL}</span></span><span class="org-string">"</span>
<span class="org-keyword">fi</span>
2020-05-26 08:40:15 +02:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org4b422b4" class="outline-3">
<h3 id="org4b422b4">Org-Protocol-Capture-HTML</h3>
<div class="outline-text-3" id="text-org4b422b4">
2020-05-26 08:40:15 +02:00
<p>
Defaults
</p>
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-bash"><span class="org-variable-name">heading</span>=<span class="org-string">"link"</span>
<span class="org-variable-name">template</span>=<span class="org-string">"pu"</span>
<span class="org-variable-name">url</span>=<span class="org-string">"https://google.com/"</span>
2020-05-26 08:40:15 +02:00
</pre>
</div>
<p>
Functions
</p>
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-bash"><span class="org-keyword">function</span> <span class="org-function-name">debug</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-2">[</span><span class="org-rainbow-delimiters-depth-3">[</span> -n $<span class="org-variable-name">debug</span> <span class="org-rainbow-delimiters-depth-3">]</span><span class="org-rainbow-delimiters-depth-2">]</span>
<span class="org-keyword">then</span>
<span class="org-keyword">function</span> <span class="org-function-name">debug</span> <span class="org-rainbow-delimiters-depth-2">{</span>
<span class="org-type">echo</span> <span class="org-string">"DEBUG: </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span> &gt;&amp;<span class="org-highlight-numbers-number">2</span>
<span class="org-rainbow-delimiters-depth-2">}</span>
debug <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span>
<span class="org-keyword">else</span>
<span class="org-keyword">function</span> <span class="org-function-name">debug</span> <span class="org-rainbow-delimiters-depth-2">{</span>
true
<span class="org-rainbow-delimiters-depth-2">}</span>
<span class="org-keyword">fi</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-keyword">function</span> <span class="org-function-name">die</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-type">echo</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">@</span></span><span class="org-string">"</span> &gt;&amp;<span class="org-highlight-numbers-number">2</span>
<span class="org-keyword">exit</span> <span class="org-highlight-numbers-number">1</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-keyword">function</span> <span class="org-function-name">urlencode</span> <span class="org-rainbow-delimiters-depth-1">{</span>
python -c <span class="org-string">"</span>
<span class="org-string">from __future__ import print_function</span>
<span class="org-string">try:</span>
<span class="org-string"> from urllib import quote # Python 2</span>
<span class="org-string">except ImportError:</span>
<span class="org-string"> from urllib.parse import quote # Python 3</span>
<span class="org-string">import sys</span>
<span class="org-string">print(quote(sys.stdin.read()[:-1], safe=''))"</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
2020-05-26 08:40:15 +02:00
</pre>
</div>
<p>
Documentation
</p>
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-bash"><span class="org-keyword">function</span> <span class="org-function-name">usage</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-type">cat</span> &lt;&lt;EOF
<span class="org-sh-heredoc">$0 [OPTIONS] [HTML]</span>
<span class="org-sh-heredoc">html | $0 [OPTIONS]</span>
<span class="org-sh-heredoc">Send HTML to Emacs through org-protocol, passing it through Pandoc to</span>
<span class="org-sh-heredoc">convert HTML to Org-mode. HTML may be passed as an argument or</span>
<span class="org-sh-heredoc">through STDIN. If only URL is given, it will be downloaded and its</span>
<span class="org-sh-heredoc">contents used.</span>
<span class="org-sh-heredoc">Options:</span>
<span class="org-sh-heredoc"> -h, --heading HEADING Heading</span>
<span class="org-sh-heredoc"> -t, --template TEMPLATE org-capture template key (default: pu)</span>
<span class="org-sh-heredoc"> -u, --url URL URL</span>
<span class="org-sh-heredoc"> --debug Print debug info</span>
<span class="org-sh-heredoc"> --help I need somebody!</span>
<span class="org-sh-heredoc">EOF</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
2020-05-26 08:40:15 +02:00
</pre>
</div>
<p>
Arguments
</p>
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-bash"><span class="org-variable-name">args</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">getopt</span> -n <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">0</span></span><span class="org-string">"</span> -o dh:rt:u: -l debug,help,heading:,template:,url: -- <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-1">)</span> <span class="org-sh-escaped-newline">\</span>
|| die <span class="org-string">"Unable to parse args. Is getopt installed?"</span>
<span class="org-builtin">eval</span> set -- <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">args</span></span><span class="org-string">"</span>
<span class="org-keyword">while</span> true
<span class="org-keyword">do</span>
<span class="org-keyword">case</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">1</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
-d|--debug)
<span class="org-variable-name">debug</span>=true
debug <span class="org-string">"Debugging on"</span>
;;
--help)
usage
<span class="org-keyword">exit</span>
;;
-h|--heading)
<span class="org-builtin">shift</span>
<span class="org-variable-name">heading</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">1</span></span><span class="org-string">"</span>
;;
-t|--template)
<span class="org-builtin">shift</span>
<span class="org-variable-name">template</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">1</span></span><span class="org-string">"</span>
;;
-u|--url)
<span class="org-builtin">shift</span>
<span class="org-variable-name">url</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">1</span></span><span class="org-string">"</span>
;;
--)
<span class="org-comment-delimiter"># </span><span class="org-comment">Remaining args</span>
<span class="org-builtin">shift</span>
<span class="org-variable-name">rest</span>=<span class="org-rainbow-delimiters-depth-1">(</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">@</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-keyword">break</span>
;;
<span class="org-keyword">esac</span>
<span class="org-builtin">shift</span>
<span class="org-keyword">done</span>
debug <span class="org-string">"ARGS: </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">args</span></span><span class="org-string">"</span>
debug <span class="org-string">"Remaining args: </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{rest[@]}</span></span><span class="org-string">"</span>
2020-05-26 08:40:15 +02:00
</pre>
</div>
<p>
Get HTML
</p>
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> -n $<span class="org-variable-name">@</span> <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>
<span class="org-keyword">then</span>
debug <span class="org-string">"Text from args"</span>
2020-05-26 08:40:15 +02:00
2021-01-08 01:43:48 +01:00
<span class="org-variable-name">body</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">@</span></span><span class="org-string">"</span>
<span class="org-keyword">fi</span>
2020-05-26 08:40:15 +02:00
</pre>
</div>
<p>
URL-encode
</p>
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-bash"><span class="org-variable-name">heading</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">urlencode</span> &lt;&lt;&lt;<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">heading</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-1">)</span> || die <span class="org-string">"Unable to urlencode heading."</span>
<span class="org-variable-name">url</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">urlencode</span> &lt;&lt;&lt;<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">url</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-1">)</span> || die <span class="org-string">"Unable to urlencode URL."</span>
<span class="org-variable-name">body</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">urlencode</span> &lt;&lt;&lt;<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">body</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-1">)</span> || die <span class="org-string">"Unable to urlencode text."</span>
2020-05-26 08:40:15 +02:00
</pre>
</div>
<p>
Send to Emacs
</p>
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-bash">emacsclient <span class="org-string">"org-protocol://capture?template=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">template</span></span><span class="org-string">&amp;url=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">url</span></span><span class="org-string">&amp;title=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">heading</span></span><span class="org-string">&amp;body=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">body</span></span><span class="org-string">"</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2020-03-01 22:51:16 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgde3ccfd" class="outline-3">
<h3 id="orgde3ccfd">Open Bookmark with Linkding</h3>
<div class="outline-text-3" id="text-orgde3ccfd">
2021-10-25 14:37:10 +02:00
<div class="org-src-container">
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Verify that environment variable are set</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{LINKDING_URL}</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-variable-name">LINKDING_URL</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">pass</span> nas/linkding_url<span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-keyword">fi</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{LINKDING_TOKEN}</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-variable-name">LINKDING_TOKEN</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">pass</span> nas/linkding_token<span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-keyword">fi</span>
<span class="org-type">curl</span> -H <span class="org-string">"Authorization: Token </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{LINKDING_TOKEN}</span></span><span class="org-string">"</span> $<span class="org-rainbow-delimiters-depth-1">{</span><span class="org-variable-name">LINKDING_URL</span><span class="org-rainbow-delimiters-depth-1">}</span>/api/bookmarks/ | jq <span class="org-string">'.results[] | "\(.title) - \(.url) - [#\((.tag_names | join(", #")))]"'</span> -r | rofi -dmenu -no-custom | <span class="org-type">grep</span> -Eo <span class="org-string">'https?://[^ ]+'</span> | head -1 | xargs -I <span class="org-rainbow-delimiters-depth-1">{}</span> <span class="org-type">echo</span> <span class="org-string">"open -t {}"</span> &gt;&gt; <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_FIFO</span></span><span class="org-string">"</span>
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgb3f6fdd" class="outline-3">
<h3 id="orgb3f6fdd">Add Url to Linkding</h3>
<div class="outline-text-3" id="text-orgb3f6fdd">
2021-10-25 14:37:10 +02:00
<div class="org-src-container">
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Verify that environment variable are set</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{LINKDING_URL}</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-variable-name">LINKDING_URL</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">pass</span> nas/linkding_url<span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-keyword">fi</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{LINKDING_TOKEN}</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-variable-name">LINKDING_TOKEN</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">pass</span> nas/linkding_token<span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-keyword">fi</span>
<span class="org-variable-name">title</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</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">QUTE_TITLE</span></span><span class="org-string">"</span> | rofi -p <span class="org-string">"Title"</span> -dmenu -lines <span class="org-highlight-numbers-number">1</span><span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-variable-name">existing_tags</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">curl</span> -H <span class="org-string">"Authorization: Token </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{LINKDING_TOKEN}</span></span><span class="org-string">"</span> $<span class="org-rainbow-delimiters-depth-2">{</span><span class="org-variable-name">LINKDING_URL</span><span class="org-rainbow-delimiters-depth-2">}</span>/api/tags/ | jq <span class="org-string">'.results[].name'</span> -r | rofi -multi-select -p <span class="org-string">"Existing tags"</span> -dmenu<span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-variable-name">new_tags</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">rofi</span> -p <span class="org-string">"New tags"</span> -dmenu<span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-variable-name">formated_tags</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> $<span class="org-variable-name">existing_tags</span> $<span class="org-variable-name">new_tags</span> | sed -E <span class="org-string">'s/(\w+)/"\1"/g;s/\s/,/g'</span><span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-type">curl</span> -H <span class="org-string">"Authorization: Token </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{LINKDING_TOKEN}</span></span><span class="org-string">"</span> -H <span class="org-string">"Content-Type: application/json"</span> -d <span class="org-string">"{\"url\": \"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_URL</span></span><span class="org-string">\", \"title\": \"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">title</span></span><span class="org-string">\", \"tag_names\": [</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">formated_tags</span></span><span class="org-string">]}"</span> $<span class="org-rainbow-delimiters-depth-1">{</span><span class="org-variable-name">LINKDING_URL</span><span class="org-rainbow-delimiters-depth-1">}</span>/api/bookmarks/ &amp;&amp; <span class="org-sh-escaped-newline">\</span>
2022-05-09 10:05:23 +02:00
notify-send --hint=string:x-dunst-stack-tag:l3gV75RD <span class="org-string">"Linkding"</span> <span class="org-string">"&#62561; Bookmark Added"</span> || <span class="org-sh-escaped-newline">\</span>
notify-send --hint=string:x-dunst-stack-tag:l3gV75RD --urgency=critical <span class="org-string">"Linkding"</span> <span class="org-string">"Failed"</span>
2021-10-25 14:37:10 +02:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgde783ef" class="outline-3">
<h3 id="orgde783ef">Add Url to Buku using Rofi</h3>
<div class="outline-text-3" id="text-orgde783ef">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-bash"><span class="org-variable-name">title</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</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">QUTE_TITLE</span></span><span class="org-string">"</span> | rofi -p <span class="org-string">"Title"</span> -dmenu -lines <span class="org-highlight-numbers-number">1</span><span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-variable-name">tags</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">buku</span> -t --nc --np | sed -e <span class="org-string">'s/\s*[[:digit:]]*\.\s*\(.*\)\s*([[:digit:]]*)\s*/\1/'</span> -e <span class="org-string">'/^\s*$/d'</span> | sort | uniq | rofi -multi-select -p <span class="org-string">"Tags"</span> -dmenu | tr <span class="org-string">"\n"</span> <span class="org-string">","</span> | sed <span class="org-string">'s/\s*,\s*$//'</span><span class="org-rainbow-delimiters-depth-1">)</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
buku --add <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_URL</span></span><span class="org-string">"</span> --tag <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">tags</span></span><span class="org-string">"</span> --title <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">title</span></span><span class="org-string">"</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
2022-05-09 10:05:23 +02:00
notify-send --hint=string:x-dunst-stack-tag:E3TueNZ0 <span class="org-string">"Buku"</span> <span class="org-string">"Bookmark Added"</span> || <span class="org-sh-escaped-newline">\</span>
notify-send --hint=string:x-dunst-stack-tag:E3TueNZ0 --urgency=critical <span class="org-string">"Buku"</span> <span class="org-string">"&#62561; Bookmark Added"</span>
2020-03-22 23:04:07 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgc511486" class="outline-3">
<h3 id="orgc511486">Add Url to Buku without asking for information</h3>
<div class="outline-text-3" id="text-orgc511486">
2020-03-22 23:04:07 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-bash">buku --add $<span class="org-variable-name">QUTE_URL</span> --title <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_TITLE</span></span><span class="org-string">"</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
2022-05-09 10:05:23 +02:00
notify-send <span class="org-string">"Buku"</span> <span class="org-string">"&#128209; Bookmark Added"</span>
2020-05-26 08:40:15 +02:00
</pre>
</div>
</div>
</div>
2020-11-03 16:27:09 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-orga8af67b" class="outline-3">
<h3 id="orga8af67b">Download with aria2c</h3>
<div class="outline-text-3" id="text-orga8af67b">
2020-05-26 08:40:15 +02:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-bash">aria2p add <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> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
2022-05-09 10:05:23 +02:00
notify-send --hint=string:x-dunst-stack-tag:2SGClDoI <span class="org-string">"Aria2"</span> <span class="org-string">"Download Started"</span> || <span class="org-sh-escaped-newline">\</span>
notify-send --hint=string:x-dunst-stack-tag:2SGClDoI <span class="org-string">"Aria2"</span> <span class="org-string">"Error"</span>
2020-11-03 16:27:09 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org54624ed" class="outline-3">
<h3 id="org54624ed">Download with aria2c on the Homelab</h3>
<div class="outline-text-3" id="text-org54624ed">
2020-11-03 16:27:09 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-bash">dl-add $<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</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">1</span></span><span class="org-string">"</span> | sed <span class="org-string">'s/\&amp;af=.*$//g'</span><span class="org-rainbow-delimiters-depth-1">)</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
2022-05-09 10:05:23 +02:00
notify-send --hint=string:x-dunst-stack-tag:2SGClDoI <span class="org-string">"Aria2"</span> <span class="org-string">"Download Started"</span> || <span class="org-sh-escaped-newline">\</span>
notify-send --hint=string:x-dunst-stack-tag:2SGClDoI <span class="org-string">"Aria2"</span> <span class="org-string">"Error"</span>
2020-11-03 16:27:09 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgedf060f" class="outline-3">
<h3 id="orgedf060f">Save to PNG</h3>
<div class="outline-text-3" id="text-orgedf060f">
2020-11-03 16:27:09 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-bash"><span class="org-variable-name">filename</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">rofi</span> -p <span class="org-string">"filename"</span> -dmenu -lines <span class="org-highlight-numbers-number">1</span><span class="org-rainbow-delimiters-depth-1">)</span>
2020-11-03 16:27:09 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -n <span class="org-string">"filename"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-type">cd</span> ~/Pictures/ &amp;&amp; <span class="org-sh-escaped-newline">\</span>
2022-05-09 10:05:23 +02:00
firefox -P default -headless --screenshot <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">filename</span></span><span class="org-string">.png"</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">QUTE_URL</span></span><span class="org-string">"</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
notify-send <span class="org-string">"Screenshot"</span> <span class="org-string">"Taken successfully"</span>
2021-01-08 01:43:48 +01:00
<span class="org-keyword">fi</span>
2020-11-03 16:27:09 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org97b8e49" class="outline-3">
<h3 id="org97b8e49">Save to PDF</h3>
<div class="outline-text-3" id="text-org97b8e49">
2020-11-03 16:27:09 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-bash"><span class="org-variable-name">filename</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">rofi</span> -p <span class="org-string">"filename"</span> -dmenu -lines <span class="org-highlight-numbers-number">1</span><span class="org-rainbow-delimiters-depth-1">)</span>
2020-11-03 16:27:09 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -n <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">filename</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-type">cd</span> ~/Pictures/ &amp;&amp; <span class="org-sh-escaped-newline">\</span>
percollate pdf --css <span class="org-string">"@page { size: A4 portrait }"</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">filename</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">QUTE_URL</span></span><span class="org-string">"</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
2022-05-09 10:05:23 +02:00
notify-send <span class="org-string">"Percollate"</span> <span class="org-string">"Successfully saved to pdf"</span>
2021-01-08 01:43:48 +01:00
<span class="org-keyword">fi</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-orged5f886" class="outline-3">
<h3 id="orged5f886">Get OTP number</h3>
<div class="outline-text-3" id="text-orged5f886">
2021-10-25 14:37:10 +02:00
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">passname</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">ls</span> ~/.password-store/totp-* | xargs -n <span class="org-highlight-numbers-number">1</span> basename | sed -e <span class="org-string">'s/\..*$//'</span> | rofi -p <span class="org-string">"TOPT"</span> -dmenu<span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -n <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">passname</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
pass otp $<span class="org-variable-name">passname</span> | xsel -ib &amp;&amp; <span class="org-sh-escaped-newline">\</span>
2022-05-09 10:05:23 +02:00
notify-send <span class="org-string">'OTP'</span> <span class="org-string">'copied to clipboard.'</span> &amp;
2021-10-25 14:37:10 +02:00
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org6fe8d72" class="outline-3">
<h3 id="org6fe8d72">Download AES video</h3>
<div class="outline-text-3" id="text-org6fe8d72">
2021-01-01 20:12:34 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-bash"><span class="org-variable-name">m3u8_path</span>=<span class="org-sh-quoted-exec">`</span><span class="org-type"><span class="org-sh-quoted-exec">curl</span></span><span class="org-sh-quoted-exec"> -L -s "$QUTE_URL" | pcregrep -o1 "file = \"\/(.*aes.*mp4)\""`</span>
2021-01-01 20:12:34 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">m3u8_path</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
2022-05-09 10:05:23 +02:00
notify-send --hint=string:x-dunst-stack-tag:ng4iXDxP --urgency=critical <span class="org-string">"Qutebrowser"</span> <span class="org-string">"No m3u8 playlist found"</span>
2021-01-08 01:43:48 +01:00
<span class="org-keyword">else</span>
2022-05-09 10:05:23 +02:00
notify-send --hint=string:x-dunst-stack-tag:ng4iXDxP <span class="org-string">"Qutebrowser"</span> <span class="org-string">"Downloads..."</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
2021-01-08 01:43:48 +01:00
<span class="org-type">cd</span> ~/Downloads/ &amp;&amp; <span class="org-sh-escaped-newline">\</span>
ffmpeg -user_agent <span class="org-string">"Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0"</span> -referer <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_URL</span></span><span class="org-string">"</span> -i <span class="org-string">"https://cdn2.digitellinc.com/play/_definst_/mp4:</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">m3u8_path</span></span><span class="org-string">/playlist.m3u8"</span> -c copy <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_TITLE</span></span><span class="org-string">.mp4"</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
2022-05-09 10:05:23 +02:00
notify-send --hint=string:x-dunst-stack-tag:ng4iXDxP <span class="org-string">"Qutebrowser"</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">QUTE_TITLE</span></span><span class="org-string"> Downloaded"</span>
2021-01-08 01:43:48 +01:00
<span class="org-keyword">fi</span>
2021-01-01 20:12:34 +01:00
</pre>
</div>
</div>
</div>
2021-10-25 14:37:10 +02:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-org4c66329" class="outline-3">
<h3 id="org4c66329">Display URL as a QRcode</h3>
<div class="outline-text-3" id="text-org4c66329">
2021-10-25 14:37:10 +02:00
<div class="org-src-container">
<pre class="src src-bash">qrencode -o /tmp/qrcode.png <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> &amp;&amp; sxiv /tmp/qrcode.png
</pre>
</div>
</div>
</div>
2020-01-11 22:04:45 +01:00
</div>
</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:05</p>
2020-01-11 22:04:45 +01:00
</div>
</body>
</html>