Update HTML
This commit is contained in:
parent
9f37a18198
commit
705815c64b
114
docs/alacritty.html
Normal file
114
docs/alacritty.html
Normal file
@ -0,0 +1,114 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
|
<head>
|
||||||
|
<!-- 2021-06-20 dim. 14:22 -->
|
||||||
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
|
<title>Alacritty Configuration</title>
|
||||||
|
<meta name="author" content="Dehaeze Thomas" />
|
||||||
|
<meta name="generator" content="Org Mode" />
|
||||||
|
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||||
|
<script type="text/javascript" src="./dist/script.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="org-div-home-and-up">
|
||||||
|
<a accesskey="h" href="./index.html"> UP </a>
|
||||||
|
|
|
||||||
|
<a accesskey="H" href="./index.html"> HOME </a>
|
||||||
|
</div><div id="content">
|
||||||
|
<h1 class="title">Alacritty Configuration</h1>
|
||||||
|
<div id="table-of-contents">
|
||||||
|
<h2>Table of Contents</h2>
|
||||||
|
<div id="text-table-of-contents">
|
||||||
|
<ul>
|
||||||
|
<li><a href="#orgacd2147">Fonts</a></li>
|
||||||
|
<li><a href="#org7f71f2d">Colors</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-orgacd2147" class="outline-2">
|
||||||
|
<h2 id="orgacd2147">Fonts</h2>
|
||||||
|
<div class="outline-text-2" id="text-orgacd2147">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-yaml"><span class="org-variable-name">font</span>:
|
||||||
|
<span class="org-variable-name">normal</span>:
|
||||||
|
<span class="org-variable-name">family</span>: Hack Nerd Font Mono
|
||||||
|
<span class="org-variable-name">style</span>: Regular
|
||||||
|
|
||||||
|
<span class="org-variable-name">bold</span>:
|
||||||
|
<span class="org-variable-name">family</span>: Hack Nerd Font Mono
|
||||||
|
<span class="org-variable-name">style</span>: Bold
|
||||||
|
|
||||||
|
<span class="org-variable-name">italic</span>:
|
||||||
|
<span class="org-variable-name">family</span>: Hack Nerd Font Mono
|
||||||
|
<span class="org-variable-name">style</span>: Italic
|
||||||
|
|
||||||
|
<span class="org-variable-name">bold_italic</span>:
|
||||||
|
<span class="org-variable-name">family</span>: Hack Nerd Font Mono
|
||||||
|
<span class="org-variable-name">style</span>: Bold Italic
|
||||||
|
|
||||||
|
<span class="org-variable-name">size</span>: 10.0
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org7f71f2d" class="outline-2">
|
||||||
|
<h2 id="org7f71f2d">Colors</h2>
|
||||||
|
<div class="outline-text-2" id="text-org7f71f2d">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-yaml"><span class="org-variable-name">colors</span>:
|
||||||
|
<span class="org-variable-name">primary</span>:
|
||||||
|
<span class="org-variable-name">background</span>: <span class="org-function-name">&gruvbox_dark_bg</span> <span class="org-string">'#32302f'</span>
|
||||||
|
<span class="org-variable-name">foreground</span>: <span class="org-string">'#fbf1c7'</span>
|
||||||
|
<span class="org-variable-name">bright_foreground</span>: <span class="org-string">'#f9f5d7'</span>
|
||||||
|
<span class="org-variable-name">dim_foreground</span>: <span class="org-string">'#f2e5bc'</span>
|
||||||
|
<span class="org-variable-name">cursor</span>:
|
||||||
|
<span class="org-variable-name">text</span>: CellBackground
|
||||||
|
<span class="org-variable-name">cursor</span>: CellForeground
|
||||||
|
<span class="org-variable-name">vi_mode_cursor</span>:
|
||||||
|
<span class="org-variable-name">text</span>: CellBackground
|
||||||
|
<span class="org-variable-name">cursor</span>: CellForeground
|
||||||
|
<span class="org-variable-name">selection</span>:
|
||||||
|
<span class="org-variable-name">text</span>: CellBackground
|
||||||
|
<span class="org-variable-name">background</span>: CellForeground
|
||||||
|
<span class="org-variable-name">bright</span>:
|
||||||
|
<span class="org-variable-name">black</span>: <span class="org-string">'#928374'</span>
|
||||||
|
<span class="org-variable-name">red</span>: <span class="org-string">'#fb4934'</span>
|
||||||
|
<span class="org-variable-name">green</span>: <span class="org-string">'#b8bb26'</span>
|
||||||
|
<span class="org-variable-name">yellow</span>: <span class="org-string">'#fabd2f'</span>
|
||||||
|
<span class="org-variable-name">blue</span>: <span class="org-string">'#83a598'</span>
|
||||||
|
<span class="org-variable-name">magenta</span>: <span class="org-string">'#d3869b'</span>
|
||||||
|
<span class="org-variable-name">cyan</span>: <span class="org-string">'#8ec07c'</span>
|
||||||
|
<span class="org-variable-name">white</span>: <span class="org-string">'#ebdbb2'</span>
|
||||||
|
<span class="org-variable-name">normal</span>:
|
||||||
|
<span class="org-variable-name">black</span>: <span class="org-function-name">*gruvbox_dark_bg</span>
|
||||||
|
<span class="org-variable-name">red</span>: <span class="org-string">'#cc241d'</span>
|
||||||
|
<span class="org-variable-name">green</span>: <span class="org-string">'#98971a'</span>
|
||||||
|
<span class="org-variable-name">yellow</span>: <span class="org-string">'#d79921'</span>
|
||||||
|
<span class="org-variable-name">blue</span>: <span class="org-string">'#458588'</span>
|
||||||
|
<span class="org-variable-name">magenta</span>: <span class="org-string">'#b16286'</span>
|
||||||
|
<span class="org-variable-name">cyan</span>: <span class="org-string">'#689d6a'</span>
|
||||||
|
<span class="org-variable-name">white</span>: <span class="org-string">'#a89984'</span>
|
||||||
|
<span class="org-variable-name">dim</span>:
|
||||||
|
<span class="org-variable-name">black</span>: <span class="org-string">'#32302f'</span>
|
||||||
|
<span class="org-variable-name">red</span>: <span class="org-string">'#9d0006'</span>
|
||||||
|
<span class="org-variable-name">green</span>: <span class="org-string">'#79740e'</span>
|
||||||
|
<span class="org-variable-name">yellow</span>: <span class="org-string">'#b57614'</span>
|
||||||
|
<span class="org-variable-name">blue</span>: <span class="org-string">'#076678'</span>
|
||||||
|
<span class="org-variable-name">magenta</span>: <span class="org-string">'#8f3f71'</span>
|
||||||
|
<span class="org-variable-name">cyan</span>: <span class="org-string">'#427b58'</span>
|
||||||
|
<span class="org-variable-name">white</span>: <span class="org-string">'#928374'</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="postamble" class="status">
|
||||||
|
<p class="author">Author: Dehaeze Thomas</p>
|
||||||
|
<p class="date">Created: 2021-06-20 dim. 14:22</p>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2021-05-02 dim. 11:26 -->
|
<!-- 2021-06-20 dim. 14:21 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<title>Android Phone</title>
|
<title>Android Phone</title>
|
||||||
<meta name="author" content="Dehaeze Thomas" />
|
<meta name="author" content="Dehaeze Thomas" />
|
||||||
@ -33,6 +33,7 @@
|
|||||||
<li><a href="#org41948b1">Favorite Apps</a></li>
|
<li><a href="#org41948b1">Favorite Apps</a></li>
|
||||||
<li><a href="#orgb68380c">Tutorials</a>
|
<li><a href="#orgb68380c">Tutorials</a>
|
||||||
<ul>
|
<ul>
|
||||||
|
<li><a href="#org246c824">Backup</a></li>
|
||||||
<li><a href="#org895b996">Connect to the phone by SSH</a></li>
|
<li><a href="#org895b996">Connect to the phone by SSH</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
@ -472,6 +473,23 @@ Tutorial: <a href="https://www.youtube.com/watch?v=3pxOeiIBrHI">https://www.yout
|
|||||||
<h2 id="orgb68380c">Tutorials</h2>
|
<h2 id="orgb68380c">Tutorials</h2>
|
||||||
<div class="outline-text-2" id="text-orgb68380c">
|
<div class="outline-text-2" id="text-orgb68380c">
|
||||||
</div>
|
</div>
|
||||||
|
<div id="outline-container-org246c824" class="outline-3">
|
||||||
|
<h3 id="org246c824">Backup</h3>
|
||||||
|
<div class="outline-text-3" id="text-org246c824">
|
||||||
|
<p>
|
||||||
|
I use <code>adb backup</code> to backup the phone (<a href="https://forum.xda-developers.com/t/guide-full-phone-backup-without-unlock-or-root.1420351/">guide</a>).
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Basically, I have to run:
|
||||||
|
</p>
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bach">adb backup -apk -shared -all -f ~/Cloud/android/backup/backup_$(date +"%Y_%m_%d").ab
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org895b996" class="outline-3">
|
<div id="outline-container-org895b996" class="outline-3">
|
||||||
<h3 id="org895b996">Connect to the phone by SSH</h3>
|
<h3 id="org895b996">Connect to the phone by SSH</h3>
|
||||||
<div class="outline-text-3" id="text-org895b996">
|
<div class="outline-text-3" id="text-org895b996">
|
||||||
@ -488,7 +506,7 @@ An other option would be to use Wireguard and shen to <code>ssh</code>.
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: Dehaeze Thomas</p>
|
<p class="author">Author: Dehaeze Thomas</p>
|
||||||
<p class="date">Created: 2021-05-02 dim. 11:26</p>
|
<p class="date">Created: 2021-06-20 dim. 14:21</p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -3,11 +3,11 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2021-01-08 ven. 01:40 -->
|
<!-- 2021-10-25 lun. 14:33 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<title>Bash Configuration</title>
|
<title>Bash Configuration</title>
|
||||||
<meta name="generator" content="Org mode" />
|
|
||||||
<meta name="author" content="Dehaeze Thomas" />
|
<meta name="author" content="Dehaeze Thomas" />
|
||||||
|
<meta name="generator" content="Org Mode" />
|
||||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||||
<script type="text/javascript" src="./dist/script.js"></script>
|
<script type="text/javascript" src="./dist/script.js"></script>
|
||||||
</head>
|
</head>
|
||||||
@ -16,11 +16,11 @@
|
|||||||
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="h" href="./index.html"> UP </a>
|
||||||
|
|
|
|
||||||
<a accesskey="H" href="./index.html"> HOME </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
|
||||||
</div><div id="content">
|
</div><div id="content" class="content">
|
||||||
<h1 class="title">Bash Configuration</h1>
|
<h1 class="title">Bash Configuration</h1>
|
||||||
<div id="table-of-contents">
|
<div id="table-of-contents" role="doc-toc">
|
||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents" role="doc-toc">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#bashrc"><code>~/.bashrc</code></a>
|
<li><a href="#bashrc"><code>~/.bashrc</code></a>
|
||||||
<ul>
|
<ul>
|
||||||
@ -63,13 +63,12 @@
|
|||||||
<li><a href="#org10b40b3">Export some default applications</a></li>
|
<li><a href="#org10b40b3">Export some default applications</a></li>
|
||||||
<li><a href="#orgf65a830">Exports</a>
|
<li><a href="#orgf65a830">Exports</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org64e2de8">Term</a></li>
|
|
||||||
<li><a href="#org0fa2d26">XDG Default</a></li>
|
<li><a href="#org0fa2d26">XDG Default</a></li>
|
||||||
<li><a href="#org51055fb">Use Ripgrep for FZF</a></li>
|
<li><a href="#org51055fb">Use Ripgrep for FZF</a></li>
|
||||||
<li><a href="#org08d14fc">Goland</a></li>
|
<li><a href="#org08d14fc">Goland</a></li>
|
||||||
<li><a href="#org18f49cf">Latex Path</a></li>
|
<li><a href="#org18f49cf">Latex Path</a></li>
|
||||||
<li><a href="#org992e4cf">Bitwarden Session</a></li>
|
|
||||||
<li><a href="#org6bdbd18">Python Path</a></li>
|
<li><a href="#org6bdbd18">Python Path</a></li>
|
||||||
|
<li><a href="#org2895615">Linkding</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org8a10d32">Path</a></li>
|
<li><a href="#org8a10d32">Path</a></li>
|
||||||
@ -496,7 +495,7 @@ Enable the keyring for applications run through the terminal
|
|||||||
<div class="outline-text-3" id="text-org10b40b3">
|
<div class="outline-text-3" id="text-org10b40b3">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">EDITOR</span>=<span class="org-string">"nvim"</span>
|
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">EDITOR</span>=<span class="org-string">"nvim"</span>
|
||||||
<span class="org-builtin">export</span> <span class="org-variable-name">TERMINAL</span>=<span class="org-string">"termite"</span>
|
<span class="org-builtin">export</span> <span class="org-variable-name">TERMINAL</span>=<span class="org-string">"alacritty"</span>
|
||||||
<span class="org-builtin">export</span> <span class="org-variable-name">BROWSER</span>=<span class="org-string">"qutebrowser"</span>
|
<span class="org-builtin">export</span> <span class="org-variable-name">BROWSER</span>=<span class="org-string">"qutebrowser"</span>
|
||||||
<span class="org-builtin">export</span> <span class="org-variable-name">READER</span>=<span class="org-string">"zathura"</span>
|
<span class="org-builtin">export</span> <span class="org-variable-name">READER</span>=<span class="org-string">"zathura"</span>
|
||||||
<span class="org-builtin">export</span> <span class="org-variable-name">FILE</span>=<span class="org-string">"ranger"</span>
|
<span class="org-builtin">export</span> <span class="org-variable-name">FILE</span>=<span class="org-string">"ranger"</span>
|
||||||
@ -509,19 +508,6 @@ Enable the keyring for applications run through the terminal
|
|||||||
<h3 id="orgf65a830">Exports</h3>
|
<h3 id="orgf65a830">Exports</h3>
|
||||||
<div class="outline-text-3" id="text-orgf65a830">
|
<div class="outline-text-3" id="text-orgf65a830">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org64e2de8" class="outline-4">
|
|
||||||
<h4 id="org64e2de8">Term</h4>
|
|
||||||
<div class="outline-text-4" id="text-org64e2de8">
|
|
||||||
<p>
|
|
||||||
This is important for termite to work when sshing in remote machines.
|
|
||||||
</p>
|
|
||||||
<div class="org-src-container">
|
|
||||||
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">TERM</span>=xterm-color
|
|
||||||
</pre>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="outline-container-org0fa2d26" class="outline-4">
|
<div id="outline-container-org0fa2d26" class="outline-4">
|
||||||
<h4 id="org0fa2d26">XDG Default</h4>
|
<h4 id="org0fa2d26">XDG Default</h4>
|
||||||
<div class="outline-text-4" id="text-org0fa2d26">
|
<div class="outline-text-4" id="text-org0fa2d26">
|
||||||
@ -563,16 +549,6 @@ This is important for termite to work when sshing in remote machines.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org992e4cf" class="outline-4">
|
|
||||||
<h4 id="org992e4cf">Bitwarden Session</h4>
|
|
||||||
<div class="outline-text-4" id="text-org992e4cf">
|
|
||||||
<div class="org-src-container">
|
|
||||||
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">BW_SESSION</span>=<span class="org-string">"HH0yycfocRSuGtq/iW1e6v13PQ1sShMXbMhdb/En94S6OcIXFnJlLEyU+dySsmf2YShY4CImoB5FrxgdPsY9Qw=="</span>
|
|
||||||
</pre>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="outline-container-org6bdbd18" class="outline-4">
|
<div id="outline-container-org6bdbd18" class="outline-4">
|
||||||
<h4 id="org6bdbd18">Python Path</h4>
|
<h4 id="org6bdbd18">Python Path</h4>
|
||||||
<div class="outline-text-4" id="text-org6bdbd18">
|
<div class="outline-text-4" id="text-org6bdbd18">
|
||||||
@ -582,6 +558,17 @@ This is important for termite to work when sshing in remote machines.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org2895615" class="outline-4">
|
||||||
|
<h4 id="org2895615">Linkding</h4>
|
||||||
|
<div class="outline-text-4" id="text-org2895615">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">LINKDING_URL</span>=<span class="org-string">"localhost:9090"</span>
|
||||||
|
<span class="org-builtin">export</span> <span class="org-variable-name">LINKDING_TOKEN</span>=<span class="org-sh-quoted-exec">`pass nas/linkding_token`</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org8a10d32" class="outline-3">
|
<div id="outline-container-org8a10d32" class="outline-3">
|
||||||
@ -691,7 +678,7 @@ Don’t echo <code>^C</code> after <code>Ctrl+C</code> is pressed.
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: Dehaeze Thomas</p>
|
<p class="author">Author: Dehaeze Thomas</p>
|
||||||
<p class="date">Created: 2021-01-08 ven. 01:40</p>
|
<p class="date">Created: 2021-10-25 lun. 14:33</p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2021-05-02 dim. 11:26 -->
|
<!-- 2021-10-25 lun. 14:33 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<title>My own specific binaries</title>
|
<title>My own specific binaries</title>
|
||||||
<meta name="author" content="Dehaeze Thomas" />
|
<meta name="author" content="Dehaeze Thomas" />
|
||||||
@ -16,11 +16,11 @@
|
|||||||
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="h" href="./index.html"> UP </a>
|
||||||
|
|
|
|
||||||
<a accesskey="H" href="./index.html"> HOME </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
|
||||||
</div><div id="content">
|
</div><div id="content" class="content">
|
||||||
<h1 class="title">My own specific binaries</h1>
|
<h1 class="title">My own specific binaries</h1>
|
||||||
<div id="table-of-contents">
|
<div id="table-of-contents" role="doc-toc">
|
||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents" role="doc-toc">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#remote-desktop"><code>remote-desktop</code> - Remote Desktop Connect</a></li>
|
<li><a href="#remote-desktop"><code>remote-desktop</code> - Remote Desktop Connect</a></li>
|
||||||
<li><a href="#print-rnice"><code>print-rnice</code> - Print on Rnice</a></li>
|
<li><a href="#print-rnice"><code>print-rnice</code> - Print on Rnice</a></li>
|
||||||
@ -29,7 +29,6 @@
|
|||||||
<li><a href="#torrent-add"><code>torrent-add</code> - Download Torrent</a></li>
|
<li><a href="#torrent-add"><code>torrent-add</code> - Download Torrent</a></li>
|
||||||
<li><a href="#dl-add"><code>dl-add</code> - Direct Download with Aria2</a></li>
|
<li><a href="#dl-add"><code>dl-add</code> - Direct Download with Aria2</a></li>
|
||||||
<li><a href="#note-extract-fig"><code>note-extract-fig</code> - Extract Figure from note file</a></li>
|
<li><a href="#note-extract-fig"><code>note-extract-fig</code> - Extract Figure from note file</a></li>
|
||||||
<li><a href="#share"><code>share</code> - Share file with self-hosted <code>transfer.sh</code></a></li>
|
|
||||||
<li><a href="#screen-select"><code>screen-select</code> - Xrandr pre-defined scripts</a></li>
|
<li><a href="#screen-select"><code>screen-select</code> - Xrandr pre-defined scripts</a></li>
|
||||||
<li><a href="#color-picker"><code>color-picker</code> - Pick color and copy to clipboard</a></li>
|
<li><a href="#color-picker"><code>color-picker</code> - Pick color and copy to clipboard</a></li>
|
||||||
<li><a href="#readbib"><code>readbib</code> - Open Bibliography File</a></li>
|
<li><a href="#readbib"><code>readbib</code> - Open Bibliography File</a></li>
|
||||||
@ -78,9 +77,9 @@ dunstify --replace=<span class="org-highlight-numbers-number">89891</span> <span
|
|||||||
<span class="org-variable-name">media</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">'A4\nA3'</span> | dmenu -p <span class="org-string">'Size:'</span> -l <span class="org-highlight-numbers-number">20</span><span class="org-rainbow-delimiters-depth-1">)</span>;
|
<span class="org-variable-name">media</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">'A4\nA3'</span> | dmenu -p <span class="org-string">'Size:'</span> -l <span class="org-highlight-numbers-number">20</span><span class="org-rainbow-delimiters-depth-1">)</span>;
|
||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">First copy the file to Rnice</span>
|
<span class="org-comment-delimiter"># </span><span class="org-comment">First copy the file to Rnice</span>
|
||||||
<span class="org-keyword">if</span> sshpass -p <span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">pass</span><span class="org-string"><span class="org-sh-quoted-exec"> ssl.esrf.fr/dehaeze | sed -n 1p)</span></span><span class="org-string">"</span> scp $<span class="org-highlight-numbers-number">1</span> dehaeze@rnice:~/Downloads/; <span class="org-keyword">then</span>
|
<span class="org-keyword">if</span> sshpass -p <span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">pass</span><span class="org-string"><span class="org-sh-quoted-exec"> esrf.fr/dehaeze | sed -n 1p)</span></span><span class="org-string">"</span> scp $<span class="org-highlight-numbers-number">1</span> dehaeze@rnice:/home/esrf/dehaeze/Downloads/; <span class="org-keyword">then</span>
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Then print on Rnice</span>
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Then print on Rnice</span>
|
||||||
sshpass -p <span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">pass</span><span class="org-string"><span class="org-sh-quoted-exec"> ssl.esrf.fr/dehaeze | sed -n 1p)</span></span><span class="org-string">"</span> ssh dehaeze@rnice <span class="org-string">"lpr -o media=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">media</span></span><span class="org-string"> -o sides=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">sides</span></span><span class="org-string"> -o number-up=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">nbpage</span></span><span class="org-string"> -P ctb110c1u ~/Downloads/</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>;
|
sshpass -p <span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">pass</span><span class="org-string"><span class="org-sh-quoted-exec"> esrf.fr/dehaeze | sed -n 1p)</span></span><span class="org-string">"</span> ssh dehaeze@rnice <span class="org-string">"lpr -o media=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">media</span></span><span class="org-string"> -o sides=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">sides</span></span><span class="org-string"> -o number-up=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">nbpage</span></span><span class="org-string"> -P ctb127c1w \"/home/esrf/dehaeze/Downloads/</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">Finally, delete the file</span>
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Finally, delete the file</span>
|
||||||
<span class="org-keyword">else</span>
|
<span class="org-keyword">else</span>
|
||||||
<span class="org-type">echo</span> <span class="org-string">"Command Failed"</span>
|
<span class="org-type">echo</span> <span class="org-string">"Command Failed"</span>
|
||||||
@ -126,13 +125,13 @@ As an alternative, <code>sshfs</code> can be used:
|
|||||||
|
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-highlight-numbers-number">1</span> == <span class="org-string">"mount"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-highlight-numbers-number">1</span> == <span class="org-string">"mount"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
||||||
<span class="org-keyword">if</span> mount /home/thomas/mnt/NAS/; <span class="org-keyword">then</span>
|
<span class="org-keyword">if</span> sshfs -o allow_other,default_permissions homelab:/srv/storage/ ~/mnt/NAS; <span class="org-keyword">then</span>
|
||||||
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> <span class="org-string">'NAS '</span> <span class="org-string">'Successfully mounted'</span>
|
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> <span class="org-string">'NAS '</span> <span class="org-string">'Successfully mounted'</span>
|
||||||
<span class="org-keyword">else</span>
|
<span class="org-keyword">else</span>
|
||||||
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> --urgency=critical <span class="org-string">'NAS '</span> <span class="org-string">'Error while mounted'</span>
|
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> --urgency=critical <span class="org-string">'NAS '</span> <span class="org-string">'Error while mounted'</span>
|
||||||
<span class="org-keyword">fi</span>
|
<span class="org-keyword">fi</span>
|
||||||
<span class="org-keyword">elif</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-highlight-numbers-number">1</span> == <span class="org-string">"umount"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
<span class="org-keyword">elif</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-highlight-numbers-number">1</span> == <span class="org-string">"umount"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
||||||
<span class="org-keyword">if</span> umount /home/thomas/mnt/NAS/; <span class="org-keyword">then</span>
|
<span class="org-keyword">if</span> umount ~/mnt/NAS/; <span class="org-keyword">then</span>
|
||||||
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> <span class="org-string">'NAS '</span> <span class="org-string">'Successfully unmounted'</span>
|
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> <span class="org-string">'NAS '</span> <span class="org-string">'Successfully unmounted'</span>
|
||||||
<span class="org-keyword">else</span>
|
<span class="org-keyword">else</span>
|
||||||
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> --urgency=critical <span class="org-string">'NAS '</span> <span class="org-string">'Error while unmounted'</span>
|
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> --urgency=critical <span class="org-string">'NAS '</span> <span class="org-string">'Error while unmounted'</span>
|
||||||
@ -147,7 +146,7 @@ As an alternative, <code>sshfs</code> can be used:
|
|||||||
<h2 id="torrent-add"><code>torrent-add</code> - Download Torrent</h2>
|
<h2 id="torrent-add"><code>torrent-add</code> - Download Torrent</h2>
|
||||||
<div class="outline-text-2" id="text-torrent-add">
|
<div class="outline-text-2" id="text-torrent-add">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash">transmission-remote <<get-password<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-variable-name">passname</span>=<span class="org-string">"ip/grenoble"</span><span class="org-rainbow-delimiters-depth-1">)</span>>>:9091 --auth tdehaeze:$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">pass</span> nas/transmission | sed -n 1p<span class="org-rainbow-delimiters-depth-1">)</span> -a $<span class="org-highlight-numbers-number">1</span> && <span class="org-sh-escaped-newline">\</span>
|
<pre class="src src-bash">transmission-remote <<get-password<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-variable-name">passname</span>=<span class="org-string">"ip/homelab"</span><span class="org-rainbow-delimiters-depth-1">)</span>>>:9091 --auth tdehaeze:$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">pass</span> nas/transmission | sed -n 1p<span class="org-rainbow-delimiters-depth-1">)</span> -a $<span class="org-highlight-numbers-number">1</span> && <span class="org-sh-escaped-newline">\</span>
|
||||||
dunstify <span class="org-string">'Torrent'</span> <span class="org-string">'Successfully added'</span> || <span class="org-sh-escaped-newline">\</span>
|
dunstify <span class="org-string">'Torrent'</span> <span class="org-string">'Successfully added'</span> || <span class="org-sh-escaped-newline">\</span>
|
||||||
dunstify <span class="org-string">'Torrent'</span> <span class="org-string">'Error'</span>
|
dunstify <span class="org-string">'Torrent'</span> <span class="org-string">'Error'</span>
|
||||||
</pre>
|
</pre>
|
||||||
@ -185,46 +184,44 @@ Script used to convert a figure drawn on my Boox note2 to a png file that can th
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-share" class="outline-2">
|
|
||||||
<h2 id="share"><code>share</code> - Share file with self-hosted <code>transfer.sh</code></h2>
|
|
||||||
<div class="outline-text-2" id="text-share">
|
|
||||||
<div class="org-src-container">
|
|
||||||
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-variable-name">TMUX</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
|
||||||
tmux split -v -l <span class="org-highlight-numbers-number">1</span> <span class="org-string">"</span><span class="org-type"><span class="org-string">curl</span></span><span class="org-string"> --progress-bar -F\"file=@</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">\" https://file.tdehaeze.xyz/ | xsel -ib && dunstify 'Upload' 'Successful' || dunstify --urgency=critical 'Upload' 'Failed';"</span> && tmux select-pane -U
|
|
||||||
<span class="org-keyword">else</span>
|
|
||||||
<span class="org-type">curl</span> --progress-bar -F<span class="org-string">"file=@</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> https://file.tdehaeze.xyz/ | xsel -ib && <span class="org-sh-escaped-newline">\</span>
|
|
||||||
dunstify <span class="org-string">'Upload'</span> <span class="org-string">'Successful'</span> || <span class="org-sh-escaped-newline">\</span>
|
|
||||||
dunstify --urgency=critical <span class="org-string">'Upload'</span> <span class="org-string">'Failed'</span>
|
|
||||||
<span class="org-keyword">fi</span>
|
|
||||||
</pre>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="outline-container-screen-select" class="outline-2">
|
<div id="outline-container-screen-select" class="outline-2">
|
||||||
<h2 id="screen-select"><code>screen-select</code> - Xrandr pre-defined scripts</h2>
|
<h2 id="screen-select"><code>screen-select</code> - Xrandr pre-defined scripts</h2>
|
||||||
<div class="outline-text-2" id="text-screen-select">
|
<div class="outline-text-2" id="text-screen-select">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash"><span class="org-variable-name">option</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"Work\nXPS\nHome"</span> | rofi -i -dmenu<span class="org-rainbow-delimiters-depth-1">)</span>
|
<pre class="src src-bash"><span class="org-variable-name">option</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"Work\nXPS\nHome"</span> | rofi -i -dmenu<span class="org-rainbow-delimiters-depth-1">)</span>
|
||||||
|
|
||||||
|
<span class="org-function-name">after_screen_change</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">Fix background if screen size/arangement has changed.</span>
|
||||||
|
setbg
|
||||||
|
|
||||||
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Kill polybar</span>
|
||||||
|
killall -q polybar
|
||||||
|
|
||||||
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Wait until the processes have been shut down</span>
|
||||||
|
<span class="org-keyword">while</span> <span class="org-type">pgrep</span> -u $<span class="org-variable-name">UID</span> -x polybar >/dev/null; <span class="org-keyword">do</span> <span class="org-type">sleep</span> <span class="org-highlight-numbers-number">1</span>; <span class="org-keyword">done</span>
|
||||||
|
|
||||||
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Launch bars</span>
|
||||||
|
polybar top &
|
||||||
|
<span class="org-rainbow-delimiters-depth-1">}</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">option</span></span><span class="org-string">"</span><span class="org-keyword"> in</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">option</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
|
||||||
<span class="org-string">"Work"</span>)
|
<span class="org-string">"Work"</span>)
|
||||||
xrandr --output eDP1 --off --output DP1 --off --output DP1-1 --primary --mode 2560x1440 --pos 0x0 --rotate normal --output DP1-2 --off --output DP2 --off --output VIRTUAL1 --off
|
xrandr --output eDP1 --off --output DP1 --off --output DP2 --off --output DP2-1 --off --output VIRTUAL1 --off --output DP2-2 --primary --mode 2560x1440 --pos 0x0 --rotate normal && <span class="org-sh-escaped-newline">\</span>
|
||||||
|
after_screen_change
|
||||||
;;
|
;;
|
||||||
<span class="org-string">"XPS"</span>)
|
<span class="org-string">"XPS"</span>)
|
||||||
xrandr --output eDP1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP1 --off --output DP1-1 --off --output DP1-2 --off --output DP2 --off --output VIRTUAL1 --off
|
xrandr --output DP1 --off --output DP2 --off --output DP2-1 --off --output VIRTUAL1 --off --output DP2-2 --off --output eDP1 --primary --mode 1920x1080 --pos 0x0 --rotate normal && <span class="org-sh-escaped-newline">\</span>
|
||||||
|
after_screen_change
|
||||||
;;
|
;;
|
||||||
<span class="org-string">"Home"</span>)
|
<span class="org-string">"Home"</span>)
|
||||||
xrandr --output eDP1 --off --output DP2-1 --primary --mode 2560x1440 --pos 0x0 --rotate normal --output DP1 --off --output VIRTUAL1 --off
|
xrandr --output eDP1 --off --output DP1 --off --output DP2 --off --output DP2-2 --off --output VIRTUAL1 --off --output DP2-1 --primary --mode 2560x1440 --pos 0x0 --rotate normal && <span class="org-sh-escaped-newline">\</span>
|
||||||
|
after_screen_change
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
<span class="org-type">echo</span> <span class="org-string">"== ! missing or invalid argument ! =="</span>
|
<span class="org-type">echo</span> <span class="org-string">"== ! missing or invalid argument ! =="</span>
|
||||||
<span class="org-keyword">exit</span> <span class="org-highlight-numbers-number">2</span>
|
<span class="org-keyword">exit</span> <span class="org-highlight-numbers-number">2</span>
|
||||||
<span class="org-keyword">esac</span>
|
<span class="org-keyword">esac</span>
|
||||||
|
|
||||||
setbg && <span class="org-string">\ </span> <span class="org-comment-delimiter"># </span><span class="org-comment">Fix background if screen size/arangement has changed.</span>
|
|
||||||
polybar-msg cmd restart <span class="org-comment-delimiter"># </span><span class="org-comment">restart polybar</span>
|
|
||||||
|
|
||||||
<span class="org-keyword">exit</span> <span class="org-highlight-numbers-number">0</span>
|
<span class="org-keyword">exit</span> <span class="org-highlight-numbers-number">0</span>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
@ -263,7 +260,7 @@ List all <code>pdf</code> files and open selected one with zathura.
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash"><span class="org-type">cd</span> ~/Cloud/brain/pdfs/ && <span class="org-type">ls</span> | rofi -dmenu -lines <span class="org-highlight-numbers-number">20</span> | xargs -I <span class="org-rainbow-delimiters-depth-1">{}</span> zathura <span class="org-rainbow-delimiters-depth-1">{}</span>
|
<pre class="src src-bash"><span class="org-type">cd</span> ~/Cloud/brain/pdfs/ && <span class="org-type">ls</span> *.pdf | rofi -dmenu -lines <span class="org-highlight-numbers-number">20</span> | xargs -I <span class="org-rainbow-delimiters-depth-1">{}</span> zathura <span class="org-rainbow-delimiters-depth-1">{}</span>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -271,7 +268,7 @@ List all <code>pdf</code> files and open selected one with zathura.
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: Dehaeze Thomas</p>
|
<p class="author">Author: Dehaeze Thomas</p>
|
||||||
<p class="date">Created: 2021-05-02 dim. 11:26</p>
|
<p class="date">Created: 2021-10-25 lun. 14:33</p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2021-04-25 dim. 19:10 -->
|
<!-- 2021-10-25 lun. 14:33 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<title>Binaries</title>
|
<title>Binaries</title>
|
||||||
<meta name="author" content="Dehaeze Thomas" />
|
<meta name="author" content="Dehaeze Thomas" />
|
||||||
@ -16,11 +16,11 @@
|
|||||||
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="h" href="./index.html"> UP </a>
|
||||||
|
|
|
|
||||||
<a accesskey="H" href="./index.html"> HOME </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
|
||||||
</div><div id="content">
|
</div><div id="content" class="content">
|
||||||
<h1 class="title">Binaries</h1>
|
<h1 class="title">Binaries</h1>
|
||||||
<div id="table-of-contents">
|
<div id="table-of-contents" role="doc-toc">
|
||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents" role="doc-toc">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#dmenumount"><code>dmenumount</code> - Mount USB and Android</a></li>
|
<li><a href="#dmenumount"><code>dmenumount</code> - Mount USB and Android</a></li>
|
||||||
<li><a href="#dmenuumount"><code>dmenuumount</code> - Unmount USB and Android devices</a></li>
|
<li><a href="#dmenuumount"><code>dmenuumount</code> - Unmount USB and Android devices</a></li>
|
||||||
@ -37,14 +37,80 @@
|
|||||||
<li><a href="#setbg"><code>setbg</code> - Set Background</a></li>
|
<li><a href="#setbg"><code>setbg</code> - Set Background</a></li>
|
||||||
<li><a href="#insert-unicode"><code>insert-unicode</code> - Insert Unicode Icon</a></li>
|
<li><a href="#insert-unicode"><code>insert-unicode</code> - Insert Unicode Icon</a></li>
|
||||||
<li><a href="#insert-nerd-fonts"><code>insert-nerd-fonts</code> - Insert Nerd Font Icon</a></li>
|
<li><a href="#insert-nerd-fonts"><code>insert-nerd-fonts</code> - Insert Nerd Font Icon</a></li>
|
||||||
<li><a href="#linkhandler"><code>linkhandler</code> - Open with Default application</a></li>
|
<li><a href="#linkhandler"><code>linkhandler</code> - Open any URL with Default application</a></li>
|
||||||
|
<li><a href="#filehandler"><code>open</code> - Open any file using <code>rifle</code></a></li>
|
||||||
<li><a href="#lockscreen"><code>lockscreen</code> - Lock Screen</a></li>
|
<li><a href="#lockscreen"><code>lockscreen</code> - Lock Screen</a></li>
|
||||||
<li><a href="#mopidy-restart"><code>mopidy-restart</code> - Restart Mopidy</a></li>
|
<li><a href="#mopidy-restart"><code>mopidy-restart</code> - Restart Mopidy</a></li>
|
||||||
<li><a href="#upload"><code>upload</code> - Upload Script</a></li>
|
<li><a href="#upload"><code>upload</code> - Upload Script</a></li>
|
||||||
<li><a href="#weather"><code>weather</code> - Display Weather in terminal</a></li>
|
<li><a href="#weather"><code>weather</code> - Display Weather in terminal</a></li>
|
||||||
<li><a href="#pdf2bib"><code>pdf2bib</code> - Extract bibtex entry from PDF file</a></li>
|
<li><a href="#pdf2bib"><code>pdf2bib</code> - Extract bibtex entry from PDF file</a></li>
|
||||||
<li><a href="#pdf2png"><code>pdf2png</code> - Convert a PDF to PNG</a></li>
|
<li><a href="#pdf2png"><code>pdf2png</code> - Convert a PDF to PNG</a></li>
|
||||||
<li><a href="#convert-file"><code>convert-file</code> - Convert any file to another filetype</a></li>
|
<li><a href="#convert-file"><code>convert-file</code> - Convert any file to another filetype</a>
|
||||||
|
<ul>
|
||||||
|
<li><a href="#org1b30080">Get basic information about the file</a></li>
|
||||||
|
<li><a href="#org3c942d6">SVG files</a>
|
||||||
|
<ul>
|
||||||
|
<li><a href="#org97e362d">SVG to PNG</a></li>
|
||||||
|
<li><a href="#org0e85a36">SVG to PDF</a></li>
|
||||||
|
<li><a href="#org1ba34d0">Main function</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li><a href="#org05c1a0f">PDF files</a>
|
||||||
|
<ul>
|
||||||
|
<li><a href="#org83ee81e">PDF to PNG</a></li>
|
||||||
|
<li><a href="#orga23708b">PDF to SVG</a></li>
|
||||||
|
<li><a href="#org1d12e53">PDF Reduce Size</a></li>
|
||||||
|
<li><a href="#org8772f18">PDF Trim</a></li>
|
||||||
|
<li><a href="#org38ca491">PDF Extract Pages</a></li>
|
||||||
|
<li><a href="#org3008b15">Delete First Page</a></li>
|
||||||
|
<li><a href="#org196a94f">Remove Annotations</a></li>
|
||||||
|
<li><a href="#orgd159cb6">Main function</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li><a href="#orgcbd05fa">DVI files</a>
|
||||||
|
<ul>
|
||||||
|
<li><a href="#org85096d3">DVI to PNG</a></li>
|
||||||
|
<li><a href="#org51dfa18">DVI to SVG</a></li>
|
||||||
|
<li><a href="#orgc8c76c3">Main function</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li><a href="#orgb6c8280">DOCX/PTTX files</a>
|
||||||
|
<ul>
|
||||||
|
<li><a href="#org53914ee">DOC to PDF</a></li>
|
||||||
|
<li><a href="#org36bb433">Main function</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li><a href="#orgcadf8bf">GIF files</a>
|
||||||
|
<ul>
|
||||||
|
<li><a href="#orge9139bf">GIF to PNG</a></li>
|
||||||
|
<li><a href="#orgcc9508e">Main function</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li><a href="#org1d9c757">PNG files</a>
|
||||||
|
<ul>
|
||||||
|
<li><a href="#org7468a4f">PNG to PDF</a></li>
|
||||||
|
<li><a href="#orge629172">PNG to JPG</a></li>
|
||||||
|
<li><a href="#org6358e53">PNG Trim</a></li>
|
||||||
|
<li><a href="#org91c91b7">PNG Resize</a></li>
|
||||||
|
<li><a href="#orgd118f81">Main function</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li><a href="#org70bdad9">JPG files</a>
|
||||||
|
<ul>
|
||||||
|
<li><a href="#org2a197f4">JPG to PDF</a></li>
|
||||||
|
<li><a href="#org18f6058">JPG Resize</a></li>
|
||||||
|
<li><a href="#orge16bd85">Main function</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li><a href="#org7da8026">MP4 files</a>
|
||||||
|
<ul>
|
||||||
|
<li><a href="#org4c00ce2">MP4 to GIF</a></li>
|
||||||
|
<li><a href="#orgac4e160">Main function</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li><a href="#org91dd1cd">Case statement</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
<li><a href="#pdf-shrink"><code>pdf-shrink</code> - Pdf Shrink</a></li>
|
<li><a href="#pdf-shrink"><code>pdf-shrink</code> - Pdf Shrink</a></li>
|
||||||
<li><a href="#pdf-delete-annotations"><code>pdf-delete-annotations</code> - Delete Annotations from PDFs</a></li>
|
<li><a href="#pdf-delete-annotations"><code>pdf-delete-annotations</code> - Delete Annotations from PDFs</a></li>
|
||||||
<li><a href="#pdf-delete-first-page"><code>pdf-delete-first-page</code> - Delete first page of PDF</a></li>
|
<li><a href="#pdf-delete-first-page"><code>pdf-delete-first-page</code> - Delete first page of PDF</a></li>
|
||||||
@ -466,7 +532,7 @@ Script taken from <a href="https://github.com/carnager/buku_run">here</a> that a
|
|||||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-2">[</span><span class="org-rainbow-delimiters-depth-3">[</span> $<span class="org-variable-name">val</span> -eq <span class="org-highlight-numbers-number">1</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">if</span> <span class="org-rainbow-delimiters-depth-2">[</span><span class="org-rainbow-delimiters-depth-3">[</span> $<span class="org-variable-name">val</span> -eq <span class="org-highlight-numbers-number">1</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">exit</span>
|
<span class="org-keyword">exit</span>
|
||||||
<span class="org-keyword">elif</span> <span class="org-rainbow-delimiters-depth-2">[</span><span class="org-rainbow-delimiters-depth-3">[</span> $<span class="org-variable-name">val</span> -eq <span class="org-highlight-numbers-number">0</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">elif</span> <span class="org-rainbow-delimiters-depth-2">[</span><span class="org-rainbow-delimiters-depth-3">[</span> $<span class="org-variable-name">val</span> -eq <span class="org-highlight-numbers-number">0</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">if</span> <span class="org-rainbow-delimiters-depth-2">[</span><span class="org-rainbow-delimiters-depth-3">[</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">{inserttags}</span></span><span class="org-string">"</span> | wc -l<span class="org-rainbow-delimiters-depth-1">)</span> -gt <span class="org-highlight-numbers-number">1</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">if</span> <span class="org-rainbow-delimiters-depth-2">[</span><span class="org-rainbow-delimiters-depth-3">[</span> $<span class="org-rainbow-delimiters-depth-4">(</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">{inserttags}</span></span><span class="org-string">"</span> | wc -l<span class="org-rainbow-delimiters-depth-4">)</span> -gt <span class="org-highlight-numbers-number">1</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-variable-name">taglist</span>=$<span class="org-rainbow-delimiters-depth-2">(</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">{inserttags}</span></span><span class="org-string">"</span> | tr <span class="org-string">'\n'</span> <span class="org-string">','</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
<span class="org-variable-name">taglist</span>=$<span class="org-rainbow-delimiters-depth-2">(</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">{inserttags}</span></span><span class="org-string">"</span> | tr <span class="org-string">'\n'</span> <span class="org-string">','</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||||
<span class="org-variable-name">tags</span>=<span class="org-rainbow-delimiters-depth-2">()</span>
|
<span class="org-variable-name">tags</span>=<span class="org-rainbow-delimiters-depth-2">()</span>
|
||||||
<span class="org-keyword">for</span> tag<span class="org-keyword"> in</span> $<span class="org-variable-name">taglist</span>; <span class="org-keyword">do</span>
|
<span class="org-keyword">for</span> tag<span class="org-keyword"> in</span> $<span class="org-variable-name">taglist</span>; <span class="org-keyword">do</span>
|
||||||
@ -831,33 +897,50 @@ xsel -h <span class="org-highlight-numbers-number">2</span>>/dev/null || <spa
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-linkhandler" class="outline-2">
|
<div id="outline-container-linkhandler" class="outline-2">
|
||||||
<h2 id="linkhandler"><code>linkhandler</code> - Open with Default application</h2>
|
<h2 id="linkhandler"><code>linkhandler</code> - Open any URL with Default application</h2>
|
||||||
<div class="outline-text-2" id="text-linkhandler">
|
<div class="outline-text-2" id="text-linkhandler">
|
||||||
<p>
|
<p>
|
||||||
Inspired from <code>linkhandler</code> script (<a href="https://github.com/LukeSmithxyz/voidrice/">github</a>).
|
Inspired from <code>linkhandler</code> script (<a href="https://github.com/LukeSmithxyz/voidrice/">github</a>).
|
||||||
This is used to open any type of file with the wanted program.
|
This is used to open any <b>url</b> with the wanted program.
|
||||||
It can be used in <code>newsboat</code>, <code>neomutt</code> and <code>ranger</code> for instance.
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash"><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">1</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</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">BROWSER</span></span><span class="org-string">"</span>; <span class="org-keyword">exit</span>; <span class="org-rainbow-delimiters-depth-1">}</span>
|
<pre class="src src-bash"><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">1</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</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">BROWSER</span></span><span class="org-string">"</span>; <span class="org-keyword">exit</span>; <span class="org-rainbow-delimiters-depth-1">}</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>
|
<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>
|
||||||
*mkv|*webm|*mp4|*youtube.com/watch*|*youtube.com/playlist*|*youtu.be*)
|
*mkv|*webm|*mp4|*youtube.com/watch*|*youtube.com/playlist*|*youtu.be*|*gif)
|
||||||
setsid mpv --input-ipc-server=/tmp/mpvsoc$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">date</span> +%s<span class="org-rainbow-delimiters-depth-1">)</span> -quiet <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> >/dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span> & ;;
|
setsid mpv -quiet <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> >/dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span> & ;;
|
||||||
*png|*jpg|*jpe|*jpeg|*gif)
|
*png|*jpg|*jpe|*jpeg)
|
||||||
<span class="org-type">curl</span> -sL <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">"/tmp/</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">echo</span><span class="org-string"><span class="org-sh-quoted-exec"> "</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">1</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">" | sed "s/.*\///")</span></span><span class="org-string">"</span> && sxiv -a <span class="org-string">"/tmp/</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">echo</span><span class="org-string"><span class="org-sh-quoted-exec"> "</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">1</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">" | sed "s/.*\///")</span></span><span class="org-string">"</span> >/dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span> & ;;
|
<span class="org-type">curl</span> -sL <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">"/tmp/</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">echo</span><span class="org-string"><span class="org-sh-quoted-exec"> "</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">1</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">" | sed "s/.*\///;s/%20/ /g")</span></span><span class="org-string">"</span> && sxiv -a <span class="org-string">"/tmp/</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">echo</span><span class="org-string"><span class="org-sh-quoted-exec"> "</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">1</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">" | sed "s/.*\///;s/%20/ /g")</span></span><span class="org-string">"</span> >/dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span> & ;;
|
||||||
|
*pdf|*cbz|*cbr)
|
||||||
|
<span class="org-type">curl</span> -sL <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">"/tmp/</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">echo</span><span class="org-string"><span class="org-sh-quoted-exec"> "</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">1</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">" | sed "s/.*\///;s/%20/ /g")</span></span><span class="org-string">"</span> && zathura <span class="org-string">"/tmp/</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">echo</span><span class="org-string"><span class="org-sh-quoted-exec"> "</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">1</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">" | sed "s/.*\///;s/%20/ /g")</span></span><span class="org-string">"</span> >/dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span> & ;;
|
||||||
|
*svg)
|
||||||
|
<span class="org-type">curl</span> -sL <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">"/tmp/</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">echo</span><span class="org-string"><span class="org-sh-quoted-exec"> "</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">1</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">" | sed "s/.*\///;s/%20/ /g")</span></span><span class="org-string">"</span> && inkview <span class="org-string">"/tmp/</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">echo</span><span class="org-string"><span class="org-sh-quoted-exec"> "</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">1</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">" | sed "s/.*\///;s/%20/ /g")</span></span><span class="org-string">"</span> >/dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span> & ;;
|
||||||
*mp3|*flac|*opus|*mp3?source*)
|
*mp3|*flac|*opus|*mp3?source*)
|
||||||
setsid <span class="org-type">curl</span> -LO <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> >/dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span> & ;;
|
setsid <span class="org-type">curl</span> -LO <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> >/dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span> & ;;
|
||||||
*)
|
*)
|
||||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -f <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-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</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">TERMINAL</span></span><span class="org-string">"</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">EDITOR</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">1</span></span><span class="org-string">"</span>
|
<span class="org-rainbow-delimiters-depth-1">[</span> -f <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-rainbow-delimiters-depth-1">]</span> && setsid -f <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">TERMINAL</span></span><span class="org-string">"</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">EDITOR</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">1</span></span><span class="org-string">"</span> >/dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span> || setsid -f <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">BROWSER</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">1</span></span><span class="org-string">"</span> >/dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span>
|
||||||
<span class="org-keyword">else</span> setsid $<span class="org-variable-name">BROWSER</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> >/dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span> & <span class="org-keyword">fi</span> ;;
|
|
||||||
<span class="org-keyword">esac</span>
|
<span class="org-keyword">esac</span>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-filehandler" class="outline-2">
|
||||||
|
<h2 id="filehandler"><code>open</code> - Open any file using <code>rifle</code></h2>
|
||||||
|
<div class="outline-text-2" id="text-filehandler">
|
||||||
|
<p>
|
||||||
|
Simple alternative to <code>xdg-open</code>, uses the <code>rifle</code> program included with <code>ranger</code>.
|
||||||
|
The default applications are listed <a href="ranger.html#rifle">here</a>.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash">rifle -p $<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">rifle</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">1</span></span><span class="org-string">"</span> | rofi -dmenu -i | sed -n -e <span class="org-string">'s/\([0-9]*\):.*/\1/p'</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">1</span></span><span class="org-string">"</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-lockscreen" class="outline-2">
|
<div id="outline-container-lockscreen" class="outline-2">
|
||||||
<h2 id="lockscreen"><code>lockscreen</code> - Lock Screen</h2>
|
<h2 id="lockscreen"><code>lockscreen</code> - Lock Screen</h2>
|
||||||
<div class="outline-text-2" id="text-lockscreen">
|
<div class="outline-text-2" id="text-lockscreen">
|
||||||
@ -1023,6 +1106,11 @@ Get the weather from <a href="http://wttr.in/">http://wttr.in/</a>.
|
|||||||
<div id="outline-container-convert-file" class="outline-2">
|
<div id="outline-container-convert-file" class="outline-2">
|
||||||
<h2 id="convert-file"><code>convert-file</code> - Convert any file to another filetype</h2>
|
<h2 id="convert-file"><code>convert-file</code> - Convert any file to another filetype</h2>
|
||||||
<div class="outline-text-2" id="text-convert-file">
|
<div class="outline-text-2" id="text-convert-file">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org1b30080" class="outline-3">
|
||||||
|
<h3 id="org1b30080">Get basic information about the file</h3>
|
||||||
|
<div class="outline-text-3" id="text-org1b30080">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Get filename</span>
|
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Get filename</span>
|
||||||
<span class="org-variable-name">filename_with_extension</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">basename</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-rainbow-delimiters-depth-1">)</span>
|
<span class="org-variable-name">filename_with_extension</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">basename</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-rainbow-delimiters-depth-1">)</span>
|
||||||
@ -1030,8 +1118,55 @@ Get the weather from <a href="http://wttr.in/">http://wttr.in/</a>.
|
|||||||
<span class="org-variable-name">in_ext</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">{filename_with_extension##*.}</span></span><span class="org-string">"</span>
|
<span class="org-variable-name">in_ext</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">{filename_with_extension##*.}</span></span><span class="org-string">"</span>
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">filename without extension</span>
|
<span class="org-comment-delimiter"># </span><span class="org-comment">filename without extension</span>
|
||||||
<span class="org-variable-name">filename_without_extension</span>=$<span class="org-rainbow-delimiters-depth-1">{</span><span class="org-variable-name">filename_with_extension</span>%.*<span class="org-rainbow-delimiters-depth-1">}</span>
|
<span class="org-variable-name">filename_without_extension</span>=$<span class="org-rainbow-delimiters-depth-1">{</span><span class="org-variable-name">filename_with_extension</span>%.*<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Convert SVG Files</span>
|
<div id="outline-container-org3c942d6" class="outline-3">
|
||||||
|
<h3 id="org3c942d6">SVG files</h3>
|
||||||
|
<div class="outline-text-3" id="text-org3c942d6">
|
||||||
|
<p>
|
||||||
|
List of useful programs:
|
||||||
|
</p>
|
||||||
|
<ul class="org-ul">
|
||||||
|
<li><code>inkscape</code></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org97e362d" class="outline-4">
|
||||||
|
<h4 id="org97e362d">SVG to PNG</h4>
|
||||||
|
<div class="outline-text-4" id="text-org97e362d">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-function-name">svg2png_function</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||||
|
<span class="org-keyword">if </span><span class="org-builtin">command</span> -v inkscape &> /dev/null; <span class="org-keyword">then</span>
|
||||||
|
inkscape --export-type=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">out_ext</span></span><span class="org-string">"</span> --export-dpi=<span class="org-highlight-numbers-number">200</span> --export-area-drawing <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_with_extension</span></span><span class="org-string">"</span>
|
||||||
|
<span class="org-keyword">fi</span>
|
||||||
|
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org0e85a36" class="outline-4">
|
||||||
|
<h4 id="org0e85a36">SVG to PDF</h4>
|
||||||
|
<div class="outline-text-4" id="text-org0e85a36">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-function-name">svg2pdf_function</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||||
|
<span class="org-keyword">if </span><span class="org-builtin">command</span> -v inkscape &> /dev/null; <span class="org-keyword">then</span>
|
||||||
|
inkscape --export-type=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">out_ext</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">filename_with_extension</span></span><span class="org-string">"</span>
|
||||||
|
<span class="org-keyword">fi</span>
|
||||||
|
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org1ba34d0" class="outline-4">
|
||||||
|
<h4 id="org1ba34d0">Main function</h4>
|
||||||
|
<div class="outline-text-4" id="text-org1ba34d0">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Convert SVG Files</span>
|
||||||
<span class="org-function-name">svg2</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
<span class="org-function-name">svg2</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||||
<span class="org-variable-name">out_ext</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"pdf\npng"</span> | rofi -i -dmenu -p <span class="org-string">"Convert SVG to"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
<span class="org-variable-name">out_ext</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"pdf\npng"</span> | rofi -i -dmenu -p <span class="org-string">"Convert SVG to"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||||
|
|
||||||
@ -1041,37 +1176,306 @@ Get the weather from <a href="http://wttr.in/">http://wttr.in/</a>.
|
|||||||
|
|
||||||
<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">out_ext</span></span><span class="org-string">"</span><span class="org-keyword"> in</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">out_ext</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
|
||||||
<span class="org-string">"png"</span>)
|
<span class="org-string">"png"</span>)
|
||||||
inkscape --export-type=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">out_ext</span></span><span class="org-string">"</span> --export-dpi=<span class="org-highlight-numbers-number">200</span> --export-area-drawing <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_with_extension</span></span><span class="org-string">"</span>
|
svg2png_function
|
||||||
;;
|
;;
|
||||||
<span class="org-string">"pdf"</span>)
|
<span class="org-string">"pdf"</span>)
|
||||||
inkscape --export-type=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">out_ext</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">filename_with_extension</span></span><span class="org-string">"</span>
|
svg2pdf_function
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">pdf2svg file.pdf file.svg</span>
|
|
||||||
;;
|
;;
|
||||||
<span class="org-keyword">esac</span>
|
<span class="org-keyword">esac</span>
|
||||||
<span class="org-rainbow-delimiters-depth-1">}</span>
|
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Convert PDF Files</span>
|
<div id="outline-container-org05c1a0f" class="outline-3">
|
||||||
|
<h3 id="org05c1a0f">PDF files</h3>
|
||||||
|
<div class="outline-text-3" id="text-org05c1a0f">
|
||||||
|
<p>
|
||||||
|
List of useful programs:
|
||||||
|
</p>
|
||||||
|
<ul class="org-ul">
|
||||||
|
<li><code>pdftocairo</code></li>
|
||||||
|
<li><code>pdftoppm</code></li>
|
||||||
|
<li><code>convert</code></li>
|
||||||
|
<li><code>inkscape</code></li>
|
||||||
|
<li><code>gs</code></li>
|
||||||
|
<li><code>pdfcrop</code></li>
|
||||||
|
<li><code>pdftk</code></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org83ee81e" class="outline-4">
|
||||||
|
<h4 id="org83ee81e">PDF to PNG</h4>
|
||||||
|
<div class="outline-text-4" id="text-org83ee81e">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-function-name">pdf2png_function</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||||
|
<span class="org-keyword">if </span><span class="org-builtin">command</span> -v pdftocairo &> /dev/null; <span class="org-keyword">then</span>
|
||||||
|
pdftocairo -png -singlefile -cropbox <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_with_extension</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">filename_without_extension</span></span><span class="org-string">"</span>
|
||||||
|
<span class="org-keyword">elif </span><span class="org-builtin">command</span> -v pdftoppm &> /dev/null; <span class="org-keyword">then</span>
|
||||||
|
pdftoppm -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">filename_with_extension</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">filename_without_extension</span></span><span class="org-string">.png"</span>
|
||||||
|
<span class="org-keyword">elif </span><span class="org-builtin">command</span> -v convert &> /dev/null; <span class="org-keyword">then</span>
|
||||||
|
convert -density <span class="org-highlight-numbers-number">100</span> -trim -antialias <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_with_extension</span></span><span class="org-string">"</span> -quality <span class="org-highlight-numbers-number">100</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">filename_without_extension</span></span><span class="org-string">.png"</span>
|
||||||
|
<span class="org-keyword">elif </span><span class="org-builtin">command</span> -v inkscape &> /dev/null; <span class="org-keyword">then</span>
|
||||||
|
inkscape --export-type=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">out_ext</span></span><span class="org-string">"</span> --export-dpi=<span class="org-highlight-numbers-number">200</span> --export-area-drawing <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_with_extension</span></span><span class="org-string">"</span>
|
||||||
|
<span class="org-keyword">fi</span>
|
||||||
|
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-orga23708b" class="outline-4">
|
||||||
|
<h4 id="orga23708b">PDF to SVG</h4>
|
||||||
|
<div class="outline-text-4" id="text-orga23708b">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-function-name">pdf2svg_function</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||||
|
<span class="org-keyword">if </span><span class="org-builtin">command</span> -v pdftocairo &> /dev/null; <span class="org-keyword">then</span>
|
||||||
|
pdftocairo -svg <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_with_extension</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">filename_without_extension</span></span><span class="org-string">.svg"</span>
|
||||||
|
<span class="org-keyword">elif </span><span class="org-builtin">command</span> -v pdf2svg &> /dev/null; <span class="org-keyword">then</span>
|
||||||
|
pdf2svg <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">filename_with_extension</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">filename_without_extension</span></span><span class="org-string">.svg"</span>
|
||||||
|
<span class="org-keyword">elif </span><span class="org-builtin">command</span> -v inkscape &> /dev/null; <span class="org-keyword">then</span>
|
||||||
|
inkscape --export-type=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">out_ext</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">filename_with_extension</span></span><span class="org-string">"</span>
|
||||||
|
<span class="org-keyword">fi</span>
|
||||||
|
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org1d12e53" class="outline-4">
|
||||||
|
<h4 id="org1d12e53">PDF Reduce Size</h4>
|
||||||
|
<div class="outline-text-4" id="text-org1d12e53">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-function-name">pdfreduce_function</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||||
|
<span class="org-keyword">if </span><span class="org-builtin">command</span> -v gs &> /dev/null; <span class="org-keyword">then</span>
|
||||||
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Maybe ask for new filename?</span>
|
||||||
|
gs -sDEVICE=pdfwrite -dCompatibilityLevel=<span class="org-highlight-numbers-number">1.4</span> -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH -sOutputFile=<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_without_extension</span></span><span class="org-string">.red.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">filename_with_extension</span></span><span class="org-string">"</span>
|
||||||
|
<span class="org-keyword">fi</span>
|
||||||
|
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org8772f18" class="outline-4">
|
||||||
|
<h4 id="org8772f18">PDF Trim</h4>
|
||||||
|
<div class="outline-text-4" id="text-org8772f18">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-function-name">pdftrim_function</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||||
|
<span class="org-keyword">if </span><span class="org-builtin">command</span> -v pdfcrop &> /dev/null; <span class="org-keyword">then</span>
|
||||||
|
pdfcrop <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_with_extension</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">filename_with_extension</span></span><span class="org-string">"</span>
|
||||||
|
<span class="org-keyword">fi</span>
|
||||||
|
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org38ca491" class="outline-4">
|
||||||
|
<h4 id="org38ca491">PDF Extract Pages</h4>
|
||||||
|
<div class="outline-text-4" id="text-org38ca491">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-function-name">pdfextract_function</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||||
|
<span class="org-keyword">if </span><span class="org-builtin">command</span> -v pdftk &> /dev/null; <span class="org-keyword">then</span>
|
||||||
|
<span class="org-variable-name">pages</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"get first\ndelete first\nextract i-j"</span> | rofi -i -dmenu -p <span class="org-string">"Extract pages"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||||
|
|
||||||
|
<span class="org-keyword">if</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">pages</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
|
||||||
|
<span class="org-keyword">exit</span>;
|
||||||
|
<span class="org-keyword">fi</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">pages</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
|
||||||
|
<span class="org-string">"get first"</span>)
|
||||||
|
<span class="org-keyword">if </span><span class="org-builtin">command</span> -v pdftk &> /dev/null; <span class="org-keyword">then</span>
|
||||||
|
pdftk <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">filename_with_extension</span></span><span class="org-string">"</span> <span class="org-type">cat</span> 1-1 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_without_extension</span></span><span class="org-string">.first.pdf"</span>
|
||||||
|
<span class="org-keyword">fi</span>
|
||||||
|
;;
|
||||||
|
<span class="org-string">"delete first"</span>)
|
||||||
|
<span class="org-keyword">if </span><span class="org-builtin">command</span> -v pdftk &> /dev/null; <span class="org-keyword">then</span>
|
||||||
|
pdftk <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">filename_with_extension</span></span><span class="org-string">"</span> <span class="org-type">cat</span> 2-end 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_with_extension</span></span><span class="org-string">"</span>
|
||||||
|
<span class="org-keyword">fi</span>
|
||||||
|
;;
|
||||||
|
<span class="org-string">"extract i-j"</span>)
|
||||||
|
<span class="org-comment-delimiter"># </span><span class="org-comment"><span class="org-bold"><span class="org-warning">TODO</span></span></span>
|
||||||
|
<span class="org-variable-name">page_i</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">rofi</span> -dmenu -p <span class="org-string">"From"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||||
|
<span class="org-variable-name">page_j</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">rofi</span> -dmenu -p <span class="org-string">"To"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||||
|
<span class="org-keyword">if </span><span class="org-builtin">command</span> -v pdftk &> /dev/null; <span class="org-keyword">then</span>
|
||||||
|
pdftk <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">filename_with_extension</span></span><span class="org-string">"</span> <span class="org-type">cat</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">page_i</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">page_j</span></span><span class="org-string">"</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_with_extension</span></span><span class="org-string">.slice.pdf"</span>
|
||||||
|
<span class="org-keyword">fi</span>
|
||||||
|
;;
|
||||||
|
<span class="org-keyword">esac</span>
|
||||||
|
<span class="org-keyword">fi</span>
|
||||||
|
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org3008b15" class="outline-4">
|
||||||
|
<h4 id="org3008b15">Delete First Page</h4>
|
||||||
|
<div class="outline-text-4" id="text-org3008b15">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-function-name">pdf_delete_first_page_function</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||||
|
<span class="org-keyword">if </span><span class="org-builtin">command</span> -v stapler &> /dev/null; <span class="org-keyword">then</span>
|
||||||
|
stapler del <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_with_extension</span></span><span class="org-string">"</span> <span class="org-highlight-numbers-number">1</span> /tmp/pdftk_out.pdf && <span class="org-type">mv</span> /tmp/pdftk_out.pdf <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_with_extension</span></span><span class="org-string">"</span>
|
||||||
|
<span class="org-keyword">elif </span><span class="org-builtin">command</span> -v pdftk &> /dev/null; <span class="org-keyword">then</span>
|
||||||
|
pdftk <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">filename_with_extension</span></span><span class="org-string">"</span> <span class="org-type">cat</span> 2-end output /tmp/pdftk_out.pdf && <span class="org-type">mv</span> /tmp/pdftk_out.pdf <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_with_extension</span></span><span class="org-string">"</span>
|
||||||
|
<span class="org-keyword">fi</span>
|
||||||
|
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org196a94f" class="outline-4">
|
||||||
|
<h4 id="org196a94f">Remove Annotations</h4>
|
||||||
|
<div class="outline-text-4" id="text-org196a94f">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-function-name">pdf_remove_annotations_function</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||||
|
<span class="org-keyword">if </span><span class="org-builtin">command</span> -v pdftk &> /dev/null; <span class="org-keyword">then</span>
|
||||||
|
pdftk <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">filename_with_extension</span></span><span class="org-string">"</span> output /tmp/uncompressed.pdf uncompress
|
||||||
|
<span class="org-variable-name">LANG</span>=C sed -n <span class="org-string">'/^\/Annots/!p'</span> /tmp/uncompressed.pdf > /tmp/stripped.pdf
|
||||||
|
pdftk /tmp/stripped.pdf 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_with_extension</span></span><span class="org-string">"</span> compress
|
||||||
|
<span class="org-keyword">fi</span>
|
||||||
|
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-orgd159cb6" class="outline-4">
|
||||||
|
<h4 id="orgd159cb6">Main function</h4>
|
||||||
|
<div class="outline-text-4" id="text-orgd159cb6">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Convert PDF Files</span>
|
||||||
<span class="org-function-name">pdf2</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
<span class="org-function-name">pdf2</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||||
<span class="org-variable-name">out_ext</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"svg\npng\nreduce"</span> | rofi -i -dmenu -p <span class="org-string">"Convert PDF to"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
<span class="org-variable-name">out_ext</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"svg\npng\nreduce size\ntrim\nextract pages\ndelete first page\nremove annotations"</span> | rofi -i -dmenu -p <span class="org-string">"Convert PDF to"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||||
|
|
||||||
<span class="org-keyword">if</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">out_ext</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
|
<span class="org-keyword">if</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">out_ext</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
|
||||||
<span class="org-keyword">exit</span>;
|
<span class="org-keyword">exit</span>;
|
||||||
<span class="org-keyword">fi</span>
|
<span class="org-keyword">fi</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">out_ext</span></span><span class="org-string">"</span><span class="org-keyword"> in</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">out_ext</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
|
||||||
<span class="org-string">"png"</span>)
|
|
||||||
inkscape --export-type=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">out_ext</span></span><span class="org-string">"</span> --export-dpi=<span class="org-highlight-numbers-number">200</span> --export-area-drawing <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_with_extension</span></span><span class="org-string">"</span>
|
|
||||||
;;
|
|
||||||
<span class="org-string">"reduce"</span>)
|
|
||||||
gs -sDEVICE=pdfwrite -dCompatibilityLevel=<span class="org-highlight-numbers-number">1.4</span> -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH -sOutputFile=<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_without_extension</span></span><span class="org-string">.red.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">filename_with_extension</span></span><span class="org-string">"</span>
|
|
||||||
;;
|
|
||||||
<span class="org-string">"svg"</span>)
|
<span class="org-string">"svg"</span>)
|
||||||
inkscape --export-type=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">out_ext</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">filename_with_extension</span></span><span class="org-string">"</span>
|
pdf2svg_function
|
||||||
|
;;
|
||||||
|
<span class="org-string">"png"</span>)
|
||||||
|
pdf2png_function
|
||||||
|
;;
|
||||||
|
<span class="org-string">"reduce size"</span>)
|
||||||
|
pdfreduce_function
|
||||||
|
;;
|
||||||
|
<span class="org-string">"trim"</span>)
|
||||||
|
pdftrim_function
|
||||||
|
;;
|
||||||
|
<span class="org-string">"extract pages"</span>)
|
||||||
|
pdfextract_function
|
||||||
|
;;
|
||||||
|
<span class="org-string">"delete first page"</span>)
|
||||||
|
pdf_delete_first_page_function
|
||||||
|
;;
|
||||||
|
<span class="org-string">"remove annotations"</span>)
|
||||||
|
pdf_remove_annotations_function
|
||||||
;;
|
;;
|
||||||
<span class="org-keyword">esac</span>
|
<span class="org-keyword">esac</span>
|
||||||
<span class="org-rainbow-delimiters-depth-1">}</span>
|
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Convert DOCX/PPTX Files</span>
|
<div id="outline-container-orgcbd05fa" class="outline-3">
|
||||||
|
<h3 id="orgcbd05fa">DVI files</h3>
|
||||||
|
<div class="outline-text-3" id="text-orgcbd05fa">
|
||||||
|
<p>
|
||||||
|
List of useful programs:
|
||||||
|
</p>
|
||||||
|
<ul class="org-ul">
|
||||||
|
<li><code>dvisvgm</code></li>
|
||||||
|
<li><code>dvipng</code></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org85096d3" class="outline-4">
|
||||||
|
<h4 id="org85096d3">DVI to PNG</h4>
|
||||||
|
<div class="outline-text-4" id="text-org85096d3">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-function-name">dvi2png_function</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||||
|
<span class="org-keyword">if </span><span class="org-builtin">command</span> -v dvipng &> /dev/null; <span class="org-keyword">then</span>
|
||||||
|
dvipng <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_with_extension</span></span><span class="org-string">"</span>
|
||||||
|
<span class="org-keyword">fi</span>
|
||||||
|
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org51dfa18" class="outline-4">
|
||||||
|
<h4 id="org51dfa18">DVI to SVG</h4>
|
||||||
|
<div class="outline-text-4" id="text-org51dfa18">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-function-name">dvi2svg_function</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||||
|
<span class="org-keyword">if </span><span class="org-builtin">command</span> -v dvisvgm &> /dev/null; <span class="org-keyword">then</span>
|
||||||
|
dvisvgm <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_with_extension</span></span><span class="org-string">"</span> -o <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_without_extension</span></span><span class="org-string">.svg"</span>
|
||||||
|
<span class="org-keyword">fi</span>
|
||||||
|
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-orgc8c76c3" class="outline-4">
|
||||||
|
<h4 id="orgc8c76c3">Main function</h4>
|
||||||
|
<div class="outline-text-4" id="text-orgc8c76c3">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Convert DVI Files</span>
|
||||||
|
<span class="org-function-name">dvi2</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||||
|
<span class="org-variable-name">out_ext</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"svg\npng"</span> | rofi -i -dmenu -p <span class="org-string">"Convert DVI to"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||||
|
|
||||||
|
<span class="org-keyword">if</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">out_ext</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
|
||||||
|
<span class="org-keyword">exit</span>;
|
||||||
|
<span class="org-keyword">fi</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">out_ext</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
|
||||||
|
<span class="org-string">"svg"</span>)
|
||||||
|
dvi2svg_function
|
||||||
|
;;
|
||||||
|
<span class="org-string">"png"</span>)
|
||||||
|
dvi2png_function
|
||||||
|
;;
|
||||||
|
<span class="org-keyword">esac</span>
|
||||||
|
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-orgb6c8280" class="outline-3">
|
||||||
|
<h3 id="orgb6c8280">DOCX/PTTX files</h3>
|
||||||
|
<div class="outline-text-3" id="text-orgb6c8280">
|
||||||
|
</div>
|
||||||
|
<div id="outline-container-org53914ee" class="outline-4">
|
||||||
|
<h4 id="org53914ee">DOC to PDF</h4>
|
||||||
|
<div class="outline-text-4" id="text-org53914ee">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-function-name">doc2pdf_function</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||||
|
<span class="org-keyword">if </span><span class="org-builtin">command</span> -v lowriter &> /dev/null; <span class="org-keyword">then</span>
|
||||||
|
lowriter --convert-to pdf <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_with_extension</span></span><span class="org-string">"</span>
|
||||||
|
<span class="org-keyword">fi</span>
|
||||||
|
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org36bb433" class="outline-4">
|
||||||
|
<h4 id="org36bb433">Main function</h4>
|
||||||
|
<div class="outline-text-4" id="text-org36bb433">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Convert DOCX/PPTX Files</span>
|
||||||
<span class="org-function-name">docx2</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
<span class="org-function-name">docx2</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||||
<span class="org-variable-name">out_ext</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"pdf"</span> | rofi -i -dmenu -p <span class="org-string">"Convert DOCX/PPTX to"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
<span class="org-variable-name">out_ext</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"pdf"</span> | rofi -i -dmenu -p <span class="org-string">"Convert DOCX/PPTX to"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||||
|
|
||||||
@ -1081,12 +1485,39 @@ Get the weather from <a href="http://wttr.in/">http://wttr.in/</a>.
|
|||||||
|
|
||||||
<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">out_ext</span></span><span class="org-string">"</span><span class="org-keyword"> in</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">out_ext</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
|
||||||
<span class="org-string">"pdf"</span>)
|
<span class="org-string">"pdf"</span>)
|
||||||
lowriter --convert-to pdf <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_with_extension</span></span><span class="org-string">"</span>
|
doc2pdf_function
|
||||||
;;
|
;;
|
||||||
<span class="org-keyword">esac</span>
|
<span class="org-keyword">esac</span>
|
||||||
<span class="org-rainbow-delimiters-depth-1">}</span>
|
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Convert GIF Files</span>
|
<div id="outline-container-orgcadf8bf" class="outline-3">
|
||||||
|
<h3 id="orgcadf8bf">GIF files</h3>
|
||||||
|
<div class="outline-text-3" id="text-orgcadf8bf">
|
||||||
|
</div>
|
||||||
|
<div id="outline-container-orge9139bf" class="outline-4">
|
||||||
|
<h4 id="orge9139bf">GIF to PNG</h4>
|
||||||
|
<div class="outline-text-4" id="text-orge9139bf">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-function-name">gif2png_function</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||||
|
<span class="org-keyword">if </span><span class="org-builtin">command</span> -v convert &> /dev/null; <span class="org-keyword">then</span>
|
||||||
|
convert -coalesce <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_with_extension</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">filename_without_extension</span></span><span class="org-string">.png"</span>
|
||||||
|
<span class="org-keyword">fi</span>
|
||||||
|
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-orgcc9508e" class="outline-4">
|
||||||
|
<h4 id="orgcc9508e">Main function</h4>
|
||||||
|
<div class="outline-text-4" id="text-orgcc9508e">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Convert GIF Files</span>
|
||||||
<span class="org-function-name">gif2</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
<span class="org-function-name">gif2</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||||
<span class="org-variable-name">out_ext</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"png"</span> | rofi -i -dmenu -p <span class="org-string">"Convert GIF to"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
<span class="org-variable-name">out_ext</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"png"</span> | rofi -i -dmenu -p <span class="org-string">"Convert GIF to"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||||
|
|
||||||
@ -1096,14 +1527,90 @@ Get the weather from <a href="http://wttr.in/">http://wttr.in/</a>.
|
|||||||
|
|
||||||
<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">out_ext</span></span><span class="org-string">"</span><span class="org-keyword"> in</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">out_ext</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
|
||||||
<span class="org-string">"png"</span>)
|
<span class="org-string">"png"</span>)
|
||||||
convert -coalesce <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_with_extension</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">filename_without_extension</span></span><span class="org-string">.png"</span>
|
gif2png_function
|
||||||
;;
|
;;
|
||||||
<span class="org-keyword">esac</span>
|
<span class="org-keyword">esac</span>
|
||||||
<span class="org-rainbow-delimiters-depth-1">}</span>
|
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Convert PNG Files</span>
|
<div id="outline-container-org1d9c757" class="outline-3">
|
||||||
|
<h3 id="org1d9c757">PNG files</h3>
|
||||||
|
<div class="outline-text-3" id="text-org1d9c757">
|
||||||
|
</div>
|
||||||
|
<div id="outline-container-org7468a4f" class="outline-4">
|
||||||
|
<h4 id="org7468a4f">PNG to PDF</h4>
|
||||||
|
<div class="outline-text-4" id="text-org7468a4f">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-function-name">png2pdf_function</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||||
|
<span class="org-keyword">if </span><span class="org-builtin">command</span> -v convert &> /dev/null; <span class="org-keyword">then</span>
|
||||||
|
convert <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_with_extension</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">filename_without_extension</span></span><span class="org-string">.pdf"</span>
|
||||||
|
<span class="org-keyword">fi</span>
|
||||||
|
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-orge629172" class="outline-4">
|
||||||
|
<h4 id="orge629172">PNG to JPG</h4>
|
||||||
|
<div class="outline-text-4" id="text-orge629172">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-function-name">png2jpg_function</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||||
|
<span class="org-keyword">if </span><span class="org-builtin">command</span> -v convert &> /dev/null; <span class="org-keyword">then</span>
|
||||||
|
convert <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_with_extension</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">filename_without_extension</span></span><span class="org-string">.jpg"</span>
|
||||||
|
<span class="org-keyword">fi</span>
|
||||||
|
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org6358e53" class="outline-4">
|
||||||
|
<h4 id="org6358e53">PNG Trim</h4>
|
||||||
|
<div class="outline-text-4" id="text-org6358e53">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-function-name">pngtrim_function</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||||
|
<span class="org-keyword">if </span><span class="org-builtin">command</span> -v convert &> /dev/null; <span class="org-keyword">then</span>
|
||||||
|
convert -trim <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_with_extension</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">filename_with_extension</span></span><span class="org-string">"</span>
|
||||||
|
<span class="org-keyword">fi</span>
|
||||||
|
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org91c91b7" class="outline-4">
|
||||||
|
<h4 id="org91c91b7">PNG Resize</h4>
|
||||||
|
<div class="outline-text-4" id="text-org91c91b7">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-function-name">pngresize_function</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||||
|
<span class="org-keyword">if </span><span class="org-builtin">command</span> -v convert &> /dev/null; <span class="org-keyword">then</span>
|
||||||
|
<span class="org-variable-name">size_type</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"width\nheight"</span> | rofi -i -dmenu -p <span class="org-string">"Maximum:"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||||
|
<span class="org-variable-name">size_px</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">rofi</span> -dmenu -p <span class="org-string">"Number of px:"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||||
|
|
||||||
|
<span class="org-keyword">if</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">size_type</span></span><span class="org-string">"</span> = <span class="org-string">"width"</span> <span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
|
||||||
|
convert -resize <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">size_px</span></span><span class="org-string">"</span>x <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_with_extension</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">filename_with_extension</span></span><span class="org-string">"</span>
|
||||||
|
<span class="org-keyword">elif</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">size_type</span></span><span class="org-string">"</span> = <span class="org-string">"height"</span> <span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
|
||||||
|
convert -resize x<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">size_px</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">filename_with_extension</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">filename_with_extension</span></span><span class="org-string">"</span>
|
||||||
|
<span class="org-keyword">fi</span>
|
||||||
|
<span class="org-keyword">fi</span>
|
||||||
|
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-orgd118f81" class="outline-4">
|
||||||
|
<h4 id="orgd118f81">Main function</h4>
|
||||||
|
<div class="outline-text-4" id="text-orgd118f81">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Convert PNG Files</span>
|
||||||
<span class="org-function-name">png2</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
<span class="org-function-name">png2</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||||
<span class="org-variable-name">out_ext</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"pdf\ntrim"</span> | rofi -i -dmenu -p <span class="org-string">"Convert PNG to"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
<span class="org-variable-name">out_ext</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"pdf\njpg\ntrim\nresize"</span> | rofi -i -dmenu -p <span class="org-string">"Convert PNG to"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||||
|
|
||||||
<span class="org-keyword">if</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">out_ext</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
|
<span class="org-keyword">if</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">out_ext</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
|
||||||
<span class="org-keyword">exit</span>;
|
<span class="org-keyword">exit</span>;
|
||||||
@ -1111,15 +1618,126 @@ Get the weather from <a href="http://wttr.in/">http://wttr.in/</a>.
|
|||||||
|
|
||||||
<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">out_ext</span></span><span class="org-string">"</span><span class="org-keyword"> in</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">out_ext</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
|
||||||
<span class="org-string">"pdf"</span>)
|
<span class="org-string">"pdf"</span>)
|
||||||
convert <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_with_extension</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">filename_without_extension</span></span><span class="org-string">.pdf"</span>
|
png2pdf_function
|
||||||
|
;;
|
||||||
|
<span class="org-string">"jpg"</span>)
|
||||||
|
png2jpg_function
|
||||||
;;
|
;;
|
||||||
<span class="org-string">"trim"</span>)
|
<span class="org-string">"trim"</span>)
|
||||||
convert -trim <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_with_extension</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">filename_with_extension</span></span><span class="org-string">"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Maybe should ask new filename</span>
|
pngtrim_function
|
||||||
|
;;
|
||||||
|
<span class="org-string">"resize"</span>)
|
||||||
|
pngresize_function
|
||||||
;;
|
;;
|
||||||
<span class="org-keyword">esac</span>
|
<span class="org-keyword">esac</span>
|
||||||
<span class="org-rainbow-delimiters-depth-1">}</span>
|
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Convert MP4 Files</span>
|
<div id="outline-container-org70bdad9" class="outline-3">
|
||||||
|
<h3 id="org70bdad9">JPG files</h3>
|
||||||
|
<div class="outline-text-3" id="text-org70bdad9">
|
||||||
|
</div>
|
||||||
|
<div id="outline-container-org2a197f4" class="outline-4">
|
||||||
|
<h4 id="org2a197f4">JPG to PDF</h4>
|
||||||
|
<div class="outline-text-4" id="text-org2a197f4">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-function-name">jpg2pdf_function</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||||
|
<span class="org-keyword">if </span><span class="org-builtin">command</span> -v convert &> /dev/null; <span class="org-keyword">then</span>
|
||||||
|
convert <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_with_extension</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">filename_without_extension</span></span><span class="org-string">.pdf"</span>
|
||||||
|
<span class="org-keyword">fi</span>
|
||||||
|
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org18f6058" class="outline-4">
|
||||||
|
<h4 id="org18f6058">JPG Resize</h4>
|
||||||
|
<div class="outline-text-4" id="text-org18f6058">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-function-name">jpgresize_function</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||||
|
<span class="org-keyword">if </span><span class="org-builtin">command</span> -v convert &> /dev/null; <span class="org-keyword">then</span>
|
||||||
|
<span class="org-variable-name">size_type</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"width\nheight"</span> | rofi -i -dmenu -p <span class="org-string">"Maximum:"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||||
|
<span class="org-variable-name">size_px</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">rofi</span> -dmenu -p <span class="org-string">"Number of px:"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||||
|
|
||||||
|
<span class="org-keyword">if</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">size_type</span></span><span class="org-string">"</span> = <span class="org-string">"width"</span> <span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
|
||||||
|
convert -resize <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">size_px</span></span><span class="org-string">"</span>x <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_with_extension</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">filename_with_extension</span></span><span class="org-string">"</span>
|
||||||
|
<span class="org-keyword">elif</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">size_type</span></span><span class="org-string">"</span> = <span class="org-string">"height"</span> <span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
|
||||||
|
convert -resize x<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">size_px</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">filename_with_extension</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">filename_with_extension</span></span><span class="org-string">"</span>
|
||||||
|
<span class="org-keyword">fi</span>
|
||||||
|
<span class="org-keyword">fi</span>
|
||||||
|
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-orge16bd85" class="outline-4">
|
||||||
|
<h4 id="orge16bd85">Main function</h4>
|
||||||
|
<div class="outline-text-4" id="text-orge16bd85">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Convert JPG Files</span>
|
||||||
|
<span class="org-function-name">jpg2</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||||
|
<span class="org-variable-name">out_ext</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"pdf\nresize"</span> | rofi -i -dmenu -p <span class="org-string">"Convert JPG to"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||||
|
|
||||||
|
<span class="org-keyword">if</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">out_ext</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
|
||||||
|
<span class="org-keyword">exit</span>;
|
||||||
|
<span class="org-keyword">fi</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">out_ext</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
|
||||||
|
<span class="org-string">"pdf"</span>)
|
||||||
|
jpg2pdf_function
|
||||||
|
;;
|
||||||
|
<span class="org-string">"resize"</span>)
|
||||||
|
jpgresize_function
|
||||||
|
;;
|
||||||
|
<span class="org-keyword">esac</span>
|
||||||
|
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org7da8026" class="outline-3">
|
||||||
|
<h3 id="org7da8026">MP4 files</h3>
|
||||||
|
<div class="outline-text-3" id="text-org7da8026">
|
||||||
|
</div>
|
||||||
|
<div id="outline-container-org4c00ce2" class="outline-4">
|
||||||
|
<h4 id="org4c00ce2">MP4 to GIF</h4>
|
||||||
|
<div class="outline-text-4" id="text-org4c00ce2">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-function-name">mp42gif_function</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||||
|
<span class="org-keyword">if </span><span class="org-builtin">command</span> -v ffmpeg &> /dev/null; <span class="org-keyword">then</span>
|
||||||
|
<span class="org-variable-name">palette</span>=<span class="org-string">"/tmp/palette.png"</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">width</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"auto"</span> | rofi -i -dmenu -p <span class="org-string">"GIF width"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||||
|
<span class="org-keyword">if</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">width</span></span><span class="org-string">"</span> = <span class="org-string">"auto"</span> <span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
|
||||||
|
<span class="org-variable-name">filters</span>=<span class="org-string">"fps=15"</span>
|
||||||
|
<span class="org-keyword">else</span>
|
||||||
|
<span class="org-variable-name">filters</span>=<span class="org-string">"fps=15,scale=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">width</span></span><span class="org-string">:-1:flags=lanczos"</span>
|
||||||
|
<span class="org-keyword">fi</span>
|
||||||
|
|
||||||
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Generate optimal pallette of colors</span>
|
||||||
|
ffmpeg -v warning -i <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_with_extension</span></span><span class="org-string">"</span> -vf <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">filters</span></span><span class="org-string">,palettegen"</span> -y $<span class="org-variable-name">palette</span>
|
||||||
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Convert</span>
|
||||||
|
ffmpeg -v warning -i <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_with_extension</span></span><span class="org-string">"</span> -i $<span class="org-variable-name">palette</span> -lavfi <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">filters</span></span><span class="org-string"> [x]; [x][1:v] paletteuse"</span> -y <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_without_extension</span></span><span class="org-string">.gif"</span>
|
||||||
|
<span class="org-keyword">fi</span>
|
||||||
|
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-orgac4e160" class="outline-4">
|
||||||
|
<h4 id="orgac4e160">Main function</h4>
|
||||||
|
<div class="outline-text-4" id="text-orgac4e160">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Convert MP4 Files</span>
|
||||||
<span class="org-function-name">mp42</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
<span class="org-function-name">mp42</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||||
<span class="org-variable-name">out_ext</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"gif"</span> | rofi -i -dmenu -p <span class="org-string">"Convert MP4 to"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
<span class="org-variable-name">out_ext</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"gif"</span> | rofi -i -dmenu -p <span class="org-string">"Convert MP4 to"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||||
|
|
||||||
@ -1129,18 +1747,30 @@ Get the weather from <a href="http://wttr.in/">http://wttr.in/</a>.
|
|||||||
|
|
||||||
<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">out_ext</span></span><span class="org-string">"</span><span class="org-keyword"> in</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">out_ext</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
|
||||||
<span class="org-string">"gif"</span>)
|
<span class="org-string">"gif"</span>)
|
||||||
make-gif <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_with_extension</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">filename_without_extension</span></span><span class="org-string">.gif"</span>
|
mp42gif_function
|
||||||
;;
|
;;
|
||||||
<span class="org-keyword">esac</span>
|
<span class="org-keyword">esac</span>
|
||||||
<span class="org-rainbow-delimiters-depth-1">}</span>
|
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<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">in_ext</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
|
<div id="outline-container-org91dd1cd" class="outline-3">
|
||||||
|
<h3 id="org91dd1cd">Case statement</h3>
|
||||||
|
<div class="outline-text-3" id="text-org91dd1cd">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><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">in_ext</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
|
||||||
<span class="org-string">"svg"</span>)
|
<span class="org-string">"svg"</span>)
|
||||||
svg2
|
svg2
|
||||||
;;
|
;;
|
||||||
<span class="org-string">"gif"</span>)
|
<span class="org-string">"gif"</span>)
|
||||||
gif2
|
gif2
|
||||||
;;
|
;;
|
||||||
|
<span class="org-string">"dvi"</span>)
|
||||||
|
dvi2
|
||||||
|
;;
|
||||||
<span class="org-string">"pdf"</span>)
|
<span class="org-string">"pdf"</span>)
|
||||||
pdf2
|
pdf2
|
||||||
;;
|
;;
|
||||||
@ -1150,6 +1780,12 @@ Get the weather from <a href="http://wttr.in/">http://wttr.in/</a>.
|
|||||||
<span class="org-string">"png"</span>)
|
<span class="org-string">"png"</span>)
|
||||||
png2
|
png2
|
||||||
;;
|
;;
|
||||||
|
<span class="org-string">"jpg"</span>)
|
||||||
|
jpg2
|
||||||
|
;;
|
||||||
|
<span class="org-string">"jpeg"</span>)
|
||||||
|
jpg2
|
||||||
|
;;
|
||||||
<span class="org-string">"docx"</span>)
|
<span class="org-string">"docx"</span>)
|
||||||
docx2
|
docx2
|
||||||
;;
|
;;
|
||||||
@ -1161,6 +1797,7 @@ Get the weather from <a href="http://wttr.in/">http://wttr.in/</a>.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-pdf-shrink" class="outline-2">
|
<div id="outline-container-pdf-shrink" class="outline-2">
|
||||||
<h2 id="pdf-shrink"><code>pdf-shrink</code> - Pdf Shrink</h2>
|
<h2 id="pdf-shrink"><code>pdf-shrink</code> - Pdf Shrink</h2>
|
||||||
@ -1335,7 +1972,7 @@ Run some simple calculations with <code>rofi</code>.
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: Dehaeze Thomas</p>
|
<p class="author">Author: Dehaeze Thomas</p>
|
||||||
<p class="date">Created: 2021-04-25 dim. 19:10</p>
|
<p class="date">Created: 2021-10-25 lun. 14:33</p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2021-05-02 dim. 11:26 -->
|
<!-- 2021-10-25 lun. 14:33 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<title>Calendar and Contact Configuration</title>
|
<title>Calendar and Contact Configuration</title>
|
||||||
<meta name="author" content="Dehaeze Thomas" />
|
<meta name="author" content="Dehaeze Thomas" />
|
||||||
@ -16,15 +16,16 @@
|
|||||||
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="h" href="./index.html"> UP </a>
|
||||||
|
|
|
|
||||||
<a accesskey="H" href="./index.html"> HOME </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
|
||||||
</div><div id="content">
|
</div><div id="content" class="content">
|
||||||
<h1 class="title">Calendar and Contact Configuration</h1>
|
<h1 class="title">Calendar and Contact Configuration</h1>
|
||||||
<div id="table-of-contents">
|
<div id="table-of-contents" role="doc-toc">
|
||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents" role="doc-toc">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org66320d0"><code>vdirsyncer</code> - Synchronize calendars and contacts</a></li>
|
<li><a href="#org66320d0"><code>vdirsyncer</code> - Synchronize calendars and contacts</a></li>
|
||||||
<li><a href="#org2ee9696"><code>khal</code> - CLI calendar application</a></li>
|
<li><a href="#org2ee9696"><code>khal</code> - CLI calendar application</a></li>
|
||||||
<li><a href="#orgfea864c"><code>khard</code> - CLI contact application</a></li>
|
<li><a href="#orgfea864c"><code>khard</code> - CLI contact application</a></li>
|
||||||
|
<li><a href="#ics-add"><code>ics-add</code> - Add ICS file to Khal</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -46,7 +47,7 @@
|
|||||||
<span class="org-variable-name">type</span> = <span class="org-string">"caldav"</span>
|
<span class="org-variable-name">type</span> = <span class="org-string">"caldav"</span>
|
||||||
<span class="org-variable-name">url</span> = <span class="org-string">"https://radicale.tdehaeze.xyz/tdehaeze/"</span>
|
<span class="org-variable-name">url</span> = <span class="org-string">"https://radicale.tdehaeze.xyz/tdehaeze/"</span>
|
||||||
<span class="org-variable-name">username</span> = <span class="org-string">"tdehaeze"</span>
|
<span class="org-variable-name">username</span> = <span class="org-string">"tdehaeze"</span>
|
||||||
<span class="org-variable-name">password</span> = <span class="org-string">"<<get-password(passname="</span>radicale.tdehaeze.xyz/tdehaeze<span class="org-string">")>>"</span>
|
<span class="org-variable-name">password</span> = <span class="org-string">"<<get-password(passname='radicale.tdehaeze.xyz/tdehaeze')>>"</span>
|
||||||
|
|
||||||
[<span class="org-type">storage radicale_calendar_local</span>]
|
[<span class="org-type">storage radicale_calendar_local</span>]
|
||||||
<span class="org-variable-name">type</span> = <span class="org-string">"filesystem"</span>
|
<span class="org-variable-name">type</span> = <span class="org-string">"filesystem"</span>
|
||||||
@ -63,7 +64,7 @@
|
|||||||
<span class="org-variable-name">type</span> = <span class="org-string">"caldav"</span>
|
<span class="org-variable-name">type</span> = <span class="org-string">"caldav"</span>
|
||||||
<span class="org-variable-name">url</span> = <span class="org-string">"https://calendar.esrf.fr/egroupware/groupdav.php/calendar"</span>
|
<span class="org-variable-name">url</span> = <span class="org-string">"https://calendar.esrf.fr/egroupware/groupdav.php/calendar"</span>
|
||||||
<span class="org-variable-name">username</span> = <span class="org-string">"dehaeze"</span>
|
<span class="org-variable-name">username</span> = <span class="org-string">"dehaeze"</span>
|
||||||
<span class="org-variable-name">password</span> = <span class="org-string">"<<get-password(passname="</span>ce-esrf.fr/dehaeze<span class="org-string">")>>"</span>
|
<span class="org-variable-name">password</span> = <span class="org-string">"<<get-password(passname='esrf.fr/dehaeze')>>"</span>
|
||||||
|
|
||||||
[<span class="org-type">storage esrf_calendar_local</span>]
|
[<span class="org-type">storage esrf_calendar_local</span>]
|
||||||
<span class="org-variable-name">type</span> = <span class="org-string">"filesystem"</span>
|
<span class="org-variable-name">type</span> = <span class="org-string">"filesystem"</span>
|
||||||
@ -85,7 +86,7 @@
|
|||||||
<span class="org-variable-name">type</span> = <span class="org-string">"carddav"</span>
|
<span class="org-variable-name">type</span> = <span class="org-string">"carddav"</span>
|
||||||
<span class="org-variable-name">url</span> = <span class="org-string">"https://radicale.tdehaeze.xyz/tdehaeze/"</span>
|
<span class="org-variable-name">url</span> = <span class="org-string">"https://radicale.tdehaeze.xyz/tdehaeze/"</span>
|
||||||
<span class="org-variable-name">username</span> = <span class="org-string">"tdehaeze"</span>
|
<span class="org-variable-name">username</span> = <span class="org-string">"tdehaeze"</span>
|
||||||
<span class="org-variable-name">password</span> = <span class="org-string">"<<get-password(passname="</span>radicale.tdehaeze.xyz/tdehaeze<span class="org-string">")>>"</span>
|
<span class="org-variable-name">password</span> = <span class="org-string">"<<get-password(passname='radicale.tdehaeze.xyz/tdehaeze')>>"</span>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -191,10 +192,40 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-ics-add" class="outline-2">
|
||||||
|
<h2 id="ics-add"><code>ics-add</code> - Add ICS file to Khal</h2>
|
||||||
|
<div class="outline-text-2" id="text-ics-add">
|
||||||
|
<p>
|
||||||
|
This function is useful to easily add an event to <code>khal</code>.
|
||||||
|
It is for instance used in the <code>mutt</code> configuration.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
To share an event by email, the currently best way to proceed is to first find the event on <code>khal</code>, press <code>e</code> to export it to a file, and then add this file as an attachment.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div class="org-src-container">
|
||||||
|
<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> -f $<span class="org-highlight-numbers-number">1</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">resp</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"yes\nno"</span> | rofi -i -only-match -dmenu -p <span class="org-string">"Would you like to add the event:"</span> -mesg <span class="org-string">"`khal printics </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"> | tail -n +2`"</span><span class="org-rainbow-delimiters-depth-1">)</span>
|
||||||
|
|
||||||
|
<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">resp</span></span><span class="org-string">"</span> == <span class="org-string">"yes"</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">calendar</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">"`khal printcalendars`"</span> | rofi -i -only-match -dmenu -p <span class="org-string">"Save to:"</span><span class="org-rainbow-delimiters-depth-1">)</span>
|
||||||
|
<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">calendar</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
||||||
|
<span class="org-keyword">exit</span>;
|
||||||
|
<span class="org-keyword">fi</span>
|
||||||
|
khal import -a <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">calendar</span></span><span class="org-string">"</span> --batch $<span class="org-highlight-numbers-number">1</span> && <span class="org-sh-escaped-newline">\</span>
|
||||||
|
dunstify <span class="org-string">"Calendar"</span> <span class="org-string">"Even added"</span>;
|
||||||
|
<span class="org-keyword">fi</span>
|
||||||
|
<span class="org-keyword">fi</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: Dehaeze Thomas</p>
|
<p class="author">Author: Dehaeze Thomas</p>
|
||||||
<p class="date">Created: 2021-05-02 dim. 11:26</p>
|
<p class="date">Created: 2021-10-25 lun. 14:33</p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2021-05-02 dim. 11:26 -->
|
<!-- 2021-10-25 lun. 14:33 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<title>Configuration Files</title>
|
<title>Configuration Files</title>
|
||||||
<meta name="author" content="Dehaeze Thomas" />
|
<meta name="author" content="Dehaeze Thomas" />
|
||||||
@ -16,11 +16,11 @@
|
|||||||
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="h" href="./index.html"> UP </a>
|
||||||
|
|
|
|
||||||
<a accesskey="H" href="./index.html"> HOME </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
|
||||||
</div><div id="content">
|
</div><div id="content" class="content">
|
||||||
<h1 class="title">Configuration Files</h1>
|
<h1 class="title">Configuration Files</h1>
|
||||||
<div id="table-of-contents">
|
<div id="table-of-contents" role="doc-toc">
|
||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents" role="doc-toc">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org3f17b04">SSH</a></li>
|
<li><a href="#org3f17b04">SSH</a></li>
|
||||||
<li><a href="#org10b81df">Font</a></li>
|
<li><a href="#org10b81df">Font</a></li>
|
||||||
@ -41,14 +41,26 @@
|
|||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">AddKeysToAgent yes
|
<pre class="src src-conf">AddKeysToAgent yes
|
||||||
|
|
||||||
Host grenoble
|
Host homelab
|
||||||
<span class="org-variable-name">hostname <<get-password(passname</span>=<span class="org-string">"ip/grenoble"</span>)>>
|
<span class="org-variable-name">hostname <<get-password(passname</span>=<span class="org-string">"ip/homelab"</span>)>>
|
||||||
|
Port <span class="org-highlight-numbers-number">22</span>
|
||||||
|
user thomas
|
||||||
|
IdentityFile ~/.ssh/id_rsa
|
||||||
|
|
||||||
|
Host router
|
||||||
|
hostname 192.168.1.1
|
||||||
|
Port <span class="org-highlight-numbers-number">22</span>
|
||||||
|
user root
|
||||||
|
IdentityFile ~/.ssh/id_rsa
|
||||||
|
|
||||||
|
Host smarttv
|
||||||
|
hostname 192.168.1.73
|
||||||
Port <span class="org-highlight-numbers-number">22</span>
|
Port <span class="org-highlight-numbers-number">22</span>
|
||||||
user thomas
|
user thomas
|
||||||
IdentityFile ~/.ssh/id_rsa
|
IdentityFile ~/.ssh/id_rsa
|
||||||
|
|
||||||
Host oneplus
|
Host oneplus
|
||||||
hostname 192.168.1.58
|
hostname 192.168.1.101
|
||||||
Port <span class="org-highlight-numbers-number">8022</span>
|
Port <span class="org-highlight-numbers-number">8022</span>
|
||||||
IdentityFile ~/.ssh/id_rsa
|
IdentityFile ~/.ssh/id_rsa
|
||||||
</pre>
|
</pre>
|
||||||
@ -769,7 +781,7 @@ login tdehaeze
|
|||||||
|
|
||||||
machine torrent.tdehaeze.xyz
|
machine torrent.tdehaeze.xyz
|
||||||
login tdehaeze
|
login tdehaeze
|
||||||
<span class="org-variable-name">password <<get-password(passname</span>=<span class="org-string">"torrent.tdehaeze.xyz/tdehaeze"</span>)>>
|
<span class="org-variable-name">password <<get-password(passname</span>=<span class="org-string">"nas/transmission"</span>)>>
|
||||||
|
|
||||||
machine dl.tdehaeze.xyz
|
machine dl.tdehaeze.xyz
|
||||||
login tdehaeze
|
login tdehaeze
|
||||||
@ -790,6 +802,14 @@ login tdehaeze
|
|||||||
machine qobuz.tdehaeze.xyz
|
machine qobuz.tdehaeze.xyz
|
||||||
login tdehaeze
|
login tdehaeze
|
||||||
<span class="org-variable-name">password <<get-password(passname</span>=<span class="org-string">"qobuz.tdehaeze.xyz/tdehaeze"</span>)>>
|
<span class="org-variable-name">password <<get-password(passname</span>=<span class="org-string">"qobuz.tdehaeze.xyz/tdehaeze"</span>)>>
|
||||||
|
|
||||||
|
machine down.tdehaeze.xyz
|
||||||
|
login tdehaeze
|
||||||
|
<span class="org-variable-name">password <<get-password(passname</span>=<span class="org-string">"down.tdehaeze.xyz/tdehaeze"</span>)>>
|
||||||
|
|
||||||
|
machine joal.tdehaeze.xyz
|
||||||
|
login tdehaeze
|
||||||
|
<span class="org-variable-name">password <<get-password(passname</span>=<span class="org-string">"joal.tdehaeze.xyz/tdehaeze"</span>)>>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -838,7 +858,7 @@ Colors
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: Dehaeze Thomas</p>
|
<p class="author">Author: Dehaeze Thomas</p>
|
||||||
<p class="date">Created: 2021-05-02 dim. 11:26</p>
|
<p class="date">Created: 2021-10-25 lun. 14:33</p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
2074
docs/doom.html
2074
docs/doom.html
File diff suppressed because it is too large
Load Diff
@ -3,11 +3,11 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2021-01-11 lun. 14:50 -->
|
<!-- 2021-10-25 lun. 14:33 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<title>Doom Emacs Configuration</title>
|
<title>Doom Emacs Configuration</title>
|
||||||
<meta name="generator" content="Org mode" />
|
|
||||||
<meta name="author" content="Dehaeze Thomas" />
|
<meta name="author" content="Dehaeze Thomas" />
|
||||||
|
<meta name="generator" content="Org Mode" />
|
||||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||||
<script type="text/javascript" src="./dist/script.js"></script>
|
<script type="text/javascript" src="./dist/script.js"></script>
|
||||||
</head>
|
</head>
|
||||||
@ -16,11 +16,11 @@
|
|||||||
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="h" href="./index.html"> UP </a>
|
||||||
|
|
|
|
||||||
<a accesskey="H" href="./index.html"> HOME </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
|
||||||
</div><div id="content">
|
</div><div id="content" class="content">
|
||||||
<h1 class="title">Doom Emacs Configuration</h1>
|
<h1 class="title">Doom Emacs Configuration</h1>
|
||||||
<div id="table-of-contents">
|
<div id="table-of-contents" role="doc-toc">
|
||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents" role="doc-toc">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orga3bc01e">LaTeX</a>
|
<li><a href="#orga3bc01e">LaTeX</a>
|
||||||
<ul>
|
<ul>
|
||||||
@ -905,7 +905,7 @@ $0
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: Dehaeze Thomas</p>
|
<p class="author">Author: Dehaeze Thomas</p>
|
||||||
<p class="date">Created: 2021-01-11 lun. 14:50</p>
|
<p class="date">Created: 2021-10-25 lun. 14:33</p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
2558
docs/homelab.html
Normal file
2558
docs/homelab.html
Normal file
File diff suppressed because it is too large
Load Diff
14
docs/i3.html
14
docs/i3.html
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2021-05-02 dim. 11:26 -->
|
<!-- 2021-10-25 lun. 14:33 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<title>I3 Configuration</title>
|
<title>I3 Configuration</title>
|
||||||
<meta name="author" content="Dehaeze Thomas" />
|
<meta name="author" content="Dehaeze Thomas" />
|
||||||
@ -16,11 +16,11 @@
|
|||||||
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="h" href="./index.html"> UP </a>
|
||||||
|
|
|
|
||||||
<a accesskey="H" href="./index.html"> HOME </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
|
||||||
</div><div id="content">
|
</div><div id="content" class="content">
|
||||||
<h1 class="title">I3 Configuration</h1>
|
<h1 class="title">I3 Configuration</h1>
|
||||||
<div id="table-of-contents">
|
<div id="table-of-contents" role="doc-toc">
|
||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents" role="doc-toc">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org603bb02">Mod Key</a></li>
|
<li><a href="#org603bb02">Mod Key</a></li>
|
||||||
<li><a href="#org2de16b4">Border Style</a></li>
|
<li><a href="#org2de16b4">Border Style</a></li>
|
||||||
@ -247,10 +247,10 @@ set $ws8 <span class="org-highlight-numbers-number">8</span>
|
|||||||
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Floating"</span>] floating enable, resize set <span class="org-highlight-numbers-number">800</span> <span class="org-highlight-numbers-number">600</span>, move position <span class="org-highlight-numbers-number">1100</span> <span class="org-highlight-numbers-number">460</span>
|
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Floating"</span>] floating enable, resize set <span class="org-highlight-numbers-number">800</span> <span class="org-highlight-numbers-number">600</span>, move position <span class="org-highlight-numbers-number">1100</span> <span class="org-highlight-numbers-number">460</span>
|
||||||
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"mpv"</span>] floating enable <span class="org-comment-delimiter"># </span><span class="org-comment">Size/Position is defined in mpv.conf</span>
|
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"mpv"</span>] floating enable <span class="org-comment-delimiter"># </span><span class="org-comment">Size/Position is defined in mpv.conf</span>
|
||||||
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Sxiv"</span>] floating enable, resize set <span class="org-highlight-numbers-number">800</span> <span class="org-highlight-numbers-number">600</span>, move position center
|
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Sxiv"</span>] floating enable, resize set <span class="org-highlight-numbers-number">800</span> <span class="org-highlight-numbers-number">600</span>, move position center
|
||||||
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"khal interactive"</span>] floating enable, resize set <span class="org-highlight-numbers-number">600</span> <span class="org-highlight-numbers-number">600</span>, move position center
|
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"khal"</span>] floating enable, resize set <span class="org-highlight-numbers-number">600</span> <span class="org-highlight-numbers-number">600</span>, move position center
|
||||||
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"ncmpcpp"</span>] floating enable, resize set <span class="org-highlight-numbers-number">800</span> <span class="org-highlight-numbers-number">400</span>, move position center
|
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"ncmpcpp"</span>] floating enable, resize set <span class="org-highlight-numbers-number">800</span> <span class="org-highlight-numbers-number">400</span>, move position center
|
||||||
|
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"Sensors"</span>] floating enable, resize set <span class="org-highlight-numbers-number">800</span> <span class="org-highlight-numbers-number">400</span>, move position center
|
||||||
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"nmtui"</span>] floating enable, resize set <span class="org-highlight-numbers-number">800</span> <span class="org-highlight-numbers-number">600</span>, move position center
|
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"nmtui"</span>] floating enable, resize set <span class="org-highlight-numbers-number">800</span> <span class="org-highlight-numbers-number">600</span>, move position center
|
||||||
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"linkding"</span>] floating enable, resize set <span class="org-highlight-numbers-number">800</span> <span class="org-highlight-numbers-number">600</span>, move position center
|
|
||||||
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"Xournal"</span>] floating enable, resize set <span class="org-highlight-numbers-number">1100</span> <span class="org-highlight-numbers-number">750</span>, move position center
|
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"Xournal"</span>] floating enable, resize set <span class="org-highlight-numbers-number">1100</span> <span class="org-highlight-numbers-number">750</span>, move position center
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
@ -293,7 +293,7 @@ exec --no-startup-id polybar top >>/tmp/polybar.log 2>&1 &
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: Dehaeze Thomas</p>
|
<p class="author">Author: Dehaeze Thomas</p>
|
||||||
<p class="date">Created: 2021-05-02 dim. 11:26</p>
|
<p class="date">Created: 2021-10-25 lun. 14:33</p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2021-04-25 dim. 19:10 -->
|
<!-- 2021-06-20 dim. 14:22 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<title>Dotfiles - Manjaro Linux</title>
|
<title>Dotfiles - Manjaro Linux</title>
|
||||||
<meta name="author" content="Dehaeze Thomas" />
|
<meta name="author" content="Dehaeze Thomas" />
|
||||||
@ -37,7 +37,7 @@ There are Specific configuration files for:
|
|||||||
<li><b>Display Server</b>: <a href="xconfig.html">Xorg</a></li>
|
<li><b>Display Server</b>: <a href="xconfig.html">Xorg</a></li>
|
||||||
<li><b>Editors</b>: <a href="vim.html">Neovim</a> and <a href="./doom.html">Emacs (Doom)</a> (<a href="emacs-library-babel.html">library of babel</a>, <a href="emacs-snippets.html">snippets</a>)</li>
|
<li><b>Editors</b>: <a href="vim.html">Neovim</a> and <a href="./doom.html">Emacs (Doom)</a> (<a href="emacs-library-babel.html">library of babel</a>, <a href="emacs-snippets.html">snippets</a>)</li>
|
||||||
<li><b>Shell</b>: <a href="bash.html">Bash</a></li>
|
<li><b>Shell</b>: <a href="bash.html">Bash</a></li>
|
||||||
<li><b>Terminal Emulator</b>: <a href="termite.html">Termite</a></li>
|
<li><b>Terminal Emulator</b>: <a href="alacritty.html">Alacritty</a></li>
|
||||||
<li><b>Terminal Multiplexer</b> <a href="tmux.html">Tmux</a></li>
|
<li><b>Terminal Multiplexer</b> <a href="tmux.html">Tmux</a></li>
|
||||||
<li><b>Image Setup</b>: <a href="image.html">Sxiv</a></li>
|
<li><b>Image Setup</b>: <a href="image.html">Sxiv</a></li>
|
||||||
<li><b>Music Setup</b>: <a href="music.html">Ncmpcpp, Mopidy and Beets</a></li>
|
<li><b>Music Setup</b>: <a href="music.html">Ncmpcpp, Mopidy and Beets</a></li>
|
||||||
@ -62,7 +62,7 @@ There are Specific configuration files for:
|
|||||||
I also have:
|
I also have:
|
||||||
</p>
|
</p>
|
||||||
<ul class="org-ul">
|
<ul class="org-ul">
|
||||||
<li>a nice Home-Server (<a href="nas.html">conf</a>)</li>
|
<li>a nice Home-Server (<a href="homelab.html">conf</a>)</li>
|
||||||
<li>a Linux smart-TV (<a href="smart-tv.html">conf</a>)</li>
|
<li>a Linux smart-TV (<a href="smart-tv.html">conf</a>)</li>
|
||||||
<li>a Windows PC that I occasionally use (<a href="windows.html">conf</a>)</li>
|
<li>a Windows PC that I occasionally use (<a href="windows.html">conf</a>)</li>
|
||||||
<li>an Android phone (<a href="android.html">conf</a>)</li>
|
<li>an Android phone (<a href="android.html">conf</a>)</li>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2021-04-25 dim. 19:10 -->
|
<!-- 2021-06-20 dim. 14:21 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<title>Installation</title>
|
<title>Installation</title>
|
||||||
<meta name="author" content="Dehaeze Thomas" />
|
<meta name="author" content="Dehaeze Thomas" />
|
||||||
@ -24,7 +24,7 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org6d375e1"><code>yay</code> - Package Manager</a></li>
|
<li><a href="#org6d375e1"><code>yay</code> - Package Manager</a></li>
|
||||||
<li><a href="#orgfd098ac"><code>git</code> - Version Control System</a></li>
|
<li><a href="#orgfd098ac"><code>git</code> - Version Control System</a></li>
|
||||||
<li><a href="#org43a594f"><code>termite</code> - Terminal</a></li>
|
<li><a href="#org374a65d"><code>alacritty</code> - Terminal</a></li>
|
||||||
<li><a href="#orgfeefb67"><code>bash</code> - Shell</a></li>
|
<li><a href="#orgfeefb67"><code>bash</code> - Shell</a></li>
|
||||||
<li><a href="#orge245cf3"><code>tmux</code> - Terminal Multiplexer</a></li>
|
<li><a href="#orge245cf3"><code>tmux</code> - Terminal Multiplexer</a></li>
|
||||||
<li><a href="#org7ff3a78">Fonts</a></li>
|
<li><a href="#org7ff3a78">Fonts</a></li>
|
||||||
@ -45,28 +45,28 @@
|
|||||||
</li>
|
</li>
|
||||||
<li><a href="#org3faed1a"><code>buku</code> - Bookmark Manager</a>
|
<li><a href="#org3faed1a"><code>buku</code> - Bookmark Manager</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org0476127">Installation</a></li>
|
<li><a href="#org23fe870">Installation</a></li>
|
||||||
<li><a href="#org66b2873">Integration with Rofi</a>
|
<li><a href="#org66b2873">Integration with Rofi</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org695c5f6">Installation</a></li>
|
<li><a href="#org5acbeff">Installation</a></li>
|
||||||
<li><a href="#orge029c21">Configuration</a></li>
|
<li><a href="#orgfde4198">Configuration</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org95386c4">Integration with qutebrowser</a></li>
|
<li><a href="#org95386c4">Integration with qutebrowser</a></li>
|
||||||
<li><a href="#org731f2dd">Synchronization with a git repository</a></li>
|
<li><a href="#org731f2dd">Synchronization with a git repository</a></li>
|
||||||
<li><a href="#orgf877133">Import Bookmarks from Firefox and Chrome</a></li>
|
<li><a href="#orgf877133">Import Bookmarks from Firefox and Chrome</a></li>
|
||||||
<li><a href="#orga16f95a">Web Interface</a></li>
|
<li><a href="#orga16f95a">Web Interface</a></li>
|
||||||
<li><a href="#org70fcfb3">Cheatsheet</a></li>
|
<li><a href="#orgfbd6615">Cheatsheet</a></li>
|
||||||
<li><a href="#org5949612">Alternatives</a></li>
|
<li><a href="#org5949612">Alternatives</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orga55a047"><code>qutebrowser</code> - Browser</a>
|
<li><a href="#orga55a047"><code>qutebrowser</code> - Browser</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgfe80476">Installation</a></li>
|
<li><a href="#org75892ae">Installation</a></li>
|
||||||
<li><a href="#org39f7a62">View Pdf inside qutebrowser with pdfjs</a>
|
<li><a href="#org39f7a62">View Pdf inside qutebrowser with pdfjs</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgd7d6b6f">Installation</a></li>
|
<li><a href="#orgaac4732">Installation</a></li>
|
||||||
<li><a href="#orgc8c0e83">Usage</a></li>
|
<li><a href="#orgd8c9a20">Usage</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org013ba8f">Integration with Pass: the password manager</a></li>
|
<li><a href="#org013ba8f">Integration with Pass: the password manager</a></li>
|
||||||
@ -99,17 +99,17 @@
|
|||||||
</li>
|
</li>
|
||||||
<li><a href="#org3b6c55a"><code>weechat</code> - Chat Application</a>
|
<li><a href="#org3b6c55a"><code>weechat</code> - Chat Application</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org731cc00">Installation</a></li>
|
<li><a href="#org0d061b7">Installation</a></li>
|
||||||
<li><a href="#orgce5f866">Enable mouse support</a></li>
|
<li><a href="#orgce5f866">Enable mouse support</a></li>
|
||||||
<li><a href="#org2e3ae2e">Scripts</a></li>
|
<li><a href="#org2e3ae2e">Scripts</a></li>
|
||||||
<li><a href="#orgc35ab72">Theme</a></li>
|
<li><a href="#orgc35ab72">Theme</a></li>
|
||||||
<li><a href="#orgcf52c65">Configuration</a></li>
|
<li><a href="#org758eae0">Configuration</a></li>
|
||||||
<li><a href="#org1bedc2c">Multi-line messages</a></li>
|
<li><a href="#org1bedc2c">Multi-line messages</a></li>
|
||||||
<li><a href="#orgdabe0b1">Send message using <code>$EDITOR</code></a></li>
|
<li><a href="#orgdabe0b1">Send message using <code>$EDITOR</code></a></li>
|
||||||
<li><a href="#org58be0d2">CheatSheet</a></li>
|
<li><a href="#org58be0d2">CheatSheet</a></li>
|
||||||
<li><a href="#org509ffd4">Slack Integration</a>
|
<li><a href="#org509ffd4">Slack Integration</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org2a4fdbe">Installation</a></li>
|
<li><a href="#org901c88c">Installation</a></li>
|
||||||
<li><a href="#org4e33767">Add your Slack API key(s)</a></li>
|
<li><a href="#org4e33767">Add your Slack API key(s)</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
@ -123,8 +123,8 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org12c74b1"><code>mbsync</code> - Synchronize Mailboxes</a>
|
<li><a href="#org12c74b1"><code>mbsync</code> - Synchronize Mailboxes</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgfdf1d7e">Installation</a></li>
|
<li><a href="#org4766930">Installation</a></li>
|
||||||
<li><a href="#org203ef82">Configuration</a></li>
|
<li><a href="#org1f7cdd9">Configuration</a></li>
|
||||||
<li><a href="#org1ae519a">Automation using systemd</a>
|
<li><a href="#org1ae519a">Automation using systemd</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org0635e65">Retreive New mails</a></li>
|
<li><a href="#org0635e65">Retreive New mails</a></li>
|
||||||
@ -135,13 +135,13 @@
|
|||||||
</li>
|
</li>
|
||||||
<li><a href="#org6772b74"><code>msmtp</code> - Send Mails</a>
|
<li><a href="#org6772b74"><code>msmtp</code> - Send Mails</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org036e930">Installation</a></li>
|
<li><a href="#org9922807">Installation</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org4b6cea1"><code>mu</code> - Mail Index, Search and Tagging</a></li>
|
<li><a href="#org4b6cea1"><code>mu</code> - Mail Index, Search and Tagging</a></li>
|
||||||
<li><a href="#orge78a982"><code>neomutt</code> - Mail Client</a>
|
<li><a href="#orge78a982"><code>neomutt</code> - Mail Client</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org1a4d185">Installation</a></li>
|
<li><a href="#org7cc5df0">Installation</a></li>
|
||||||
<li><a href="#org7d3dd45">Display html mails</a></li>
|
<li><a href="#org7d3dd45">Display html mails</a></li>
|
||||||
<li><a href="#org18d6f5c">Open Url from mail</a></li>
|
<li><a href="#org18d6f5c">Open Url from mail</a></li>
|
||||||
<li><a href="#orgcb95e75">Ressources</a></li>
|
<li><a href="#orgcb95e75">Ressources</a></li>
|
||||||
@ -154,8 +154,8 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org79b747c">Ranger</a>
|
<li><a href="#org79b747c">Ranger</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org2c98986">Installation</a></li>
|
<li><a href="#orgc441ad0">Installation</a></li>
|
||||||
<li><a href="#org29505fd">Configuration</a></li>
|
<li><a href="#org17fff96">Configuration</a></li>
|
||||||
<li><a href="#orga7f1329">Display pdf</a></li>
|
<li><a href="#orga7f1329">Display pdf</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
@ -164,35 +164,35 @@
|
|||||||
</li>
|
</li>
|
||||||
<li><a href="#org0ceb81d"><code>sxiv</code> - Image viewer</a>
|
<li><a href="#org0ceb81d"><code>sxiv</code> - Image viewer</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgab6352b">Installation</a></li>
|
<li><a href="#org2c7eece">Installation</a></li>
|
||||||
<li><a href="#org1d4a585">Open Gif</a></li>
|
<li><a href="#org1d4a585">Open Gif</a></li>
|
||||||
<li><a href="#orgecc11c1">Cheatsheet</a></li>
|
<li><a href="#org6859b45">Cheatsheet</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orga293c83"><code>sxhkd</code> - HotKey Manager</a></li>
|
<li><a href="#orga293c83"><code>sxhkd</code> - HotKey Manager</a></li>
|
||||||
<li><a href="#orgb9ddb93"><code>i3</code> - Windows Manager</a>
|
<li><a href="#orgb9ddb93"><code>i3</code> - Windows Manager</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org7279a21">Installation</a></li>
|
<li><a href="#orgb26157b">Installation</a></li>
|
||||||
<li><a href="#org9bcc5d0">Configuration</a></li>
|
<li><a href="#org8bfbbb6">Configuration</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org2021f80"><code>polybar</code> - Top Bar</a>
|
<li><a href="#org2021f80"><code>polybar</code> - Top Bar</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org615564a">Installation</a></li>
|
<li><a href="#org565f843">Installation</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgc4420f9"><code>picom</code> - Compositor</a>
|
<li><a href="#orgc4420f9"><code>picom</code> - Compositor</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgb2faee9">Installation</a></li>
|
<li><a href="#org87613b5">Installation</a></li>
|
||||||
<li><a href="#orge08e43c">Configuration</a></li>
|
<li><a href="#orge0acd99">Configuration</a></li>
|
||||||
<li><a href="#org3eda8aa">Automatic run as daemon</a></li>
|
<li><a href="#org3eda8aa">Automatic run as daemon</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org2f8f940"><code>dunst</code> - Notification Manager</a>
|
<li><a href="#org2f8f940"><code>dunst</code> - Notification Manager</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org0994364">Installation</a></li>
|
<li><a href="#orgb686d22">Installation</a></li>
|
||||||
<li><a href="#orgab5d058">Configuration</a></li>
|
<li><a href="#orga95be89">Configuration</a></li>
|
||||||
<li><a href="#org44e33a9">Usage</a></li>
|
<li><a href="#orgf11ba75">Usage</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org4178a17">Office Suite</a>
|
<li><a href="#org4178a17">Office Suite</a>
|
||||||
@ -233,14 +233,14 @@
|
|||||||
<li><a href="#org6a8646d"><code>orgmode</code> - Task Manager</a></li>
|
<li><a href="#org6a8646d"><code>orgmode</code> - Task Manager</a></li>
|
||||||
<li><a href="#orga841f53"><code>zathura</code> - PDF Reader</a>
|
<li><a href="#orga841f53"><code>zathura</code> - PDF Reader</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgc32f4df">Installation</a></li>
|
<li><a href="#orgdaea54d">Installation</a></li>
|
||||||
<li><a href="#orgfde4198">Configuration</a></li>
|
<li><a href="#orgba59e57">Configuration</a></li>
|
||||||
<li><a href="#orgfbd6615">Cheatsheet</a></li>
|
<li><a href="#org7f90b87">Cheatsheet</a></li>
|
||||||
<li><a href="#orgf6c7dea">Multi-monitor pdf presentation - pdfpc</a>
|
<li><a href="#orgf6c7dea">Multi-monitor pdf presentation - pdfpc</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org23fe870">Installation</a></li>
|
<li><a href="#org0f602b9">Installation</a></li>
|
||||||
<li><a href="#orge1b13e7">Video support</a></li>
|
<li><a href="#orge1b13e7">Video support</a></li>
|
||||||
<li><a href="#orgd8c9a20">Usage</a></li>
|
<li><a href="#orgc19d52b">Usage</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -265,7 +265,7 @@
|
|||||||
<li><a href="#org64fd10c"><code>anydesk</code> - Remote Desktop</a></li>
|
<li><a href="#org64fd10c"><code>anydesk</code> - Remote Desktop</a></li>
|
||||||
<li><a href="#orgfbeddca"><code>wireguard</code> - VPN</a></li>
|
<li><a href="#orgfbeddca"><code>wireguard</code> - VPN</a></li>
|
||||||
<li><a href="#orgd48246b"><code>nordvpn</code> - VPN</a></li>
|
<li><a href="#orgd48246b"><code>nordvpn</code> - VPN</a></li>
|
||||||
<li><a href="#orgb4a3de0">Others</a>
|
<li><a href="#org2fc3118">Others</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgf054688"><code>maim=/=flameshot</code> - Take Screenshots</a></li>
|
<li><a href="#orgf054688"><code>maim=/=flameshot</code> - Take Screenshots</a></li>
|
||||||
<li><a href="#org72b76b6"><code>screenkey</code> - Show pressed keys</a></li>
|
<li><a href="#org72b76b6"><code>screenkey</code> - Show pressed keys</a></li>
|
||||||
@ -290,7 +290,7 @@
|
|||||||
<li><a href="#org317c04c">Completion</a></li>
|
<li><a href="#org317c04c">Completion</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org2fc3118">Others</a></li>
|
<li><a href="#orga497aaa">Others</a></li>
|
||||||
<li><a href="#org042d8d2">Archive and Extract</a></li>
|
<li><a href="#org042d8d2">Archive and Extract</a></li>
|
||||||
<li><a href="#orgd465654">Hardware</a></li>
|
<li><a href="#orgd465654">Hardware</a></li>
|
||||||
<li><a href="#orgd0eebf3">Network</a></li>
|
<li><a href="#orgd0eebf3">Network</a></li>
|
||||||
@ -438,27 +438,27 @@ And configured with the following command:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org43a594f" class="outline-2">
|
<div id="outline-container-org374a65d" class="outline-2">
|
||||||
<h2 id="org43a594f"><code>termite</code> - Terminal</h2>
|
<h2 id="org374a65d"><code>alacritty</code> - Terminal</h2>
|
||||||
<div class="outline-text-2" id="text-org43a594f">
|
<div class="outline-text-2" id="text-org374a65d">
|
||||||
<p>
|
<p>
|
||||||
<a href="https://github.com/thestinger/termite">Termite</a> is a very nice keyboard-centric terminal.
|
<a href="https://github.com/alacritty/alacritty">Alacritty</a> is a very nice keyboard-centric terminal.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
It can be installed like so:
|
It can be installed like so:
|
||||||
</p>
|
</p>
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash"> yay -S termite
|
<pre class="src src-bash"> yay -S alacritty
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Its configuration file is described <a href="termite.html">here</a>.
|
Its configuration file is described <a href="alacritty.html">here</a>.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
<caption class="t-above"><span class="table-number">Table 2:</span> <code>termite</code> - Cheatsheet</caption>
|
<caption class="t-above"><span class="table-number">Table 2:</span> <code>alacritty</code> - Cheatsheet</caption>
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col class="org-left" />
|
<col class="org-left" />
|
||||||
@ -967,9 +967,9 @@ Bitwarden <a href="https://github.com/bitwarden/cli">https://github.com/bitwarde
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org0476127" class="outline-3">
|
<div id="outline-container-org23fe870" class="outline-3">
|
||||||
<h3 id="org0476127">Installation</h3>
|
<h3 id="org23fe870">Installation</h3>
|
||||||
<div class="outline-text-3" id="text-org0476127">
|
<div class="outline-text-3" id="text-org23fe870">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash"> yay -S buku
|
<pre class="src src-bash"> yay -S buku
|
||||||
</pre>
|
</pre>
|
||||||
@ -985,9 +985,9 @@ Bitwarden <a href="https://github.com/bitwarden/cli">https://github.com/bitwarde
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org695c5f6" class="outline-4">
|
<div id="outline-container-org5acbeff" class="outline-4">
|
||||||
<h4 id="org695c5f6">Installation</h4>
|
<h4 id="org5acbeff">Installation</h4>
|
||||||
<div class="outline-text-4" id="text-org695c5f6">
|
<div class="outline-text-4" id="text-org5acbeff">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash"> wget https://raw.githubusercontent.com/carnager/buku_run/master/buku_run -o ~/.local/bin/buku_run
|
<pre class="src src-bash"> wget https://raw.githubusercontent.com/carnager/buku_run/master/buku_run -o ~/.local/bin/buku_run
|
||||||
<span class="org-type">chmod</span> +x ~/.local/bin/buku_run
|
<span class="org-type">chmod</span> +x ~/.local/bin/buku_run
|
||||||
@ -996,9 +996,9 @@ Bitwarden <a href="https://github.com/bitwarden/cli">https://github.com/bitwarde
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orge029c21" class="outline-4">
|
<div id="outline-container-orgfde4198" class="outline-4">
|
||||||
<h4 id="orge029c21">Configuration</h4>
|
<h4 id="orgfde4198">Configuration</h4>
|
||||||
<div class="outline-text-4" id="text-orge029c21">
|
<div class="outline-text-4" id="text-orgfde4198">
|
||||||
<p>
|
<p>
|
||||||
The configuration file is here: <code>~/.config/buku_run/config</code>
|
The configuration file is here: <code>~/.config/buku_run/config</code>
|
||||||
</p>
|
</p>
|
||||||
@ -1075,9 +1075,9 @@ And then browse to <a href="http://127.0.0.1:5001">http://127.0.0.1:5001</a>.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org70fcfb3" class="outline-3">
|
<div id="outline-container-orgfbd6615" class="outline-3">
|
||||||
<h3 id="org70fcfb3">Cheatsheet</h3>
|
<h3 id="orgfbd6615">Cheatsheet</h3>
|
||||||
<div class="outline-text-3" id="text-org70fcfb3">
|
<div class="outline-text-3" id="text-orgfbd6615">
|
||||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
@ -1141,9 +1141,9 @@ And then browse to <a href="http://127.0.0.1:5001">http://127.0.0.1:5001</a>.
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgfe80476" class="outline-3">
|
<div id="outline-container-org75892ae" class="outline-3">
|
||||||
<h3 id="orgfe80476">Installation</h3>
|
<h3 id="org75892ae">Installation</h3>
|
||||||
<div class="outline-text-3" id="text-orgfe80476">
|
<div class="outline-text-3" id="text-org75892ae">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash"> yay -S qutebrowser
|
<pre class="src src-bash"> yay -S qutebrowser
|
||||||
</pre>
|
</pre>
|
||||||
@ -1155,9 +1155,9 @@ And then browse to <a href="http://127.0.0.1:5001">http://127.0.0.1:5001</a>.
|
|||||||
<h3 id="org39f7a62">View Pdf inside qutebrowser with pdfjs</h3>
|
<h3 id="org39f7a62">View Pdf inside qutebrowser with pdfjs</h3>
|
||||||
<div class="outline-text-3" id="text-org39f7a62">
|
<div class="outline-text-3" id="text-org39f7a62">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgd7d6b6f" class="outline-4">
|
<div id="outline-container-orgaac4732" class="outline-4">
|
||||||
<h4 id="orgd7d6b6f">Installation</h4>
|
<h4 id="orgaac4732">Installation</h4>
|
||||||
<div class="outline-text-4" id="text-orgd7d6b6f">
|
<div class="outline-text-4" id="text-orgaac4732">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash"> yay -S pdfjs
|
<pre class="src src-bash"> yay -S pdfjs
|
||||||
</pre>
|
</pre>
|
||||||
@ -1165,9 +1165,9 @@ And then browse to <a href="http://127.0.0.1:5001">http://127.0.0.1:5001</a>.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgc8c0e83" class="outline-4">
|
<div id="outline-container-orgd8c9a20" class="outline-4">
|
||||||
<h4 id="orgc8c0e83">Usage</h4>
|
<h4 id="orgd8c9a20">Usage</h4>
|
||||||
<div class="outline-text-4" id="text-orgc8c0e83">
|
<div class="outline-text-4" id="text-orgd8c9a20">
|
||||||
<p>
|
<p>
|
||||||
When opening a pdf file on qutebrowser, you’ll be ask for options:
|
When opening a pdf file on qutebrowser, you’ll be ask for options:
|
||||||
</p>
|
</p>
|
||||||
@ -1662,9 +1662,9 @@ This looks for contacts in all indexed emails.
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org731cc00" class="outline-3">
|
<div id="outline-container-org0d061b7" class="outline-3">
|
||||||
<h3 id="org731cc00">Installation</h3>
|
<h3 id="org0d061b7">Installation</h3>
|
||||||
<div class="outline-text-3" id="text-org731cc00">
|
<div class="outline-text-3" id="text-org0d061b7">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash"> yay -S weechat
|
<pre class="src src-bash"> yay -S weechat
|
||||||
</pre>
|
</pre>
|
||||||
@ -1775,9 +1775,9 @@ Then we install some dependencies
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgcf52c65" class="outline-3">
|
<div id="outline-container-org758eae0" class="outline-3">
|
||||||
<h3 id="orgcf52c65">Configuration</h3>
|
<h3 id="org758eae0">Configuration</h3>
|
||||||
<div class="outline-text-3" id="text-orgcf52c65">
|
<div class="outline-text-3" id="text-org758eae0">
|
||||||
<p>
|
<p>
|
||||||
<a href="https://hugo.md/post/the-perfect-weechat-setup-2/">https://hugo.md/post/the-perfect-weechat-setup-2/</a>
|
<a href="https://hugo.md/post/the-perfect-weechat-setup-2/">https://hugo.md/post/the-perfect-weechat-setup-2/</a>
|
||||||
<a href="https://robots.thoughtbot.com/weechat-for-slacks-irc-gateway">https://robots.thoughtbot.com/weechat-for-slacks-irc-gateway</a>
|
<a href="https://robots.thoughtbot.com/weechat-for-slacks-irc-gateway">https://robots.thoughtbot.com/weechat-for-slacks-irc-gateway</a>
|
||||||
@ -1882,9 +1882,9 @@ Then, on weechat, type <code>/edit</code>.
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org2a4fdbe" class="outline-4">
|
<div id="outline-container-org901c88c" class="outline-4">
|
||||||
<h4 id="org2a4fdbe">Installation</h4>
|
<h4 id="org901c88c">Installation</h4>
|
||||||
<div class="outline-text-4" id="text-org2a4fdbe">
|
<div class="outline-text-4" id="text-org901c88c">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash"> yay -S python2-websocket-client
|
<pre class="src src-bash"> yay -S python2-websocket-client
|
||||||
</pre>
|
</pre>
|
||||||
@ -2000,9 +2000,9 @@ It runs weechat inside tmux.
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgfdf1d7e" class="outline-4">
|
<div id="outline-container-org4766930" class="outline-4">
|
||||||
<h4 id="orgfdf1d7e">Installation</h4>
|
<h4 id="org4766930">Installation</h4>
|
||||||
<div class="outline-text-4" id="text-orgfdf1d7e">
|
<div class="outline-text-4" id="text-org4766930">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash"> yay -S isync
|
<pre class="src src-bash"> yay -S isync
|
||||||
</pre>
|
</pre>
|
||||||
@ -2010,9 +2010,9 @@ It runs weechat inside tmux.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org203ef82" class="outline-4">
|
<div id="outline-container-org1f7cdd9" class="outline-4">
|
||||||
<h4 id="org203ef82">Configuration</h4>
|
<h4 id="org1f7cdd9">Configuration</h4>
|
||||||
<div class="outline-text-4" id="text-org203ef82">
|
<div class="outline-text-4" id="text-org1f7cdd9">
|
||||||
<p>
|
<p>
|
||||||
<code>~/.mbsyncrc</code>
|
<code>~/.mbsyncrc</code>
|
||||||
</p>
|
</p>
|
||||||
@ -2066,9 +2066,9 @@ systemctl --user start syncmail.timer
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org036e930" class="outline-4">
|
<div id="outline-container-org9922807" class="outline-4">
|
||||||
<h4 id="org036e930">Installation</h4>
|
<h4 id="org9922807">Installation</h4>
|
||||||
<div class="outline-text-4" id="text-org036e930">
|
<div class="outline-text-4" id="text-org9922807">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash"> yay -S msmtp
|
<pre class="src src-bash"> yay -S msmtp
|
||||||
</pre>
|
</pre>
|
||||||
@ -2094,9 +2094,9 @@ systemctl --user start syncmail.timer
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org1a4d185" class="outline-4">
|
<div id="outline-container-org7cc5df0" class="outline-4">
|
||||||
<h4 id="org1a4d185">Installation</h4>
|
<h4 id="org7cc5df0">Installation</h4>
|
||||||
<div class="outline-text-4" id="text-org1a4d185">
|
<div class="outline-text-4" id="text-org7cc5df0">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash"> yay -S neomutt
|
<pre class="src src-bash"> yay -S neomutt
|
||||||
</pre>
|
</pre>
|
||||||
@ -2165,9 +2165,9 @@ Configuration files:
|
|||||||
<a href="https://github.com/ranger/ranger">https://github.com/ranger/ranger</a>
|
<a href="https://github.com/ranger/ranger">https://github.com/ranger/ranger</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org2c98986" class="outline-4">
|
<div id="outline-container-orgc441ad0" class="outline-4">
|
||||||
<h4 id="org2c98986">Installation</h4>
|
<h4 id="orgc441ad0">Installation</h4>
|
||||||
<div class="outline-text-4" id="text-org2c98986">
|
<div class="outline-text-4" id="text-orgc441ad0">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash">yay -S ranger
|
<pre class="src src-bash">yay -S ranger
|
||||||
</pre>
|
</pre>
|
||||||
@ -2175,9 +2175,9 @@ Configuration files:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org29505fd" class="outline-4">
|
<div id="outline-container-org17fff96" class="outline-4">
|
||||||
<h4 id="org29505fd">Configuration</h4>
|
<h4 id="org17fff96">Configuration</h4>
|
||||||
<div class="outline-text-4" id="text-org29505fd">
|
<div class="outline-text-4" id="text-org17fff96">
|
||||||
<p>
|
<p>
|
||||||
The configuration file is <code>~/.config/ranger/rc.conf</code>.
|
The configuration file is <code>~/.config/ranger/rc.conf</code>.
|
||||||
</p>
|
</p>
|
||||||
@ -2221,9 +2221,9 @@ It works better with Urxvt.
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgab6352b" class="outline-3">
|
<div id="outline-container-org2c7eece" class="outline-3">
|
||||||
<h3 id="orgab6352b">Installation</h3>
|
<h3 id="org2c7eece">Installation</h3>
|
||||||
<div class="outline-text-3" id="text-orgab6352b">
|
<div class="outline-text-3" id="text-org2c7eece">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash"> yay -S sxiv
|
<pre class="src src-bash"> yay -S sxiv
|
||||||
</pre>
|
</pre>
|
||||||
@ -2241,9 +2241,9 @@ It works better with Urxvt.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgecc11c1" class="outline-3">
|
<div id="outline-container-org6859b45" class="outline-3">
|
||||||
<h3 id="orgecc11c1">Cheatsheet</h3>
|
<h3 id="org6859b45">Cheatsheet</h3>
|
||||||
<div class="outline-text-3" id="text-orgecc11c1">
|
<div class="outline-text-3" id="text-org6859b45">
|
||||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
@ -2316,9 +2316,9 @@ Configuration file: <a href="sxhkd.html">SXHKD</a>.
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org7279a21" class="outline-3">
|
<div id="outline-container-orgb26157b" class="outline-3">
|
||||||
<h3 id="org7279a21">Installation</h3>
|
<h3 id="orgb26157b">Installation</h3>
|
||||||
<div class="outline-text-3" id="text-org7279a21">
|
<div class="outline-text-3" id="text-orgb26157b">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash"> yay -S i3-gaps
|
<pre class="src src-bash"> yay -S i3-gaps
|
||||||
</pre>
|
</pre>
|
||||||
@ -2326,9 +2326,9 @@ Configuration file: <a href="sxhkd.html">SXHKD</a>.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org9bcc5d0" class="outline-3">
|
<div id="outline-container-org8bfbbb6" class="outline-3">
|
||||||
<h3 id="org9bcc5d0">Configuration</h3>
|
<h3 id="org8bfbbb6">Configuration</h3>
|
||||||
<div class="outline-text-3" id="text-org9bcc5d0">
|
<div class="outline-text-3" id="text-org8bfbbb6">
|
||||||
<p>
|
<p>
|
||||||
<code>~/.i3/config</code>
|
<code>~/.i3/config</code>
|
||||||
</p>
|
</p>
|
||||||
@ -2348,9 +2348,9 @@ Configuration file: <a href="sxhkd.html">SXHKD</a>.
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org615564a" class="outline-3">
|
<div id="outline-container-org565f843" class="outline-3">
|
||||||
<h3 id="org615564a">Installation</h3>
|
<h3 id="org565f843">Installation</h3>
|
||||||
<div class="outline-text-3" id="text-org615564a">
|
<div class="outline-text-3" id="text-org565f843">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash"> yay -S polybar
|
<pre class="src src-bash"> yay -S polybar
|
||||||
</pre>
|
</pre>
|
||||||
@ -2371,9 +2371,9 @@ Configuration file: <a href="sxhkd.html">SXHKD</a>.
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgb2faee9" class="outline-3">
|
<div id="outline-container-org87613b5" class="outline-3">
|
||||||
<h3 id="orgb2faee9">Installation</h3>
|
<h3 id="org87613b5">Installation</h3>
|
||||||
<div class="outline-text-3" id="text-orgb2faee9">
|
<div class="outline-text-3" id="text-org87613b5">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash"> yay -S picom
|
<pre class="src src-bash"> yay -S picom
|
||||||
</pre>
|
</pre>
|
||||||
@ -2381,9 +2381,9 @@ Configuration file: <a href="sxhkd.html">SXHKD</a>.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orge08e43c" class="outline-3">
|
<div id="outline-container-orge0acd99" class="outline-3">
|
||||||
<h3 id="orge08e43c">Configuration</h3>
|
<h3 id="orge0acd99">Configuration</h3>
|
||||||
<div class="outline-text-3" id="text-orge08e43c">
|
<div class="outline-text-3" id="text-orge0acd99">
|
||||||
<p>
|
<p>
|
||||||
<code>~/.config/picom/picom.conf</code>
|
<code>~/.config/picom/picom.conf</code>
|
||||||
</p>
|
</p>
|
||||||
@ -2413,9 +2413,9 @@ Compton is run from <code>.xprofile</code> config in the background:
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org0994364" class="outline-3">
|
<div id="outline-container-orgb686d22" class="outline-3">
|
||||||
<h3 id="org0994364">Installation</h3>
|
<h3 id="orgb686d22">Installation</h3>
|
||||||
<div class="outline-text-3" id="text-org0994364">
|
<div class="outline-text-3" id="text-orgb686d22">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash"> yay -S dunst dunstify
|
<pre class="src src-bash"> yay -S dunst dunstify
|
||||||
</pre>
|
</pre>
|
||||||
@ -2423,18 +2423,18 @@ Compton is run from <code>.xprofile</code> config in the background:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgab5d058" class="outline-3">
|
<div id="outline-container-orga95be89" class="outline-3">
|
||||||
<h3 id="orgab5d058">Configuration</h3>
|
<h3 id="orga95be89">Configuration</h3>
|
||||||
<div class="outline-text-3" id="text-orgab5d058">
|
<div class="outline-text-3" id="text-orga95be89">
|
||||||
<p>
|
<p>
|
||||||
<code>~/.config/dunst/dunstrc</code>
|
<code>~/.config/dunst/dunstrc</code>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org44e33a9" class="outline-3">
|
<div id="outline-container-orgf11ba75" class="outline-3">
|
||||||
<h3 id="org44e33a9">Usage</h3>
|
<h3 id="orgf11ba75">Usage</h3>
|
||||||
<div class="outline-text-3" id="text-org44e33a9">
|
<div class="outline-text-3" id="text-orgf11ba75">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash"> dunstify --replace=<span class="org-highlight-numbers-number">16549</span> <span class="org-string">"AppName"</span> <span class="org-string">"Message"</span>
|
<pre class="src src-bash"> dunstify --replace=<span class="org-highlight-numbers-number">16549</span> <span class="org-string">"AppName"</span> <span class="org-string">"Message"</span>
|
||||||
</pre>
|
</pre>
|
||||||
@ -2881,9 +2881,9 @@ Configuration:
|
|||||||
<a href="https://pwmt.org/projects/zathura/">https://pwmt.org/projects/zathura/</a>
|
<a href="https://pwmt.org/projects/zathura/">https://pwmt.org/projects/zathura/</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgc32f4df" class="outline-3">
|
<div id="outline-container-orgdaea54d" class="outline-3">
|
||||||
<h3 id="orgc32f4df">Installation</h3>
|
<h3 id="orgdaea54d">Installation</h3>
|
||||||
<div class="outline-text-3" id="text-orgc32f4df">
|
<div class="outline-text-3" id="text-orgdaea54d">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash"> yay -S zathura
|
<pre class="src src-bash"> yay -S zathura
|
||||||
</pre>
|
</pre>
|
||||||
@ -2903,18 +2903,18 @@ It seems that mupdf is better that poppler to view pdf.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgfde4198" class="outline-3">
|
<div id="outline-container-orgba59e57" class="outline-3">
|
||||||
<h3 id="orgfde4198">Configuration</h3>
|
<h3 id="orgba59e57">Configuration</h3>
|
||||||
<div class="outline-text-3" id="text-orgfde4198">
|
<div class="outline-text-3" id="text-orgba59e57">
|
||||||
<p>
|
<p>
|
||||||
<code>~/.config/zathura/zathurarc</code>
|
<code>~/.config/zathura/zathurarc</code>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgfbd6615" class="outline-3">
|
<div id="outline-container-org7f90b87" class="outline-3">
|
||||||
<h3 id="orgfbd6615">Cheatsheet</h3>
|
<h3 id="org7f90b87">Cheatsheet</h3>
|
||||||
<div class="outline-text-3" id="text-orgfbd6615">
|
<div class="outline-text-3" id="text-org7f90b87">
|
||||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
@ -3017,9 +3017,9 @@ pdfpc is a great tool for showing pdf presentations. It support:
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org23fe870" class="outline-4">
|
<div id="outline-container-org0f602b9" class="outline-4">
|
||||||
<h4 id="org23fe870">Installation</h4>
|
<h4 id="org0f602b9">Installation</h4>
|
||||||
<div class="outline-text-4" id="text-org23fe870">
|
<div class="outline-text-4" id="text-org0f602b9">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash"> yay -S pdfpc
|
<pre class="src src-bash"> yay -S pdfpc
|
||||||
</pre>
|
</pre>
|
||||||
@ -3037,9 +3037,9 @@ pdfpc is a great tool for showing pdf presentations. It support:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgd8c9a20" class="outline-4">
|
<div id="outline-container-orgc19d52b" class="outline-4">
|
||||||
<h4 id="orgd8c9a20">Usage</h4>
|
<h4 id="orgc19d52b">Usage</h4>
|
||||||
<div class="outline-text-4" id="text-orgd8c9a20">
|
<div class="outline-text-4" id="text-orgc19d52b">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash"> pdfpc filename.pdf
|
<pre class="src src-bash"> pdfpc filename.pdf
|
||||||
</pre>
|
</pre>
|
||||||
@ -3303,9 +3303,9 @@ Configuration:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgb4a3de0" class="outline-2">
|
<div id="outline-container-org2fc3118" class="outline-2">
|
||||||
<h2 id="orgb4a3de0">Others</h2>
|
<h2 id="org2fc3118">Others</h2>
|
||||||
<div class="outline-text-2" id="text-orgb4a3de0">
|
<div class="outline-text-2" id="text-org2fc3118">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgf054688" class="outline-3">
|
<div id="outline-container-orgf054688" class="outline-3">
|
||||||
<h3 id="orgf054688"><code>maim=/=flameshot</code> - Take Screenshots</h3>
|
<h3 id="orgf054688"><code>maim=/=flameshot</code> - Take Screenshots</h3>
|
||||||
@ -3377,7 +3377,7 @@ Configuration:
|
|||||||
<div class="outline-text-3" id="text-org635c3c6">
|
<div class="outline-text-3" id="text-org635c3c6">
|
||||||
<p>
|
<p>
|
||||||
<code>trash-cli</code> is used to manage the trash.
|
<code>trash-cli</code> is used to manage the trash.
|
||||||
It is integrated with Ranger.
|
It is integrated with <code>ranger</code> and <code>pcmanFM</code>.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
@ -3777,9 +3777,9 @@ Using command line:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org2fc3118" class="outline-3">
|
<div id="outline-container-orga497aaa" class="outline-3">
|
||||||
<h3 id="org2fc3118">Others</h3>
|
<h3 id="orga497aaa">Others</h3>
|
||||||
<div class="outline-text-3" id="text-org2fc3118">
|
<div class="outline-text-3" id="text-orga497aaa">
|
||||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
@ -4489,7 +4489,7 @@ To see next timers
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: Dehaeze Thomas</p>
|
<p class="author">Author: Dehaeze Thomas</p>
|
||||||
<p class="date">Created: 2021-04-25 dim. 19:10</p>
|
<p class="date">Created: 2021-06-20 dim. 14:21</p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
719
docs/iot.html
Normal file
719
docs/iot.html
Normal file
@ -0,0 +1,719 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
|
<head>
|
||||||
|
<!-- 2021-10-25 lun. 14:33 -->
|
||||||
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
|
<title>IoT</title>
|
||||||
|
<meta name="author" content="Dehaeze Thomas" />
|
||||||
|
<meta name="generator" content="Org Mode" />
|
||||||
|
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||||
|
<script type="text/javascript" src="./dist/script.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="org-div-home-and-up">
|
||||||
|
<a accesskey="h" href="./index.html"> UP </a>
|
||||||
|
|
|
||||||
|
<a accesskey="H" href="./index.html"> HOME </a>
|
||||||
|
</div><div id="content" class="content">
|
||||||
|
<h1 class="title">IoT</h1>
|
||||||
|
<div id="table-of-contents" role="doc-toc">
|
||||||
|
<h2>Table of Contents</h2>
|
||||||
|
<div id="text-table-of-contents" role="doc-toc">
|
||||||
|
<ul>
|
||||||
|
<li><a href="#orgb605813">Smart Bulbs</a></li>
|
||||||
|
<li><a href="#orgbabc09f">Smart Plugs</a></li>
|
||||||
|
<li><a href="#orgbfd8257">ESPHome</a>
|
||||||
|
<ul>
|
||||||
|
<li><a href="#org1e7eb56">Sonoff S26 - Smart Socket</a>
|
||||||
|
<ul>
|
||||||
|
<li><a href="#org4a58ee5">Sonoff S26 1</a></li>
|
||||||
|
<li><a href="#org207ec57">Sonoff S26 2</a></li>
|
||||||
|
<li><a href="#org2c9bfdd">Sonoff S26 3</a></li>
|
||||||
|
<li><a href="#org25259ac">Sonoff S26 4</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li><a href="#orgc7cb06f">Anoopsyche SB14 - E27 Smart Bulb (Cold White / Warm White)</a>
|
||||||
|
<ul>
|
||||||
|
<li><a href="#org8288a83">Anoopsyche CWWW 1</a></li>
|
||||||
|
<li><a href="#org8484933">Anoopsyche CWWW 2</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li><a href="#org13e47c3">Sonoff BasicR2 - DIY Smart Socket</a>
|
||||||
|
<ul>
|
||||||
|
<li><a href="#orgd04920e">Sonoff Basic 1</a></li>
|
||||||
|
<li><a href="#orga594994">Sonoff Basic 2</a></li>
|
||||||
|
<li><a href="#orgb5bd748">Sonoff Basic 3</a></li>
|
||||||
|
<li><a href="#org5ba0236">Sonoff Basic 4</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li><a href="#org930b61a">Sonoff POWR2 - DIY Power Monitoring Smart Socket</a>
|
||||||
|
<ul>
|
||||||
|
<li><a href="#orgfe15c18">Sonoff POWR2 1</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-orgb605813" class="outline-2">
|
||||||
|
<h2 id="orgb605813">Smart Bulbs</h2>
|
||||||
|
<div class="outline-text-2" id="text-orgb605813">
|
||||||
|
<p>
|
||||||
|
<a href="https://www.amazon.fr/Ecologique-Compatible-T%C3%A9l%C3%A9commande-Smartphone-%C3%A9nerg%C3%A9tique/dp/B07KWPQMHH/ref=sr_1_4?dchild=1&keywords=Anoopsyche&qid=1626991095&sr=8-4">https://www.amazon.fr/Ecologique-Compatible-T%C3%A9l%C3%A9commande-Smartphone-%C3%A9nerg%C3%A9tique/dp/B07KWPQMHH/ref=sr_1_4?dchild=1&keywords=Anoopsyche&qid=1626991095&sr=8-4</a>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-orgbabc09f" class="outline-2">
|
||||||
|
<h2 id="orgbabc09f">Smart Plugs</h2>
|
||||||
|
<div class="outline-text-2" id="text-orgbabc09f">
|
||||||
|
<p>
|
||||||
|
<a href="https://sonoff.tech/product/smart-plug/s26/">https://sonoff.tech/product/smart-plug/s26/</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="https://www.jannikarndt.de/blog/2018/01/how_to_install_tasmota_on_a_sonoff_device_without_opening_it/">https://www.jannikarndt.de/blog/2018/01/how_to_install_tasmota_on_a_sonoff_device_without_opening_it/</a>
|
||||||
|
<a href="https://www.youtube.com/watch?v=ONFhXM5R-t4">https://www.youtube.com/watch?v=ONFhXM5R-t4</a>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-orgbfd8257" class="outline-2">
|
||||||
|
<h2 id="orgbfd8257">ESPHome</h2>
|
||||||
|
<div class="outline-text-2" id="text-orgbfd8257">
|
||||||
|
</div>
|
||||||
|
<div id="outline-container-org1e7eb56" class="outline-3">
|
||||||
|
<h3 id="org1e7eb56">Sonoff S26 - Smart Socket</h3>
|
||||||
|
<div class="outline-text-3" id="text-org1e7eb56">
|
||||||
|
<p>
|
||||||
|
<a href="https://www.amazon.fr/Connect%C3%A9e-Intelligente-Compatible-Assistant-T%C3%A9l%C3%A9command%C3%A9e/dp/B07Y1N5J6Y/">https://www.amazon.fr/Connect%C3%A9e-Intelligente-Compatible-Assistant-T%C3%A9l%C3%A9command%C3%A9e/dp/B07Y1N5J6Y/</a>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org4a58ee5" class="outline-4">
|
||||||
|
<h4 id="org4a58ee5">Sonoff S26 1</h4>
|
||||||
|
<div class="outline-text-4" id="text-org4a58ee5">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-yaml"><span class="org-variable-name">esphome</span>:
|
||||||
|
<span class="org-variable-name">name</span>: sonoffs26_1
|
||||||
|
<span class="org-variable-name">platform</span>: ESP8266
|
||||||
|
<span class="org-variable-name">board</span>: esp01_1m
|
||||||
|
<span class="org-variable-name">board_flash_mode</span>: dout
|
||||||
|
|
||||||
|
<span class="org-variable-name">wifi</span>:
|
||||||
|
<span class="org-variable-name">ssid</span>: <span class="org-string">'Freebox-11A882'</span>
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="wifi/Freebox-11A882")>>'</span>
|
||||||
|
<span class="org-variable-name">ap</span>:
|
||||||
|
<span class="org-variable-name">ssid</span>: <span class="org-string">'Sonoff S26 1 Fallback Hotspot'</span>
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="sonoff_s26/ap")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">status_led</span>:
|
||||||
|
<span class="org-variable-name">pin</span>:
|
||||||
|
<span class="org-variable-name">number</span>: GPIO13
|
||||||
|
<span class="org-variable-name">inverted</span>: <span class="org-constant">false</span>
|
||||||
|
<span class="org-variable-name">logger</span>:
|
||||||
|
|
||||||
|
<span class="org-variable-name">api</span>:
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="sonoff_s26/api")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">ota</span>:
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="sonoff_s26/ota")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">web_server</span>:
|
||||||
|
|
||||||
|
<span class="org-variable-name">binary_sensor</span>:
|
||||||
|
- <span class="org-variable-name">platform</span>: gpio
|
||||||
|
<span class="org-variable-name">pin</span>:
|
||||||
|
<span class="org-variable-name">number</span>: GPIO0
|
||||||
|
<span class="org-variable-name">mode</span>: INPUT_PULLUP
|
||||||
|
<span class="org-variable-name">inverted</span>: <span class="org-constant">True</span>
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff S26_1 Button"</span>
|
||||||
|
<span class="org-variable-name">on_press</span>:
|
||||||
|
- <span class="org-variable-name">switch.toggle</span>: relay
|
||||||
|
- <span class="org-variable-name">platform</span>: status
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff S26_1 Status"</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">sensor</span>:
|
||||||
|
- <span class="org-variable-name">platform</span>: wifi_signal
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"sonoffs26_1 WiFi Signal"</span>
|
||||||
|
<span class="org-variable-name">update_interval</span>: 60s
|
||||||
|
|
||||||
|
<span class="org-variable-name">switch</span>:
|
||||||
|
- <span class="org-variable-name">platform</span>: gpio
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff S26_1 Relay"</span>
|
||||||
|
<span class="org-variable-name">pin</span>: GPIO12
|
||||||
|
<span class="org-variable-name">id</span>: <span class="org-string">'relay'</span>
|
||||||
|
- <span class="org-variable-name">platform</span>: restart
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"sonoffs26_1 Restart"</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org207ec57" class="outline-4">
|
||||||
|
<h4 id="org207ec57">Sonoff S26 2</h4>
|
||||||
|
<div class="outline-text-4" id="text-org207ec57">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-yaml"><span class="org-variable-name">esphome</span>:
|
||||||
|
<span class="org-variable-name">name</span>: sonoffs26_2
|
||||||
|
<span class="org-variable-name">platform</span>: ESP8266
|
||||||
|
<span class="org-variable-name">board</span>: esp01_1m
|
||||||
|
<span class="org-variable-name">board_flash_mode</span>: dout
|
||||||
|
|
||||||
|
<span class="org-variable-name">wifi</span>:
|
||||||
|
<span class="org-variable-name">ssid</span>: <span class="org-string">'Freebox-11A882'</span>
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="wifi/Freebox-11A882")>>'</span>
|
||||||
|
<span class="org-variable-name">ap</span>:
|
||||||
|
<span class="org-variable-name">ssid</span>: <span class="org-string">'Sonoff S26 2 Fallback Hotspot'</span>
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="sonoff_s26/ap")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">status_led</span>:
|
||||||
|
<span class="org-variable-name">pin</span>:
|
||||||
|
<span class="org-variable-name">number</span>: GPIO13
|
||||||
|
<span class="org-variable-name">inverted</span>: <span class="org-constant">false</span>
|
||||||
|
<span class="org-variable-name">logger</span>:
|
||||||
|
|
||||||
|
<span class="org-variable-name">api</span>:
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="sonoff_s26/api")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">ota</span>:
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="sonoff_s26/ota")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">web_server</span>:
|
||||||
|
|
||||||
|
<span class="org-variable-name">binary_sensor</span>:
|
||||||
|
- <span class="org-variable-name">platform</span>: gpio
|
||||||
|
<span class="org-variable-name">pin</span>:
|
||||||
|
<span class="org-variable-name">number</span>: GPIO0
|
||||||
|
<span class="org-variable-name">mode</span>: INPUT_PULLUP
|
||||||
|
<span class="org-variable-name">inverted</span>: <span class="org-constant">True</span>
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff S26_2 Button"</span>
|
||||||
|
<span class="org-variable-name">on_press</span>:
|
||||||
|
- <span class="org-variable-name">switch.toggle</span>: relay
|
||||||
|
- <span class="org-variable-name">platform</span>: status
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff S26_2 Status"</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">sensor</span>:
|
||||||
|
- <span class="org-variable-name">platform</span>: wifi_signal
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"sonoffs26_2 WiFi Signal"</span>
|
||||||
|
<span class="org-variable-name">update_interval</span>: 60s
|
||||||
|
|
||||||
|
<span class="org-variable-name">switch</span>:
|
||||||
|
- <span class="org-variable-name">platform</span>: gpio
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff S26_2 Relay"</span>
|
||||||
|
<span class="org-variable-name">pin</span>: GPIO12
|
||||||
|
<span class="org-variable-name">id</span>: <span class="org-string">'relay'</span>
|
||||||
|
- <span class="org-variable-name">platform</span>: restart
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"sonoffs26_2 Restart"</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org2c9bfdd" class="outline-4">
|
||||||
|
<h4 id="org2c9bfdd">Sonoff S26 3</h4>
|
||||||
|
<div class="outline-text-4" id="text-org2c9bfdd">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-yaml"><span class="org-variable-name">esphome</span>:
|
||||||
|
<span class="org-variable-name">name</span>: sonoffs26_3
|
||||||
|
<span class="org-variable-name">platform</span>: ESP8266
|
||||||
|
<span class="org-variable-name">board</span>: esp01_1m
|
||||||
|
<span class="org-variable-name">board_flash_mode</span>: dout
|
||||||
|
|
||||||
|
<span class="org-variable-name">wifi</span>:
|
||||||
|
<span class="org-variable-name">ssid</span>: <span class="org-string">'Freebox-11A882'</span>
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="wifi/Freebox-11A882")>>'</span>
|
||||||
|
<span class="org-variable-name">ap</span>:
|
||||||
|
<span class="org-variable-name">ssid</span>: <span class="org-string">'Sonoff S26 3 Fallback Hotspot'</span>
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="sonoff_s26/ap")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">status_led</span>:
|
||||||
|
<span class="org-variable-name">pin</span>:
|
||||||
|
<span class="org-variable-name">number</span>: GPIO13
|
||||||
|
<span class="org-variable-name">inverted</span>: <span class="org-constant">false</span>
|
||||||
|
<span class="org-variable-name">logger</span>:
|
||||||
|
|
||||||
|
<span class="org-variable-name">api</span>:
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="sonoff_s26/api")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">ota</span>:
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="sonoff_s26/ota")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">web_server</span>:
|
||||||
|
|
||||||
|
<span class="org-variable-name">binary_sensor</span>:
|
||||||
|
- <span class="org-variable-name">platform</span>: gpio
|
||||||
|
<span class="org-variable-name">pin</span>:
|
||||||
|
<span class="org-variable-name">number</span>: GPIO0
|
||||||
|
<span class="org-variable-name">mode</span>: INPUT_PULLUP
|
||||||
|
<span class="org-variable-name">inverted</span>: <span class="org-constant">True</span>
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff S26_3 Button"</span>
|
||||||
|
<span class="org-variable-name">on_press</span>:
|
||||||
|
- <span class="org-variable-name">switch.toggle</span>: relay
|
||||||
|
- <span class="org-variable-name">platform</span>: status
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff S26_3 Status"</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">sensor</span>:
|
||||||
|
- <span class="org-variable-name">platform</span>: wifi_signal
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"sonoffs26_3 WiFi Signal"</span>
|
||||||
|
<span class="org-variable-name">update_interval</span>: 60s
|
||||||
|
|
||||||
|
<span class="org-variable-name">switch</span>:
|
||||||
|
- <span class="org-variable-name">platform</span>: gpio
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff S26_3 Relay"</span>
|
||||||
|
<span class="org-variable-name">pin</span>: GPIO12
|
||||||
|
<span class="org-variable-name">id</span>: <span class="org-string">'relay'</span>
|
||||||
|
- <span class="org-variable-name">platform</span>: restart
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"sonoffs26_3 Restart"</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org25259ac" class="outline-4">
|
||||||
|
<h4 id="org25259ac">Sonoff S26 4</h4>
|
||||||
|
<div class="outline-text-4" id="text-org25259ac">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-yaml"><span class="org-variable-name">esphome</span>:
|
||||||
|
<span class="org-variable-name">name</span>: sonoffs26_4
|
||||||
|
<span class="org-variable-name">platform</span>: ESP8266
|
||||||
|
<span class="org-variable-name">board</span>: esp01_1m
|
||||||
|
<span class="org-variable-name">board_flash_mode</span>: dout
|
||||||
|
|
||||||
|
<span class="org-variable-name">wifi</span>:
|
||||||
|
<span class="org-variable-name">ssid</span>: <span class="org-string">'Freebox-11A882'</span>
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="wifi/Freebox-11A882")>>'</span>
|
||||||
|
<span class="org-variable-name">ap</span>:
|
||||||
|
<span class="org-variable-name">ssid</span>: <span class="org-string">'Sonoff S26 4 Fallback Hotspot'</span>
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="sonoff_s26/ap")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">status_led</span>:
|
||||||
|
<span class="org-variable-name">pin</span>:
|
||||||
|
<span class="org-variable-name">number</span>: GPIO13
|
||||||
|
<span class="org-variable-name">inverted</span>: <span class="org-constant">false</span>
|
||||||
|
<span class="org-variable-name">logger</span>:
|
||||||
|
|
||||||
|
<span class="org-variable-name">api</span>:
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="sonoff_s26/api")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">ota</span>:
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="sonoff_s26/ota")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">web_server</span>:
|
||||||
|
|
||||||
|
<span class="org-variable-name">binary_sensor</span>:
|
||||||
|
- <span class="org-variable-name">platform</span>: gpio
|
||||||
|
<span class="org-variable-name">pin</span>:
|
||||||
|
<span class="org-variable-name">number</span>: GPIO0
|
||||||
|
<span class="org-variable-name">mode</span>: INPUT_PULLUP
|
||||||
|
<span class="org-variable-name">inverted</span>: <span class="org-constant">True</span>
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff S26_4 Button"</span>
|
||||||
|
<span class="org-variable-name">on_press</span>:
|
||||||
|
- <span class="org-variable-name">switch.toggle</span>: relay
|
||||||
|
- <span class="org-variable-name">platform</span>: status
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff S26_4 Status"</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">sensor</span>:
|
||||||
|
- <span class="org-variable-name">platform</span>: wifi_signal
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"sonoffs26_4 WiFi Signal"</span>
|
||||||
|
<span class="org-variable-name">update_interval</span>: 60s
|
||||||
|
|
||||||
|
<span class="org-variable-name">switch</span>:
|
||||||
|
- <span class="org-variable-name">platform</span>: gpio
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff S26_4 Relay"</span>
|
||||||
|
<span class="org-variable-name">pin</span>: GPIO12
|
||||||
|
<span class="org-variable-name">id</span>: <span class="org-string">'relay'</span>
|
||||||
|
- <span class="org-variable-name">platform</span>: restart
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"sonoffs26_4 Restart"</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-orgc7cb06f" class="outline-3">
|
||||||
|
<h3 id="orgc7cb06f">Anoopsyche SB14 - E27 Smart Bulb (Cold White / Warm White)</h3>
|
||||||
|
<div class="outline-text-3" id="text-orgc7cb06f">
|
||||||
|
<p>
|
||||||
|
<a href="https://www.amazon.fr/Ecologique-Compatible-T%C3%A9l%C3%A9commande-Smartphone-%C3%A9nerg%C3%A9tique/dp/B07KWPQMHH/">https://www.amazon.fr/Ecologique-Compatible-T%C3%A9l%C3%A9commande-Smartphone-%C3%A9nerg%C3%A9tique/dp/B07KWPQMHH/</a>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org8288a83" class="outline-4">
|
||||||
|
<h4 id="org8288a83">Anoopsyche CWWW 1</h4>
|
||||||
|
<div class="outline-text-4" id="text-org8288a83">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-yaml"><span class="org-variable-name">esphome</span>:
|
||||||
|
<span class="org-variable-name">name</span>: anoopsyche_cwww_1
|
||||||
|
<span class="org-variable-name">platform</span>: ESP8266
|
||||||
|
<span class="org-variable-name">board</span>: esp01_1m
|
||||||
|
|
||||||
|
<span class="org-variable-name">wifi</span>:
|
||||||
|
<span class="org-variable-name">ssid</span>: <span class="org-string">'Freebox-11A882'</span>
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="wifi/Freebox-11A882")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">ap</span>:
|
||||||
|
<span class="org-variable-name">ssid</span>: <span class="org-string">'Anoopsyche CWWW 1'</span>
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="anoopsyche_cwww/ap")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">captive_portal</span>:
|
||||||
|
|
||||||
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Enable logging</span>
|
||||||
|
<span class="org-variable-name">logger</span>:
|
||||||
|
|
||||||
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Enable Home Assistant API</span>
|
||||||
|
<span class="org-variable-name">api</span>:
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="anoopsyche_cwww/api")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">ota</span>:
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="anoopsyche_cwww/ota")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">output</span>:
|
||||||
|
- <span class="org-variable-name">platform</span>: esp8266_pwm
|
||||||
|
<span class="org-variable-name">id</span>: output_cold_white
|
||||||
|
<span class="org-variable-name">pin</span>: GPIO5
|
||||||
|
- <span class="org-variable-name">platform</span>: esp8266_pwm
|
||||||
|
<span class="org-variable-name">id</span>: output_warm_white
|
||||||
|
<span class="org-variable-name">pin</span>: GPIO13
|
||||||
|
|
||||||
|
<span class="org-variable-name">light</span>:
|
||||||
|
- <span class="org-variable-name">platform</span>: cwww
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">'Anoopsyche CWWW 1'</span>
|
||||||
|
<span class="org-variable-name">default_transition_length</span>: 1s
|
||||||
|
<span class="org-variable-name">warm_white</span>: output_warm_white
|
||||||
|
<span class="org-variable-name">cold_white</span>: output_cold_white
|
||||||
|
<span class="org-variable-name">cold_white_color_temperature</span>: 6000 K
|
||||||
|
<span class="org-variable-name">warm_white_color_temperature</span>: 2700 K
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org8484933" class="outline-4">
|
||||||
|
<h4 id="org8484933">Anoopsyche CWWW 2</h4>
|
||||||
|
<div class="outline-text-4" id="text-org8484933">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-yaml"><span class="org-variable-name">esphome</span>:
|
||||||
|
<span class="org-variable-name">name</span>: anoopsyche_cwww_2
|
||||||
|
<span class="org-variable-name">platform</span>: ESP8266
|
||||||
|
<span class="org-variable-name">board</span>: esp01_1m
|
||||||
|
|
||||||
|
<span class="org-variable-name">wifi</span>:
|
||||||
|
<span class="org-variable-name">ssid</span>: <span class="org-string">'Freebox-11A882'</span>
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="wifi/Freebox-11A882")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">ap</span>:
|
||||||
|
<span class="org-variable-name">ssid</span>: <span class="org-string">'Anoopsyche CWWW 2'</span>
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="anoopsyche_cwww/ap")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">captive_portal</span>:
|
||||||
|
|
||||||
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Enable logging</span>
|
||||||
|
<span class="org-variable-name">logger</span>:
|
||||||
|
|
||||||
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Enable Home Assistant API</span>
|
||||||
|
<span class="org-variable-name">api</span>:
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="anoopsyche_cwww/api")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">ota</span>:
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="anoopsyche_cwww/ota")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">output</span>:
|
||||||
|
- <span class="org-variable-name">platform</span>: esp8266_pwm
|
||||||
|
<span class="org-variable-name">id</span>: output_cold_white
|
||||||
|
<span class="org-variable-name">pin</span>: GPIO5
|
||||||
|
- <span class="org-variable-name">platform</span>: esp8266_pwm
|
||||||
|
<span class="org-variable-name">id</span>: output_warm_white
|
||||||
|
<span class="org-variable-name">pin</span>: GPIO13
|
||||||
|
|
||||||
|
<span class="org-variable-name">light</span>:
|
||||||
|
- <span class="org-variable-name">platform</span>: cwww
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">'Anoopsyche CWWW 2'</span>
|
||||||
|
<span class="org-variable-name">default_transition_length</span>: 1s
|
||||||
|
<span class="org-variable-name">warm_white</span>: output_warm_white
|
||||||
|
<span class="org-variable-name">cold_white</span>: output_cold_white
|
||||||
|
<span class="org-variable-name">cold_white_color_temperature</span>: 6000 K
|
||||||
|
<span class="org-variable-name">warm_white_color_temperature</span>: 2700 K
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org13e47c3" class="outline-3">
|
||||||
|
<h3 id="org13e47c3">Sonoff BasicR2 - DIY Smart Socket</h3>
|
||||||
|
<div class="outline-text-3" id="text-org13e47c3">
|
||||||
|
<ul class="org-ul">
|
||||||
|
<li><a href="https://esphome.io/devices/sonoff_basic.html">ESPHome documentation</a></li>
|
||||||
|
<li><a href="https://sonoff.tech/product/diy-smart-switch/basicr2/">Sonoff Website</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-orgd04920e" class="outline-4">
|
||||||
|
<h4 id="orgd04920e">Sonoff Basic 1</h4>
|
||||||
|
<div class="outline-text-4" id="text-orgd04920e">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-yaml"><span class="org-variable-name">esphome</span>:
|
||||||
|
<span class="org-variable-name">name</span>: sonoffbasic_1
|
||||||
|
<span class="org-variable-name">platform</span>: ESP8266
|
||||||
|
<span class="org-variable-name">board</span>: esp8285
|
||||||
|
<span class="org-variable-name">arduino_version</span>: 2.4.2
|
||||||
|
|
||||||
|
<span class="org-variable-name">wifi</span>:
|
||||||
|
<span class="org-variable-name">ssid</span>: <span class="org-string">'Freebox-11A882'</span>
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="wifi/Freebox-11A882")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">api</span>:
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="sonoff_basic/api")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">logger</span>:
|
||||||
|
|
||||||
|
<span class="org-variable-name">ota</span>:
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="sonoff_basic/ota")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">binary_sensor</span>:
|
||||||
|
- <span class="org-variable-name">platform</span>: gpio
|
||||||
|
<span class="org-variable-name">pin</span>:
|
||||||
|
<span class="org-variable-name">number</span>: GPIO0
|
||||||
|
<span class="org-variable-name">mode</span>: INPUT_PULLUP
|
||||||
|
<span class="org-variable-name">inverted</span>: <span class="org-constant">True</span>
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff Basic Button 1"</span>
|
||||||
|
<span class="org-variable-name">on_press</span>:
|
||||||
|
- <span class="org-variable-name">switch.toggle</span>: relay
|
||||||
|
|
||||||
|
<span class="org-variable-name">switch</span>:
|
||||||
|
- <span class="org-variable-name">platform</span>: gpio
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff Basic Relay 1"</span>
|
||||||
|
<span class="org-variable-name">pin</span>: GPIO12
|
||||||
|
<span class="org-variable-name">id</span>: relay
|
||||||
|
|
||||||
|
<span class="org-variable-name">status_led</span>:
|
||||||
|
<span class="org-variable-name">pin</span>:
|
||||||
|
<span class="org-variable-name">number</span>: GPIO13
|
||||||
|
<span class="org-variable-name">inverted</span>: <span class="org-constant">yes</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-orga594994" class="outline-4">
|
||||||
|
<h4 id="orga594994">Sonoff Basic 2</h4>
|
||||||
|
<div class="outline-text-4" id="text-orga594994">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-yaml"><span class="org-variable-name">esphome</span>:
|
||||||
|
<span class="org-variable-name">name</span>: sonoffbasic_2
|
||||||
|
<span class="org-variable-name">platform</span>: ESP8266
|
||||||
|
<span class="org-variable-name">board</span>: esp8285
|
||||||
|
<span class="org-variable-name">arduino_version</span>: 2.4.2
|
||||||
|
|
||||||
|
<span class="org-variable-name">wifi</span>:
|
||||||
|
<span class="org-variable-name">ssid</span>: <span class="org-string">'Freebox-11A882'</span>
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="wifi/Freebox-11A882")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">api</span>:
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="sonoff_basic/api")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">logger</span>:
|
||||||
|
|
||||||
|
<span class="org-variable-name">ota</span>:
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="sonoff_basic/ota")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">binary_sensor</span>:
|
||||||
|
- <span class="org-variable-name">platform</span>: gpio
|
||||||
|
<span class="org-variable-name">pin</span>:
|
||||||
|
<span class="org-variable-name">number</span>: GPIO0
|
||||||
|
<span class="org-variable-name">mode</span>: INPUT_PULLUP
|
||||||
|
<span class="org-variable-name">inverted</span>: <span class="org-constant">True</span>
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff Basic Button 2"</span>
|
||||||
|
<span class="org-variable-name">on_press</span>:
|
||||||
|
- <span class="org-variable-name">switch.toggle</span>: relay
|
||||||
|
|
||||||
|
<span class="org-variable-name">switch</span>:
|
||||||
|
- <span class="org-variable-name">platform</span>: gpio
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff Basic Relay 2"</span>
|
||||||
|
<span class="org-variable-name">pin</span>: GPIO12
|
||||||
|
<span class="org-variable-name">id</span>: relay
|
||||||
|
|
||||||
|
<span class="org-variable-name">status_led</span>:
|
||||||
|
<span class="org-variable-name">pin</span>:
|
||||||
|
<span class="org-variable-name">number</span>: GPIO13
|
||||||
|
<span class="org-variable-name">inverted</span>: <span class="org-constant">yes</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="outline-container-orgb5bd748" class="outline-4">
|
||||||
|
<h4 id="orgb5bd748">Sonoff Basic 3</h4>
|
||||||
|
<div class="outline-text-4" id="text-orgb5bd748">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-yaml"><span class="org-variable-name">esphome</span>:
|
||||||
|
<span class="org-variable-name">name</span>: sonoffbasic_3
|
||||||
|
<span class="org-variable-name">platform</span>: ESP8266
|
||||||
|
<span class="org-variable-name">board</span>: esp8285
|
||||||
|
<span class="org-variable-name">arduino_version</span>: 2.4.2
|
||||||
|
|
||||||
|
<span class="org-variable-name">wifi</span>:
|
||||||
|
<span class="org-variable-name">ssid</span>: <span class="org-string">'Freebox-11A882'</span>
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="wifi/Freebox-11A882")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">api</span>:
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="sonoff_basic/api")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">logger</span>:
|
||||||
|
|
||||||
|
<span class="org-variable-name">ota</span>:
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="sonoff_basic/ota")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">binary_sensor</span>:
|
||||||
|
- <span class="org-variable-name">platform</span>: gpio
|
||||||
|
<span class="org-variable-name">pin</span>:
|
||||||
|
<span class="org-variable-name">number</span>: GPIO0
|
||||||
|
<span class="org-variable-name">mode</span>: INPUT_PULLUP
|
||||||
|
<span class="org-variable-name">inverted</span>: <span class="org-constant">True</span>
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff Basic Button 3"</span>
|
||||||
|
<span class="org-variable-name">on_press</span>:
|
||||||
|
- <span class="org-variable-name">switch.toggle</span>: relay
|
||||||
|
|
||||||
|
<span class="org-variable-name">switch</span>:
|
||||||
|
- <span class="org-variable-name">platform</span>: gpio
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff Basic Relay 3"</span>
|
||||||
|
<span class="org-variable-name">pin</span>: GPIO12
|
||||||
|
<span class="org-variable-name">id</span>: relay
|
||||||
|
|
||||||
|
<span class="org-variable-name">status_led</span>:
|
||||||
|
<span class="org-variable-name">pin</span>:
|
||||||
|
<span class="org-variable-name">number</span>: GPIO13
|
||||||
|
<span class="org-variable-name">inverted</span>: <span class="org-constant">yes</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="outline-container-org5ba0236" class="outline-4">
|
||||||
|
<h4 id="org5ba0236">Sonoff Basic 4</h4>
|
||||||
|
<div class="outline-text-4" id="text-org5ba0236">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-yaml"><span class="org-variable-name">esphome</span>:
|
||||||
|
<span class="org-variable-name">name</span>: sonoffbasic_4
|
||||||
|
<span class="org-variable-name">platform</span>: ESP8266
|
||||||
|
<span class="org-variable-name">board</span>: esp8285
|
||||||
|
<span class="org-variable-name">arduino_version</span>: 2.4.2
|
||||||
|
|
||||||
|
<span class="org-variable-name">wifi</span>:
|
||||||
|
<span class="org-variable-name">ssid</span>: <span class="org-string">'Freebox-11A882'</span>
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="wifi/Freebox-11A882")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">api</span>:
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="sonoff_basic/api")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">logger</span>:
|
||||||
|
|
||||||
|
<span class="org-variable-name">ota</span>:
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="sonoff_basic/ota")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">binary_sensor</span>:
|
||||||
|
- <span class="org-variable-name">platform</span>: gpio
|
||||||
|
<span class="org-variable-name">pin</span>:
|
||||||
|
<span class="org-variable-name">number</span>: GPIO0
|
||||||
|
<span class="org-variable-name">mode</span>: INPUT_PULLUP
|
||||||
|
<span class="org-variable-name">inverted</span>: <span class="org-constant">True</span>
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff Basic Button 4"</span>
|
||||||
|
<span class="org-variable-name">on_press</span>:
|
||||||
|
- <span class="org-variable-name">switch.toggle</span>: relay
|
||||||
|
|
||||||
|
<span class="org-variable-name">switch</span>:
|
||||||
|
- <span class="org-variable-name">platform</span>: gpio
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff Basic Relay 4"</span>
|
||||||
|
<span class="org-variable-name">pin</span>: GPIO12
|
||||||
|
<span class="org-variable-name">id</span>: relay
|
||||||
|
|
||||||
|
<span class="org-variable-name">status_led</span>:
|
||||||
|
<span class="org-variable-name">pin</span>:
|
||||||
|
<span class="org-variable-name">number</span>: GPIO13
|
||||||
|
<span class="org-variable-name">inverted</span>: <span class="org-constant">yes</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org930b61a" class="outline-3">
|
||||||
|
<h3 id="org930b61a">Sonoff POWR2 - DIY Power Monitoring Smart Socket</h3>
|
||||||
|
<div class="outline-text-3" id="text-org930b61a">
|
||||||
|
<ul class="org-ul">
|
||||||
|
<li><a href="https://sonoff.tech/product/diy-smart-switch/powr2/">Sonoff Website</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-orgfe15c18" class="outline-4">
|
||||||
|
<h4 id="orgfe15c18">Sonoff POWR2 1</h4>
|
||||||
|
<div class="outline-text-4" id="text-orgfe15c18">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-yaml"><span class="org-variable-name">esphome</span>:
|
||||||
|
<span class="org-variable-name">name</span>: sonoffpowr2_1
|
||||||
|
<span class="org-variable-name">platform</span>: ESP8266
|
||||||
|
<span class="org-variable-name">board</span>: esp01_1m
|
||||||
|
<span class="org-variable-name">board_flash_mode</span>: dout
|
||||||
|
|
||||||
|
<span class="org-variable-name">wifi</span>:
|
||||||
|
<span class="org-variable-name">ssid</span>: <span class="org-string">'Freebox-11A882'</span>
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="wifi/Freebox-11A882")>>'</span>
|
||||||
|
<span class="org-variable-name">ap</span>:
|
||||||
|
<span class="org-variable-name">ssid</span>: <span class="org-string">'Sonoff POWR2 1 Fallback Hotspot'</span>
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'gmHu3rQHZHwH'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">mqtt</span>:
|
||||||
|
<span class="org-variable-name">broker</span>: <span class="org-string">'192.168.1.11'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">logger</span>:
|
||||||
|
|
||||||
|
<span class="org-variable-name">api</span>:
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="sonoff_powr2/api")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">ota</span>:
|
||||||
|
<span class="org-variable-name">password</span>: <span class="org-string">'<<get-password(passname="sonoff_powr2/ota")>>'</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">uart</span>:
|
||||||
|
<span class="org-variable-name">rx_pin</span>: RX
|
||||||
|
<span class="org-variable-name">baud_rate</span>: 4800
|
||||||
|
|
||||||
|
<span class="org-variable-name">sensor</span>:
|
||||||
|
- <span class="org-variable-name">platform</span>: cse7766
|
||||||
|
<span class="org-variable-name">current</span>:
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff POWR2_1 Current"</span>
|
||||||
|
<span class="org-variable-name">voltage</span>:
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff POWR2_1 Voltage"</span>
|
||||||
|
<span class="org-variable-name">power</span>:
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff POWR2_1 Power"</span>
|
||||||
|
|
||||||
|
<span class="org-variable-name">binary_sensor</span>:
|
||||||
|
- <span class="org-variable-name">platform</span>: gpio
|
||||||
|
<span class="org-variable-name">pin</span>:
|
||||||
|
<span class="org-variable-name">number</span>: GPIO0
|
||||||
|
<span class="org-variable-name">mode</span>: INPUT_PULLUP
|
||||||
|
<span class="org-variable-name">inverted</span>: <span class="org-constant">True</span>
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff POWR2_1 Button"</span>
|
||||||
|
<span class="org-variable-name">on_press</span>:
|
||||||
|
- <span class="org-variable-name">switch.toggle</span>: relay
|
||||||
|
|
||||||
|
<span class="org-variable-name">switch</span>:
|
||||||
|
- <span class="org-variable-name">platform</span>: gpio
|
||||||
|
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff POWR2_1 Relay"</span>
|
||||||
|
<span class="org-variable-name">pin</span>: GPIO12
|
||||||
|
<span class="org-variable-name">id</span>: <span class="org-string">'relay'</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="postamble" class="status">
|
||||||
|
<p class="author">Author: Dehaeze Thomas</p>
|
||||||
|
<p class="date">Created: 2021-10-25 lun. 14:33</p>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
428
docs/mail.html
428
docs/mail.html
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2021-04-25 dim. 19:10 -->
|
<!-- 2021-10-25 lun. 14:33 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<title>Mail Configuration</title>
|
<title>Mail Configuration</title>
|
||||||
<meta name="author" content="Dehaeze Thomas" />
|
<meta name="author" content="Dehaeze Thomas" />
|
||||||
@ -16,17 +16,17 @@
|
|||||||
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="h" href="./index.html"> UP </a>
|
||||||
|
|
|
|
||||||
<a accesskey="H" href="./index.html"> HOME </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
|
||||||
</div><div id="content">
|
</div><div id="content" class="content">
|
||||||
<h1 class="title">Mail Configuration</h1>
|
<h1 class="title">Mail Configuration</h1>
|
||||||
<div id="table-of-contents">
|
<div id="table-of-contents" role="doc-toc">
|
||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents" role="doc-toc">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#mbsync"><code>mbsync</code> - Synchronize Mailboxes</a>
|
<li><a href="#mbsync"><code>mbsync</code> - Synchronize Mailboxes</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgfe8c5af">Global Defaults</a></li>
|
<li><a href="#orgfe8c5af">Global Defaults</a></li>
|
||||||
<li><a href="#org6d923d6">Gmail Account</a></li>
|
<li><a href="#orgb0c3173">Gmail Account</a></li>
|
||||||
<li><a href="#org938fdb8">ESRF Account</a></li>
|
<li><a href="#org0a8a59b">ESRF Account</a></li>
|
||||||
<li><a href="#org62106bc">ULG Student Account</a></li>
|
<li><a href="#org62106bc">ULG Student Account</a></li>
|
||||||
<li><a href="#org0b87d58">ULG Personal Account</a></li>
|
<li><a href="#org0b87d58">ULG Personal Account</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -34,8 +34,8 @@
|
|||||||
<li><a href="#msmtp"><code>msmtp</code> - Send Mails</a>
|
<li><a href="#msmtp"><code>msmtp</code> - Send Mails</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org4a1b391">Defaults</a></li>
|
<li><a href="#org4a1b391">Defaults</a></li>
|
||||||
<li><a href="#org1ff2ab1">Gmail Account</a></li>
|
<li><a href="#orgb0d4eab">Gmail Account</a></li>
|
||||||
<li><a href="#org97e9d97">ESRF Account</a></li>
|
<li><a href="#org8d2a90a">ESRF Account</a></li>
|
||||||
<li><a href="#orga821cde">ULG Account</a></li>
|
<li><a href="#orga821cde">ULG Account</a></li>
|
||||||
<li><a href="#org9bced56">ULIEGE Account</a></li>
|
<li><a href="#org9bced56">ULIEGE Account</a></li>
|
||||||
<li><a href="#org8274d8c">Default Account</a></li>
|
<li><a href="#org8274d8c">Default Account</a></li>
|
||||||
@ -48,11 +48,11 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgabf02bf">Unding all the key bindings</a></li>
|
<li><a href="#orgabf02bf">Unding all the key bindings</a></li>
|
||||||
<li><a href="#orgab6327c">Quit Neomutt</a></li>
|
<li><a href="#orgab6327c">Quit Neomutt</a></li>
|
||||||
<li><a href="#org66ef145">Generic</a></li>
|
<li><a href="#orga1062ac">Generic</a></li>
|
||||||
<li><a href="#orgc3a79b4">Index and Pager</a></li>
|
<li><a href="#orgc3a79b4">Index and Pager</a></li>
|
||||||
<li><a href="#orge2cd847">Limit</a></li>
|
<li><a href="#orge2cd847">Limit</a></li>
|
||||||
<li><a href="#orgdaa2ab4">Search</a></li>
|
<li><a href="#orgdaa2ab4">Search</a></li>
|
||||||
<li><a href="#org3f46ed0">Attachments</a></li>
|
<li><a href="#orgb41e617">Attachments</a></li>
|
||||||
<li><a href="#orga27e33b">Compose</a>
|
<li><a href="#orga27e33b">Compose</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgf944cb5">Attach with Ranger Script</a></li>
|
<li><a href="#orgf944cb5">Attach with Ranger Script</a></li>
|
||||||
@ -60,8 +60,8 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org1ff0684">Browser</a></li>
|
<li><a href="#org1ff0684">Browser</a></li>
|
||||||
<li><a href="#org0cbcd02">Generic</a></li>
|
<li><a href="#org2448417">Generic</a></li>
|
||||||
<li><a href="#orgcd09540">Sidebar</a></li>
|
<li><a href="#org9f696dc">Sidebar</a></li>
|
||||||
<li><a href="#orgd383cd7">Reload Configuration</a></li>
|
<li><a href="#orgd383cd7">Reload Configuration</a></li>
|
||||||
<li><a href="#org5fccb4d">urlview - Open URL in emails</a></li>
|
<li><a href="#org5fccb4d">urlview - Open URL in emails</a></li>
|
||||||
<li><a href="#orgbe837d6">Searching using Mu</a></li>
|
<li><a href="#orgbe837d6">Searching using Mu</a></li>
|
||||||
@ -72,19 +72,7 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org623ded5">Colors</a>
|
<li><a href="#org623ded5">Colors</a></li>
|
||||||
<ul>
|
|
||||||
<li><a href="#orgcceb03a">Basic colors</a></li>
|
|
||||||
<li><a href="#orgfd072f9">Index</a></li>
|
|
||||||
<li><a href="#org83f1610">Sidebar</a></li>
|
|
||||||
<li><a href="#org35e03db">Message headers</a></li>
|
|
||||||
<li><a href="#org4443f6e">Attachments</a></li>
|
|
||||||
<li><a href="#orgf06407f">Body</a></li>
|
|
||||||
<li><a href="#org28ee304">PGP</a></li>
|
|
||||||
<li><a href="#org1894a8b">Urls</a></li>
|
|
||||||
<li><a href="#org2284ebe">Emails</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li><a href="#org6ba784d">Contacts with Mu</a></li>
|
<li><a href="#org6ba784d">Contacts with Mu</a></li>
|
||||||
<li><a href="#org69d81ad">Paths</a></li>
|
<li><a href="#org69d81ad">Paths</a></li>
|
||||||
<li><a href="#orgd9f320f">Print</a></li>
|
<li><a href="#orgd9f320f">Print</a></li>
|
||||||
@ -92,26 +80,26 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org828ef22">Gmail</a>
|
<li><a href="#org828ef22">Gmail</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org27216c2">Configuration</a></li>
|
<li><a href="#orgf1f7ab1">Configuration</a></li>
|
||||||
<li><a href="#org655b864">Signature</a></li>
|
<li><a href="#org28444ce">Signature</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org75c25aa">ESRF</a>
|
<li><a href="#org75c25aa">ESRF</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org0743b6e">Configuration</a></li>
|
<li><a href="#org38fcd39">Configuration</a></li>
|
||||||
<li><a href="#org04e1907">Signature</a></li>
|
<li><a href="#orgd86e4b8">Signature</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org8c506c3">ULG</a>
|
<li><a href="#org8c506c3">ULG</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orga56e103">Configuration</a></li>
|
<li><a href="#org4507cc1">Configuration</a></li>
|
||||||
<li><a href="#orgf201532">Signature</a></li>
|
<li><a href="#org24686f3">Signature</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org72df244">ULIEGE</a>
|
<li><a href="#org72df244">ULIEGE</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org82ffb40">Configuration</a></li>
|
<li><a href="#orged812e7">Configuration</a></li>
|
||||||
<li><a href="#org20fa21b">Signature</a></li>
|
<li><a href="#orgd419bc3">Signature</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -127,13 +115,13 @@
|
|||||||
<li><a href="#orgda776cc">Headers</a></li>
|
<li><a href="#orgda776cc">Headers</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org98d56f4">Sidebar</a>
|
<li><a href="#orgc35a45a">Sidebar</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org763534f">General Config</a></li>
|
<li><a href="#org763534f">General Config</a></li>
|
||||||
<li><a href="#org6ca1b3c">Mailboxes to show in the sidebar.</a></li>
|
<li><a href="#org6ca1b3c">Mailboxes to show in the sidebar.</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orge3f70c1">Attachments</a>
|
<li><a href="#orgec162c4">Attachments</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgc93e665">Attachment View Options</a></li>
|
<li><a href="#orgc93e665">Attachment View Options</a></li>
|
||||||
<li><a href="#orge340736">Open Attachment</a></li>
|
<li><a href="#orge340736">Open Attachment</a></li>
|
||||||
@ -186,9 +174,9 @@ Expunge Both
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org6d923d6" class="outline-3">
|
<div id="outline-container-orgb0c3173" class="outline-3">
|
||||||
<h3 id="org6d923d6">Gmail Account</h3>
|
<h3 id="orgb0c3173">Gmail Account</h3>
|
||||||
<div class="outline-text-3" id="text-org6d923d6">
|
<div class="outline-text-3" id="text-orgb0c3173">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">IMAPAccount gmail
|
<pre class="src src-conf">IMAPAccount gmail
|
||||||
Host imap.gmail.com
|
Host imap.gmail.com
|
||||||
@ -224,8 +212,8 @@ Channel gmail-Trash
|
|||||||
Far :gmail-remote:<span class="org-string">"[Gmail]/Trash"</span>
|
Far :gmail-remote:<span class="org-string">"[Gmail]/Trash"</span>
|
||||||
Near :gmail-local:Trash
|
Near :gmail-local:Trash
|
||||||
|
|
||||||
Channel gmail-All
|
Channel gmail-Archive
|
||||||
Far :gmail-remote:<span class="org-string">"[Gmail]/All Mail"</span>
|
Far :gmail-remote:<span class="org-string">"[Imap]/Archive"</span>
|
||||||
Near :gmail-local:Archive
|
Near :gmail-local:Archive
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
@ -241,12 +229,10 @@ Near :gmail-local:
|
|||||||
Patterns *
|
Patterns *
|
||||||
Patterns !INBOX
|
Patterns !INBOX
|
||||||
Patterns ![Gmail]*
|
Patterns ![Gmail]*
|
||||||
Patterns !Archive
|
|
||||||
Patterns !Drafts
|
Patterns !Drafts
|
||||||
Patterns !Sent Mail
|
Patterns !Sent Mail
|
||||||
Patterns !Trash
|
Patterns !Trash
|
||||||
Patterns !Spam
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Patterns ![Imap]/Archive</span>
|
||||||
Patterns !Starred
|
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -263,9 +249,9 @@ Sync Pull
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org938fdb8" class="outline-3">
|
<div id="outline-container-org0a8a59b" class="outline-3">
|
||||||
<h3 id="org938fdb8">ESRF Account</h3>
|
<h3 id="org0a8a59b">ESRF Account</h3>
|
||||||
<div class="outline-text-3" id="text-org938fdb8">
|
<div class="outline-text-3" id="text-org0a8a59b">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">IMAPAccount esrf
|
<pre class="src src-conf">IMAPAccount esrf
|
||||||
Host imaps.esrf.fr
|
Host imaps.esrf.fr
|
||||||
@ -480,9 +466,9 @@ tls_certcheck off
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org1ff2ab1" class="outline-3">
|
<div id="outline-container-orgb0d4eab" class="outline-3">
|
||||||
<h3 id="org1ff2ab1">Gmail Account</h3>
|
<h3 id="orgb0d4eab">Gmail Account</h3>
|
||||||
<div class="outline-text-3" id="text-org1ff2ab1">
|
<div class="outline-text-3" id="text-orgb0d4eab">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">account gmail
|
<pre class="src src-conf">account gmail
|
||||||
host smtp.gmail.com
|
host smtp.gmail.com
|
||||||
@ -496,9 +482,9 @@ passwordeval <span class="org-string">"pass email/dehaeze.thomas@gmail.com"</spa
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org97e9d97" class="outline-3">
|
<div id="outline-container-org8d2a90a" class="outline-3">
|
||||||
<h3 id="org97e9d97">ESRF Account</h3>
|
<h3 id="org8d2a90a">ESRF Account</h3>
|
||||||
<div class="outline-text-3" id="text-org97e9d97">
|
<div class="outline-text-3" id="text-org8d2a90a">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">account esrf
|
<pre class="src src-conf">account esrf
|
||||||
host smtps.esrf.fr
|
host smtps.esrf.fr
|
||||||
@ -881,9 +867,9 @@ macro index q <span class="org-string">"<shell-escape>if [ $TMUX ]; then t
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org66ef145" class="outline-4">
|
<div id="outline-container-orga1062ac" class="outline-4">
|
||||||
<h4 id="org66ef145">Generic</h4>
|
<h4 id="orga1062ac">Generic</h4>
|
||||||
<div class="outline-text-4" id="text-org66ef145">
|
<div class="outline-text-4" id="text-orga1062ac">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">bind generic Q exit
|
<pre class="src src-conf">bind generic Q exit
|
||||||
|
|
||||||
@ -919,6 +905,9 @@ bind generic,index,pager \Cy previous-line
|
|||||||
<pre class="src src-conf">bind pager k previous-line
|
<pre class="src src-conf">bind pager k previous-line
|
||||||
bind pager j next-line
|
bind pager j next-line
|
||||||
|
|
||||||
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Display mode information</span>
|
||||||
|
bind pager i display-toggle-weed
|
||||||
|
|
||||||
bind index <space> collapse-thread
|
bind index <space> collapse-thread
|
||||||
|
|
||||||
bind index,pager K previous-entry
|
bind index,pager K previous-entry
|
||||||
@ -1008,7 +997,7 @@ Open mail with Vim
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">bind index,pager U toggle-new</span>
|
<pre class="src src-conf">bind index U toggle-new
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -1057,9 +1046,9 @@ bind index,pager N search-opposite
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org3f46ed0" class="outline-4">
|
<div id="outline-container-orgb41e617" class="outline-4">
|
||||||
<h4 id="org3f46ed0">Attachments</h4>
|
<h4 id="orgb41e617">Attachments</h4>
|
||||||
<div class="outline-text-4" id="text-org3f46ed0">
|
<div class="outline-text-4" id="text-orgb41e617">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">bind attach l view-attach
|
<pre class="src src-conf">bind attach l view-attach
|
||||||
|
|
||||||
@ -1157,9 +1146,9 @@ bind browser q exit
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org0cbcd02" class="outline-4">
|
<div id="outline-container-org2448417" class="outline-4">
|
||||||
<h4 id="org0cbcd02">Generic</h4>
|
<h4 id="org2448417">Generic</h4>
|
||||||
<div class="outline-text-4" id="text-org0cbcd02">
|
<div class="outline-text-4" id="text-org2448417">
|
||||||
<p>
|
<p>
|
||||||
Enter Command
|
Enter Command
|
||||||
</p>
|
</p>
|
||||||
@ -1170,9 +1159,9 @@ Enter Command
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgcd09540" class="outline-4">
|
<div id="outline-container-org9f696dc" class="outline-4">
|
||||||
<h4 id="orgcd09540">Sidebar</h4>
|
<h4 id="org9f696dc">Sidebar</h4>
|
||||||
<div class="outline-text-4" id="text-orgcd09540">
|
<div class="outline-text-4" id="text-org9f696dc">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">bind index,pager \Cp sidebar-prev
|
<pre class="src src-conf">bind index,pager \Cp sidebar-prev
|
||||||
bind index,pager \Cn sidebar-next
|
bind index,pager \Cn sidebar-next
|
||||||
@ -1243,28 +1232,31 @@ macro index,pager gf <span class="org-string">"<change-folder-readonly>~/.
|
|||||||
<div id="outline-container-orge02ba2d" class="outline-5">
|
<div id="outline-container-orge02ba2d" class="outline-5">
|
||||||
<h5 id="orge02ba2d">Link mail to orgmode - Script</h5>
|
<h5 id="orge02ba2d">Link mail to orgmode - Script</h5>
|
||||||
<div class="outline-text-5" id="text-orge02ba2d">
|
<div class="outline-text-5" id="text-orge02ba2d">
|
||||||
|
<p>
|
||||||
|
<a href="https://orgmode.org/manual/The-capture-protocol.html#The-capture-protocol">https://orgmode.org/manual/The-capture-protocol.html#The-capture-protocol</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-python"><span class="org-keyword">import</span> sys
|
<pre class="src src-python"><span class="org-keyword">import</span> sys
|
||||||
<span class="org-keyword">import</span> email
|
<span class="org-keyword">import</span> email
|
||||||
|
<span class="org-keyword">from</span> email <span class="org-keyword">import</span> policy
|
||||||
<span class="org-keyword">import</span> subprocess
|
<span class="org-keyword">import</span> subprocess
|
||||||
<span class="org-keyword">import</span> urllib.parse
|
<span class="org-keyword">import</span> urllib.parse
|
||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Parse the email from standard input</span>
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Parse the email from standard input</span>
|
||||||
<span class="org-variable-name">message_bytes</span> = sys.stdin.<span class="org-builtin">buffer</span>.read()
|
<span class="org-variable-name">message_bytes</span> = sys.stdin.<span class="org-builtin">buffer</span>.read()
|
||||||
<span class="org-variable-name">message</span> = email.message_from_bytes(message_bytes)
|
<span class="org-variable-name">message</span> = email.message_from_bytes(message_bytes, policy=policy.default)
|
||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Grab the relevant message headers</span>
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Grab the relevant message headers</span>
|
||||||
<span class="org-variable-name">message_id</span> = urllib.parse.quote(message[<span class="org-string">'message-id'</span>].strip()[<span class="org-highlight-numbers-number">1</span>:-<span class="org-highlight-numbers-number">1</span>])
|
<span class="org-variable-name">message_id</span> = urllib.parse.quote(message[<span class="org-string">'message-id'</span>][<span class="org-highlight-numbers-number">1</span>:-<span class="org-highlight-numbers-number">1</span>])
|
||||||
<span class="org-variable-name">subject</span> = message[<span class="org-string">'subject'</span>].replace(<span class="org-string">'['</span>, <span class="org-string">'{'</span>).replace(<span class="org-string">']'</span>, <span class="org-string">'}'</span>).replace(<span class="org-string">'\n'</span>, <span class="org-string">' '</span>)
|
<span class="org-variable-name">subject</span> = message[<span class="org-string">'subject'</span>]
|
||||||
<span class="org-variable-name">subject</span> = (subject[:<span class="org-highlight-numbers-number">75</span>] + <span class="org-string">'..'</span>) <span class="org-keyword">if</span> <span class="org-builtin">len</span>(subject) > <span class="org-highlight-numbers-number">75</span> <span class="org-keyword">else</span> subject
|
<span class="org-variable-name">message_to</span> = message[<span class="org-string">'to'</span>]
|
||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Ask emacsclient to save a link to the message</span>
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Ask emacsclient to save a link to the message</span>
|
||||||
<span class="org-variable-name">p</span> = subprocess.Popen([
|
subprocess.Popen([
|
||||||
<span class="org-string">'emacsclient'</span>,
|
<span class="org-string">'emacsclient'</span>,
|
||||||
f<span class="org-string">'org-protocol://capture?template=pm&url={message_id}&title={subject}'</span>
|
f<span class="org-string">'org-protocol://capture?template=ps&url={message_id}&title={subject}&body={message_to}'</span>
|
||||||
])
|
])
|
||||||
|
|
||||||
p.wait()
|
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -1275,172 +1267,66 @@ p.wait()
|
|||||||
<div id="outline-container-org623ded5" class="outline-3">
|
<div id="outline-container-org623ded5" class="outline-3">
|
||||||
<h3 id="org623ded5">Colors</h3>
|
<h3 id="org623ded5">Colors</h3>
|
||||||
<div class="outline-text-3" id="text-org623ded5">
|
<div class="outline-text-3" id="text-org623ded5">
|
||||||
</div>
|
|
||||||
<div id="outline-container-orgcceb03a" class="outline-4">
|
|
||||||
<h4 id="orgcceb03a">Basic colors</h4>
|
|
||||||
<div class="outline-text-4" id="text-orgcceb03a">
|
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">color normal color021 color000
|
<pre class="src src-conf">color attachment color109 color235
|
||||||
color error color021 color000
|
color bold color229 color235
|
||||||
color tilde color021 color000
|
color error color167 color235
|
||||||
color message color021 color000
|
color hdrdefault color246 color235
|
||||||
color markers color021 color000
|
color indicator color223 color237
|
||||||
color attachment color021 color000
|
color markers color243 color235
|
||||||
color search color000 color003
|
color normal color223 color235
|
||||||
color status color016 color000
|
color prompt color223 color235
|
||||||
color indicator color000 color021
|
color quoted color250 color235
|
||||||
color tree color021 color000
|
color quoted1 color108 color235
|
||||||
color progress color000 color021
|
color quoted2 color250 color235
|
||||||
|
color quoted3 color108 color235
|
||||||
|
color quoted4 color250 color235
|
||||||
|
color quoted5 color108 color235
|
||||||
|
color search color235 color208
|
||||||
|
color signature color108 color235
|
||||||
|
color status color245 color235
|
||||||
|
color tilde color243 color235
|
||||||
|
color tree color142 color235
|
||||||
|
color underline color223 color239
|
||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">basic monocolor screen</span>
|
color sidebar_divider color250 color235
|
||||||
mono bold bold
|
color sidebar_new color142 color235
|
||||||
mono underline underline
|
|
||||||
mono indicator reverse
|
color index color142 color235 ~N
|
||||||
mono error bold
|
color index color108 color235 ~O
|
||||||
|
color index color109 color235 ~P
|
||||||
|
color index color214 color235 ~F
|
||||||
|
color index color175 color235 ~Q
|
||||||
|
<span class="org-variable-name">color index color167 color235 ~</span>=
|
||||||
|
color index color235 color223 ~T
|
||||||
|
color index color235 color167 ~D
|
||||||
|
|
||||||
|
color header color214 color235 <span class="org-string">"^(To:|Cc:|Bcc:|From:)"</span>
|
||||||
|
color header color142 color235 <span class="org-string">"^Subject:"</span>
|
||||||
|
color header color108 color235 <span class="org-string">"^X-Spam-Status:"</span>
|
||||||
|
color header color108 color235 <span class="org-string">"^Received:"</span>
|
||||||
|
|
||||||
|
color body color142 color235 <span class="org-string">"[a-z]{3,256}://[-a-zA-Z0-9@:%._\\+~#=/?&,]+"</span>
|
||||||
|
color body color208 color235 <span class="org-string">"[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"</span>
|
||||||
|
color body color208 color235 <span class="org-string">"mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"</span>
|
||||||
|
color body color235 color214 <span class="org-string">"[;:]-*[)>(<lt;|]"</span>
|
||||||
|
color body color229 color235 <span class="org-string">"\\*[- A-Za-z]+\\*"</span>
|
||||||
|
|
||||||
|
color body color214 color235 <span class="org-string">"^-.*PGP.*-*"</span>
|
||||||
|
color body color142 color235 <span class="org-string">"^gpg: Good signature from"</span>
|
||||||
|
color body color167 color235 <span class="org-string">"^gpg: Can't.*$"</span>
|
||||||
|
color body color214 color235 <span class="org-string">"^gpg: WARNING:.*$"</span>
|
||||||
|
color body color167 color235 <span class="org-string">"^gpg: BAD signature from"</span>
|
||||||
|
color body color167 color235 <span class="org-string">"^gpg: Note: This key has expired!"</span>
|
||||||
|
color body color214 color235 <span class="org-string">"^gpg: There is no indication that the signature belongs to the owner."</span>
|
||||||
|
color body color214 color235 <span class="org-string">"^gpg: can't handle these multiple signatures"</span>
|
||||||
|
color body color214 color235 <span class="org-string">"^gpg: signature verification suppressed"</span>
|
||||||
|
color body color214 color235 <span class="org-string">"^gpg: invalid node with packet of type"</span>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgfd072f9" class="outline-4">
|
|
||||||
<h4 id="orgfd072f9">Index</h4>
|
|
||||||
<div class="outline-text-4" id="text-orgfd072f9">
|
|
||||||
<div class="org-src-container">
|
|
||||||
<pre class="src src-conf">color index color021 color000 <span class="org-string">"~A"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">All messages</span>
|
|
||||||
color index brightcolor006 color000 <span class="org-string">"~N"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">New messages</span>
|
|
||||||
color index color020 color000 <span class="org-string">"~O"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Old messages</span>
|
|
||||||
color index color020 color000 <span class="org-string">"~Q"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">messages that have been replied to</span>
|
|
||||||
color index color021 color000 <span class="org-string">"~R"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">read messages</span>
|
|
||||||
color index color006 color000 <span class="org-string">"~U"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">unread messages</span>
|
|
||||||
color index color021 color000 <span class="org-string">"~R~p!~F"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">messages to me</span>
|
|
||||||
color index brightcolor006 color000 <span class="org-string">"~N~p!~F"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">new messages to me</span>
|
|
||||||
color index brightcolor006 color000 <span class="org-string">"~U~p!~F"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">unread messages to me</span>
|
|
||||||
color index color005 color000 <span class="org-string">"~F"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">flagged messages</span>
|
|
||||||
color index color005 color000 <span class="org-string">"~F~p"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">flagged messages to me</span>
|
|
||||||
color index brightcolor006 color000 <span class="org-string">"~N~F"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">new flagged messages</span>
|
|
||||||
color index brightcolor006 color000 <span class="org-string">"~N~F~p"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">new flagged messages to me</span>
|
|
||||||
color index brightcolor006 color000 <span class="org-string">"~U~F~p"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">new flagged messages to me</span>
|
|
||||||
color index brightcolor000 color001 <span class="org-string">"~D"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">deleted messages</span>
|
|
||||||
|
|
||||||
color index brightcolor021 color019 <span class="org-string">"~v~(!~N)"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">collapsed thread with no unread</span>
|
|
||||||
color index brightcolor006 color019 <span class="org-string">"~v~(~N)"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">collapsed thread with some unread</span>
|
|
||||||
color index brightcolor006 color019 <span class="org-string">"~N~v~(~N)"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">collapsed thread with unread parent</span>
|
|
||||||
color index brightcolor005 color019 <span class="org-string">"~v~(~F)!~N"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">collapsed thread with flagged, no unread</span>
|
|
||||||
color index brightcolor006 color019 <span class="org-string">"~v~(~F~N)"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">collapsed thread with some unread & flagged</span>
|
|
||||||
color index brightcolor006 color019 <span class="org-string">"~N~v~(~F~N)"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">collapsed thread with unread parent & flagged</span>
|
|
||||||
color index brightcolor005 color019 <span class="org-string">"~N~v~(~F)"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">collapsed thread with unread parent, no unread inside, but some flagged</span>
|
|
||||||
color index brightcolor000 color001 <span class="org-string">"~v~(~D)"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">thread with deleted (doesn't differentiate between all or partial)</span>
|
|
||||||
</pre>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="outline-container-org83f1610" class="outline-4">
|
|
||||||
<h4 id="org83f1610">Sidebar</h4>
|
|
||||||
<div class="outline-text-4" id="text-org83f1610">
|
|
||||||
<div class="org-src-container">
|
|
||||||
<pre class="src src-conf"> color sidebar_indicator color000 color021 <span class="org-comment-delimiter"># </span><span class="org-comment">Mailbox is open</span>
|
|
||||||
color sidebar_highlight color000 color003 <span class="org-comment-delimiter"># </span><span class="org-comment">Mailbox is highlighted</span>
|
|
||||||
color sidebar_new brightcolor006 color000 <span class="org-comment-delimiter"># </span><span class="org-comment">Mailbox contains new mail</span>
|
|
||||||
color sidebar_ordinary color021 color000 <span class="org-comment-delimiter"># </span><span class="org-comment">Mailbox contains new mail</span>
|
|
||||||
</pre>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="outline-container-org35e03db" class="outline-4">
|
|
||||||
<h4 id="org35e03db">Message headers</h4>
|
|
||||||
<div class="outline-text-4" id="text-org35e03db">
|
|
||||||
<div class="org-src-container">
|
|
||||||
<pre class="src src-conf">color hdrdefault color006 color000
|
|
||||||
color header brightcolor006 color000 <span class="org-string">"^(From)"</span>
|
|
||||||
color header brightcolor004 color000 <span class="org-string">"^(Subject)"</span>
|
|
||||||
</pre>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="outline-container-org4443f6e" class="outline-4">
|
|
||||||
<h4 id="org4443f6e">Attachments</h4>
|
|
||||||
<div class="outline-text-4" id="text-org4443f6e">
|
|
||||||
<div class="org-src-container">
|
|
||||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Color if the attachment is autoviewed</span>
|
|
||||||
color attach_headers brightgreen default <span class="org-string">"Autoview"</span>
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Color only the brackets around the headers</span>
|
|
||||||
color attach_headers brightyellow default <span class="org-string">"^\\[--"</span>
|
|
||||||
color attach_headers brightyellow default <span class="org-string">"--]$"</span>
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Color the mime type and the size</span>
|
|
||||||
color attach_headers green default <span class="org-string">"Type: [a-z]+/[a-z0-9\-]+"</span>
|
|
||||||
color attach_headers green default <span class="org-string">"Size: [0-9\.]+[KM]"</span>
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Color GPGME signature checks</span>
|
|
||||||
color attach_headers brightgreen default <span class="org-string">"Good signature from.*"</span>
|
|
||||||
color attach_headers brightred default <span class="org-string">"Bad signature from.*"</span>
|
|
||||||
color attach_headers brightred default <span class="org-string">"BAD signature from.*"</span>
|
|
||||||
color attach_headers brightred default <span class="org-string">"Note: This key has expired!"</span>
|
|
||||||
color attach_headers brightmagenta default <span class="org-string">"Problem signature from.*"</span>
|
|
||||||
color attach_headers brightmagenta default <span class="org-string">"WARNING: This key is not certified with a trusted signature!"</span>
|
|
||||||
color attach_headers brightmagenta default <span class="org-string">" There is no indication that the signature belongs to the owner."</span>
|
|
||||||
color attach_headers brightmagenta default <span class="org-string">"can't handle these multiple signatures"</span>
|
|
||||||
color attach_headers brightmagenta default <span class="org-string">"signature verification suppressed"</span>
|
|
||||||
color attach_headers brightmagenta default <span class="org-string">"invalid node with packet of type"</span>
|
|
||||||
</pre>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div id="outline-container-orgf06407f" class="outline-4">
|
|
||||||
<h4 id="orgf06407f">Body</h4>
|
|
||||||
<div class="outline-text-4" id="text-orgf06407f">
|
|
||||||
<div class="org-src-container">
|
|
||||||
<pre class="src src-conf">color quoted color002 color000
|
|
||||||
color quoted1 color003 color000
|
|
||||||
color quoted2 color004 color000
|
|
||||||
color quoted3 color005 color000
|
|
||||||
color quoted4 color006 color000
|
|
||||||
|
|
||||||
color signature color021 color000
|
|
||||||
color bold brightcolor021 color000
|
|
||||||
color underline brightcolor021 color000
|
|
||||||
color normal color021 color000
|
|
||||||
</pre>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="outline-container-org28ee304" class="outline-4">
|
|
||||||
<h4 id="org28ee304">PGP</h4>
|
|
||||||
<div class="outline-text-4" id="text-org28ee304">
|
|
||||||
<div class="org-src-container">
|
|
||||||
<pre class="src src-conf">color body color001 color000 <span class="org-string">"(BAD signature)"</span>
|
|
||||||
color body color002 color000 <span class="org-string">"(Good signature)"</span>
|
|
||||||
color body color002 color000 <span class="org-string">"^gpg: Good signature .*"</span>
|
|
||||||
color body color002 color000 <span class="org-string">"^gpg: "</span>
|
|
||||||
color body color002 color000 <span class="org-string">"^gpg: BAD signature from.*"</span>
|
|
||||||
</pre>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="outline-container-org1894a8b" class="outline-4">
|
|
||||||
<h4 id="org1894a8b">Urls</h4>
|
|
||||||
<div class="outline-text-4" id="text-org1894a8b">
|
|
||||||
<div class="org-src-container">
|
|
||||||
<pre class="src src-conf">color body color006 color000 <span class="org-string">"([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]|%[0-9a-f][0-9a-f])*@)?((([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?|[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)(:[0-9]+)?)|([a-z0-9_.!~*'()$,;:@&=+-]|%[0-9a-f][0-9a-f])+)(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?(#([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?|(www|ftp)\\.(([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?(:[0-9]+)?(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?(#([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?)[^].,:;!)? \t\r\n<>\"]"</span>
|
|
||||||
</pre>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="outline-container-org2284ebe" class="outline-4">
|
|
||||||
<h4 id="org2284ebe">Emails</h4>
|
|
||||||
<div class="outline-text-4" id="text-org2284ebe">
|
|
||||||
<div class="org-src-container">
|
|
||||||
<pre class="src src-conf">color body color006 color000 <span class="org-string">"((@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]),)*@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]):)?[0-9a-z_.+%$-]+@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\])"</span>
|
|
||||||
</pre>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="outline-container-org6ba784d" class="outline-3">
|
<div id="outline-container-org6ba784d" class="outline-3">
|
||||||
<h3 id="org6ba784d">Contacts with Mu</h3>
|
<h3 id="org6ba784d">Contacts with Mu</h3>
|
||||||
<div class="outline-text-3" id="text-org6ba784d">
|
<div class="outline-text-3" id="text-org6ba784d">
|
||||||
@ -1508,18 +1394,19 @@ macro index,pager gm <span class="org-string">"<change-folder>+gmail/Inbox
|
|||||||
<h4 id="org828ef22">Gmail</h4>
|
<h4 id="org828ef22">Gmail</h4>
|
||||||
<div class="outline-text-4" id="text-org828ef22">
|
<div class="outline-text-4" id="text-org828ef22">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org27216c2" class="outline-5">
|
<div id="outline-container-orgf1f7ab1" class="outline-5">
|
||||||
<h5 id="org27216c2">Configuration</h5>
|
<h5 id="orgf1f7ab1">Configuration</h5>
|
||||||
<div class="outline-text-5" id="text-org27216c2">
|
<div class="outline-text-5" id="text-orgf1f7ab1">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf"><span class="org-variable-name">set from</span> = <span class="org-string">"dehaeze.thomas@gmail.com"</span>
|
<pre class="src src-conf"><span class="org-variable-name">set from</span> = <span class="org-string">"dehaeze.thomas@gmail.com"</span>
|
||||||
<span class="org-variable-name">set sendmail</span> = <span class="org-string">"~/.config/neomutt/bin/send_mail.sh gmail"</span>
|
<span class="org-variable-name">set sendmail</span> = <span class="org-string">"~/.config/neomutt/bin/send_mail.sh gmail"</span>
|
||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Other special folders.</span>
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Other special folders.</span>
|
||||||
<span class="org-variable-name">set mbox</span> = <span class="org-string">"+gmail/Archive"</span>
|
<span class="org-variable-name">set mbox</span> = <span class="org-string">"+gmail/Archive"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Archive Box</span>
|
||||||
unset record <span class="org-comment-delimiter"># </span><span class="org-comment">Don't copy send message to Sent folder: Gmail does that for us</span>
|
|
||||||
<span class="org-variable-name">set postponed</span> = <span class="org-string">"+gmail/Drafts"</span>
|
<span class="org-variable-name">set postponed</span> = <span class="org-string">"+gmail/Drafts"</span>
|
||||||
|
|
||||||
|
unset record <span class="org-comment-delimiter"># </span><span class="org-comment">Don't copy send message to Sent folder: Gmail does that for us</span>
|
||||||
|
|
||||||
<span class="org-variable-name">set signature</span> = <span class="org-string">"~/.config/neomutt/accounts/gmail.signature"</span>
|
<span class="org-variable-name">set signature</span> = <span class="org-string">"~/.config/neomutt/accounts/gmail.signature"</span>
|
||||||
|
|
||||||
macro index,pager d \
|
macro index,pager d \
|
||||||
@ -1534,9 +1421,9 @@ macro index,pager D \
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org655b864" class="outline-5">
|
<div id="outline-container-org28444ce" class="outline-5">
|
||||||
<h5 id="org655b864">Signature</h5>
|
<h5 id="org28444ce">Signature</h5>
|
||||||
<div class="outline-text-5" id="text-org655b864">
|
<div class="outline-text-5" id="text-org28444ce">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">Thomas Dehaeze
|
<pre class="src src-conf">Thomas Dehaeze
|
||||||
</pre>
|
</pre>
|
||||||
@ -1556,9 +1443,9 @@ This empty code block is used to add a new line after signature
|
|||||||
<h4 id="org75c25aa">ESRF</h4>
|
<h4 id="org75c25aa">ESRF</h4>
|
||||||
<div class="outline-text-4" id="text-org75c25aa">
|
<div class="outline-text-4" id="text-org75c25aa">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org0743b6e" class="outline-5">
|
<div id="outline-container-org38fcd39" class="outline-5">
|
||||||
<h5 id="org0743b6e">Configuration</h5>
|
<h5 id="org38fcd39">Configuration</h5>
|
||||||
<div class="outline-text-5" id="text-org0743b6e">
|
<div class="outline-text-5" id="text-org38fcd39">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf"><span class="org-variable-name">set from</span> = <span class="org-string">"thomas.dehaeze@esrf.fr"</span>
|
<pre class="src src-conf"><span class="org-variable-name">set from</span> = <span class="org-string">"thomas.dehaeze@esrf.fr"</span>
|
||||||
<span class="org-variable-name">set sendmail</span> = <span class="org-string">"~/.config/neomutt/bin/send_mail.sh esrf"</span>
|
<span class="org-variable-name">set sendmail</span> = <span class="org-string">"~/.config/neomutt/bin/send_mail.sh esrf"</span>
|
||||||
@ -1582,9 +1469,9 @@ macro index,pager D \
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org04e1907" class="outline-5">
|
<div id="outline-container-orgd86e4b8" class="outline-5">
|
||||||
<h5 id="org04e1907">Signature</h5>
|
<h5 id="orgd86e4b8">Signature</h5>
|
||||||
<div class="outline-text-5" id="text-org04e1907">
|
<div class="outline-text-5" id="text-orgd86e4b8">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">Thomas Dehaeze
|
<pre class="src src-conf">Thomas Dehaeze
|
||||||
</pre>
|
</pre>
|
||||||
@ -1604,9 +1491,9 @@ This empty code block is used to add a new line after signature
|
|||||||
<h4 id="org8c506c3">ULG</h4>
|
<h4 id="org8c506c3">ULG</h4>
|
||||||
<div class="outline-text-4" id="text-org8c506c3">
|
<div class="outline-text-4" id="text-org8c506c3">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orga56e103" class="outline-5">
|
<div id="outline-container-org4507cc1" class="outline-5">
|
||||||
<h5 id="orga56e103">Configuration</h5>
|
<h5 id="org4507cc1">Configuration</h5>
|
||||||
<div class="outline-text-5" id="text-orga56e103">
|
<div class="outline-text-5" id="text-org4507cc1">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf"><span class="org-variable-name">set from</span> = <span class="org-string">"thomas.dehaeze@doct.uliege.be"</span>
|
<pre class="src src-conf"><span class="org-variable-name">set from</span> = <span class="org-string">"thomas.dehaeze@doct.uliege.be"</span>
|
||||||
<span class="org-variable-name">set sendmail</span> = <span class="org-string">"~/.config/neomutt/bin/send_mail.sh ulg"</span>
|
<span class="org-variable-name">set sendmail</span> = <span class="org-string">"~/.config/neomutt/bin/send_mail.sh ulg"</span>
|
||||||
@ -1630,9 +1517,9 @@ macro index,pager D \
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgf201532" class="outline-5">
|
<div id="outline-container-org24686f3" class="outline-5">
|
||||||
<h5 id="orgf201532">Signature</h5>
|
<h5 id="org24686f3">Signature</h5>
|
||||||
<div class="outline-text-5" id="text-orgf201532">
|
<div class="outline-text-5" id="text-org24686f3">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">Thomas Dehaeze
|
<pre class="src src-conf">Thomas Dehaeze
|
||||||
</pre>
|
</pre>
|
||||||
@ -1652,9 +1539,9 @@ This empty code block is used to add a new line after signature
|
|||||||
<h4 id="org72df244">ULIEGE</h4>
|
<h4 id="org72df244">ULIEGE</h4>
|
||||||
<div class="outline-text-4" id="text-org72df244">
|
<div class="outline-text-4" id="text-org72df244">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org82ffb40" class="outline-5">
|
<div id="outline-container-orged812e7" class="outline-5">
|
||||||
<h5 id="org82ffb40">Configuration</h5>
|
<h5 id="orged812e7">Configuration</h5>
|
||||||
<div class="outline-text-5" id="text-org82ffb40">
|
<div class="outline-text-5" id="text-orged812e7">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf"><span class="org-variable-name">set from</span> = <span class="org-string">"tdehaeze@uliege.be"</span>
|
<pre class="src src-conf"><span class="org-variable-name">set from</span> = <span class="org-string">"tdehaeze@uliege.be"</span>
|
||||||
<span class="org-variable-name">set sendmail</span> = <span class="org-string">"~/.config/neomutt/bin/send_mail.sh uliege"</span>
|
<span class="org-variable-name">set sendmail</span> = <span class="org-string">"~/.config/neomutt/bin/send_mail.sh uliege"</span>
|
||||||
@ -1678,9 +1565,9 @@ macro index,pager D \
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org20fa21b" class="outline-5">
|
<div id="outline-container-orgd419bc3" class="outline-5">
|
||||||
<h5 id="org20fa21b">Signature</h5>
|
<h5 id="orgd419bc3">Signature</h5>
|
||||||
<div class="outline-text-5" id="text-org20fa21b">
|
<div class="outline-text-5" id="text-orgd419bc3">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">Thomas Dehaeze
|
<pre class="src src-conf">Thomas Dehaeze
|
||||||
</pre>
|
</pre>
|
||||||
@ -1822,9 +1709,9 @@ hdr_order from: to: cc: date: subject: <span class="org-comment-delimiter"># </
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org98d56f4" class="outline-3">
|
<div id="outline-container-orgc35a45a" class="outline-3">
|
||||||
<h3 id="org98d56f4">Sidebar</h3>
|
<h3 id="orgc35a45a">Sidebar</h3>
|
||||||
<div class="outline-text-3" id="text-org98d56f4">
|
<div class="outline-text-3" id="text-orgc35a45a">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org763534f" class="outline-4">
|
<div id="outline-container-org763534f" class="outline-4">
|
||||||
<h4 id="org763534f">General Config</h4>
|
<h4 id="org763534f">General Config</h4>
|
||||||
@ -1931,9 +1818,9 @@ named-mailboxes <span class="org-string">"  Trash"</span> =uliege/Trash
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orge3f70c1" class="outline-3">
|
<div id="outline-container-orgec162c4" class="outline-3">
|
||||||
<h3 id="orge3f70c1">Attachments</h3>
|
<h3 id="orgec162c4">Attachments</h3>
|
||||||
<div class="outline-text-3" id="text-orge3f70c1">
|
<div class="outline-text-3" id="text-orgec162c4">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgc93e665" class="outline-4">
|
<div id="outline-container-orgc93e665" class="outline-4">
|
||||||
<h4 id="orgc93e665">Attachment View Options</h4>
|
<h4 id="orgc93e665">Attachment View Options</h4>
|
||||||
@ -2062,8 +1949,15 @@ application/pdf; zathura %s &
|
|||||||
audio/*; /usr/bin/xdg-open %s; copiousoutput
|
audio/*; /usr/bin/xdg-open %s; copiousoutput
|
||||||
<span class="org-variable-name">text/html; export DISPLAY</span>=:<span class="org-highlight-numbers-number">0</span> && setsid qutebrowser %s; nametemplate=%s.html
|
<span class="org-variable-name">text/html; export DISPLAY</span>=:<span class="org-highlight-numbers-number">0</span> && setsid qutebrowser %s; nametemplate=%s.html
|
||||||
<span class="org-variable-name">text/html; lynx -width ${COLUMNS:-80} -dump %s; nametemplate</span>=%s.html; copiousoutput;
|
<span class="org-variable-name">text/html; lynx -width ${COLUMNS:-80} -dump %s; nametemplate</span>=%s.html; copiousoutput;
|
||||||
text/calendar; khal import --batch -a home %s && khal printics %s; copiousoutput;
|
</pre>
|
||||||
application/ics; khal import --batch -a home %s && khal printics %s; copiousoutput;
|
</div>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
For calendar output, a personal <code>ics-add</code> script is used.
|
||||||
|
</p>
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-conf">text/calendar; ics-add %s; copiousoutput;
|
||||||
|
application/ics; ics-add %s; copiousoutput;
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -2147,7 +2041,7 @@ text/rtf; libreoffice --nologo --writer <span class="org-string">'%s'</span>; co
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: Dehaeze Thomas</p>
|
<p class="author">Author: Dehaeze Thomas</p>
|
||||||
<p class="date">Created: 2021-04-25 dim. 19:10</p>
|
<p class="date">Created: 2021-10-25 lun. 14:33</p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
210
docs/maintenance.html
Normal file
210
docs/maintenance.html
Normal file
@ -0,0 +1,210 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
|
<head>
|
||||||
|
<!-- 2021-10-25 lun. 14:33 -->
|
||||||
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
|
<title>System maintenance</title>
|
||||||
|
<meta name="author" content="Dehaeze Thomas" />
|
||||||
|
<meta name="generator" content="Org Mode" />
|
||||||
|
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||||
|
<script type="text/javascript" src="./dist/script.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="org-div-home-and-up">
|
||||||
|
<a accesskey="h" href="./index.html"> UP </a>
|
||||||
|
|
|
||||||
|
<a accesskey="H" href="./index.html"> HOME </a>
|
||||||
|
</div><div id="content" class="content">
|
||||||
|
<h1 class="title">System maintenance</h1>
|
||||||
|
<div id="table-of-contents" role="doc-toc">
|
||||||
|
<h2>Table of Contents</h2>
|
||||||
|
<div id="text-table-of-contents" role="doc-toc">
|
||||||
|
<ul>
|
||||||
|
<li><a href="#orgffc515a">Update</a>
|
||||||
|
<ul>
|
||||||
|
<li><a href="#org1dbb612">System packages</a></li>
|
||||||
|
<li><a href="#orge4759bc">NPM</a></li>
|
||||||
|
<li><a href="#org359ad9e">PIP</a></li>
|
||||||
|
<li><a href="#org4a73361">Emacs and Vim</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li><a href="#org91cdfc6">Check problems in the system</a></li>
|
||||||
|
<li><a href="#org51b97e6">Check orphan and dropped packages</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p>
|
||||||
|
<a href="https://wiki.archlinux.org/title/System_maintenance">https://wiki.archlinux.org/title/System_maintenance</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div id="outline-container-orgffc515a" class="outline-2">
|
||||||
|
<h2 id="orgffc515a">Update</h2>
|
||||||
|
<div class="outline-text-2" id="text-orgffc515a">
|
||||||
|
</div>
|
||||||
|
<div id="outline-container-org1dbb612" class="outline-3">
|
||||||
|
<h3 id="org1dbb612">System packages</h3>
|
||||||
|
<div class="outline-text-3" id="text-org1dbb612">
|
||||||
|
<p>
|
||||||
|
To check packages to update:
|
||||||
|
</p>
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash">paru -Qu
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
And then to perform the update:
|
||||||
|
</p>
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash">paru
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-orge4759bc" class="outline-3">
|
||||||
|
<h3 id="orge4759bc">NPM</h3>
|
||||||
|
<div class="outline-text-3" id="text-orge4759bc">
|
||||||
|
<p>
|
||||||
|
First update <code>npm</code> itself
|
||||||
|
</p>
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-type">sudo</span> npm install npm@latest -g
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Then, we can list outdated packages:
|
||||||
|
</p>
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash">npm outdated -g --depth=<span class="org-highlight-numbers-number">0</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
And finally perform the update:
|
||||||
|
</p>
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-type">sudo</span> npm update -g
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org359ad9e" class="outline-3">
|
||||||
|
<h3 id="org359ad9e">PIP</h3>
|
||||||
|
<div class="outline-text-3" id="text-org359ad9e">
|
||||||
|
<p>
|
||||||
|
First upgrade <code>pip</code> itself:
|
||||||
|
</p>
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash">/usr/bin/python3 -m pip install --upgrade pip
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Then list outdated packages:
|
||||||
|
</p>
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash">pip3 list --outdated
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
And update everything with:
|
||||||
|
</p>
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash">pip3 list --outdated --format=freeze | <span class="org-type">grep</span> -v <span class="org-string">'^\-e'</span> | cut -d = -f <span class="org-highlight-numbers-number">1</span> | xargs -n1 pip3 install -U
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org4a73361" class="outline-3">
|
||||||
|
<h3 id="org4a73361">Emacs and Vim</h3>
|
||||||
|
<div class="outline-text-3" id="text-org4a73361">
|
||||||
|
<p>
|
||||||
|
Update Doom emacs with:
|
||||||
|
</p>
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash">doom up
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
And Vim packages with:
|
||||||
|
</p>
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash">nvim -c PlugUpgrade -c PlugUpdate
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org91cdfc6" class="outline-2">
|
||||||
|
<h2 id="org91cdfc6">Check problems in the system</h2>
|
||||||
|
<div class="outline-text-2" id="text-org91cdfc6">
|
||||||
|
<p>
|
||||||
|
First check for failed services:
|
||||||
|
</p>
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash">systemctl --failed
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Same for user services:
|
||||||
|
</p>
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash">systemctl --user --failed
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Look for errors in the logs:
|
||||||
|
</p>
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-type">sudo</span> journalctl -p <span class="org-highlight-numbers-number">3</span> -b
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org51b97e6" class="outline-2">
|
||||||
|
<h2 id="org51b97e6">Check orphan and dropped packages</h2>
|
||||||
|
<div class="outline-text-2" id="text-org51b97e6">
|
||||||
|
<p>
|
||||||
|
Run the following to list all orphan packages:
|
||||||
|
</p>
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash">pacman -Qtdq | fzf --preview <span class="org-string">'pacman -Qil {}'</span> --layout=reverse --bind <span class="org-string">'enter:execute(pacman -Qil {} | </span><span class="org-type"><span class="org-string">less</span></span><span class="org-string">)'</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Then, either remove the unused packages or set the package to “explicitly installed” with:
|
||||||
|
</p>
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-type">sudo</span> pacman -D --asexplicit package_name
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Use the <code>ancient-packages</code> (<a href="https://aur.archlinux.org/packages/ancient-packages/">link</a>) command to list dropped packages (packages may longer in the remote repositories, but still on the local system):
|
||||||
|
</p>
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash">ancient-packages
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="postamble" class="status">
|
||||||
|
<p class="author">Author: Dehaeze Thomas</p>
|
||||||
|
<p class="date">Created: 2021-10-25 lun. 14:33</p>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -3,11 +3,11 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2021-01-08 ven. 01:43 -->
|
<!-- 2021-10-25 lun. 14:33 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<title>Matlab Configuration</title>
|
<title>Matlab Configuration</title>
|
||||||
<meta name="generator" content="Org mode" />
|
|
||||||
<meta name="author" content="Dehaeze Thomas" />
|
<meta name="author" content="Dehaeze Thomas" />
|
||||||
|
<meta name="generator" content="Org Mode" />
|
||||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||||
<script type="text/javascript" src="./dist/script.js"></script>
|
<script type="text/javascript" src="./dist/script.js"></script>
|
||||||
</head>
|
</head>
|
||||||
@ -16,11 +16,11 @@
|
|||||||
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="h" href="./index.html"> UP </a>
|
||||||
|
|
|
|
||||||
<a accesskey="H" href="./index.html"> HOME </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
|
||||||
</div><div id="content">
|
</div><div id="content" class="content">
|
||||||
<h1 class="title">Matlab Configuration</h1>
|
<h1 class="title">Matlab Configuration</h1>
|
||||||
<div id="table-of-contents">
|
<div id="table-of-contents" role="doc-toc">
|
||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents" role="doc-toc">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orga81f527">Startup</a>
|
<li><a href="#orga81f527">Startup</a>
|
||||||
<ul>
|
<ul>
|
||||||
@ -53,10 +53,10 @@
|
|||||||
<h3 id="orgadff39b">Setup LaTeX as a default interpreter</h3>
|
<h3 id="orgadff39b">Setup LaTeX as a default interpreter</h3>
|
||||||
<div class="outline-text-3" id="text-orgadff39b">
|
<div class="outline-text-3" id="text-orgadff39b">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-matlab"><span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultTextInterpreter'</span>, <span class="org-string">'LaTeX'</span>);
|
<pre class="src src-matlab"><span class="org-builtin">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultTextInterpreter'</span>, <span class="org-string">'LaTeX'</span>);
|
||||||
<span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesTickLabelInterpreter'</span>, <span class="org-string">'LaTeX'</span>);
|
<span class="org-builtin">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesTickLabelInterpreter'</span>, <span class="org-string">'LaTeX'</span>);
|
||||||
<span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesFontName'</span>, <span class="org-string">'LaTeX'</span>);
|
<span class="org-builtin">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesFontName'</span>, <span class="org-string">'LaTeX'</span>);
|
||||||
<span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultLegendInterpreter'</span>, <span class="org-string">'LaTeX'</span>);
|
<span class="org-builtin">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultLegendInterpreter'</span>, <span class="org-string">'LaTeX'</span>);
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -66,8 +66,8 @@
|
|||||||
<h3 id="orga7cc243">Default Line Width</h3>
|
<h3 id="orga7cc243">Default Line Width</h3>
|
||||||
<div class="outline-text-3" id="text-orga7cc243">
|
<div class="outline-text-3" id="text-orga7cc243">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-matlab"><span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultLineLineWidth'</span>, 1.5);
|
<pre class="src src-matlab"><span class="org-builtin">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultLineLineWidth'</span>, 1.5);
|
||||||
<span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesLineWidth'</span>, 0.5);
|
<span class="org-builtin">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesLineWidth'</span>, 0.5);
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -77,9 +77,9 @@
|
|||||||
<h3 id="org9bcf5b6">Default grids on all axis</h3>
|
<h3 id="org9bcf5b6">Default grids on all axis</h3>
|
||||||
<div class="outline-text-3" id="text-org9bcf5b6">
|
<div class="outline-text-3" id="text-org9bcf5b6">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-matlab"><span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesXGrid'</span>,<span class="org-string">'on'</span>);
|
<pre class="src src-matlab"><span class="org-builtin">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesXGrid'</span>,<span class="org-string">'on'</span>);
|
||||||
<span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesYGrid'</span>,<span class="org-string">'on'</span>);
|
<span class="org-builtin">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesYGrid'</span>,<span class="org-string">'on'</span>);
|
||||||
<span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesZGrid'</span>,<span class="org-string">'on'</span>);
|
<span class="org-builtin">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesZGrid'</span>,<span class="org-string">'on'</span>);
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -89,11 +89,11 @@
|
|||||||
<h3 id="orgcda5566">Default Font Size</h3>
|
<h3 id="orgcda5566">Default Font Size</h3>
|
||||||
<div class="outline-text-3" id="text-orgcda5566">
|
<div class="outline-text-3" id="text-orgcda5566">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-matlab"><span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultTextFontUnits'</span>, <span class="org-string">'points'</span>);
|
<pre class="src src-matlab"><span class="org-builtin">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultTextFontUnits'</span>, <span class="org-string">'points'</span>);
|
||||||
<span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultTextFontSize'</span>, 10);
|
<span class="org-builtin">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultTextFontSize'</span>, 10);
|
||||||
<span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesFontUnits'</span>, <span class="org-string">'points'</span>);
|
<span class="org-builtin">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesFontUnits'</span>, <span class="org-string">'points'</span>);
|
||||||
<span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesFontSize'</span>, 10);
|
<span class="org-builtin">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesFontSize'</span>, 10);
|
||||||
<span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultUicontrolFontSize'</span>, 10);
|
<span class="org-builtin">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultUicontrolFontSize'</span>, 10);
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -103,8 +103,8 @@
|
|||||||
<h3 id="org0a7bfe6">Default Fonts</h3>
|
<h3 id="org0a7bfe6">Default Fonts</h3>
|
||||||
<div class="outline-text-3" id="text-org0a7bfe6">
|
<div class="outline-text-3" id="text-org0a7bfe6">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-matlab"><span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesFontName'</span>, <span class="org-string">'Helvetica'</span>);
|
<pre class="src src-matlab"><span class="org-builtin">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesFontName'</span>, <span class="org-string">'Helvetica'</span>);
|
||||||
<span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultTextFontName'</span>, <span class="org-string">'Helvetica'</span>);
|
<span class="org-builtin">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultTextFontName'</span>, <span class="org-string">'Helvetica'</span>);
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -114,7 +114,7 @@
|
|||||||
<h3 id="orgced64b8">Make figures into a Box</h3>
|
<h3 id="orgced64b8">Make figures into a Box</h3>
|
||||||
<div class="outline-text-3" id="text-orgced64b8">
|
<div class="outline-text-3" id="text-orgced64b8">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-matlab"><span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesBox'</span>, <span class="org-string">'on'</span>);
|
<pre class="src src-matlab"><span class="org-builtin">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesBox'</span>, <span class="org-string">'on'</span>);
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -124,11 +124,11 @@
|
|||||||
<h3 id="org731843c">Default Colors</h3>
|
<h3 id="org731843c">Default Colors</h3>
|
||||||
<div class="outline-text-3" id="text-org731843c">
|
<div class="outline-text-3" id="text-org731843c">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-matlab"><span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesColor'</span>, <span class="org-string">'w'</span>);
|
<pre class="src src-matlab"><span class="org-builtin">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesColor'</span>, <span class="org-string">'w'</span>);
|
||||||
<span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesXColor'</span>, <span class="org-string">'k'</span>);
|
<span class="org-builtin">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesXColor'</span>, <span class="org-string">'k'</span>);
|
||||||
<span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesYColor'</span>, <span class="org-string">'k'</span>);
|
<span class="org-builtin">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesYColor'</span>, <span class="org-string">'k'</span>);
|
||||||
|
|
||||||
<span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultFigureColor'</span>, <span class="org-string">'w'</span>);
|
<span class="org-builtin">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultFigureColor'</span>, <span class="org-string">'w'</span>);
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -138,15 +138,15 @@
|
|||||||
<h3 id="orgc91b474">Default Plot Colors</h3>
|
<h3 id="orgc91b474">Default Plot Colors</h3>
|
||||||
<div class="outline-text-3" id="text-orgc91b474">
|
<div class="outline-text-3" id="text-orgc91b474">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-matlab">c1 = [ 0 0.4470 0.7410]; <span class="org-comment">% Blue</span>
|
<pre class="src src-matlab">c1 = [ 0 0.4470 0.7410]; <span class="org-comment-delimiter">% </span><span class="org-comment">Blue</span>
|
||||||
c2 = [0.8500 0.3250 0.0980]; <span class="org-comment">% Orange</span>
|
c2 = [0.8500 0.3250 0.0980]; <span class="org-comment-delimiter">% </span><span class="org-comment">Orange</span>
|
||||||
c3 = [0.9290 0.6940 0.1250]; <span class="org-comment">% Yellow</span>
|
c3 = [0.9290 0.6940 0.1250]; <span class="org-comment-delimiter">% </span><span class="org-comment">Yellow</span>
|
||||||
c4 = [0.4940 0.1840 0.5560]; <span class="org-comment">% Purple</span>
|
c4 = [0.4940 0.1840 0.5560]; <span class="org-comment-delimiter">% </span><span class="org-comment">Purple</span>
|
||||||
c5 = [0.4660 0.6740 0.1880]; <span class="org-comment">% Green</span>
|
c5 = [0.4660 0.6740 0.1880]; <span class="org-comment-delimiter">% </span><span class="org-comment">Green</span>
|
||||||
c6 = [0.3010 0.7450 0.9330]; <span class="org-comment">% Light Blue</span>
|
c6 = [0.3010 0.7450 0.9330]; <span class="org-comment-delimiter">% </span><span class="org-comment">Light Blue</span>
|
||||||
c7 = [0.6350 0.0780 0.1840]; <span class="org-comment">% Red</span>
|
c7 = [0.6350 0.0780 0.1840]; <span class="org-comment-delimiter">% </span><span class="org-comment">Red</span>
|
||||||
|
|
||||||
<span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'defaultAxesColorOrder'</span>, [c1; c2; c3; c4; c5; c6; c7])
|
<span class="org-builtin">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'defaultAxesColorOrder'</span>, [c1; c2; c3; c4; c5; c6; c7])
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -156,8 +156,8 @@ c7 = [0.6350 0.0780 0.1840]; <span class="org-comment">% Red</span>
|
|||||||
<h3 id="orgc0980a1">Figure paper and window style</h3>
|
<h3 id="orgc0980a1">Figure paper and window style</h3>
|
||||||
<div class="outline-text-3" id="text-orgc0980a1">
|
<div class="outline-text-3" id="text-orgc0980a1">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-matlab"><span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultFigurePaperType'</span>, <span class="org-string">'A4'</span>);
|
<pre class="src src-matlab"><span class="org-builtin">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultFigurePaperType'</span>, <span class="org-string">'A4'</span>);
|
||||||
<span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultFigureWindowStyle'</span>, <span class="org-string">'normal'</span>);
|
<span class="org-builtin">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultFigureWindowStyle'</span>, <span class="org-string">'normal'</span>);
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -211,6 +211,14 @@ Converts MATLAB figures to TikZ (<a href="https://github.com/matlab2tikz/matlab2
|
|||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Working with Tensors (<a href="https://www.tensorlab.net/">link</a>).
|
||||||
|
</p>
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-matlab">addpath([toolboxes_path <span class="org-string">'tensorlab'</span>])
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
MATLAB toolbox for exporting publication quality figures (<a href="https://github.com/altmany/export_fig">link</a>).
|
MATLAB toolbox for exporting publication quality figures (<a href="https://github.com/altmany/export_fig">link</a>).
|
||||||
</p>
|
</p>
|
||||||
@ -255,7 +263,7 @@ Some useful function (<a href="https://github.com/tdehaeze/matlab_useful_functio
|
|||||||
H-Infinity Toolbox (<a href="https://github.com/tdehaeze/hinf-toolbox">link</a>).
|
H-Infinity Toolbox (<a href="https://github.com/tdehaeze/hinf-toolbox">link</a>).
|
||||||
</p>
|
</p>
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-matlab"><span class="org-comment">% addpath([toolboxes_path 'Hinf-Toolbox/src'])</span>
|
<pre class="src src-matlab"><span class="org-comment-delimiter">% </span><span class="org-comment">addpath([toolboxes_path 'Hinf-Toolbox/src'])</span>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -307,7 +315,7 @@ Import a nice color scheme.
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: Dehaeze Thomas</p>
|
<p class="author">Author: Dehaeze Thomas</p>
|
||||||
<p class="date">Created: 2021-01-08 ven. 01:43</p>
|
<p class="date">Created: 2021-10-25 lun. 14:33</p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2021-04-25 dim. 19:10 -->
|
<!-- 2021-06-20 dim. 14:22 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<title>Music/Sound Configuration</title>
|
<title>Music/Sound Configuration</title>
|
||||||
<meta name="author" content="Dehaeze Thomas" />
|
<meta name="author" content="Dehaeze Thomas" />
|
||||||
@ -57,14 +57,7 @@
|
|||||||
<h2 id="mopidy"><code>mopidy</code> - Music Server</h2>
|
<h2 id="mopidy"><code>mopidy</code> - Music Server</h2>
|
||||||
<div class="outline-text-2" id="text-mopidy">
|
<div class="outline-text-2" id="text-mopidy">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">[<span class="org-type">spotify</span>]
|
<pre class="src src-conf">[<span class="org-type">mpd</span>]
|
||||||
<span class="org-variable-name">username</span> = dehaeze.thomas@gmail.com
|
|
||||||
<span class="org-variable-name">password</span> = <<get-password(passname=<span class="org-string">"spotify.com/dehaeze.thomas@gmail.com"</span>)>>
|
|
||||||
<span class="org-variable-name">client_id</span> = 9dd02534-f038-46d8-946e-bfe72498204e
|
|
||||||
<span class="org-variable-name">client_secret</span> = <<get-password(passname=<span class="org-string">"spotify/client_secret"</span>)>>
|
|
||||||
<span class="org-variable-name">bitrate</span> = <span class="org-highlight-numbers-number">320</span>
|
|
||||||
|
|
||||||
[<span class="org-type">mpd</span>]
|
|
||||||
<span class="org-variable-name">enabled</span> = true
|
<span class="org-variable-name">enabled</span> = true
|
||||||
<span class="org-variable-name">hostname</span> = 127.0.0.1
|
<span class="org-variable-name">hostname</span> = 127.0.0.1
|
||||||
<span class="org-variable-name">port</span> = <span class="org-highlight-numbers-number">6600</span>
|
<span class="org-variable-name">port</span> = <span class="org-highlight-numbers-number">6600</span>
|
||||||
@ -269,7 +262,7 @@ plugins: fromfilename discogs
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: Dehaeze Thomas</p>
|
<p class="author">Author: Dehaeze Thomas</p>
|
||||||
<p class="date">Created: 2021-04-25 dim. 19:10</p>
|
<p class="date">Created: 2021-06-20 dim. 14:22</p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2021-04-25 dim. 19:10 -->
|
<!-- 2021-10-25 lun. 14:33 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<title>Polybar Configuration</title>
|
<title>Polybar Configuration</title>
|
||||||
<meta name="author" content="Dehaeze Thomas" />
|
<meta name="author" content="Dehaeze Thomas" />
|
||||||
@ -16,18 +16,17 @@
|
|||||||
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="h" href="./index.html"> UP </a>
|
||||||
|
|
|
|
||||||
<a accesskey="H" href="./index.html"> HOME </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
|
||||||
</div><div id="content">
|
</div><div id="content" class="content">
|
||||||
<h1 class="title">Polybar Configuration</h1>
|
<h1 class="title">Polybar Configuration</h1>
|
||||||
<div id="table-of-contents">
|
<div id="table-of-contents" role="doc-toc">
|
||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents" role="doc-toc">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org3781e1e">Colors</a></li>
|
<li><a href="#org3781e1e">Colors</a></li>
|
||||||
<li><a href="#org445e1c9">VM</a></li>
|
<li><a href="#org445e1c9">VM</a></li>
|
||||||
<li><a href="#org4821d11">Top Bar</a></li>
|
<li><a href="#org4821d11">Top Bar</a></li>
|
||||||
<li><a href="#orgf8c6a7f">Show Windows Title</a></li>
|
<li><a href="#orgf8c6a7f">Show Windows Title</a></li>
|
||||||
<li><a href="#org094ba94">I3 - Information about workspaces and active one</a></li>
|
<li><a href="#org094ba94">I3 - Information about workspaces and active one</a></li>
|
||||||
<li><a href="#org3d63ec8">BSPWM</a></li>
|
|
||||||
<li><a href="#org9a4155c">Music using MPD</a></li>
|
<li><a href="#org9a4155c">Music using MPD</a></li>
|
||||||
<li><a href="#org3d0e06d">Backlight level</a></li>
|
<li><a href="#org3d0e06d">Backlight level</a></li>
|
||||||
<li><a href="#orgca1fe67">CPU Usage</a></li>
|
<li><a href="#orgca1fe67">CPU Usage</a></li>
|
||||||
@ -111,6 +110,12 @@
|
|||||||
<li><a href="#orgf2e2fb0">Toggle Loopback</a></li>
|
<li><a href="#orgf2e2fb0">Toggle Loopback</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
<li><a href="#org01c2810">High cursor</a>
|
||||||
|
<ul>
|
||||||
|
<li><a href="#org28d4776">Cursor - Status</a></li>
|
||||||
|
<li><a href="#org6f6d991">Toggle Cursor</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
<li><a href="#org1243118">Screenshot</a></li>
|
<li><a href="#org1243118">Screenshot</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
@ -160,7 +165,7 @@
|
|||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">[<span class="org-type">bar/top</span>]
|
<pre class="src src-conf">[<span class="org-type">bar/top</span>]
|
||||||
<span class="org-variable-name">enable-ipc</span> = true
|
<span class="org-variable-name">enable-ipc</span> = true
|
||||||
<span class="org-variable-name">override-redirect</span> = false
|
<span class="org-comment-delimiter"># </span><span class="org-comment">override-redirect = false</span>
|
||||||
<span class="org-variable-name">bottom</span> = false
|
<span class="org-variable-name">bottom</span> = false
|
||||||
<span class="org-variable-name">fixed-center</span> = false
|
<span class="org-variable-name">fixed-center</span> = false
|
||||||
|
|
||||||
@ -185,11 +190,11 @@
|
|||||||
<span class="org-variable-name">font-1</span> = unifont:fontformat=truetype:size=<span class="org-highlight-numbers-number">8</span>:antialias=false;<span class="org-highlight-numbers-number">0</span>
|
<span class="org-variable-name">font-1</span> = unifont:fontformat=truetype:size=<span class="org-highlight-numbers-number">8</span>:antialias=false;<span class="org-highlight-numbers-number">0</span>
|
||||||
<span class="org-variable-name">font-2</span> = Weather Icons:size=<span class="org-highlight-numbers-number">10</span>;<span class="org-highlight-numbers-number">1</span>
|
<span class="org-variable-name">font-2</span> = Weather Icons:size=<span class="org-highlight-numbers-number">10</span>;<span class="org-highlight-numbers-number">1</span>
|
||||||
|
|
||||||
<span class="org-variable-name">modules-left</span> = i3 bspwm xwindow
|
<span class="org-variable-name">modules-left</span> = i3 xwindow
|
||||||
<span class="org-variable-name">modules-center</span> =
|
<span class="org-variable-name">modules-center</span> =
|
||||||
<span class="org-variable-name">modules-right</span> = pulseaudio wired-network wireless-network nordvpn bluetooth redshift lockscreen dunst packages unread_news unread_mail calendar temperature battery date
|
<span class="org-variable-name">modules-right</span> = pulseaudio wired-network wireless-network wireguard nordvpn bluetooth redshift cursor lockscreen dunst packages unread_news unread_mail calendar temperature battery date
|
||||||
|
|
||||||
<span class="org-variable-name">wm-restack</span> = i3
|
<span class="org-comment-delimiter"># </span><span class="org-comment">wm-restack = i3</span>
|
||||||
|
|
||||||
<span class="org-variable-name">tray-position</span> = right
|
<span class="org-variable-name">tray-position</span> = right
|
||||||
<span class="org-variable-name">tray-detached</span> = true
|
<span class="org-variable-name">tray-detached</span> = true
|
||||||
@ -264,60 +269,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org3d63ec8" class="outline-2">
|
|
||||||
<h2 id="org3d63ec8">BSPWM</h2>
|
|
||||||
<div class="outline-text-2" id="text-org3d63ec8">
|
|
||||||
<div class="org-src-container">
|
|
||||||
<pre class="src src-conf">[<span class="org-type">module/bspwm</span>]
|
|
||||||
<span class="org-variable-name">type</span> = internal/bspwm
|
|
||||||
|
|
||||||
<span class="org-variable-name">pin-workspaces</span> = true
|
|
||||||
<span class="org-variable-name">enable-click</span> = true
|
|
||||||
<span class="org-variable-name">enable-scroll</span> = false
|
|
||||||
|
|
||||||
; Use fuzzy (partial) matching on labels when assigning
|
|
||||||
; icons to workspaces
|
|
||||||
; Example: code;♚ will apply the icon to all workspaces
|
|
||||||
; containing <span class="org-string">'code'</span> in the label
|
|
||||||
<span class="org-variable-name">fuzzy-match</span> = false
|
|
||||||
|
|
||||||
|
|
||||||
<span class="org-variable-name">ws-icon-0</span> = code;
|
|
||||||
<span class="org-variable-name">ws-icon-1</span> = web;
|
|
||||||
<span class="org-variable-name">ws-icon-2</span> = mail;
|
|
||||||
<span class="org-variable-name">ws-icon-3</span> = misc;
|
|
||||||
<span class="org-variable-name">ws-icon-4</span> = figs;ﬧ
|
|
||||||
<span class="org-variable-name">ws-icon-default</span> =
|
|
||||||
|
|
||||||
<span class="org-variable-name">label-focused</span> = %icon%
|
|
||||||
<span class="org-variable-name">label-focused-foreground</span> = ${colors.bg}
|
|
||||||
<span class="org-variable-name">label-focused-background</span> = ${colors.aqua}
|
|
||||||
<span class="org-variable-name">label-focused-underline</span>= ${colors.aqua}
|
|
||||||
<span class="org-variable-name">label-focused-padding</span> = <span class="org-highlight-numbers-number">1</span>
|
|
||||||
|
|
||||||
<span class="org-variable-name">label-occupied</span> = %icon%
|
|
||||||
<span class="org-variable-name">label-occupied-underline</span> = ${colors.fg}
|
|
||||||
<span class="org-variable-name">label-occupied-padding</span> = <span class="org-highlight-numbers-number">1</span>
|
|
||||||
|
|
||||||
<span class="org-variable-name">label-urgent</span> = %icon%
|
|
||||||
<span class="org-variable-name">label-urgent-background</span> = ${colors.red}
|
|
||||||
<span class="org-variable-name">label-urgent-padding</span> = <span class="org-highlight-numbers-number">1</span>
|
|
||||||
|
|
||||||
<span class="org-variable-name">label-empty</span> = %icon%
|
|
||||||
<span class="org-variable-name">label-empty-foreground</span> = ${colors.fg}
|
|
||||||
<span class="org-variable-name">label-empty-padding</span> = <span class="org-highlight-numbers-number">1</span>
|
|
||||||
</pre>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="outline-container-org9a4155c" class="outline-2">
|
<div id="outline-container-org9a4155c" class="outline-2">
|
||||||
<h2 id="org9a4155c">Music using MPD</h2>
|
<h2 id="org9a4155c">Music using MPD</h2>
|
||||||
<div class="outline-text-2" id="text-org9a4155c">
|
<div class="outline-text-2" id="text-org9a4155c">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">[<span class="org-type">module/mpd</span>]
|
<pre class="src src-conf">[<span class="org-type">module/mpd</span>]
|
||||||
<span class="org-variable-name">type</span> = internal/mpd
|
<span class="org-variable-name">type</span> = internal/mpd
|
||||||
<span class="org-variable-name">format-online</span> = <icon-prev> <toggle> <icon-next> %{A1:$TERMINAL -e <span class="org-string">"ncmpcpp"</span> &:}<label-song>%{A}
|
<span class="org-variable-name">format-online</span> = <icon-prev> <toggle> <icon-next> %{A1:$TERMINAL -e ncmpcpp &:}<label-song>%{A}
|
||||||
|
|
||||||
<span class="org-variable-name">format-online-spacing</span> = <span class="org-highlight-numbers-number">0</span>
|
<span class="org-variable-name">format-online-spacing</span> = <span class="org-highlight-numbers-number">0</span>
|
||||||
<span class="org-variable-name">format-online-padding</span> = <span class="org-highlight-numbers-number">0</span>
|
<span class="org-variable-name">format-online-padding</span> = <span class="org-highlight-numbers-number">0</span>
|
||||||
@ -388,7 +346,7 @@
|
|||||||
<span class="org-variable-name">format-prefix-foreground</span> = ${colors.fg}
|
<span class="org-variable-name">format-prefix-foreground</span> = ${colors.fg}
|
||||||
<span class="org-variable-name">format-underline</span> = ${colors.bg}
|
<span class="org-variable-name">format-underline</span> = ${colors.bg}
|
||||||
|
|
||||||
<span class="org-variable-name">label</span> = %{A1:$TERMINAL -e <span class="org-string">"htop"</span> &:}﬙ %percentage:2%%%{A}
|
<span class="org-variable-name">label</span> = %{A1:$TERMINAL -e htop &:}﬙ %percentage:2%%%{A}
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -403,8 +361,8 @@
|
|||||||
<span class="org-variable-name">interval</span> = <span class="org-highlight-numbers-number">1</span>
|
<span class="org-variable-name">interval</span> = <span class="org-highlight-numbers-number">1</span>
|
||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Open google calendar on left right</span>
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Open google calendar on left right</span>
|
||||||
<span class="org-variable-name">date</span> = %{A1:$TERMINAL -e <span class="org-string">"ikhal"</span> &:} %d-%m%{A}
|
<span class="org-variable-name">date</span> = %{A1:$TERMINAL --title khal -e ikhal &:} %d-%m%{A}
|
||||||
<span class="org-variable-name">date-alt</span> = <span class="org-string">"%{A1:$TERMINAL -e \"ikhal\" &:} %d-%m-%Y%{A}"</span>
|
<span class="org-variable-name">date-alt</span> = <span class="org-string">"%{A1:$TERMINAL --title khal -e ikhal &:} %d-%m-%Y%{A}"</span>
|
||||||
|
|
||||||
<span class="org-variable-name">time</span> =  %H:%M
|
<span class="org-variable-name">time</span> =  %H:%M
|
||||||
<span class="org-variable-name">time-alt</span> =  %H:%M:%S
|
<span class="org-variable-name">time-alt</span> =  %H:%M:%S
|
||||||
@ -491,10 +449,11 @@
|
|||||||
<span class="org-variable-name">type</span> = internal/temperature
|
<span class="org-variable-name">type</span> = internal/temperature
|
||||||
<span class="org-variable-name">interval</span> = <span class="org-highlight-numbers-number">2</span>
|
<span class="org-variable-name">interval</span> = <span class="org-highlight-numbers-number">2</span>
|
||||||
<span class="org-variable-name">thermal-zone</span> = <span class="org-highlight-numbers-number">0</span>
|
<span class="org-variable-name">thermal-zone</span> = <span class="org-highlight-numbers-number">0</span>
|
||||||
<span class="org-variable-name">warn-temperature</span> = <span class="org-highlight-numbers-number">70</span>
|
<span class="org-variable-name">base-temperature</span> = <span class="org-highlight-numbers-number">50</span>
|
||||||
<span class="org-variable-name">hwmon-path</span> = /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input
|
<span class="org-variable-name">warn-temperature</span> = <span class="org-highlight-numbers-number">80</span>
|
||||||
|
<span class="org-variable-name">hwmon-path</span> = /sys/class/thermal/thermal_zone10/temp
|
||||||
<span class="org-variable-name">units</span> = false
|
<span class="org-variable-name">units</span> = false
|
||||||
<span class="org-variable-name">format</span> = %{A1:$TERMINAL --class=<span class="org-string">"Floating"</span> -e <span class="org-string">"watch sensors"</span> &:}<ramp> <label>%{A}
|
<span class="org-variable-name">format</span> = %{A1:$TERMINAL --title=<span class="org-string">"Sensors"</span> -e watch sensors &:}<ramp> <label>%{A}
|
||||||
<span class="org-variable-name">format-warn</span> = <ramp> <label-warn>
|
<span class="org-variable-name">format-warn</span> = <ramp> <label-warn>
|
||||||
<span class="org-variable-name">label</span> = %temperature-c%°C
|
<span class="org-variable-name">label</span> = %temperature-c%°C
|
||||||
<span class="org-variable-name">label-warn</span> = %temperature-c%°C
|
<span class="org-variable-name">label-warn</span> = %temperature-c%°C
|
||||||
@ -563,7 +522,7 @@ checkmail -q && <span class="org-sh-escaped-newline">\</span>
|
|||||||
<h3 id="org892ac5a">Open Mails</h3>
|
<h3 id="org892ac5a">Open Mails</h3>
|
||||||
<div class="outline-text-3" id="text-org892ac5a">
|
<div class="outline-text-3" id="text-org892ac5a">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash">$<span class="org-variable-name">TERMINAL</span> -e <span class="org-string">"tmux new-session -A -s neomutt neomutt"</span>
|
<pre class="src src-bash">$<span class="org-variable-name">TERMINAL</span> -e tmux new-session -A -s neomutt neomutt
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -626,7 +585,7 @@ checkmail -q && <span class="org-sh-escaped-newline">\</span>
|
|||||||
<h3 id="org4b2dabe">Open Newsboat</h3>
|
<h3 id="org4b2dabe">Open Newsboat</h3>
|
||||||
<div class="outline-text-3" id="text-org4b2dabe">
|
<div class="outline-text-3" id="text-org4b2dabe">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash">$<span class="org-variable-name">TERMINAL</span> -e <span class="org-string">"tmux new-session -A -s newsboat newsboat"</span>
|
<pre class="src src-bash">$<span class="org-variable-name">TERMINAL</span> -e tmux new-session -A -s newsboat newsboat
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -685,7 +644,7 @@ checkmail -q && <span class="org-sh-escaped-newline">\</span>
|
|||||||
<h3 id="org8c169a3">Open Calendar</h3>
|
<h3 id="org8c169a3">Open Calendar</h3>
|
||||||
<div class="outline-text-3" id="text-org8c169a3">
|
<div class="outline-text-3" id="text-org8c169a3">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash">$<span class="org-variable-name">TERMINAL</span> --class=<span class="org-string">"Floating"</span> -e <span class="org-string">"khal interactive"</span>
|
<pre class="src src-bash">$<span class="org-variable-name">TERMINAL</span> --title=khal -e ikhal
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -799,7 +758,7 @@ paru -Sy > /dev/null <span class="org-highlight-numbers-number">2</span>>&
|
|||||||
<h3 id="org9a148af">Packages Update</h3>
|
<h3 id="org9a148af">Packages Update</h3>
|
||||||
<div class="outline-text-3" id="text-org9a148af">
|
<div class="outline-text-3" id="text-org9a148af">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash">$<span class="org-variable-name">TERMINAL</span> -e <span class="org-string">"paru"</span>
|
<pre class="src src-bash">$<span class="org-variable-name">TERMINAL</span> -e paru
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -951,7 +910,7 @@ paru -Sy > /dev/null <span class="org-highlight-numbers-number">2</span>>&
|
|||||||
<h3 id="org4f57e9b">Run Network Manager</h3>
|
<h3 id="org4f57e9b">Run Network Manager</h3>
|
||||||
<div class="outline-text-3" id="text-org4f57e9b">
|
<div class="outline-text-3" id="text-org4f57e9b">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash">$<span class="org-variable-name">TERMINAL</span> -e <span class="org-string">'</span><span class="org-type"><span class="org-string">sudo</span></span><span class="org-string"> nmtui'</span>
|
<pre class="src src-bash">$<span class="org-variable-name">TERMINAL</span> -e <span class="org-type">sudo</span> nmtui
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -1205,6 +1164,54 @@ The script is accessible <a href="binaries.html#nordvpn-toggle">here</a>.
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="outline-container-org01c2810" class="outline-2">
|
||||||
|
<h2 id="org01c2810">High cursor</h2>
|
||||||
|
<div class="outline-text-2" id="text-org01c2810">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-conf">[<span class="org-type">module/cursor</span>]
|
||||||
|
<span class="org-variable-name">type</span> = custom/script
|
||||||
|
|
||||||
|
<span class="org-variable-name">format-underline</span> = ${colors.bg}
|
||||||
|
<span class="org-variable-name">click-left</span> = ~/.config/polybar/scripts/cursor-toggle.sh >/dev/null 2>%1 &
|
||||||
|
<span class="org-variable-name">format</span> = <label>
|
||||||
|
<span class="org-variable-name">exec</span> = ~/.config/polybar/scripts/cursor-status.sh
|
||||||
|
|
||||||
|
<span class="org-variable-name">interval</span> = <span class="org-highlight-numbers-number">2</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org28d4776" class="outline-3">
|
||||||
|
<h3 id="org28d4776">Cursor - Status</h3>
|
||||||
|
<div class="outline-text-3" id="text-org28d4776">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-type">pgrep</span> -x <span class="org-string">"highlight-point"</span> >/dev/null; <span class="org-keyword">then</span>
|
||||||
|
<span class="org-type">echo</span> <span class="org-string">"%{F#859900}%{F-}"</span>;
|
||||||
|
<span class="org-keyword">else</span>
|
||||||
|
<span class="org-type">echo</span> <span class="org-string">""</span>;
|
||||||
|
<span class="org-keyword">fi</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org6f6d991" class="outline-3">
|
||||||
|
<h3 id="org6f6d991">Toggle Cursor</h3>
|
||||||
|
<div class="outline-text-3" id="text-org6f6d991">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-type">pgrep</span> -x <span class="org-string">"highlight-point"</span> >/dev/null; <span class="org-keyword">then</span>
|
||||||
|
killall highlight-point && <span class="org-sh-escaped-newline">\</span>
|
||||||
|
dunstify --replace=<span class="org-highlight-numbers-number">46492</span> <span class="org-string">"Cursor"</span> <span class="org-string">"Turned off"</span>;
|
||||||
|
<span class="org-keyword">else</span>
|
||||||
|
nohup highlight-pointer -r <span class="org-highlight-numbers-number">10</span> > /dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span> &
|
||||||
|
dunstify --replace=<span class="org-highlight-numbers-number">46492</span> <span class="org-string">"Cursor"</span> <span class="org-string">"Highlight..."</span>;
|
||||||
|
<span class="org-keyword">fi</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org1243118" class="outline-2">
|
<div id="outline-container-org1243118" class="outline-2">
|
||||||
<h2 id="org1243118">Screenshot</h2>
|
<h2 id="org1243118">Screenshot</h2>
|
||||||
<div class="outline-text-2" id="text-org1243118">
|
<div class="outline-text-2" id="text-org1243118">
|
||||||
@ -1220,7 +1227,7 @@ The script is accessible <a href="binaries.html#nordvpn-toggle">here</a>.
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: Dehaeze Thomas</p>
|
<p class="author">Author: Dehaeze Thomas</p>
|
||||||
<p class="date">Created: 2021-04-25 dim. 19:10</p>
|
<p class="date">Created: 2021-10-25 lun. 14:33</p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2021-04-25 dim. 19:10 -->
|
<!-- 2021-10-25 lun. 14:33 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<title>Qutebrowser Configuration</title>
|
<title>Qutebrowser Configuration</title>
|
||||||
<meta name="author" content="Dehaeze Thomas" />
|
<meta name="author" content="Dehaeze Thomas" />
|
||||||
@ -16,11 +16,11 @@
|
|||||||
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="h" href="./index.html"> UP </a>
|
||||||
|
|
|
|
||||||
<a accesskey="H" href="./index.html"> HOME </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
|
||||||
</div><div id="content">
|
</div><div id="content" class="content">
|
||||||
<h1 class="title">Qutebrowser Configuration</h1>
|
<h1 class="title">Qutebrowser Configuration</h1>
|
||||||
<div id="table-of-contents">
|
<div id="table-of-contents" role="doc-toc">
|
||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents" role="doc-toc">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgbf1db67">Import</a></li>
|
<li><a href="#orgbf1db67">Import</a></li>
|
||||||
<li><a href="#org5c509d0">Auto Config</a></li>
|
<li><a href="#org5c509d0">Auto Config</a></li>
|
||||||
@ -47,13 +47,17 @@
|
|||||||
<li><a href="#org38a2899">Password_fill_rc</a></li>
|
<li><a href="#org38a2899">Password_fill_rc</a></li>
|
||||||
<li><a href="#org5b8c3ce">Org-Capture</a></li>
|
<li><a href="#org5b8c3ce">Org-Capture</a></li>
|
||||||
<li><a href="#org244788b">Org-Protocol-Capture-HTML</a></li>
|
<li><a href="#org244788b">Org-Protocol-Capture-HTML</a></li>
|
||||||
|
<li><a href="#org6d745ed">Open Bookmark with Linkding</a></li>
|
||||||
|
<li><a href="#orgb3b6592">Add Url to Linkding</a></li>
|
||||||
<li><a href="#org153f69f">Add Url to Buku using Rofi</a></li>
|
<li><a href="#org153f69f">Add Url to Buku using Rofi</a></li>
|
||||||
<li><a href="#orgfe64fed">Add Url to Buku without asking for information</a></li>
|
<li><a href="#orgfe64fed">Add Url to Buku without asking for information</a></li>
|
||||||
<li><a href="#orgf02d7da">Download with aria2c</a></li>
|
<li><a href="#orgf02d7da">Download with aria2c</a></li>
|
||||||
<li><a href="#orgfcd3553">Download with aria2c on the Homelab</a></li>
|
<li><a href="#orgfcd3553">Download with aria2c on the Homelab</a></li>
|
||||||
<li><a href="#orgcd649c5">Screenshot</a></li>
|
<li><a href="#org508f98a">Save to PNG</a></li>
|
||||||
<li><a href="#org13f7ed3">Save to PDF</a></li>
|
<li><a href="#org13f7ed3">Save to PDF</a></li>
|
||||||
|
<li><a href="#orgc2161e6">Get OTP number</a></li>
|
||||||
<li><a href="#org0d058a3">Download AES video</a></li>
|
<li><a href="#org0d058a3">Download AES video</a></li>
|
||||||
|
<li><a href="#org8110088">Display URL as a QRcode</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -122,7 +126,7 @@ Linked to <a href="https://github.com/qutebrowser/qutebrowser/issues/6401">issue
|
|||||||
<div class="outline-text-2" id="text-org0471984">
|
<div class="outline-text-2" id="text-org0471984">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-python"><span class="org-variable-name">c.content.autoplay</span> = <span class="org-constant">False</span>
|
<pre class="src src-python"><span class="org-variable-name">c.content.autoplay</span> = <span class="org-constant">False</span>
|
||||||
<span class="org-variable-name">c.content.notifications</span> = <span class="org-constant">False</span>
|
<span class="org-variable-name">c.content.notifications.enabled</span> = <span class="org-constant">False</span>
|
||||||
<span class="org-variable-name">c.content.geolocation</span> = <span class="org-string">'ask'</span>
|
<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.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.javascript.can_access_clipboard</span> = <span class="org-constant">True</span>
|
||||||
@ -139,7 +143,7 @@ Linked to <a href="https://github.com/qutebrowser/qutebrowser/issues/6401">issue
|
|||||||
<h2 id="org9d328f1">Editor</h2>
|
<h2 id="org9d328f1">Editor</h2>
|
||||||
<div class="outline-text-2" id="text-org9d328f1">
|
<div class="outline-text-2" id="text-org9d328f1">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-python"><span class="org-variable-name">c.editor.command</span> = [<span class="org-string">'/usr/bin/termite'</span>, <span class="org-string">'--class="Floating"'</span>, <span class="org-string">'-e'</span>, <span class="org-string">'nvim {}'</span>]
|
<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>]
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -155,6 +159,7 @@ Linked to <a href="https://github.com/qutebrowser/qutebrowser/issues/6401">issue
|
|||||||
<span class="org-variable-name">c.downloads.location.suggestion</span> = <span class="org-string">'path'</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.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>
|
<span class="org-variable-name">c.downloads.remove_finished</span> = <span class="org-highlight-numbers-number">10000</span>
|
||||||
|
<span class="org-comment-delimiter"># </span><span class="org-comment">c.downloads.open_dispatcher = 'linkhandler'</span>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -166,7 +171,7 @@ Linked to <a href="https://github.com/qutebrowser/qutebrowser/issues/6401">issue
|
|||||||
<div class="org-src-container">
|
<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>
|
<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>
|
<span class="org-comment-delimiter"># </span><span class="org-comment">c.fileselect.single_file.command = ['termine', '-e', 'ranger', '--choosefile', '{}']</span>
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">c.fileselect.multiple_files.command = ['termite', '-e', 'ranger', '--choosefiles', '{}']</span>
|
<span class="org-comment-delimiter"># </span><span class="org-comment">c.fileselect.multiple_files.command = ['alacritty', '-e', 'ranger', '--choosefiles', '{}']</span>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -305,7 +310,6 @@ c.<span class="org-builtin">input</span>.insert_mode.plugins = <span class="org-
|
|||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-python"><span class="org-variable-name">c.url.searchengines</span> = {
|
<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">'DEFAULT'</span>: <span class="org-string">'https://www.duckduckgo.org/?q={}'</span>,
|
||||||
<span class="org-string">'aw'</span>: <span class="org-string">'https://wiki.archlinux.org/?search={}'</span>,
|
|
||||||
<span class="org-string">'wi'</span>: <span class="org-string">'https://en.wikipedia.org/wiki/Special:Search?search={}'</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">'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&as_sdt=0%2C5&q={}&btnG='</span>,
|
<span class="org-string">'gc'</span>: <span class="org-string">'https://scholar.google.fr/scholar?hl=fr&as_sdt=0%2C5&q={}&btnG='</span>,
|
||||||
@ -318,9 +322,9 @@ c.<span class="org-builtin">input</span>.insert_mode.plugins = <span class="org-
|
|||||||
<span class="org-string">'sm'</span>: <span class="org-string">'https://www.openstreetmap.org/search?query={}'</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">'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={}&submitsearch='</span>,
|
<span class="org-string">'md'</span>: <span class="org-string">'https://fr.mathworks.com/help/search.html?qdoc={}&submitsearch='</span>,
|
||||||
<span class="org-string">'js'</span>: <span class="org-string">'https://developer.mozilla.org/en-US/search?q={}'</span>,
|
|
||||||
<span class="org-string">'tf'</span>: <span class="org-string">'https://translate.google.com/#view=home&op=translate&sl=en&tl=fr&text={}'</span>,
|
<span class="org-string">'tf'</span>: <span class="org-string">'https://translate.google.com/#view=home&op=translate&sl=en&tl=fr&text={}'</span>,
|
||||||
<span class="org-string">'te'</span>: <span class="org-string">'https://translate.google.com/#view=home&op=translate&sl=fr&tl=en&text={}'</span>,
|
<span class="org-string">'te'</span>: <span class="org-string">'https://translate.google.com/#view=home&op=translate&sl=fr&tl=en&text={}'</span>,
|
||||||
|
<span class="org-string">'lb'</span>: <span class="org-string">'https://www.leboncoin.fr/recherche?text={}'</span>,
|
||||||
}
|
}
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
@ -454,7 +458,8 @@ config.bind(<span class="org-string">'gs'</span>, <span class="org-string">'open
|
|||||||
Create a Password for the current website
|
Create a Password for the current website
|
||||||
</p>
|
</p>
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-python">config.bind(<span class="org-string">',P'</span>, <span class="org-string">'spawn --userscript ~/.config/qutebrowser/userscripts/add-passowrd.sh'</span>)
|
<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>)
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -462,7 +467,17 @@ Create a Password for the current website
|
|||||||
Use Pass to fill password and username (configuration is done in <code>~/.config/qutebrowser/password_fill_rc</code>)
|
Use Pass to fill password and username (configuration is done in <code>~/.config/qutebrowser/password_fill_rc</code>)
|
||||||
</p>
|
</p>
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-python">config.bind(<span class="org-string">',p'</span>, <span class="org-string">'spawn --userscript password_fill'</span>)
|
<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>)
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -470,8 +485,11 @@ Use Pass to fill password and username (configuration is done in <code>~/.config
|
|||||||
Open Youtube video using <code>mpv</code>
|
Open Youtube video using <code>mpv</code>
|
||||||
</p>
|
</p>
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-python">config.bind(<span class="org-string">',m'</span>, <span class="org-string">'spawn --detach mpv --force-window yes {url}'</span>)
|
<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">'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'</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>)
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -479,17 +497,20 @@ config.bind(<span class="org-string">',M'</span>, <span class="org-string">'hint
|
|||||||
Download Youtube video / entire playlist
|
Download Youtube video / entire playlist
|
||||||
</p>
|
</p>
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-python">config.bind(<span class="org-string">',v'</span>, <span class="org-string">'spawn --userscript ~/.config/qutebrowser/userscripts/yt-download.sh {url}'</span>)
|
<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">'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'</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>)
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Add page to Bookmarks using <code>buku</code>
|
Add page to Bookmarks using <code>linkding</code>
|
||||||
</p>
|
</p>
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-python">config.bind(<span class="org-string">',b'</span>, <span class="org-string">'spawn --userscript ~/.config/qutebrowser/userscripts/buku-add.sh'</span>)
|
<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">'spawn --userscript ~/.config/qutebrowser/userscripts/buku-rofi.sh'</span>)
|
config.bind(<span class="org-string">',b'</span>, <span class="org-string">'Bookmark_Add'</span>)
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -497,16 +518,29 @@ config.bind(<span class="org-string">',B'</span>, <span class="org-string">'spaw
|
|||||||
Download with <code>aria2c</code>
|
Download with <code>aria2c</code>
|
||||||
</p>
|
</p>
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-python">config.bind(<span class="org-string">',d'</span>, <span class="org-string">'hint links spawn --userscript ~/.config/qutebrowser/userscripts/aria2c-add.sh {hint-url}'</span>)
|
<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">'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_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>)
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Open bookmark using <code>buku</code>
|
Open bookmark using <code>linkding</code>
|
||||||
</p>
|
</p>
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-python">config.bind(<span class="org-string">',o'</span>, <span class="org-string">'spawn ~/.local/bin/bukurun'</span>)
|
<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>)
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Open with <code>linkhandler</code>
|
||||||
|
</p>
|
||||||
|
<div class="org-src-container">
|
||||||
|
<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>)
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -514,8 +548,11 @@ Open bookmark using <code>buku</code>
|
|||||||
Org Capture
|
Org Capture
|
||||||
</p>
|
</p>
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-python">config.bind(<span class="org-string">',r'</span>, <span class="org-string">'spawn --userscript ~/.config/qutebrowser/userscripts/org-capture.sh'</span>)
|
<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">'hint links 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>)
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -523,8 +560,11 @@ config.bind(<span class="org-string">',R'</span>, <span class="org-string">'hint
|
|||||||
Screenshot of webpage to png
|
Screenshot of webpage to png
|
||||||
</p>
|
</p>
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-python">config.bind(<span class="org-string">',s'</span>, <span class="org-string">'spawn --userscript ~/.config/qutebrowser/userscripts/html-to-pdf.sh'</span>)
|
<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">'spawn --userscript ~/.config/qutebrowser/userscripts/html-to-png.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>)
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -532,7 +572,8 @@ config.bind(<span class="org-string">',S'</span>, <span class="org-string">'spaw
|
|||||||
Download AES video
|
Download AES video
|
||||||
</p>
|
</p>
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-python">config.bind(<span class="org-string">',E'</span>, <span class="org-string">'spawn --userscript ~/.config/qutebrowser/userscripts/aes-download.sh'</span>)
|
<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>)
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -540,15 +581,8 @@ Download AES video
|
|||||||
Download a torrent
|
Download a torrent
|
||||||
</p>
|
</p>
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-python">config.bind(<span class="org-string">',t'</span>, <span class="org-string">'hint links spawn torrent-add {hint-url}'</span>)
|
<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>
|
||||||
</pre>
|
config.bind(<span class="org-string">',t'</span>, <span class="org-string">'Download_Torrent_Homelab'</span>)
|
||||||
</div>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
Annotate with Hypothesis
|
|
||||||
</p>
|
|
||||||
<div class="org-src-container">
|
|
||||||
<pre class="src src-python">config.bind(<span class="org-string">',a'</span>, <span class="org-string">"jseval javascript:(function(){window.hypothesisConfig=function(){return{showHighlights:true,appType:'bookmarklet'};};var d=document,s=d.createElement('script');s.setAttribute('src','https://hypothes.is/embed.js');d.body.appendChild(s)})();"</span>)
|
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -556,7 +590,8 @@ Annotate with Hypothesis
|
|||||||
See Amazon price history using CamelCamelCamel
|
See Amazon price history using CamelCamelCamel
|
||||||
</p>
|
</p>
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-python">config.bind(<span class="org-string">',A'</span>, <span class="org-string">"open -t https://fr.camelcamelcamel.com/search?sq={url}"</span>)
|
<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>)
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -564,12 +599,17 @@ See Amazon price history using CamelCamelCamel
|
|||||||
Org Roam Entry for the current page
|
Org Roam Entry for the current page
|
||||||
</p>
|
</p>
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-python">config.bind(<span class="org-string">',R'</span>, <span class="org-string">"open javascript:void(location.href='org-protocol://roam-ref?template=r&ref='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title))"</span>)
|
<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&ref='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title))"</span>
|
||||||
|
config.bind(<span class="org-string">',R'</span>, <span class="org-string">'Org_Roam_Save'</span>)
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Display Current URL as a QRcode (useful to open in on a phone).
|
||||||
|
</p>
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-python">config.bind(<span class="org-string">',Z'</span>, <span class="org-string">"open -w https://bm.tdehaeze.xyz/bookmarks/new?url={url}&auto_close"</span>)
|
<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>)
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -578,6 +618,9 @@ Org Roam Entry for the current page
|
|||||||
<div id="outline-container-org1668b62" class="outline-2">
|
<div id="outline-container-org1668b62" class="outline-2">
|
||||||
<h2 id="org1668b62">Userscripts</h2>
|
<h2 id="org1668b62">Userscripts</h2>
|
||||||
<div class="outline-text-2" id="text-org1668b62">
|
<div class="outline-text-2" id="text-org1668b62">
|
||||||
|
<p>
|
||||||
|
<a href="https://qutebrowser.org/doc/userscripts.html">Here</a> is the documentation related to userscripts.
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org1453ee9" class="outline-3">
|
<div id="outline-container-org1453ee9" class="outline-3">
|
||||||
@ -826,6 +869,52 @@ Send to Emacs
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org6d745ed" class="outline-3">
|
||||||
|
<h3 id="org6d745ed">Open Bookmark with Linkding</h3>
|
||||||
|
<div class="outline-text-3" id="text-org6d745ed">
|
||||||
|
<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> >> <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>
|
||||||
|
|
||||||
|
<div id="outline-container-orgb3b6592" class="outline-3">
|
||||||
|
<h3 id="orgb3b6592">Add Url to Linkding</h3>
|
||||||
|
<div class="outline-text-3" id="text-orgb3b6592">
|
||||||
|
<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/ && <span class="org-sh-escaped-newline">\</span>
|
||||||
|
dunstify <span class="org-string">"Linkding"</span> <span class="org-string">" Bookmark Added"</span> || <span class="org-sh-escaped-newline">\</span>
|
||||||
|
dunstify --urgency=critical <span class="org-string">"Linkding"</span> <span class="org-string">"Failed"</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org153f69f" class="outline-3">
|
<div id="outline-container-org153f69f" class="outline-3">
|
||||||
<h3 id="org153f69f">Add Url to Buku using Rofi</h3>
|
<h3 id="org153f69f">Add Url to Buku using Rofi</h3>
|
||||||
<div class="outline-text-3" id="text-org153f69f">
|
<div class="outline-text-3" id="text-org153f69f">
|
||||||
@ -876,9 +965,9 @@ buku --add <span class="org-string">"</span><span class="org-string"><span class
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgcd649c5" class="outline-3">
|
<div id="outline-container-org508f98a" class="outline-3">
|
||||||
<h3 id="orgcd649c5">Screenshot</h3>
|
<h3 id="org508f98a">Save to PNG</h3>
|
||||||
<div class="outline-text-3" id="text-orgcd649c5">
|
<div class="outline-text-3" id="text-org508f98a">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<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>
|
<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>
|
||||||
|
|
||||||
@ -908,6 +997,21 @@ buku --add <span class="org-string">"</span><span class="org-string"><span class
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-orgc2161e6" class="outline-3">
|
||||||
|
<h3 id="orgc2161e6">Get OTP number</h3>
|
||||||
|
<div class="outline-text-3" id="text-orgc2161e6">
|
||||||
|
<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 && <span class="org-sh-escaped-newline">\</span>
|
||||||
|
dunstify <span class="org-string">'OTP'</span> <span class="org-string">'copied to clipboard.'</span> &
|
||||||
|
<span class="org-keyword">fi</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org0d058a3" class="outline-3">
|
<div id="outline-container-org0d058a3" class="outline-3">
|
||||||
<h3 id="org0d058a3">Download AES video</h3>
|
<h3 id="org0d058a3">Download AES video</h3>
|
||||||
<div class="outline-text-3" id="text-org0d058a3">
|
<div class="outline-text-3" id="text-org0d058a3">
|
||||||
@ -926,11 +1030,21 @@ buku --add <span class="org-string">"</span><span class="org-string"><span class
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org8110088" class="outline-3">
|
||||||
|
<h3 id="org8110088">Display URL as a QRcode</h3>
|
||||||
|
<div class="outline-text-3" id="text-org8110088">
|
||||||
|
<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> && sxiv /tmp/qrcode.png
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: Dehaeze Thomas</p>
|
<p class="author">Author: Dehaeze Thomas</p>
|
||||||
<p class="date">Created: 2021-04-25 dim. 19:10</p>
|
<p class="date">Created: 2021-10-25 lun. 14:33</p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
411
docs/ranger.html
411
docs/ranger.html
@ -3,11 +3,11 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2021-02-10 mer. 17:57 -->
|
<!-- 2021-06-20 dim. 14:21 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<title>Ranger</title>
|
<title>Ranger</title>
|
||||||
<meta name="generator" content="Org mode" />
|
|
||||||
<meta name="author" content="Dehaeze Thomas" />
|
<meta name="author" content="Dehaeze Thomas" />
|
||||||
|
<meta name="generator" content="Org Mode" />
|
||||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||||
<script type="text/javascript" src="./dist/script.js"></script>
|
<script type="text/javascript" src="./dist/script.js"></script>
|
||||||
</head>
|
</head>
|
||||||
@ -32,13 +32,14 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org7681c16">Extract Script</a></li>
|
<li><a href="#org7681c16">Extract Script</a></li>
|
||||||
<li><a href="#orgd110a48">Compress Script</a></li>
|
<li><a href="#orgd110a48">Compress Script</a></li>
|
||||||
|
<li><a href="#org4e182ba">Copy File Content</a></li>
|
||||||
<li><a href="#orgb94aa26">Backup to NAS</a></li>
|
<li><a href="#orgb94aa26">Backup to NAS</a></li>
|
||||||
<li><a href="#org95969c5">Paste with Rsync</a></li>
|
<li><a href="#org95969c5">Paste with Rsync</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgd57ea4e">Define keys for the browser</a>
|
<li><a href="#orgd57ea4e">Define keys for the browser</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org527bd08">Basic</a></li>
|
<li><a href="#orgf964ebf">Basic</a></li>
|
||||||
<li><a href="#org1c6f91a">Open Shell in current directory</a></li>
|
<li><a href="#org1c6f91a">Open Shell in current directory</a></li>
|
||||||
<li><a href="#orgdf72b75">Open With</a></li>
|
<li><a href="#orgdf72b75">Open With</a></li>
|
||||||
<li><a href="#org8e148cf">Filter</a></li>
|
<li><a href="#org8e148cf">Filter</a></li>
|
||||||
@ -62,14 +63,27 @@
|
|||||||
</li>
|
</li>
|
||||||
<li><a href="#org7e7a4ec">Define keys for the console</a>
|
<li><a href="#org7e7a4ec">Define keys for the console</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgf964ebf">Basic</a></li>
|
<li><a href="#orgef5af30">Basic</a></li>
|
||||||
<li><a href="#orga9f3972">Move around</a></li>
|
<li><a href="#orga9f3972">Move around</a></li>
|
||||||
<li><a href="#org6265874">Line Editing</a></li>
|
<li><a href="#org6265874">Line Editing</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org9007d23">Rifle</a></li>
|
<li><a href="#rifle">Rifle</a>
|
||||||
|
<ul>
|
||||||
|
<li><a href="#org1462e63">Documentation</a></li>
|
||||||
|
<li><a href="#org64e62ab">Text Files</a></li>
|
||||||
|
<li><a href="#org72831a4">PDF, Epub and jdvu</a></li>
|
||||||
|
<li><a href="#org2c35566">Archives</a></li>
|
||||||
|
<li><a href="#orga558ade">Websites</a></li>
|
||||||
|
<li><a href="#orgc892be6">Word, Excel and Presentation files</a></li>
|
||||||
|
<li><a href="#org64ef3f5">Images</a></li>
|
||||||
|
<li><a href="#org7d765c1">Audio</a></li>
|
||||||
|
<li><a href="#org82c25f1">Video</a></li>
|
||||||
|
<li><a href="#org85aac1e">Misc</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
<li><a href="#org89bf721">Ranger Commands</a>
|
<li><a href="#org89bf721">Ranger Commands</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org58a0d43">Import</a></li>
|
<li><a href="#org58a0d43">Import</a></li>
|
||||||
@ -277,7 +291,7 @@ alias travel scout -aefiklst
|
|||||||
<h3 id="org7bcf949">Some Custom Keybindings</h3>
|
<h3 id="org7bcf949">Some Custom Keybindings</h3>
|
||||||
<div class="outline-text-3" id="text-org7bcf949">
|
<div class="outline-text-3" id="text-org7bcf949">
|
||||||
<p>
|
<p>
|
||||||
Extract
|
Extract:
|
||||||
</p>
|
</p>
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">map ,x shell ~/.config/ranger/scripts/extract.sh %f
|
<pre class="src src-conf">map ,x shell ~/.config/ranger/scripts/extract.sh %f
|
||||||
@ -285,7 +299,7 @@ Extract
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Compress
|
Compress:
|
||||||
</p>
|
</p>
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">map ,z shell ~/.config/ranger/scripts/compress.sh %f
|
<pre class="src src-conf">map ,z shell ~/.config/ranger/scripts/compress.sh %f
|
||||||
@ -293,7 +307,7 @@ Compress
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Get Bibtex from PDF
|
Get Bibtex from PDF:
|
||||||
</p>
|
</p>
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">map ,b shell pdf2bib %f
|
<pre class="src src-conf">map ,b shell pdf2bib %f
|
||||||
@ -301,15 +315,7 @@ Get Bibtex from PDF
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Delete first page of pdf
|
Convert images/pdf/…:
|
||||||
</p>
|
|
||||||
<div class="org-src-container">
|
|
||||||
<pre class="src src-conf">map ,d shell pdf-delete-first-page %f
|
|
||||||
</pre>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
Convert images/pdf/…
|
|
||||||
</p>
|
</p>
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">map ,c shell convert-file %f
|
<pre class="src src-conf">map ,c shell convert-file %f
|
||||||
@ -317,15 +323,7 @@ Convert images/pdf/…
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Magit Status
|
Open SXIV on current directory:
|
||||||
</p>
|
|
||||||
<div class="org-src-container">
|
|
||||||
<pre class="src src-conf"><span class="org-variable-name">map ,gs shell emacsclient -create-frame --alternate-editor</span>=<span class="org-string">""</span> -n --eval <span class="org-string">'(magit-status)'</span>
|
|
||||||
</pre>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
Open SXIV on current directory
|
|
||||||
</p>
|
</p>
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">map ,s shell nohup sxiv -t %d &
|
<pre class="src src-conf">map ,s shell nohup sxiv -t %d &
|
||||||
@ -333,16 +331,15 @@ Open SXIV on current directory
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Upload with 0x0 / self hosted Tansfer.sh
|
Upload to <a href="https://0x0.st/">https://0x0.st/</a>:
|
||||||
</p>
|
</p>
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">map ,t shell upload %f
|
<pre class="src src-conf">map ,t shell upload %f
|
||||||
map ,T shell share %f
|
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Open current folder with PCManFM
|
Open current folder with PCManFM:
|
||||||
</p>
|
</p>
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">map ,o shell nohup pcmanfm %d &
|
<pre class="src src-conf">map ,o shell nohup pcmanfm %d &
|
||||||
@ -350,15 +347,7 @@ Open current folder with PCManFM
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Open with Emacs
|
Print on Rnice:
|
||||||
</p>
|
|
||||||
<div class="org-src-container">
|
|
||||||
<pre class="src src-conf"><span class="org-variable-name">map ,e shell emacsclient -create-frame --alternate-editor</span>=<span class="org-string">""</span> -n %f
|
|
||||||
</pre>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
Print on Rnice
|
|
||||||
</p>
|
</p>
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">map ,p shell print-rnice %f &
|
<pre class="src src-conf">map ,p shell print-rnice %f &
|
||||||
@ -366,12 +355,17 @@ Print on Rnice
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Backup to NAS
|
Backup to NAS:
|
||||||
</p>
|
</p>
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">map ,B shell ~/.config/ranger/scripts/backup-to-nas.sh %s &
|
<pre class="src src-conf">map ,B shell ~/.config/ranger/scripts/backup-to-nas.sh %s &
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-conf">map ,y shell ~/.config/ranger/scripts/copy-content.sh %s &
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -408,6 +402,16 @@ Backup to NAS
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="outline-container-org4e182ba" class="outline-4">
|
||||||
|
<h4 id="org4e182ba">Copy File Content</h4>
|
||||||
|
<div class="outline-text-4" id="text-org4e182ba">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash">xclip -sel c < $<span class="org-highlight-numbers-number">1</span> && dunstify <span class="org-string">"Ranger"</span> <span class="org-string">"Copied to clipboard"</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgb94aa26" class="outline-4">
|
<div id="outline-container-orgb94aa26" class="outline-4">
|
||||||
<h4 id="orgb94aa26">Backup to NAS</h4>
|
<h4 id="orgb94aa26">Backup to NAS</h4>
|
||||||
<div class="outline-text-4" id="text-orgb94aa26">
|
<div class="outline-text-4" id="text-orgb94aa26">
|
||||||
@ -417,9 +421,9 @@ Backup to NAS
|
|||||||
|
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-variable-name">TMUX</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-variable-name">TMUX</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
||||||
tmux split -v -l <span class="org-highlight-numbers-number">2</span> rsync -a --inplace --info=progress2 --rsh=<span class="org-string">'ssh -p10022'</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> nas:/volume1/Data/Downloads/Backup/ && tmux select-pane -U
|
tmux split -v -l <span class="org-highlight-numbers-number">2</span> rsync -a --inplace --info=progress2 --rsh=<span class="org-string">'ssh '</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> homelab:/srv/storage/Backups/ && tmux select-pane -U
|
||||||
<span class="org-keyword">else</span>
|
<span class="org-keyword">else</span>
|
||||||
rsync -a --info=progress2 --inplace --rsh=<span class="org-string">'ssh -p10022'</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> nas:/volume1/Data/Downloads/Backup/
|
rsync -a --info=progress2 --inplace --rsh=<span class="org-string">'ssh'</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> homelab:/srv/storage/Backups/
|
||||||
<span class="org-keyword">fi</span>
|
<span class="org-keyword">fi</span>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
@ -451,9 +455,9 @@ Backup to NAS
|
|||||||
<h3 id="orgd57ea4e">Define keys for the browser</h3>
|
<h3 id="orgd57ea4e">Define keys for the browser</h3>
|
||||||
<div class="outline-text-3" id="text-orgd57ea4e">
|
<div class="outline-text-3" id="text-orgd57ea4e">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org527bd08" class="outline-4">
|
<div id="outline-container-orgf964ebf" class="outline-4">
|
||||||
<h4 id="org527bd08">Basic</h4>
|
<h4 id="orgf964ebf">Basic</h4>
|
||||||
<div class="outline-text-4" id="text-org527bd08">
|
<div class="outline-text-4" id="text-orgf964ebf">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">map Q quit!
|
<pre class="src src-conf">map Q quit!
|
||||||
map q eval fm.execute_console(<span class="org-string">"shell tmux detach"</span>) if <span class="org-string">'TMUX'</span> in os.environ.keys() else fm.execute_console(<span class="org-string">"quit"</span>)
|
map q eval fm.execute_console(<span class="org-string">"shell tmux detach"</span>) if <span class="org-string">'TMUX'</span> in os.environ.keys() else fm.execute_console(<span class="org-string">"quit"</span>)
|
||||||
@ -584,7 +588,7 @@ map [ move_parent -1
|
|||||||
map gb cd ~/Cloud/brain
|
map gb cd ~/Cloud/brain
|
||||||
map gm cd ~/Cloud/thesis
|
map gm cd ~/Cloud/thesis
|
||||||
map gp cd ~/Pictures
|
map gp cd ~/Pictures
|
||||||
map gP cd ~/Cloud/personal
|
map gP cd ~/Cloud/pictures/phone
|
||||||
map gT cd ~/.local/share/Trash/files
|
map gT cd ~/.local/share/Trash/files
|
||||||
map gd cd ~/Downloads
|
map gd cd ~/Downloads
|
||||||
map gc cd ~/Cloud
|
map gc cd ~/Cloud
|
||||||
@ -766,14 +770,17 @@ map <span class="org-string">'<any> enter_bookmark %any</span>
|
|||||||
<h3 id="org7e7a4ec">Define keys for the console</h3>
|
<h3 id="org7e7a4ec">Define keys for the console</h3>
|
||||||
<div class="outline-text-3" id="text-org7e7a4ec">
|
<div class="outline-text-3" id="text-org7e7a4ec">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgf964ebf" class="outline-4">
|
<div id="outline-container-orgef5af30" class="outline-4">
|
||||||
<h4 id="orgf964ebf">Basic</h4>
|
<h4 id="orgef5af30">Basic</h4>
|
||||||
<div class="outline-text-4" id="text-orgf964ebf">
|
<div class="outline-text-4" id="text-orgef5af30">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">cmap <tab> eval fm.ui.console.tab()
|
<pre class="src src-conf">cmap <tab> eval fm.ui.console.tab()
|
||||||
cmap <s-tab> eval fm.ui.console.tab(-1)
|
cmap <s-tab> eval fm.ui.console.tab(-1)
|
||||||
|
|
||||||
cmap <ESC> eval fm.ui.console.close()
|
cmap <ESC> eval fm.ui.console.close()
|
||||||
|
|
||||||
cmap <CR> eval fm.ui.console.execute()
|
cmap <CR> eval fm.ui.console.execute()
|
||||||
|
|
||||||
cmap <C-l> redraw_window
|
cmap <C-l> redraw_window
|
||||||
|
|
||||||
copycmap <ESC> <C-c>
|
copycmap <ESC> <C-c>
|
||||||
@ -791,8 +798,6 @@ copycmap <CR> <C-j>
|
|||||||
cmap <down> eval fm.ui.console.history_move(<span class="org-highlight-numbers-number">1</span>)
|
cmap <down> eval fm.ui.console.history_move(<span class="org-highlight-numbers-number">1</span>)
|
||||||
<span class="org-variable-name">cmap <left> eval fm.ui.console.move(left</span>=<span class="org-highlight-numbers-number">1</span>)
|
<span class="org-variable-name">cmap <left> eval fm.ui.console.move(left</span>=<span class="org-highlight-numbers-number">1</span>)
|
||||||
<span class="org-variable-name">cmap <right> eval fm.ui.console.move(right</span>=<span class="org-highlight-numbers-number">1</span>)
|
<span class="org-variable-name">cmap <right> eval fm.ui.console.move(right</span>=<span class="org-highlight-numbers-number">1</span>)
|
||||||
<span class="org-variable-name">cmap <home> eval fm.ui.console.move(right</span>=<span class="org-highlight-numbers-number">0</span>, absolute=True)
|
|
||||||
<span class="org-variable-name">cmap <end> eval fm.ui.console.move(right</span>=-1, absolute=True)
|
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -815,9 +820,14 @@ copycmap <end> <C-e>
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org9007d23" class="outline-2">
|
<div id="outline-container-rifle" class="outline-2">
|
||||||
<h2 id="org9007d23">Rifle</h2>
|
<h2 id="rifle">Rifle</h2>
|
||||||
<div class="outline-text-2" id="text-org9007d23">
|
<div class="outline-text-2" id="text-rifle">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org1462e63" class="outline-3">
|
||||||
|
<h3 id="org1462e63">Documentation</h3>
|
||||||
|
<div class="outline-text-3" id="text-org1462e63">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">This is the configuration file of "rifle", ranger's file executor/opener.</span>
|
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">This is the configuration file of "rifle", ranger's file executor/opener.</span>
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Each line consists of conditions and a command. For each line the conditions</span>
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Each line consists of conditions and a command. For each line the conditions</span>
|
||||||
@ -866,165 +876,206 @@ copycmap <end> <C-e>
|
|||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">implementation may differ.</span>
|
<span class="org-comment-delimiter"># </span><span class="org-comment">implementation may differ.</span>
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Note: When using rifle in ranger, there is an additional flag "c" for</span>
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Note: When using rifle in ranger, there is an additional flag "c" for</span>
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">only running the current file even if you have marked multiple files.</span>
|
<span class="org-comment-delimiter"># </span><span class="org-comment">only running the current file even if you have marked multiple files.</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<span class="org-comment-delimiter">#</span><span class="org-comment">-------------------------------------------</span>
|
<div id="outline-container-org64e62ab" class="outline-3">
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Websites</span>
|
<h3 id="org64e62ab">Text Files</h3>
|
||||||
<span class="org-comment-delimiter">#</span><span class="org-comment">-------------------------------------------</span>
|
<div class="outline-text-3" id="text-org64e62ab">
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Rarely installed browsers get higher priority; It is assumed that if you</span>
|
<p>
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">install a rare browser, you probably use it. Firefox/konqueror/w3m on the</span>
|
Define the <code>$EDITOR</code> for text files as first action:
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">other hand are often only installed as fallback browsers.</span>
|
</p>
|
||||||
|
<div class="org-src-container">
|
||||||
<span class="org-variable-name">ext x?html?, has qutebrowser, X, flag f</span> = qutebrowser -- <span class="org-string">"$@"</span>
|
<pre class="src src-conf"><span class="org-variable-name">mime ^text, label editor</span> = $EDITOR -- <span class="org-string">"$@"</span>
|
||||||
<span class="org-variable-name">ext x?html?, has firefox, X, flag f</span> = firefox -- <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">ext x?html?, has elinks, terminal</span> = elinks <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">ext x?html?, has links2, terminal</span> = links2 <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">ext x?html?, has links, terminal</span> = links <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">ext x?html?, has lynx, terminal</span> = lynx -- <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">ext x?html?, has w3m, terminal</span> = w3m <span class="org-string">"$@"</span>
|
|
||||||
|
|
||||||
<span class="org-comment-delimiter">#</span><span class="org-comment">Spreadsheets for scim</span>
|
|
||||||
<span class="org-variable-name">ext sc|csv|sxc|xlsx?|xlt|xlw|gnm|gnumeric,</span> = sc-im -- <span class="org-string">"$@"</span>
|
|
||||||
|
|
||||||
<span class="org-comment-delimiter">#</span><span class="org-comment">-------------------------------------------</span>
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Misc</span>
|
|
||||||
<span class="org-comment-delimiter">#</span><span class="org-comment">-------------------------------------------</span>
|
|
||||||
<span class="org-variable-name">ext org</span> = emacsclient -c <span class="org-string">"$1"</span>
|
|
||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Define the "editor" for text files as first action</span>
|
|
||||||
<span class="org-variable-name">mime ^text, label editor</span> = $EDITOR -- <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">mime ^text, label pager</span> = <span class="org-string">"$PAGER"</span> -- <span class="org-string">"$@"</span>
|
<span class="org-variable-name">mime ^text, label pager</span> = <span class="org-string">"$PAGER"</span> -- <span class="org-string">"$@"</span>
|
||||||
<span class="org-variable-name">!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php</span> = $EDITOR -- <span class="org-string">"$@"</span>
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Favorite editors:
|
||||||
|
</p>
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-conf"><span class="org-variable-name">mime ^text, has nvim, flag f</span> = nvim <span class="org-string">"$@"</span>
|
||||||
|
<span class="org-variable-name">mime ^text, has emacsclient, X, flag f</span> = emacsclient -c <span class="org-string">"$@"</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Org mode files
|
||||||
|
</p>
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-conf"><span class="org-variable-name">ext org, has emacsclient, X, flag f</span> = emacsclient -c <span class="org-string">"$@"</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-conf"><span class="org-variable-name">!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php</span> = $EDITOR -- <span class="org-string">"$@"</span>
|
||||||
<span class="org-variable-name">!mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php</span> = <span class="org-string">"$PAGER"</span> -- <span class="org-string">"$@"</span>
|
<span class="org-variable-name">!mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php</span> = <span class="org-string">"$PAGER"</span> -- <span class="org-string">"$@"</span>
|
||||||
|
|
||||||
ext <span class="org-highlight-numbers-number">1</span> = man <span class="org-string">"$1"</span>
|
|
||||||
<span class="org-variable-name">ext s[wmf]c, has zsnes, X</span> = zsnes <span class="org-string">"$1"</span>
|
|
||||||
<span class="org-variable-name">ext s[wmf]c, has snes9x-gtk,X</span> = snes9x-gtk <span class="org-string">"$1"</span>
|
|
||||||
<span class="org-variable-name">ext nes, has fceux, X</span> = fceux <span class="org-string">"$1"</span>
|
|
||||||
<span class="org-variable-name">ext exe</span> = wine <span class="org-string">"$1"</span>
|
|
||||||
<span class="org-variable-name">name ^[mM]akefile$</span> = make
|
|
||||||
|
|
||||||
<span class="org-comment-delimiter">#</span><span class="org-comment">--------------------------------------------</span>
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Code</span>
|
|
||||||
<span class="org-comment-delimiter">#</span><span class="org-comment">-------------------------------------------</span>
|
|
||||||
<span class="org-variable-name">ext py</span> = python -- <span class="org-string">"$1"</span>
|
<span class="org-variable-name">ext py</span> = python -- <span class="org-string">"$1"</span>
|
||||||
<span class="org-variable-name">ext pl</span> = perl -- <span class="org-string">"$1"</span>
|
<span class="org-variable-name">ext pl</span> = perl -- <span class="org-string">"$1"</span>
|
||||||
<span class="org-variable-name">ext rb</span> = ruby -- <span class="org-string">"$1"</span>
|
<span class="org-variable-name">ext rb</span> = ruby -- <span class="org-string">"$1"</span>
|
||||||
<span class="org-variable-name">ext js</span> = node -- <span class="org-string">"$1"</span>
|
<span class="org-variable-name">ext js</span> = node -- <span class="org-string">"$1"</span>
|
||||||
<span class="org-variable-name">ext sh</span> = sh -- <span class="org-string">"$1"</span>
|
<span class="org-variable-name">ext sh</span> = sh -- <span class="org-string">"$1"</span>
|
||||||
<span class="org-variable-name">ext php</span> = php -- <span class="org-string">"$1"</span>
|
<span class="org-variable-name">ext php</span> = php -- <span class="org-string">"$1"</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<span class="org-comment-delimiter">#</span><span class="org-comment">--------------------------------------------</span>
|
<div id="outline-container-org72831a4" class="outline-3">
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Video/Audio with a GUI</span>
|
<h3 id="org72831a4">PDF, Epub and jdvu</h3>
|
||||||
<span class="org-comment-delimiter">#</span><span class="org-comment">-------------------------------------------</span>
|
<div class="outline-text-3" id="text-org72831a4">
|
||||||
<span class="org-variable-name">mime ^video, has mpv, X, flag f</span> = mpv -- <span class="org-string">"$@"</span>
|
<div class="org-src-container">
|
||||||
<span class="org-variable-name">mime ^video, has mpv, X, flag f</span> = mpv --fs -- <span class="org-string">"$@"</span>
|
<pre class="src src-conf"><span class="org-variable-name">ext pdf, has zathura, X, flag f</span> = zathura -- <span class="org-string">"$@"</span>
|
||||||
<span class="org-variable-name">mime ^video, has mpv, X, flag f</span> = mpv --loop -- <span class="org-string">"$@"</span>
|
|
||||||
|
|
||||||
<span class="org-comment-delimiter">#</span><span class="org-comment">--------------------------------------------</span>
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Audio without X</span>
|
|
||||||
<span class="org-comment-delimiter">#</span><span class="org-comment">-------------------------------------------</span>
|
|
||||||
<span class="org-variable-name">mime ^audio|ogg$, terminal, has mpv</span> = mpv --no-audio-display -- <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">mime ^audio|ogg$</span> = tag <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">mime ^audio|ogg$, terminal, has mpv</span> = mpv -- <span class="org-string">"$@"</span>
|
|
||||||
|
|
||||||
<span class="org-comment-delimiter">#</span><span class="org-comment">--------------------------------------------</span>
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Video without X:</span>
|
|
||||||
<span class="org-comment-delimiter">#</span><span class="org-comment">-------------------------------------------</span>
|
|
||||||
<span class="org-variable-name">mime ^video, terminal, !X, has mpv</span> = mpv -- <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">mime ^video, terminal, !X, has mplayer2</span> = mplayer2 -- <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">mime ^video, terminal, !X, has mplayer</span> = mplayer -- <span class="org-string">"$@"</span>
|
|
||||||
|
|
||||||
<span class="org-comment-delimiter">#</span><span class="org-comment">-------------------------------------------</span>
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Documents</span>
|
|
||||||
<span class="org-comment-delimiter">#</span><span class="org-comment">-------------------------------------------</span>
|
|
||||||
<span class="org-variable-name">ext pdf, has zathura, X, flag f</span> = zathura -- <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">ext pdf, has llpp, X, flag f</span> = llpp <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">ext pdf, has mupdf, X, flag f</span> = mupdf <span class="org-string">"$@"</span>
|
<span class="org-variable-name">ext pdf, has mupdf, X, flag f</span> = mupdf <span class="org-string">"$@"</span>
|
||||||
<span class="org-variable-name">ext pdf, has mupdf, X, flag f</span> = mupdf -I <span class="org-string">"$@"</span>
|
<span class="org-variable-name">ext pdf, X, flag f</span> = <span class="org-string">"$BROWSER"</span> <span class="org-string">"$@"</span>
|
||||||
<span class="org-variable-name">ext pdf, has mupdf-x11,X, flag f</span> = mupdf-x11 <span class="org-string">"$@"</span>
|
</pre>
|
||||||
<span class="org-variable-name">ext pdf, has apvlv, X, flag f</span> = apvlv -- <span class="org-string">"$@"</span>
|
</div>
|
||||||
<span class="org-variable-name">ext pdf, has xpdf, X, flag f</span> = xpdf -- <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">ext pdf, has evince, X, flag f</span> = evince -- <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">ext pdf, has atril, X, flag f</span> = atril -- <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">ext pdf, has okular, X, flag f</span> = okular -- <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">ext pdf, has epdfview, X, flag f</span> = epdfview -- <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">ext pdf, has qpdfview, X, flag f</span> = qpdfview <span class="org-string">"$@"</span>
|
|
||||||
|
|
||||||
<span class="org-variable-name">ext epub, has zathura, X, flag f</span> = zathura -- <span class="org-string">"$@"</span>
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-conf"><span class="org-variable-name">ext epub, has zathura, X, flag f</span> = zathura -- <span class="org-string">"$@"</span>
|
||||||
<span class="org-variable-name">ext epub, has mupdf, X, flag f</span> = mupdf <span class="org-string">"$@"</span>
|
<span class="org-variable-name">ext epub, has mupdf, X, flag f</span> = mupdf <span class="org-string">"$@"</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="org-src-container">
|
||||||
<span class="org-variable-name">ext docx?, has wps, X, flag f</span> = wps <span class="org-string">"$@"</span>
|
<pre class="src src-conf"><span class="org-variable-name">ext djvu, has zathura, X, flag f</span> = zathura -- <span class="org-string">"$@"</span>
|
||||||
<span class="org-variable-name">ext docx?, has onlyoffice, X, flag f</span> = onlyoffice <span class="org-string">"$@"</span>
|
|
||||||
|
|
||||||
<span class="org-variable-name">ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has wpp, X, flag f</span> = wpp <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">ext sxc|xlsx?|xlt|xlw|gnm|gnumeric, has gnumeric, X, flag f</span> = gnumeric -- <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">ext sxc|xlsx?|xlt|xlw|gnm|gnumeric, has kspread, X, flag f</span> = kspread -- <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has libreoffice, X, flag f</span> = libreoffice <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has soffice, X, flag f</span> = soffice <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has ooffice, X, flag f</span> = ooffice <span class="org-string">"$@"</span>
|
|
||||||
|
|
||||||
<span class="org-variable-name">ext djvu, has zathura,X, flag f</span> = zathura -- <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">ext djvu, has evince, X, flag f</span> = evince -- <span class="org-string">"$@"</span>
|
<span class="org-variable-name">ext djvu, has evince, X, flag f</span> = evince -- <span class="org-string">"$@"</span>
|
||||||
<span class="org-variable-name">ext djvu, has atril, X, flag f</span> = atril -- <span class="org-string">"$@"</span>
|
<span class="org-variable-name">ext djvu, has atril, X, flag f</span> = atril -- <span class="org-string">"$@"</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<span class="org-comment-delimiter">#</span><span class="org-comment">-------------------------------------------</span>
|
<div id="outline-container-org2c35566" class="outline-3">
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Image Viewing:</span>
|
<h3 id="org2c35566">Archives</h3>
|
||||||
<span class="org-comment-delimiter">#</span><span class="org-comment">-------------------------------------------</span>
|
<div class="outline-text-3" id="text-org2c35566">
|
||||||
<span class="org-variable-name">mime ^image/svg, has inkscape, X, flag f</span> = inkscape -- <span class="org-string">"$@"</span>
|
<div class="org-src-container">
|
||||||
<span class="org-variable-name">mime ^image/svg, has display, X, flag f</span> = display -- <span class="org-string">"$@"</span>
|
<pre class="src src-conf"><span class="org-variable-name">ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has atool</span> = atool -- <span class="org-string">"$@"</span> | <span class="org-string">"$PAGER"</span>
|
||||||
<span class="org-variable-name">mime ^image/gif, has mpv, X, flag f</span> = mpv --loop -- <span class="org-string">"$@"</span>
|
<span class="org-variable-name">ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has atool</span> = atool -- <span class="org-string">"$@"</span> | <span class="org-string">"$PAGER"</span>
|
||||||
<span class="org-variable-name">mime ^image/gif, has viewnior, X, flag f</span> = viewnior -- <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">mime ^image/gif, has qutebrowser, X, flag f</span> = qutebrowser -- <span class="org-string">"$@"</span>
|
|
||||||
|
|
||||||
<span class="org-variable-name">ext xcf, X, flag f</span> = gimp -- <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">mime ^image, has sxiv, X, flag f</span> = sxiv -- <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">mime ^image, has feh, X, flag f</span> = feh --scale-down --auto-zoom --image-bg black -- <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">mime ^image, has feh, X, flag f</span> = feh --scale-down --auto-zoom -- <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">mime ^image, has mirage, X, flag f</span> = mirage -- <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">mime ^image, has ristretto, X, flag f</span> = ristretto <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">mime ^image, has eog, X, flag f</span> = eog -- <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">mime ^image, has eom, X, flag f</span> = eom -- <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">mime ^image, has gimp, X, flag f</span> = gimp -- <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">mime ^image, has pinta, X, flag f</span> = pinta -- <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">mime ^image, has mypaint, X, flag f</span> = mypaint -- <span class="org-string">"$@"</span>
|
|
||||||
<span class="org-variable-name">mime ^image, has kolourpaint, X, flag f</span> = kolourpaint -- <span class="org-string">"$@"</span>
|
|
||||||
|
|
||||||
<span class="org-comment-delimiter">#</span><span class="org-comment">-------------------------------------------</span>
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Archives</span>
|
|
||||||
<span class="org-comment-delimiter">#</span><span class="org-comment">-------------------------------------------</span>
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">This requires atool</span>
|
|
||||||
<span class="org-variable-name">ext jar</span> = java -jar <span class="org-string">"$@"</span>
|
|
||||||
|
|
||||||
<span class="org-variable-name">ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has als</span> = als -- <span class="org-string">"$@"</span> | <span class="org-string">"$PAGER"</span>
|
|
||||||
<span class="org-variable-name">ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has als</span> = als -- <span class="org-string">"$@"</span> | <span class="org-string">"$PAGER"</span>
|
|
||||||
<span class="org-variable-name">ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has aunpack</span> = aunpack -- <span class="org-string">"$@"</span>
|
<span class="org-variable-name">ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has aunpack</span> = aunpack -- <span class="org-string">"$@"</span>
|
||||||
<span class="org-variable-name">ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has aunpack</span> = aunpack -- <span class="org-string">"$@"</span>
|
<span class="org-variable-name">ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has aunpack</span> = aunpack -- <span class="org-string">"$@"</span>
|
||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Fallback:</span>
|
|
||||||
<span class="org-variable-name">ext tar|gz, has tar</span> = tar vvtf <span class="org-string">"$@"</span> | <span class="org-string">"$PAGER"</span>
|
<span class="org-variable-name">ext tar|gz, has tar</span> = tar vvtf <span class="org-string">"$@"</span> | <span class="org-string">"$PAGER"</span>
|
||||||
<span class="org-variable-name">ext tar|gz, has tar</span> = tar vvxf <span class="org-string">"$@"</span>
|
<span class="org-variable-name">ext tar|gz, has tar</span> = tar vvxf <span class="org-string">"$@"</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<span class="org-comment-delimiter">#</span><span class="org-comment">-------------------------------------------</span>
|
<div id="outline-container-orga558ade" class="outline-3">
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Misc</span>
|
<h3 id="orga558ade">Websites</h3>
|
||||||
<span class="org-comment-delimiter">#</span><span class="org-comment">-------------------------------------------</span>
|
<div class="outline-text-3" id="text-orga558ade">
|
||||||
label wallpaper, number <span class="org-highlight-numbers-number">11</span>, mime ^image, has feh, X = feh --bg-scale <span class="org-string">"$1"</span>
|
<div class="org-src-container">
|
||||||
label wallpaper, number <span class="org-highlight-numbers-number">12</span>, mime ^image, has feh, X = feh --bg-tile <span class="org-string">"$1"</span>
|
<pre class="src src-conf"><span class="org-variable-name">ext x?html?, has qutebrowser, X, flag f</span> = qutebrowser -- <span class="org-string">"$@"</span>
|
||||||
label wallpaper, number <span class="org-highlight-numbers-number">13</span>, mime ^image, has feh, X = feh --bg-center <span class="org-string">"$1"</span>
|
<span class="org-variable-name">ext x?html?, has firefox, X, flag f</span> = firefox -- <span class="org-string">"$@"</span>
|
||||||
label wallpaper, number <span class="org-highlight-numbers-number">14</span>, mime ^image, has feh, X = feh --bg-fill <span class="org-string">"$1"</span>
|
<span class="org-variable-name">ext x?html?, has elinks, terminal</span> = elinks <span class="org-string">"$@"</span>
|
||||||
|
<span class="org-variable-name">ext x?html?, has w3m, terminal</span> = w3m <span class="org-string">"$@"</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Define the editor for non-text files + pager as last action</span>
|
<div id="outline-container-orgc892be6" class="outline-3">
|
||||||
|
<h3 id="orgc892be6">Word, Excel and Presentation files</h3>
|
||||||
|
<div class="outline-text-3" id="text-orgc892be6">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-conf"><span class="org-variable-name">ext docx?, has onlyoffice, X, flag f</span> = onlyoffice <span class="org-string">"$@"</span>
|
||||||
|
<span class="org-variable-name">ext docx?, has wps, X, flag f</span> = wps <span class="org-string">"$@"</span>
|
||||||
|
<span class="org-variable-name">ext docx?, has libreoffice, X, flag f</span> = libreoffice <span class="org-string">"$@"</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-conf"><span class="org-variable-name">ext pptx?, has onlyoffice, X, flag f</span> = onlyoffice <span class="org-string">"$@"</span>
|
||||||
|
<span class="org-variable-name">ext pptx?, has wps, X, flag f</span> = wps <span class="org-string">"$@"</span>
|
||||||
|
<span class="org-variable-name">ext pptx?, has libreoffice, X, flag f</span> = libreoffice <span class="org-string">"$@"</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-conf"><span class="org-variable-name">ext csv|xlsx?, has sc-im</span> = sc-im -- <span class="org-string">"$@"</span>
|
||||||
|
<span class="org-variable-name">ext csv|xlsx?, has onlyoffice, X, flag f</span> = onlyoffice <span class="org-string">"$@"</span>
|
||||||
|
<span class="org-variable-name">ext csv|xlsx?, has wps, X, flag f</span> = wps <span class="org-string">"$@"</span>
|
||||||
|
<span class="org-variable-name">ext csv|xlsx?, has libreoffice, X, flag f</span> = libreoffice <span class="org-string">"$@"</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org64ef3f5" class="outline-3">
|
||||||
|
<h3 id="org64ef3f5">Images</h3>
|
||||||
|
<div class="outline-text-3" id="text-org64ef3f5">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-conf"><span class="org-variable-name">mime ^image/svg, has inkview, X, flag f</span> = inkview -- <span class="org-string">"$@"</span>
|
||||||
|
<span class="org-variable-name">mime ^image/svg, has inkscape, X, flag f</span> = inkscape -- <span class="org-string">"$@"</span>
|
||||||
|
<span class="org-variable-name">mime ^image/svg, has display, X, flag f</span> = display -- <span class="org-string">"$@"</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-conf"><span class="org-variable-name">mime ^image/gif, has mpv, X, flag f</span> = mpv --loop -- <span class="org-string">"$@"</span>
|
||||||
|
<span class="org-variable-name">mime ^image/gif, has qutebrowser, X, flag f</span> = qutebrowser -- <span class="org-string">"$@"</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-conf"><span class="org-variable-name">mime ^image, has sxiv, X, flag f</span> = sxiv -- <span class="org-string">"$@"</span>
|
||||||
|
<span class="org-variable-name">mime ^image, has feh, X, flag f</span> = feh --scale-down --auto-zoom -- <span class="org-string">"$@"</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org7d765c1" class="outline-3">
|
||||||
|
<h3 id="org7d765c1">Audio</h3>
|
||||||
|
<div class="outline-text-3" id="text-org7d765c1">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-conf"><span class="org-variable-name">mime ^audio|ogg$, terminal, has mpv</span> = mpv --no-audio-display -- <span class="org-string">"$@"</span>
|
||||||
|
<span class="org-variable-name">mime ^audio|ogg$, X, flag f, has vlc</span> = vlc -- <span class="org-string">"$@"</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org82c25f1" class="outline-3">
|
||||||
|
<h3 id="org82c25f1">Video</h3>
|
||||||
|
<div class="outline-text-3" id="text-org82c25f1">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-conf"><span class="org-variable-name">mime ^video, has mpv, X, flag f</span> = mpv -- <span class="org-string">"$@"</span>
|
||||||
|
<span class="org-variable-name">mime ^video, has vlc, X, flag f</span> = vlc -- <span class="org-string">"$@"</span>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org85aac1e" class="outline-3">
|
||||||
|
<h3 id="org85aac1e">Misc</h3>
|
||||||
|
<div class="outline-text-3" id="text-org85aac1e">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-conf">ext <span class="org-highlight-numbers-number">1</span> = man <span class="org-string">"$1"</span>
|
||||||
|
<span class="org-variable-name">ext s[wmf]c, has zsnes, X</span> = zsnes <span class="org-string">"$1"</span>
|
||||||
|
<span class="org-variable-name">ext s[wmf]c, has snes9x-gtk,X</span> = snes9x-gtk <span class="org-string">"$1"</span>
|
||||||
|
<span class="org-variable-name">ext nes, has fceux, X</span> = fceux <span class="org-string">"$1"</span>
|
||||||
|
<span class="org-variable-name">ext exe</span> = wine <span class="org-string">"$1"</span>
|
||||||
|
<span class="org-variable-name">name ^[mM]akefile$</span> = make
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Define the editor for non-text files + pager as last action</span>
|
||||||
<span class="org-variable-name">!mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php</span> = ask
|
<span class="org-variable-name">!mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php</span> = ask
|
||||||
<span class="org-variable-name">label editor, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php</span> = $EDITOR -- <span class="org-string">"$@"</span>
|
<span class="org-variable-name">label editor, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php</span> = $EDITOR -- <span class="org-string">"$@"</span>
|
||||||
<span class="org-variable-name">label pager, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php</span> = <span class="org-string">"$PAGER"</span> -- <span class="org-string">"$@"</span>
|
<span class="org-variable-name">label pager, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php</span> = <span class="org-string">"$PAGER"</span> -- <span class="org-string">"$@"</span>
|
||||||
|
|
||||||
<span class="org-variable-name">ext blend, has blender, X, flag f</span> = blender -- <span class="org-string">"$@"</span>
|
|
||||||
|
|
||||||
<span class="org-variable-name">has dragon-drag-and-drop, X, flag f</span> = dragon-drag-and-drop -a -x <span class="org-string">"$@"</span>
|
<span class="org-variable-name">has dragon-drag-and-drop, X, flag f</span> = dragon-drag-and-drop -a -x <span class="org-string">"$@"</span>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org89bf721" class="outline-2">
|
<div id="outline-container-org89bf721" class="outline-2">
|
||||||
<h2 id="org89bf721">Ranger Commands</h2>
|
<h2 id="org89bf721">Ranger Commands</h2>
|
||||||
@ -1083,7 +1134,7 @@ label wallpaper, number <span class="org-highlight-numbers-number">14</span>, mi
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: Dehaeze Thomas</p>
|
<p class="author">Author: Dehaeze Thomas</p>
|
||||||
<p class="date">Created: 2021-02-10 mer. 17:57</p>
|
<p class="date">Created: 2021-06-20 dim. 14:21</p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
147
docs/router.html
Normal file
147
docs/router.html
Normal file
@ -0,0 +1,147 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
|
<head>
|
||||||
|
<!-- 2021-10-25 lun. 14:33 -->
|
||||||
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
|
<title>Open-WRT Router (Netgear R7000)</title>
|
||||||
|
<meta name="author" content="Dehaeze Thomas" />
|
||||||
|
<meta name="generator" content="Org Mode" />
|
||||||
|
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||||
|
<script type="text/javascript" src="./dist/script.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="org-div-home-and-up">
|
||||||
|
<a accesskey="h" href="./index.html"> UP </a>
|
||||||
|
|
|
||||||
|
<a accesskey="H" href="./index.html"> HOME </a>
|
||||||
|
</div><div id="content" class="content">
|
||||||
|
<h1 class="title">Open-WRT Router (Netgear R7000)</h1>
|
||||||
|
<div id="table-of-contents" role="doc-toc">
|
||||||
|
<h2>Table of Contents</h2>
|
||||||
|
<div id="text-table-of-contents" role="doc-toc">
|
||||||
|
<ul>
|
||||||
|
<li><a href="#org94a53fe">Installation</a>
|
||||||
|
<ul>
|
||||||
|
<li><a href="#org160d543">Freebox - Bridge mode</a></li>
|
||||||
|
<li><a href="#org99fb9c5">Enable SSL</a></li>
|
||||||
|
<li><a href="#org68a11a8">Install useful packages</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li><a href="#orgf6a31ea">Update</a></li>
|
||||||
|
<li><a href="#orgf2ed597">Configuration</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org94a53fe" class="outline-2">
|
||||||
|
<h2 id="org94a53fe">Installation</h2>
|
||||||
|
<div class="outline-text-2" id="text-org94a53fe">
|
||||||
|
</div>
|
||||||
|
<div id="outline-container-org160d543" class="outline-3">
|
||||||
|
<h3 id="org160d543">Freebox - Bridge mode</h3>
|
||||||
|
<div class="outline-text-3" id="text-org160d543">
|
||||||
|
<p>
|
||||||
|
<a href="https://blog.kulakowski.fr/post/openwrt-derriere-une-freebox-ipv6-dmz-et-bridge">https://blog.kulakowski.fr/post/openwrt-derriere-une-freebox-ipv6-dmz-et-bridge</a>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org99fb9c5" class="outline-3">
|
||||||
|
<h3 id="org99fb9c5">Enable SSL</h3>
|
||||||
|
<div class="outline-text-3" id="text-org99fb9c5">
|
||||||
|
<p>
|
||||||
|
How can I enable SSL for the web admin gui?
|
||||||
|
In an SSH-command line, run opkg update, then install the package opkg install luci-ssl, then restart the router. Then you can access <a href="https://192.168.1.1">https://192.168.1.1</a> or <a href="https://openwrt">https://openwrt</a> with your favorite web browser
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org68a11a8" class="outline-3">
|
||||||
|
<h3 id="org68a11a8">Install useful packages</h3>
|
||||||
|
<div class="outline-text-3" id="text-org68a11a8">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash">opkg update && opkg install luci-ssl-openssl luci-theme-material ipset <span class="org-type">curl</span> diffutils speedtest-netperf kmod-ipt-nat6
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-orgf6a31ea" class="outline-2">
|
||||||
|
<h2 id="orgf6a31ea">Update</h2>
|
||||||
|
<div class="outline-text-2" id="text-orgf6a31ea">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash">opkg list-upgradable | cut -f <span class="org-highlight-numbers-number">1</span> -d <span class="org-string">' '</span> | xargs -r opkg upgrade
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-orgf2ed597" class="outline-2">
|
||||||
|
<h2 id="orgf2ed597">Configuration</h2>
|
||||||
|
<div class="outline-text-2" id="text-orgf2ed597">
|
||||||
|
<p>
|
||||||
|
<a href="https://openwrt.org/docs/guide-user/base-system/uci#common_principles">https://openwrt.org/docs/guide-user/base-system/uci#common_principles</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Configuration files are in <code>/etc/config</code>.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
|
<colgroup>
|
||||||
|
<col class="org-left" />
|
||||||
|
|
||||||
|
<col class="org-left" />
|
||||||
|
</colgroup>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th scope="col" class="org-left"><b>File</b></th>
|
||||||
|
<th scope="col" class="org-left"><b>Description</b></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td class="org-left"><code>/etc/config/dhcp</code></td>
|
||||||
|
<td class="org-left">Dnsmasq and odhcpd settings: DNS, DHCP, DHCPv6</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="org-left"><code>/etc/config/dropbear</code></td>
|
||||||
|
<td class="org-left">SSH server options</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="org-left"><code>/etc/config/firewall</code></td>
|
||||||
|
<td class="org-left">NAT, packet filter, port forwarding, etc.</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="org-left"><code>/etc/config/network</code></td>
|
||||||
|
<td class="org-left">Switch, interface and route configuration:</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="org-left"><code>/etc/config/system</code></td>
|
||||||
|
<td class="org-left">Misc. system settings, NTP, RNG, Watchcat</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="org-left"><code>/etc/config/wireless</code></td>
|
||||||
|
<td class="org-left">Wireless settings and wifi network definition</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="postamble" class="status">
|
||||||
|
<p class="author">Author: Dehaeze Thomas</p>
|
||||||
|
<p class="date">Created: 2021-10-25 lun. 14:33</p>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2021-04-25 dim. 19:10 -->
|
<!-- 2021-06-20 dim. 14:21 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<title>Simple X Hotkey Daemon</title>
|
<title>Simple X Hotkey Daemon</title>
|
||||||
<meta name="author" content="Dehaeze Thomas" />
|
<meta name="author" content="Dehaeze Thomas" />
|
||||||
@ -39,20 +39,20 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgb21b9fa">BSPWM hotkeys</a></li>
|
<li><a href="#orgb21b9fa">BSPWM hotkeys</a></li>
|
||||||
<li><a href="#org7784897">Monocle Layout</a></li>
|
<li><a href="#org7784897">Monocle Layout</a></li>
|
||||||
<li><a href="#orgbe96bd6">Set the window State</a></li>
|
<li><a href="#orgf0e6469">Set the window State</a></li>
|
||||||
<li><a href="#org8a5891f">Sticky Window</a></li>
|
<li><a href="#org8a5891f">Sticky Window</a></li>
|
||||||
<li><a href="#org9363f85">Focus and Swap</a></li>
|
<li><a href="#org9363f85">Focus and Swap</a></li>
|
||||||
<li><a href="#org39668cf">Preselect</a></li>
|
<li><a href="#org1163075">Preselect</a></li>
|
||||||
<li><a href="#orgefaac3d">Resize</a></li>
|
<li><a href="#org523987d">Resize</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgb8b77ba">I3 related</a>
|
<li><a href="#orgb8b77ba">I3 related</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgf0994dd">Kill Window</a></li>
|
<li><a href="#orgf0994dd">Kill Window</a></li>
|
||||||
<li><a href="#orgf0e6469">Set the window State</a></li>
|
<li><a href="#org61f51d5">Set the window State</a></li>
|
||||||
<li><a href="#org993d527">focus/swap</a></li>
|
<li><a href="#org993d527">focus/swap</a></li>
|
||||||
<li><a href="#org1163075">Preselect</a></li>
|
<li><a href="#orgd3c5be6">Preselect</a></li>
|
||||||
<li><a href="#org523987d">Resize</a></li>
|
<li><a href="#org83da401">Resize</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -232,7 +232,7 @@ super + Return
|
|||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">File Manager</span>
|
<span class="org-comment-delimiter"># </span><span class="org-comment">File Manager</span>
|
||||||
super + o
|
super + o
|
||||||
$TERMINAL -e <span class="org-string">"tmux new-session -A -s ranger ranger"</span>
|
$TERMINAL -e tmux new-session -A -s ranger ranger
|
||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Browser</span>
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Browser</span>
|
||||||
super + i
|
super + i
|
||||||
@ -240,7 +240,7 @@ super + i
|
|||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Mails with neomutt</span>
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Mails with neomutt</span>
|
||||||
super + m
|
super + m
|
||||||
$TERMINAL -e <span class="org-string">"tmux new-session -A -s neomutt neomutt"</span>
|
$TERMINAL -e tmux new-session -A -s neomutt neomutt
|
||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Emacs Client</span>
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Emacs Client</span>
|
||||||
super + e
|
super + e
|
||||||
@ -256,7 +256,7 @@ super + e
|
|||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Network Manager</span>
|
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Network Manager</span>
|
||||||
super + shift + w
|
super + shift + w
|
||||||
$TERMINAL -e <span class="org-string">'sudo nmtui'</span>
|
$TERMINAL --title nmtui -e sudo nmtui
|
||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Bluetooth Manager</span>
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Bluetooth Manager</span>
|
||||||
super + shift + b
|
super + shift + b
|
||||||
@ -269,11 +269,8 @@ super + shift + c
|
|||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Sound Manager</span>
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Sound Manager</span>
|
||||||
super + shift + s
|
super + shift + s
|
||||||
pavucontrol
|
pavucontrol
|
||||||
</pre>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="org-src-container">
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Bookmarks</span>
|
||||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Bookmarks</span>
|
|
||||||
super + shift + f
|
super + shift + f
|
||||||
bukurun
|
bukurun
|
||||||
|
|
||||||
@ -291,11 +288,7 @@ super + shift + p
|
|||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Command line Calendar Client (khal)</span>
|
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Command line Calendar Client (khal)</span>
|
||||||
super + space ; c
|
super + space ; c
|
||||||
$TERMINAL -e <span class="org-string">"khal interactive"</span>
|
$TERMINAL --title khal -e ikhal
|
||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">GUI Calendar (Google Calendar)</span>
|
|
||||||
super + space ; shift + c
|
|
||||||
$BROWSER https://calendar.google.com/
|
|
||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">pcmanfm: GUI file manager</span>
|
<span class="org-comment-delimiter"># </span><span class="org-comment">pcmanfm: GUI file manager</span>
|
||||||
super + space ; o
|
super + space ; o
|
||||||
@ -303,27 +296,19 @@ super + space ; o
|
|||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Download with Aria2c</span>
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Download with Aria2c</span>
|
||||||
super + space ; d
|
super + space ; d
|
||||||
$TERMINAL -e <span class="org-string">"tmux new-session -A -s aria2p aria2p --port 6800 --host http://dl.tdehaeze.xyz --secret $(pass dl.tdehaeze.xyz/tdehaeze | sed -n 1p)"</span>
|
$TERMINAL -e tmux new-session -A -s aria2p aria2p --port <span class="org-highlight-numbers-number">6800</span> --host http://dl.tdehaeze.xyz --secret $(pass dl.tdehaeze.xyz/tdehaeze | sed -n 1p)
|
||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Run another instance of Neomutt in read-only mode</span>
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Run another instance of Neomutt in read-only mode</span>
|
||||||
super + space ; m
|
super + space ; m
|
||||||
$TERMINAL -e <span class="org-string">"neomutt -R"</span>
|
$TERMINAL -e neomutt -R
|
||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Weechat</span>
|
|
||||||
super + space ; w
|
|
||||||
$TERMINAL -e <span class="org-string">"tmux new-session -A -s weechat weechat"</span>
|
|
||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">News with newsboat</span>
|
<span class="org-comment-delimiter"># </span><span class="org-comment">News with newsboat</span>
|
||||||
super + space ; n
|
super + space ; n
|
||||||
$TERMINAL -e <span class="org-string">"tmux new-session -A -s newsboat newsboat"</span>
|
$TERMINAL -e tmux new-session -A -s newsboat newsboat
|
||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Music with ncmpcpp</span>
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Music with ncmpcpp</span>
|
||||||
super + space ; p
|
super + space ; p
|
||||||
$TERMINAL -e <span class="org-string">"tmux new-session -A -s ncmpcpp ncmpcpp"</span>
|
$TERMINAL -e tmux new-session -A -s ncmpcpp ncmpcpp
|
||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Print Screen</span>
|
|
||||||
super + space ; shift + p
|
|
||||||
$HOME/.local/bin/mopidy-restart
|
|
||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Default Browser</span>
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Default Browser</span>
|
||||||
super + space ; i
|
super + space ; i
|
||||||
@ -331,7 +316,7 @@ super + space ; i
|
|||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Start Torrent Managaer</span>
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Start Torrent Managaer</span>
|
||||||
super + space ; t
|
super + space ; t
|
||||||
$TERMINAL -e <span class="org-string">"tremc"</span>
|
$TERMINAL -e tremc
|
||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Emacs</span>
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Emacs</span>
|
||||||
super + space ; e
|
super + space ; e
|
||||||
@ -382,9 +367,9 @@ super + c
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgbe96bd6" class="outline-3">
|
<div id="outline-container-orgf0e6469" class="outline-3">
|
||||||
<h3 id="orgbe96bd6">Set the window State</h3>
|
<h3 id="orgf0e6469">Set the window State</h3>
|
||||||
<div class="outline-text-3" id="text-orgbe96bd6">
|
<div class="outline-text-3" id="text-orgf0e6469">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Set the window state to tiled</span>
|
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Set the window state to tiled</span>
|
||||||
super + t
|
super + t
|
||||||
@ -458,9 +443,9 @@ super + shift + {1-9}
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org39668cf" class="outline-3">
|
<div id="outline-container-org1163075" class="outline-3">
|
||||||
<h3 id="org39668cf">Preselect</h3>
|
<h3 id="org1163075">Preselect</h3>
|
||||||
<div class="outline-text-3" id="text-org39668cf">
|
<div class="outline-text-3" id="text-org1163075">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">preselect the direction</span>
|
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">preselect the direction</span>
|
||||||
super + ctrl + {h,j,k,l}
|
super + ctrl + {h,j,k,l}
|
||||||
@ -478,9 +463,9 @@ bspc node -p cancel
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgefaac3d" class="outline-3">
|
<div id="outline-container-org523987d" class="outline-3">
|
||||||
<h3 id="orgefaac3d">Resize</h3>
|
<h3 id="org523987d">Resize</h3>
|
||||||
<div class="outline-text-3" id="text-orgefaac3d">
|
<div class="outline-text-3" id="text-org523987d">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">expand a window by moving one of its side outward</span>
|
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">expand a window by moving one of its side outward</span>
|
||||||
super + alt + {h,j,k,l}
|
super + alt + {h,j,k,l}
|
||||||
@ -519,9 +504,9 @@ super + q
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgf0e6469" class="outline-3">
|
<div id="outline-container-org61f51d5" class="outline-3">
|
||||||
<h3 id="orgf0e6469">Set the window State</h3>
|
<h3 id="org61f51d5">Set the window State</h3>
|
||||||
<div class="outline-text-3" id="text-orgf0e6469">
|
<div class="outline-text-3" id="text-org61f51d5">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Set the window to full-screen</span>
|
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Set the window to full-screen</span>
|
||||||
super + f
|
super + f
|
||||||
@ -588,9 +573,9 @@ super + shift + {1-9}
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org1163075" class="outline-3">
|
<div id="outline-container-orgd3c5be6" class="outline-3">
|
||||||
<h3 id="org1163075">Preselect</h3>
|
<h3 id="orgd3c5be6">Preselect</h3>
|
||||||
<div class="outline-text-3" id="text-org1163075">
|
<div class="outline-text-3" id="text-orgd3c5be6">
|
||||||
<p>
|
<p>
|
||||||
Preselect the direction
|
Preselect the direction
|
||||||
</p>
|
</p>
|
||||||
@ -607,9 +592,9 @@ super + ctrl + {j,k,Up,Down}
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org523987d" class="outline-3">
|
<div id="outline-container-org83da401" class="outline-3">
|
||||||
<h3 id="org523987d">Resize</h3>
|
<h3 id="org83da401">Resize</h3>
|
||||||
<div class="outline-text-3" id="text-org523987d">
|
<div class="outline-text-3" id="text-org83da401">
|
||||||
<p>
|
<p>
|
||||||
Expand/Shrink a window
|
Expand/Shrink a window
|
||||||
</p>
|
</p>
|
||||||
@ -634,7 +619,7 @@ super + alt + l
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: Dehaeze Thomas</p>
|
<p class="author">Author: Dehaeze Thomas</p>
|
||||||
<p class="date">Created: 2021-04-25 dim. 19:10</p>
|
<p class="date">Created: 2021-06-20 dim. 14:21</p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -3,11 +3,11 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2021-01-08 ven. 01:43 -->
|
<!-- 2021-06-20 dim. 14:22 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<title><code>systemd</code> services and timers</title>
|
<title>=systemd= services and timers</title>
|
||||||
<meta name="generator" content="Org mode" />
|
|
||||||
<meta name="author" content="Dehaeze Thomas" />
|
<meta name="author" content="Dehaeze Thomas" />
|
||||||
|
<meta name="generator" content="Org Mode" />
|
||||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||||
<script type="text/javascript" src="./dist/script.js"></script>
|
<script type="text/javascript" src="./dist/script.js"></script>
|
||||||
</head>
|
</head>
|
||||||
@ -24,50 +24,56 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org9efc12d"><code>bukugit</code> - Automatic commit and push new bookmarks</a>
|
<li><a href="#org9efc12d"><code>bukugit</code> - Automatic commit and push new bookmarks</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org782b2ab">Service</a></li>
|
<li><a href="#org047c23f">Service</a></li>
|
||||||
<li><a href="#org0f85a10">Timer</a></li>
|
<li><a href="#org057bbfb">Timer</a></li>
|
||||||
<li><a href="#orga2cf44a">Script</a></li>
|
<li><a href="#orgd21f3b8">Script</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orga6ac362"><code>braingit</code> - Automatic commit and push new brain pages</a>
|
<li><a href="#orga6ac362"><code>braingit</code> - Automatic commit and push new brain pages</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgf49f7f3">Service</a></li>
|
<li><a href="#org5d32354">Service</a></li>
|
||||||
<li><a href="#org541a815">Timer</a></li>
|
<li><a href="#orgaa0d02e">Timer</a></li>
|
||||||
<li><a href="#orgdeee651">Script</a></li>
|
<li><a href="#org753a3b1">Script</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgcd55ae1"><code>checkmail</code> - Check new mails</a>
|
<li><a href="#orgcd55ae1"><code>checkmail</code> - Check new mails</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org2b2ce61">Service</a></li>
|
<li><a href="#org3117b0f">Service</a></li>
|
||||||
<li><a href="#org3b13896">Timer</a></li>
|
<li><a href="#org31dc560">Timer</a></li>
|
||||||
<li><a href="#orgd21f3b8">Script</a></li>
|
<li><a href="#org33c5284">Script</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgb4148ce"><code>syncmail</code> - Synchronize all mails</a>
|
<li><a href="#orgb4148ce"><code>syncmail</code> - Synchronize all mails</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgd646b63">Service</a></li>
|
<li><a href="#org71deedc">Service</a></li>
|
||||||
<li><a href="#orga7b9728">Timer</a></li>
|
<li><a href="#org70acd93">Timer</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org64a5ff5"><code>vdirsyncer</code> - Synchronize calendar and contacts</a>
|
<li><a href="#org64a5ff5"><code>vdirsyncer</code> - Synchronize calendar and contacts</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org527e986">Service</a></li>
|
<li><a href="#org636594d">Service</a></li>
|
||||||
<li><a href="#org057bbfb">Timer</a></li>
|
<li><a href="#org263ab05">Timer</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgea6990c"><code>ssh-agent</code> - SSH Agent</a>
|
<li><a href="#orgea6990c"><code>ssh-agent</code> - SSH Agent</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgd52a406">Service</a></li>
|
<li><a href="#org075df6f">Service</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org6c316cc"><code>powertop</code> - Powertop</a>
|
<li><a href="#org6c316cc"><code>powertop</code> - Powertop</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org8b3fdc8">Service</a></li>
|
<li><a href="#orgf3e364a">Service</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org4072349"><code>emacs</code> - Emacs</a>
|
<li><a href="#org4072349"><code>emacs</code> - Emacs</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org047c23f">Service</a></li>
|
<li><a href="#orgec28af9">Service</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li><a href="#org9dd1459"><code>trash-empty</code> - Empty the trash for files older than 30 days</a>
|
||||||
|
<ul>
|
||||||
|
<li><a href="#org3ab76b0">Service</a></li>
|
||||||
|
<li><a href="#org79b900d">Timer</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -81,9 +87,9 @@
|
|||||||
<h2 id="org9efc12d"><code>bukugit</code> - Automatic commit and push new bookmarks</h2>
|
<h2 id="org9efc12d"><code>bukugit</code> - Automatic commit and push new bookmarks</h2>
|
||||||
<div class="outline-text-2" id="text-org9efc12d">
|
<div class="outline-text-2" id="text-org9efc12d">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org782b2ab" class="outline-3">
|
<div id="outline-container-org047c23f" class="outline-3">
|
||||||
<h3 id="org782b2ab">Service</h3>
|
<h3 id="org047c23f">Service</h3>
|
||||||
<div class="outline-text-3" id="text-org782b2ab">
|
<div class="outline-text-3" id="text-org047c23f">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
||||||
<span class="org-variable-name">Description</span>=Sync Bookmarks every day
|
<span class="org-variable-name">Description</span>=Sync Bookmarks every day
|
||||||
@ -98,9 +104,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org0f85a10" class="outline-3">
|
<div id="outline-container-org057bbfb" class="outline-3">
|
||||||
<h3 id="org0f85a10">Timer</h3>
|
<h3 id="org057bbfb">Timer</h3>
|
||||||
<div class="outline-text-3" id="text-org0f85a10">
|
<div class="outline-text-3" id="text-org057bbfb">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
||||||
<span class="org-variable-name">Description</span>=Sync All Mails every x hours
|
<span class="org-variable-name">Description</span>=Sync All Mails every x hours
|
||||||
@ -121,9 +127,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orga2cf44a" class="outline-3">
|
<div id="outline-container-orgd21f3b8" class="outline-3">
|
||||||
<h3 id="orga2cf44a">Script</h3>
|
<h3 id="orgd21f3b8">Script</h3>
|
||||||
<div class="outline-text-3" id="text-orga2cf44a">
|
<div class="outline-text-3" id="text-orgd21f3b8">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash"><span class="org-type">cd</span> ~/.local/share/buku/
|
<pre class="src src-bash"><span class="org-type">cd</span> ~/.local/share/buku/
|
||||||
|
|
||||||
@ -150,9 +156,9 @@
|
|||||||
<h2 id="orga6ac362"><code>braingit</code> - Automatic commit and push new brain pages</h2>
|
<h2 id="orga6ac362"><code>braingit</code> - Automatic commit and push new brain pages</h2>
|
||||||
<div class="outline-text-2" id="text-orga6ac362">
|
<div class="outline-text-2" id="text-orga6ac362">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgf49f7f3" class="outline-3">
|
<div id="outline-container-org5d32354" class="outline-3">
|
||||||
<h3 id="orgf49f7f3">Service</h3>
|
<h3 id="org5d32354">Service</h3>
|
||||||
<div class="outline-text-3" id="text-orgf49f7f3">
|
<div class="outline-text-3" id="text-org5d32354">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
||||||
<span class="org-variable-name">Description</span>=Sync Brain Website everyday
|
<span class="org-variable-name">Description</span>=Sync Brain Website everyday
|
||||||
@ -167,9 +173,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org541a815" class="outline-3">
|
<div id="outline-container-orgaa0d02e" class="outline-3">
|
||||||
<h3 id="org541a815">Timer</h3>
|
<h3 id="orgaa0d02e">Timer</h3>
|
||||||
<div class="outline-text-3" id="text-org541a815">
|
<div class="outline-text-3" id="text-orgaa0d02e">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
||||||
<span class="org-variable-name">Description</span>=Sync Brain Website everyday
|
<span class="org-variable-name">Description</span>=Sync Brain Website everyday
|
||||||
@ -190,9 +196,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgdeee651" class="outline-3">
|
<div id="outline-container-org753a3b1" class="outline-3">
|
||||||
<h3 id="orgdeee651">Script</h3>
|
<h3 id="org753a3b1">Script</h3>
|
||||||
<div class="outline-text-3" id="text-orgdeee651">
|
<div class="outline-text-3" id="text-org753a3b1">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash"><span class="org-type">cd</span> ~/Cloud/brain-website/
|
<pre class="src src-bash"><span class="org-type">cd</span> ~/Cloud/brain-website/
|
||||||
|
|
||||||
@ -212,9 +218,9 @@
|
|||||||
<h2 id="orgcd55ae1"><code>checkmail</code> - Check new mails</h2>
|
<h2 id="orgcd55ae1"><code>checkmail</code> - Check new mails</h2>
|
||||||
<div class="outline-text-2" id="text-orgcd55ae1">
|
<div class="outline-text-2" id="text-orgcd55ae1">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org2b2ce61" class="outline-3">
|
<div id="outline-container-org3117b0f" class="outline-3">
|
||||||
<h3 id="org2b2ce61">Service</h3>
|
<h3 id="org3117b0f">Service</h3>
|
||||||
<div class="outline-text-3" id="text-org2b2ce61">
|
<div class="outline-text-3" id="text-org3117b0f">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
||||||
<span class="org-variable-name">Description</span>=Check new mails
|
<span class="org-variable-name">Description</span>=Check new mails
|
||||||
@ -229,9 +235,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org3b13896" class="outline-3">
|
<div id="outline-container-org31dc560" class="outline-3">
|
||||||
<h3 id="org3b13896">Timer</h3>
|
<h3 id="org31dc560">Timer</h3>
|
||||||
<div class="outline-text-3" id="text-org3b13896">
|
<div class="outline-text-3" id="text-org31dc560">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
||||||
<span class="org-variable-name">Description</span>=Check Mail every x minutes
|
<span class="org-variable-name">Description</span>=Check Mail every x minutes
|
||||||
@ -255,9 +261,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgd21f3b8" class="outline-3">
|
<div id="outline-container-org33c5284" class="outline-3">
|
||||||
<h3 id="orgd21f3b8">Script</h3>
|
<h3 id="org33c5284">Script</h3>
|
||||||
<div class="outline-text-3" id="text-orgd21f3b8">
|
<div class="outline-text-3" id="text-org33c5284">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash"><span class="org-keyword">while</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">1</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">do</span> <span class="org-comment-delimiter"># </span><span class="org-comment">while loop starts</span>
|
<pre class="src src-bash"><span class="org-keyword">while</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">1</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">do</span> <span class="org-comment-delimiter"># </span><span class="org-comment">while loop starts</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>
|
<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>
|
||||||
@ -322,9 +328,9 @@ mbsync $<span class="org-variable-name">opt_all</span> $<span class="org-variabl
|
|||||||
<h2 id="orgb4148ce"><code>syncmail</code> - Synchronize all mails</h2>
|
<h2 id="orgb4148ce"><code>syncmail</code> - Synchronize all mails</h2>
|
||||||
<div class="outline-text-2" id="text-orgb4148ce">
|
<div class="outline-text-2" id="text-orgb4148ce">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgd646b63" class="outline-3">
|
<div id="outline-container-org71deedc" class="outline-3">
|
||||||
<h3 id="orgd646b63">Service</h3>
|
<h3 id="org71deedc">Service</h3>
|
||||||
<div class="outline-text-3" id="text-orgd646b63">
|
<div class="outline-text-3" id="text-org71deedc">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
||||||
<span class="org-variable-name">Description</span>=Sync all mails
|
<span class="org-variable-name">Description</span>=Sync all mails
|
||||||
@ -339,9 +345,9 @@ mbsync $<span class="org-variable-name">opt_all</span> $<span class="org-variabl
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orga7b9728" class="outline-3">
|
<div id="outline-container-org70acd93" class="outline-3">
|
||||||
<h3 id="orga7b9728">Timer</h3>
|
<h3 id="org70acd93">Timer</h3>
|
||||||
<div class="outline-text-3" id="text-orga7b9728">
|
<div class="outline-text-3" id="text-org70acd93">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
||||||
<span class="org-variable-name">Description</span>=Sync All Mails every x hours
|
<span class="org-variable-name">Description</span>=Sync All Mails every x hours
|
||||||
@ -370,9 +376,9 @@ mbsync $<span class="org-variable-name">opt_all</span> $<span class="org-variabl
|
|||||||
<h2 id="org64a5ff5"><code>vdirsyncer</code> - Synchronize calendar and contacts</h2>
|
<h2 id="org64a5ff5"><code>vdirsyncer</code> - Synchronize calendar and contacts</h2>
|
||||||
<div class="outline-text-2" id="text-org64a5ff5">
|
<div class="outline-text-2" id="text-org64a5ff5">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org527e986" class="outline-3">
|
<div id="outline-container-org636594d" class="outline-3">
|
||||||
<h3 id="org527e986">Service</h3>
|
<h3 id="org636594d">Service</h3>
|
||||||
<div class="outline-text-3" id="text-org527e986">
|
<div class="outline-text-3" id="text-org636594d">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
||||||
<span class="org-variable-name">Description</span>=Synchronize calendars and contacts
|
<span class="org-variable-name">Description</span>=Synchronize calendars and contacts
|
||||||
@ -381,16 +387,16 @@ mbsync $<span class="org-variable-name">opt_all</span> $<span class="org-variabl
|
|||||||
<span class="org-variable-name">After</span>=network-online.target
|
<span class="org-variable-name">After</span>=network-online.target
|
||||||
|
|
||||||
[<span class="org-type">Service</span>]
|
[<span class="org-type">Service</span>]
|
||||||
<span class="org-variable-name">ExecStart</span>=/usr/bin/vdirsyncer --verbosity <span class="org-string">"ERROR"</span> sync
|
<span class="org-variable-name">ExecStart</span>=/home/thomas/.local/bin/vdirsyncer --verbosity <span class="org-string">"ERROR"</span> sync
|
||||||
<span class="org-variable-name">Type</span>=oneshot
|
<span class="org-variable-name">Type</span>=oneshot
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org057bbfb" class="outline-3">
|
<div id="outline-container-org263ab05" class="outline-3">
|
||||||
<h3 id="org057bbfb">Timer</h3>
|
<h3 id="org263ab05">Timer</h3>
|
||||||
<div class="outline-text-3" id="text-org057bbfb">
|
<div class="outline-text-3" id="text-org263ab05">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
||||||
<span class="org-variable-name">Description</span>=Synchronize vdirs
|
<span class="org-variable-name">Description</span>=Synchronize vdirs
|
||||||
@ -412,9 +418,9 @@ mbsync $<span class="org-variable-name">opt_all</span> $<span class="org-variabl
|
|||||||
<h2 id="orgea6990c"><code>ssh-agent</code> - SSH Agent</h2>
|
<h2 id="orgea6990c"><code>ssh-agent</code> - SSH Agent</h2>
|
||||||
<div class="outline-text-2" id="text-orgea6990c">
|
<div class="outline-text-2" id="text-orgea6990c">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgd52a406" class="outline-3">
|
<div id="outline-container-org075df6f" class="outline-3">
|
||||||
<h3 id="orgd52a406">Service</h3>
|
<h3 id="org075df6f">Service</h3>
|
||||||
<div class="outline-text-3" id="text-orgd52a406">
|
<div class="outline-text-3" id="text-org075df6f">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
||||||
<span class="org-variable-name">Description</span>=SSH key agent
|
<span class="org-variable-name">Description</span>=SSH key agent
|
||||||
@ -436,9 +442,9 @@ mbsync $<span class="org-variable-name">opt_all</span> $<span class="org-variabl
|
|||||||
<h2 id="org6c316cc"><code>powertop</code> - Powertop</h2>
|
<h2 id="org6c316cc"><code>powertop</code> - Powertop</h2>
|
||||||
<div class="outline-text-2" id="text-org6c316cc">
|
<div class="outline-text-2" id="text-org6c316cc">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org8b3fdc8" class="outline-3">
|
<div id="outline-container-orgf3e364a" class="outline-3">
|
||||||
<h3 id="org8b3fdc8">Service</h3>
|
<h3 id="orgf3e364a">Service</h3>
|
||||||
<div class="outline-text-3" id="text-org8b3fdc8">
|
<div class="outline-text-3" id="text-orgf3e364a">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
||||||
<span class="org-variable-name">Description</span>=Powertop tunings
|
<span class="org-variable-name">Description</span>=Powertop tunings
|
||||||
@ -460,9 +466,9 @@ mbsync $<span class="org-variable-name">opt_all</span> $<span class="org-variabl
|
|||||||
<h2 id="org4072349"><code>emacs</code> - Emacs</h2>
|
<h2 id="org4072349"><code>emacs</code> - Emacs</h2>
|
||||||
<div class="outline-text-2" id="text-org4072349">
|
<div class="outline-text-2" id="text-org4072349">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org047c23f" class="outline-3">
|
<div id="outline-container-orgec28af9" class="outline-3">
|
||||||
<h3 id="org047c23f">Service</h3>
|
<h3 id="orgec28af9">Service</h3>
|
||||||
<div class="outline-text-3" id="text-org047c23f">
|
<div class="outline-text-3" id="text-orgec28af9">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
||||||
<span class="org-variable-name">Description</span>=Emacs text editor
|
<span class="org-variable-name">Description</span>=Emacs text editor
|
||||||
@ -482,10 +488,50 @@ mbsync $<span class="org-variable-name">opt_all</span> $<span class="org-variabl
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org9dd1459" class="outline-2">
|
||||||
|
<h2 id="org9dd1459"><code>trash-empty</code> - Empty the trash for files older than 30 days</h2>
|
||||||
|
<div class="outline-text-2" id="text-org9dd1459">
|
||||||
|
</div>
|
||||||
|
<div id="outline-container-org3ab76b0" class="outline-3">
|
||||||
|
<h3 id="org3ab76b0">Service</h3>
|
||||||
|
<div class="outline-text-3" id="text-org3ab76b0">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
||||||
|
<span class="org-variable-name">Description</span>=Empty the trash for files older than <span class="org-highlight-numbers-number">30</span> days
|
||||||
|
<span class="org-variable-name">Documentation</span>=https://github.com/andreafrancia/trash-cli
|
||||||
|
|
||||||
|
[<span class="org-type">Service</span>]
|
||||||
|
<span class="org-variable-name">ExecStart</span>=/home/thomas/.local/bin/trash-empty <span class="org-highlight-numbers-number">30</span>
|
||||||
|
<span class="org-variable-name">Type</span>=oneshot
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="outline-container-org79b900d" class="outline-3">
|
||||||
|
<h3 id="org79b900d">Timer</h3>
|
||||||
|
<div class="outline-text-3" id="text-org79b900d">
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
||||||
|
<span class="org-variable-name">Description</span>=Empty trash
|
||||||
|
|
||||||
|
[<span class="org-type">Timer</span>]
|
||||||
|
<span class="org-variable-name">OnCalendar</span>=*-*-* <span class="org-highlight-numbers-number">16</span>:<span class="org-highlight-numbers-number">00</span>:<span class="org-highlight-numbers-number">00</span>
|
||||||
|
<span class="org-variable-name">Persistent</span>=true
|
||||||
|
<span class="org-variable-name">Unit</span>=trash-empty
|
||||||
|
|
||||||
|
[<span class="org-type">Install</span>]
|
||||||
|
<span class="org-variable-name">WantedBy</span>=timers.target
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: Dehaeze Thomas</p>
|
<p class="author">Author: Dehaeze Thomas</p>
|
||||||
<p class="date">Created: 2021-01-08 ven. 01:43</p>
|
<p class="date">Created: 2021-06-20 dim. 14:22</p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -3,11 +3,11 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2021-01-08 ven. 01:43 -->
|
<!-- 2021-10-25 lun. 14:33 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<title>MPV Configuration</title>
|
<title>MPV Configuration</title>
|
||||||
<meta name="generator" content="Org mode" />
|
|
||||||
<meta name="author" content="Dehaeze Thomas" />
|
<meta name="author" content="Dehaeze Thomas" />
|
||||||
|
<meta name="generator" content="Org Mode" />
|
||||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||||
<script type="text/javascript" src="./dist/script.js"></script>
|
<script type="text/javascript" src="./dist/script.js"></script>
|
||||||
</head>
|
</head>
|
||||||
@ -16,11 +16,11 @@
|
|||||||
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="h" href="./index.html"> UP </a>
|
||||||
|
|
|
|
||||||
<a accesskey="H" href="./index.html"> HOME </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
|
||||||
</div><div id="content">
|
</div><div id="content" class="content">
|
||||||
<h1 class="title">MPV Configuration</h1>
|
<h1 class="title">MPV Configuration</h1>
|
||||||
<div id="table-of-contents">
|
<div id="table-of-contents" role="doc-toc">
|
||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents" role="doc-toc">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org06a0ee3"><code>mpv.conf</code> - MPV Configuration</a></li>
|
<li><a href="#org06a0ee3"><code>mpv.conf</code> - MPV Configuration</a></li>
|
||||||
<li><a href="#org9b7ebc9"><code>input.conf</code> - MPV Key Bindings</a></li>
|
<li><a href="#org9b7ebc9"><code>input.conf</code> - MPV Key Bindings</a></li>
|
||||||
@ -52,6 +52,8 @@
|
|||||||
|
|
||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Do not close mpv at the end of video</span>
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Do not close mpv at the end of video</span>
|
||||||
<span class="org-variable-name">keep-open</span>=yes
|
<span class="org-variable-name">keep-open</span>=yes
|
||||||
|
|
||||||
|
<span class="org-variable-name">script-opts</span>=ytdl_hook-ytdl_path=/usr/bin/yt-dlp
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -267,7 +269,7 @@ Z add sub-delay +0.1 <span class="org-comment-delimiter"># </s
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: Dehaeze Thomas</p>
|
<p class="author">Author: Dehaeze Thomas</p>
|
||||||
<p class="date">Created: 2021-01-08 ven. 01:43</p>
|
<p class="date">Created: 2021-10-25 lun. 14:33</p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
250
docs/vim.html
250
docs/vim.html
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2021-04-25 dim. 19:10 -->
|
<!-- 2021-10-25 lun. 14:33 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<title>Vim Config</title>
|
<title>Vim Config</title>
|
||||||
<meta name="author" content="Dehaeze Thomas" />
|
<meta name="author" content="Dehaeze Thomas" />
|
||||||
@ -16,11 +16,11 @@
|
|||||||
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="h" href="./index.html"> UP </a>
|
||||||
|
|
|
|
||||||
<a accesskey="H" href="./index.html"> HOME </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
|
||||||
</div><div id="content">
|
</div><div id="content" class="content">
|
||||||
<h1 class="title">Vim Config</h1>
|
<h1 class="title">Vim Config</h1>
|
||||||
<div id="table-of-contents">
|
<div id="table-of-contents" role="doc-toc">
|
||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents" role="doc-toc">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orge318481">Plugins Install</a>
|
<li><a href="#orge318481">Plugins Install</a>
|
||||||
<ul>
|
<ul>
|
||||||
@ -40,8 +40,8 @@
|
|||||||
<li><a href="#org05222b1">Tmux</a></li>
|
<li><a href="#org05222b1">Tmux</a></li>
|
||||||
<li><a href="#orgfc62c14">Syntax</a></li>
|
<li><a href="#orgfc62c14">Syntax</a></li>
|
||||||
<li><a href="#org4fbd147">Markdown</a></li>
|
<li><a href="#org4fbd147">Markdown</a></li>
|
||||||
<li><a href="#org0ead904">LaTeX</a></li>
|
<li><a href="#org18ac8fe">LaTeX</a></li>
|
||||||
<li><a href="#org06a6278">Matlab</a></li>
|
<li><a href="#orgea260b6">Matlab</a></li>
|
||||||
<li><a href="#orgcceec60">Org Mode</a></li>
|
<li><a href="#orgcceec60">Org Mode</a></li>
|
||||||
<li><a href="#org251d57e">Plug End</a></li>
|
<li><a href="#org251d57e">Plug End</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -74,42 +74,42 @@
|
|||||||
</li>
|
</li>
|
||||||
<li><a href="#orgbf12520">Filetypes</a>
|
<li><a href="#orgbf12520">Filetypes</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orge74ae73">Vim Which Key</a></li>
|
<li><a href="#org135a723">Vim Which Key</a></li>
|
||||||
<li><a href="#org849b459">Mails</a></li>
|
<li><a href="#org849b459">Mails</a></li>
|
||||||
<li><a href="#org42e1db0">MarkDown</a></li>
|
<li><a href="#org42e1db0">MarkDown</a></li>
|
||||||
<li><a href="#org18ac8fe">LaTeX</a></li>
|
<li><a href="#orgc5ce266">LaTeX</a></li>
|
||||||
<li><a href="#org4bc3f4d">Arduino</a></li>
|
<li><a href="#org4bc3f4d">Arduino</a></li>
|
||||||
<li><a href="#org9ce420d">Python</a></li>
|
<li><a href="#org9ce420d">Python</a></li>
|
||||||
<li><a href="#orgea260b6">Matlab</a></li>
|
<li><a href="#org975017c">Matlab</a></li>
|
||||||
<li><a href="#org0ac7dbc">Save Which Key Configuration</a></li>
|
<li><a href="#orgf9610f4">Save Which Key Configuration</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org5ea2f36">Plugins Config</a>
|
<li><a href="#org5ea2f36">Plugins Config</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgb5e86db">junegunn/fzf</a></li>
|
<li><a href="#org2436daa"><code>junegunn/fzf</code></a></li>
|
||||||
<li><a href="#org63fd7d8">autozimu/LanguageClient-neovim</a></li>
|
<li><a href="#org633de78"><code>autozimu/LanguageClient-neovim</code></a></li>
|
||||||
<li><a href="#org25fa39c">JamshedVesuna/vim-markdown-preview</a></li>
|
<li><a href="#org530c33b"><code>JamshedVesuna/vim-markdown-preview</code></a></li>
|
||||||
<li><a href="#orge00dc6f">mhinz/vim-signify</a></li>
|
<li><a href="#orgf435b47"><code>mhinz/vim-signify</code></a></li>
|
||||||
<li><a href="#org63386bc">Deoplete</a></li>
|
<li><a href="#org96e8776"><code>Deoplete</code></a></li>
|
||||||
<li><a href="#orga9a5852">SirVer/ultisnips</a></li>
|
<li><a href="#orgacfd5d8"><code>SirVer/ultisnips</code></a></li>
|
||||||
<li><a href="#orga1fd137">honza/vim-snippets</a></li>
|
<li><a href="#org792637b"><code>honza/vim-snippets</code></a></li>
|
||||||
<li><a href="#org3fd4af9">itchyny/lightline.vim</a></li>
|
<li><a href="#org8bc27ac"><code>itchyny/lightline.vim</code></a></li>
|
||||||
<li><a href="#orga89494b">Autopairs</a></li>
|
<li><a href="#orgeeb846d"><code>Autopairs</code></a></li>
|
||||||
<li><a href="#orgd049e76">Yggdroot/indentLine</a></li>
|
<li><a href="#orgec97ba8"><code>Yggdroot/indentLine</code></a></li>
|
||||||
<li><a href="#org9475dd3">ryanoasis/vim-devicons</a></li>
|
<li><a href="#orgb950c54"><code>ryanoasis/vim-devicons</code></a></li>
|
||||||
<li><a href="#org3776a9d">junegunn/goyo.vim</a></li>
|
<li><a href="#org58545fe"><code>junegunn/goyo.vim</code></a></li>
|
||||||
<li><a href="#orgc1ea9c9">tpope/vim-surround</a></li>
|
<li><a href="#orgc2ae68e"><code>tpope/vim-surround</code></a></li>
|
||||||
<li><a href="#org7cc5f39">Vim-Markdown</a></li>
|
<li><a href="#org48c6403"><code>Vim-Markdown</code></a></li>
|
||||||
<li><a href="#org2fde55c">Neomake</a></li>
|
<li><a href="#org6e96121"><code>Neomake</code></a></li>
|
||||||
<li><a href="#orgf6f402a">lervag/vimtex</a></li>
|
<li><a href="#org52ec1d5"><code>lervag/vimtex</code></a></li>
|
||||||
<li><a href="#org53ca775">jpalardy/vim-slime</a></li>
|
<li><a href="#org9b37457"><code>jpalardy/vim-slime</code></a></li>
|
||||||
<li><a href="#org4c92519">mhinz/vim-grepper</a></li>
|
<li><a href="#orga920649"><code>mhinz/vim-grepper</code></a></li>
|
||||||
<li><a href="#orgc009d1c">Editor config</a></li>
|
<li><a href="#orgc009d1c">Editor config</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org492ddcb">Bindings</a>
|
<li><a href="#org492ddcb">Bindings</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org135a723">Vim Which Key</a></li>
|
<li><a href="#org804ac1a">Vim Which Key</a></li>
|
||||||
<li><a href="#org0df6a36">Direct ones</a></li>
|
<li><a href="#org0df6a36">Direct ones</a></li>
|
||||||
<li><a href="#orgdfeb9c4">Quit</a></li>
|
<li><a href="#orgdfeb9c4">Quit</a></li>
|
||||||
<li><a href="#org8bb23f5">Files</a></li>
|
<li><a href="#org8bb23f5">Files</a></li>
|
||||||
@ -125,7 +125,7 @@
|
|||||||
<li><a href="#orge197646">Text</a></li>
|
<li><a href="#orge197646">Text</a></li>
|
||||||
<li><a href="#orgb596c67">Config</a></li>
|
<li><a href="#orgb596c67">Config</a></li>
|
||||||
<li><a href="#orgeb5450c">Insert</a></li>
|
<li><a href="#orgeb5450c">Insert</a></li>
|
||||||
<li><a href="#orgf9610f4">Save Which Key Configuration</a></li>
|
<li><a href="#orgf40e93e">Save Which Key Configuration</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -341,9 +341,9 @@ Plug <span class="org-string">'nelstrom/vim-markdown-folding'</span>
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org0ead904" class="outline-3">
|
<div id="outline-container-org18ac8fe" class="outline-3">
|
||||||
<h3 id="org0ead904">LaTeX</h3>
|
<h3 id="org18ac8fe">LaTeX</h3>
|
||||||
<div class="outline-text-3" id="text-org0ead904">
|
<div class="outline-text-3" id="text-org18ac8fe">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-vimrc">Plug <span class="org-string">'lervag/vimtex'</span>, { <span class="org-string">'for'</span>: <span class="org-string">'tex'</span> } <span class="org-comment">" A modern vim plugin for editing LaTeX files.</span>
|
<pre class="src src-vimrc">Plug <span class="org-string">'lervag/vimtex'</span>, { <span class="org-string">'for'</span>: <span class="org-string">'tex'</span> } <span class="org-comment">" A modern vim plugin for editing LaTeX files.</span>
|
||||||
</pre>
|
</pre>
|
||||||
@ -351,9 +351,9 @@ Plug <span class="org-string">'nelstrom/vim-markdown-folding'</span>
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org06a6278" class="outline-3">
|
<div id="outline-container-orgea260b6" class="outline-3">
|
||||||
<h3 id="org06a6278">Matlab</h3>
|
<h3 id="orgea260b6">Matlab</h3>
|
||||||
<div class="outline-text-3" id="text-org06a6278">
|
<div class="outline-text-3" id="text-orgea260b6">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-vimrc">Plug <span class="org-string">'tdehaeze/matlab-vim'</span>, { <span class="org-string">'for'</span>: <span class="org-string">'matlab'</span> } <span class="org-comment">" Edit Matlab M-files in Vim editor</span>
|
<pre class="src src-vimrc">Plug <span class="org-string">'tdehaeze/matlab-vim'</span>, { <span class="org-string">'for'</span>: <span class="org-string">'matlab'</span> } <span class="org-comment">" Edit Matlab M-files in Vim editor</span>
|
||||||
Plug <span class="org-string">'djoshea/vim-matlab-fold'</span>, { <span class="org-string">'for'</span>: <span class="org-string">'matlab'</span> } <span class="org-comment">" Vim code folding for Matlab files</span>
|
Plug <span class="org-string">'djoshea/vim-matlab-fold'</span>, { <span class="org-string">'for'</span>: <span class="org-string">'matlab'</span> } <span class="org-comment">" Vim code folding for Matlab files</span>
|
||||||
@ -866,7 +866,7 @@ Taken from: <a href="https://vi.stackexchange.com/questions/68/autocorrect-spell
|
|||||||
</p>
|
</p>
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-vimrc"><span class="org-comment">" Go back to last misspelled word and pick first suggestion.</span>
|
<pre class="src src-vimrc"><span class="org-comment">" Go back to last misspelled word and pick first suggestion.</span>
|
||||||
<span class="org-vimrc-command">inoremap</span> <span class="org-constant"><</span>C<span class="org-constant">-</span>L<span class="org-constant">></span> <span class="org-constant"><</span>C<span class="org-constant">-</span>G<span class="org-constant">></span>u<span class="org-constant"><</span>Esc<span class="org-constant">></span>[s1z<span class="org-constant">=</span>`]a<span class="org-constant"><</span>C<span class="org-constant">-</span>G<span class="org-constant">></span>u
|
<span class="org-vimrc-command">inoremap</span> <span class="org-constant"><</span>C<span class="org-constant">-</span>L<span class="org-constant">></span> <span class="org-constant"><</span><span class="org-vimrc-command">c</span><span class="org-constant">-</span>g<span class="org-constant">></span>u<span class="org-constant"><</span>Esc<span class="org-constant">></span>[s1z<span class="org-constant">=</span>`]a<span class="org-constant"><</span><span class="org-vimrc-command">c</span><span class="org-constant">-</span>g<span class="org-constant">></span>u
|
||||||
|
|
||||||
<span class="org-comment">" Select last misspelled word (typing will edit).</span>
|
<span class="org-comment">" Select last misspelled word (typing will edit).</span>
|
||||||
<span class="org-vimrc-command">nnoremap</span> <span class="org-constant"><</span>C<span class="org-constant">-</span>K<span class="org-constant">></span> <span class="org-constant"><</span>Esc<span class="org-constant">></span>[sve<span class="org-constant"><</span>C<span class="org-constant">-</span>G<span class="org-constant">></span>
|
<span class="org-vimrc-command">nnoremap</span> <span class="org-constant"><</span>C<span class="org-constant">-</span>K<span class="org-constant">></span> <span class="org-constant"><</span>Esc<span class="org-constant">></span>[sve<span class="org-constant"><</span>C<span class="org-constant">-</span>G<span class="org-constant">></span>
|
||||||
@ -882,9 +882,9 @@ Taken from: <a href="https://vi.stackexchange.com/questions/68/autocorrect-spell
|
|||||||
<h2 id="orgbf12520">Filetypes</h2>
|
<h2 id="orgbf12520">Filetypes</h2>
|
||||||
<div class="outline-text-2" id="text-orgbf12520">
|
<div class="outline-text-2" id="text-orgbf12520">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orge74ae73" class="outline-3">
|
<div id="outline-container-org135a723" class="outline-3">
|
||||||
<h3 id="orge74ae73">Vim Which Key</h3>
|
<h3 id="org135a723">Vim Which Key</h3>
|
||||||
<div class="outline-text-3" id="text-orge74ae73">
|
<div class="outline-text-3" id="text-org135a723">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-vimrc"><span class="org-vimrc-command">nnoremap</span> <span class="org-constant"><</span><span class="org-vimrc-command">silent</span><span class="org-constant">></span> <span class="org-constant"><</span>leader<span class="org-constant">></span> :WhichKey <span class="org-string">'<Space>'</span><span class="org-constant"><</span><span class="org-vimrc-command">cr</span><span class="org-constant">></span>
|
<pre class="src src-vimrc"><span class="org-vimrc-command">nnoremap</span> <span class="org-constant"><</span><span class="org-vimrc-command">silent</span><span class="org-constant">></span> <span class="org-constant"><</span>leader<span class="org-constant">></span> :WhichKey <span class="org-string">'<Space>'</span><span class="org-constant"><</span><span class="org-vimrc-command">cr</span><span class="org-constant">></span>
|
||||||
|
|
||||||
@ -900,6 +900,36 @@ Taken from: <a href="https://vi.stackexchange.com/questions/68/autocorrect-spell
|
|||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-vimrc"><span class="org-vimrc-command">autocmd</span> FileType mail <span class="org-vimrc-command">set</span> <span class="org-vimrc-option">spell</span> <span class="org-vimrc-option">spelllang</span><span class="org-constant">=</span>en_us,fr
|
<pre class="src src-vimrc"><span class="org-vimrc-command">autocmd</span> FileType mail <span class="org-vimrc-command">set</span> <span class="org-vimrc-option">spell</span> <span class="org-vimrc-option">spelllang</span><span class="org-constant">=</span>en_us,fr
|
||||||
<span class="org-vimrc-command">autocmd</span> FileType mail <span class="org-vimrc-command">set</span> <span class="org-vimrc-option">textwidth</span><span class="org-constant">=</span><span class="org-vimrc-number">0</span>
|
<span class="org-vimrc-command">autocmd</span> FileType mail <span class="org-vimrc-command">set</span> <span class="org-vimrc-option">textwidth</span><span class="org-constant">=</span><span class="org-vimrc-number">0</span>
|
||||||
|
|
||||||
|
<span class="org-vimrc-command">function</span><span class="org-constant">!</span> <span class="org-function-name">Mailcomplete</span>(findstart, base)
|
||||||
|
<span class="org-vimrc-command">if</span> <span class="org-variable-name">a:findstart</span> <span class="org-constant">==</span> <span class="org-highlight-numbers-number">1</span>
|
||||||
|
<span class="org-vimrc-command">let</span> <span class="org-variable-name">line</span> <span class="org-constant">=</span> <span class="org-function-name">getline</span>(<span class="org-string">'.'</span>)
|
||||||
|
<span class="org-vimrc-command">let</span> <span class="org-variable-name">idx</span> <span class="org-constant">=</span> <span class="org-function-name">col</span>(<span class="org-string">'.'</span>)
|
||||||
|
<span class="org-vimrc-command">while</span> idx <span class="org-constant">></span> <span class="org-highlight-numbers-number">0</span>
|
||||||
|
<span class="org-vimrc-command">let</span> <span class="org-variable-name">idx</span> <span class="org-constant">-=</span> <span class="org-highlight-numbers-number">1</span>
|
||||||
|
<span class="org-vimrc-command">let</span> <span class="org-variable-name">c</span> <span class="org-constant">=</span> line[idx]
|
||||||
|
<span class="org-vimrc-command">if</span> c <span class="org-constant">==</span> <span class="org-string">':'</span> <span class="org-constant">||</span> <span class="org-vimrc-command">c</span> <span class="org-constant">==</span> <span class="org-string">'>'</span>
|
||||||
|
<span class="org-vimrc-command">return</span> idx <span class="org-constant">+</span> <span class="org-highlight-numbers-number">2</span>
|
||||||
|
<span class="org-vimrc-command">else</span>
|
||||||
|
<span class="org-vimrc-command">continue</span>
|
||||||
|
<span class="org-vimrc-command">endif</span>
|
||||||
|
<span class="org-vimrc-command">endwhile</span>
|
||||||
|
<span class="org-vimrc-command">return</span> idx
|
||||||
|
<span class="org-vimrc-command">else</span>
|
||||||
|
<span class="org-vimrc-command">return</span> <span class="org-function-name">split</span>(<span class="org-function-name">system</span>(<span class="org-string">'~/.local/scripts/find-config.sh '</span> <span class="org-constant">.</span> <span class="org-variable-name">a:base</span>), <span class="org-string">'\n'</span>)
|
||||||
|
<span class="org-vimrc-command">endif</span>
|
||||||
|
<span class="org-vimrc-command">endfunction</span>
|
||||||
|
|
||||||
|
<span class="org-vimrc-command">setl</span> <span class="org-vimrc-option">omnifunc</span><span class="org-constant">=</span>Mailcomplete
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="org-src-container">
|
||||||
|
<pre class="src src-bash"><span class="org-variable-name">search</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-variable-name">contacts</span>=<span class="org-sh-quoted-exec">`mu cfind "$search"`</span>
|
||||||
|
<span class="org-variable-name">emails</span>=<span class="org-sh-quoted-exec">`</span><span class="org-type"><span class="org-sh-quoted-exec">echo</span></span><span class="org-sh-quoted-exec"> "$contacts" | awk -F' ' '{print "<" $NF ">"}'`</span>
|
||||||
|
<span class="org-variable-name">names</span>=<span class="org-sh-quoted-exec">`</span><span class="org-type"><span class="org-sh-quoted-exec">echo</span></span><span class="org-sh-quoted-exec"> "$contacts" | awk -F' ' '{$NF=""; print $0}'`</span>
|
||||||
|
paste -d <span class="org-string">""</span> <<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-builtin">printf</span> %s <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">names</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-1">)</span> <<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-builtin">printf</span> %s <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">emails</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-1">)</span>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -916,9 +946,9 @@ Taken from: <a href="https://vi.stackexchange.com/questions/68/autocorrect-spell
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org18ac8fe" class="outline-3">
|
<div id="outline-container-orgc5ce266" class="outline-3">
|
||||||
<h3 id="org18ac8fe">LaTeX</h3>
|
<h3 id="orgc5ce266">LaTeX</h3>
|
||||||
<div class="outline-text-3" id="text-org18ac8fe">
|
<div class="outline-text-3" id="text-orgc5ce266">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-vimrc"><span class="org-vimrc-command">au</span> BufRead,BufNewFile *<span class="org-constant">.</span>tikz <span class="org-vimrc-command">set</span> <span class="org-vimrc-option">filetype</span><span class="org-constant">=</span>tex
|
<pre class="src src-vimrc"><span class="org-vimrc-command">au</span> BufRead,BufNewFile *<span class="org-constant">.</span>tikz <span class="org-vimrc-command">set</span> <span class="org-vimrc-option">filetype</span><span class="org-constant">=</span>tex
|
||||||
<span class="org-vimrc-command">let</span> <span class="org-variable-name">tex_no_error</span><span class="org-constant">=</span><span class="org-vimrc-number">1</span> <span class="org-comment">" used to not highlight underscores</span>
|
<span class="org-vimrc-command">let</span> <span class="org-variable-name">tex_no_error</span><span class="org-constant">=</span><span class="org-vimrc-number">1</span> <span class="org-comment">" used to not highlight underscores</span>
|
||||||
@ -1003,9 +1033,9 @@ Taken from: <a href="https://vi.stackexchange.com/questions/68/autocorrect-spell
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgea260b6" class="outline-3">
|
<div id="outline-container-org975017c" class="outline-3">
|
||||||
<h3 id="orgea260b6">Matlab</h3>
|
<h3 id="org975017c">Matlab</h3>
|
||||||
<div class="outline-text-3" id="text-orgea260b6">
|
<div class="outline-text-3" id="text-org975017c">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-vimrc"><span class="org-comment">" Run Section (delimited by %%)</span>
|
<pre class="src src-vimrc"><span class="org-comment">" Run Section (delimited by %%)</span>
|
||||||
<span class="org-vimrc-command">au</span> FileType matlab <span class="org-vimrc-command">nmap</span> <span class="org-constant"><</span><span class="org-vimrc-command">buffer</span><span class="org-constant">></span> <span class="org-constant"><</span>localleader<span class="org-constant">></span><span class="org-vimrc-option">mm</span> <span class="org-constant"><</span>Plug<span class="org-constant">></span>SlimeParagraphSend
|
<span class="org-vimrc-command">au</span> FileType matlab <span class="org-vimrc-command">nmap</span> <span class="org-constant"><</span><span class="org-vimrc-command">buffer</span><span class="org-constant">></span> <span class="org-constant"><</span>localleader<span class="org-constant">></span><span class="org-vimrc-option">mm</span> <span class="org-constant"><</span>Plug<span class="org-constant">></span>SlimeParagraphSend
|
||||||
@ -1050,9 +1080,9 @@ endfunc
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org0ac7dbc" class="outline-3">
|
<div id="outline-container-orgf9610f4" class="outline-3">
|
||||||
<h3 id="org0ac7dbc">Save Which Key Configuration</h3>
|
<h3 id="orgf9610f4">Save Which Key Configuration</h3>
|
||||||
<div class="outline-text-3" id="text-org0ac7dbc">
|
<div class="outline-text-3" id="text-orgf9610f4">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-vimrc"><span class="org-vimrc-command">call</span> which_key#<span class="org-function-name">register</span>(<span class="org-string">'<Space>'</span>, <span class="org-comment">"g:which_key_map")</span>
|
<pre class="src src-vimrc"><span class="org-vimrc-command">call</span> which_key#<span class="org-function-name">register</span>(<span class="org-string">'<Space>'</span>, <span class="org-comment">"g:which_key_map")</span>
|
||||||
</pre>
|
</pre>
|
||||||
@ -1065,9 +1095,9 @@ endfunc
|
|||||||
<h2 id="org5ea2f36">Plugins Config</h2>
|
<h2 id="org5ea2f36">Plugins Config</h2>
|
||||||
<div class="outline-text-2" id="text-org5ea2f36">
|
<div class="outline-text-2" id="text-org5ea2f36">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgb5e86db" class="outline-3">
|
<div id="outline-container-org2436daa" class="outline-3">
|
||||||
<h3 id="orgb5e86db">junegunn/fzf</h3>
|
<h3 id="org2436daa"><code>junegunn/fzf</code></h3>
|
||||||
<div class="outline-text-3" id="text-orgb5e86db">
|
<div class="outline-text-3" id="text-org2436daa">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-vimrc"><span class="org-comment">" This is the default extra key bindings</span>
|
<pre class="src src-vimrc"><span class="org-comment">" This is the default extra key bindings</span>
|
||||||
<span class="org-vimrc-command">let</span> <span class="org-variable-name">g:fzf_action</span> <span class="org-constant">=</span> {
|
<span class="org-vimrc-command">let</span> <span class="org-variable-name">g:fzf_action</span> <span class="org-constant">=</span> {
|
||||||
@ -1105,9 +1135,9 @@ endfunc
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org63fd7d8" class="outline-3">
|
<div id="outline-container-org633de78" class="outline-3">
|
||||||
<h3 id="org63fd7d8">autozimu/LanguageClient-neovim</h3>
|
<h3 id="org633de78"><code>autozimu/LanguageClient-neovim</code></h3>
|
||||||
<div class="outline-text-3" id="text-org63fd7d8">
|
<div class="outline-text-3" id="text-org633de78">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-vimrc"><span class="org-vimrc-command">let</span> <span class="org-variable-name">g:LanguageClient_serverCommands</span> <span class="org-constant">=</span> {
|
<pre class="src src-vimrc"><span class="org-vimrc-command">let</span> <span class="org-variable-name">g:LanguageClient_serverCommands</span> <span class="org-constant">=</span> {
|
||||||
\ <span class="org-string">'matlab'</span>: [<span class="org-string">'java'</span>, <span class="org-string">' -Djava.library.path=$MATLABROOT/bin/glnxa64 -cp $MATLABROOT/extern/engines/java/jar/engine.jar:$MATLABROOT/java/jar/jmi.jar:/home/thomas/github/matlab-langserver/build/libs/lsp-matlab-0.1.jar org.tokor.lspmatlab.Application'</span>],
|
\ <span class="org-string">'matlab'</span>: [<span class="org-string">'java'</span>, <span class="org-string">' -Djava.library.path=$MATLABROOT/bin/glnxa64 -cp $MATLABROOT/extern/engines/java/jar/engine.jar:$MATLABROOT/java/jar/jmi.jar:/home/thomas/github/matlab-langserver/build/libs/lsp-matlab-0.1.jar org.tokor.lspmatlab.Application'</span>],
|
||||||
@ -1123,9 +1153,9 @@ endfunc
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org25fa39c" class="outline-3">
|
<div id="outline-container-org530c33b" class="outline-3">
|
||||||
<h3 id="org25fa39c">JamshedVesuna/vim-markdown-preview</h3>
|
<h3 id="org530c33b"><code>JamshedVesuna/vim-markdown-preview</code></h3>
|
||||||
<div class="outline-text-3" id="text-org25fa39c">
|
<div class="outline-text-3" id="text-org530c33b">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-vimrc"><span class="org-vimrc-command">let</span> <span class="org-variable-name">vim_markdown_preview_github</span><span class="org-constant">=</span><span class="org-vimrc-number">1</span>
|
<pre class="src src-vimrc"><span class="org-vimrc-command">let</span> <span class="org-variable-name">vim_markdown_preview_github</span><span class="org-constant">=</span><span class="org-vimrc-number">1</span>
|
||||||
<span class="org-vimrc-command">let</span> <span class="org-variable-name">vim_markdown_preview_browser</span><span class="org-constant">=</span><span class="org-string">'Google Chrome'</span>
|
<span class="org-vimrc-command">let</span> <span class="org-variable-name">vim_markdown_preview_browser</span><span class="org-constant">=</span><span class="org-string">'Google Chrome'</span>
|
||||||
@ -1136,9 +1166,9 @@ endfunc
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orge00dc6f" class="outline-3">
|
<div id="outline-container-orgf435b47" class="outline-3">
|
||||||
<h3 id="orge00dc6f">mhinz/vim-signify</h3>
|
<h3 id="orgf435b47"><code>mhinz/vim-signify</code></h3>
|
||||||
<div class="outline-text-3" id="text-orge00dc6f">
|
<div class="outline-text-3" id="text-orgf435b47">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-vimrc"><span class="org-vimrc-command">let</span> <span class="org-variable-name">g:signify_vcs_list</span> <span class="org-constant">=</span> [<span class="org-string">'git'</span>]
|
<pre class="src src-vimrc"><span class="org-vimrc-command">let</span> <span class="org-variable-name">g:signify_vcs_list</span> <span class="org-constant">=</span> [<span class="org-string">'git'</span>]
|
||||||
|
|
||||||
@ -1148,9 +1178,9 @@ endfunc
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org63386bc" class="outline-3">
|
<div id="outline-container-org96e8776" class="outline-3">
|
||||||
<h3 id="org63386bc">Deoplete</h3>
|
<h3 id="org96e8776"><code>Deoplete</code></h3>
|
||||||
<div class="outline-text-3" id="text-org63386bc">
|
<div class="outline-text-3" id="text-org96e8776">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-vimrc"><span class="org-vimrc-command">let</span> <span class="org-variable-name">g:deoplete#enable_at_startup</span> <span class="org-constant">=</span> <span class="org-highlight-numbers-number">1</span>
|
<pre class="src src-vimrc"><span class="org-vimrc-command">let</span> <span class="org-variable-name">g:deoplete#enable_at_startup</span> <span class="org-constant">=</span> <span class="org-highlight-numbers-number">1</span>
|
||||||
|
|
||||||
@ -1164,9 +1194,9 @@ endfunc
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orga9a5852" class="outline-3">
|
<div id="outline-container-orgacfd5d8" class="outline-3">
|
||||||
<h3 id="orga9a5852">SirVer/ultisnips</h3>
|
<h3 id="orgacfd5d8"><code>SirVer/ultisnips</code></h3>
|
||||||
<div class="outline-text-3" id="text-orga9a5852">
|
<div class="outline-text-3" id="text-orgacfd5d8">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-vimrc"><span class="org-vimrc-command">let</span> <span class="org-variable-name">g:UltiSnipsSnippetsDir</span> <span class="org-constant">=</span> <span class="org-string">'~/.vim/UltiSnip'</span>
|
<pre class="src src-vimrc"><span class="org-vimrc-command">let</span> <span class="org-variable-name">g:UltiSnipsSnippetsDir</span> <span class="org-constant">=</span> <span class="org-string">'~/.vim/UltiSnip'</span>
|
||||||
|
|
||||||
@ -1179,9 +1209,9 @@ endfunc
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orga1fd137" class="outline-3">
|
<div id="outline-container-org792637b" class="outline-3">
|
||||||
<h3 id="orga1fd137">honza/vim-snippets</h3>
|
<h3 id="org792637b"><code>honza/vim-snippets</code></h3>
|
||||||
<div class="outline-text-3" id="text-orga1fd137">
|
<div class="outline-text-3" id="text-org792637b">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-vimrc"><span class="org-vimrc-command">let</span> <span class="org-variable-name">g:snipMate</span> <span class="org-constant">=</span> {}
|
<pre class="src src-vimrc"><span class="org-vimrc-command">let</span> <span class="org-variable-name">g:snipMate</span> <span class="org-constant">=</span> {}
|
||||||
<span class="org-vimrc-command">let</span> <span class="org-variable-name">g:snipMate</span><span class="org-constant">.</span>scope_aliases <span class="org-constant">=</span> {}
|
<span class="org-vimrc-command">let</span> <span class="org-variable-name">g:snipMate</span><span class="org-constant">.</span>scope_aliases <span class="org-constant">=</span> {}
|
||||||
@ -1190,9 +1220,9 @@ endfunc
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org3fd4af9" class="outline-3">
|
<div id="outline-container-org8bc27ac" class="outline-3">
|
||||||
<h3 id="org3fd4af9">itchyny/lightline.vim</h3>
|
<h3 id="org8bc27ac"><code>itchyny/lightline.vim</code></h3>
|
||||||
<div class="outline-text-3" id="text-org3fd4af9">
|
<div class="outline-text-3" id="text-org8bc27ac">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-vimrc"><span class="org-vimrc-command">function</span><span class="org-constant">!</span> <span class="org-function-name">LightlineObsession</span>()
|
<pre class="src src-vimrc"><span class="org-vimrc-command">function</span><span class="org-constant">!</span> <span class="org-function-name">LightlineObsession</span>()
|
||||||
<span class="org-vimrc-command">return</span> <span class="org-string">'%{ObsessionStatus("")}'</span>
|
<span class="org-vimrc-command">return</span> <span class="org-string">'%{ObsessionStatus("")}'</span>
|
||||||
@ -1222,9 +1252,9 @@ endfunc
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orga89494b" class="outline-3">
|
<div id="outline-container-orgeeb846d" class="outline-3">
|
||||||
<h3 id="orga89494b">Autopairs</h3>
|
<h3 id="orgeeb846d"><code>Autopairs</code></h3>
|
||||||
<div class="outline-text-3" id="text-orga89494b">
|
<div class="outline-text-3" id="text-orgeeb846d">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-vimrc"><span class="org-comment">" Incompatibilité entre auto-pairs et clang-complete</span>
|
<pre class="src src-vimrc"><span class="org-comment">" Incompatibilité entre auto-pairs et clang-complete</span>
|
||||||
<span class="org-vimrc-command">let</span> <span class="org-variable-name">g:AutoPairsMapCR</span> <span class="org-constant">=</span> <span class="org-highlight-numbers-number">0</span>
|
<span class="org-vimrc-command">let</span> <span class="org-variable-name">g:AutoPairsMapCR</span> <span class="org-constant">=</span> <span class="org-highlight-numbers-number">0</span>
|
||||||
@ -1234,9 +1264,9 @@ endfunc
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgd049e76" class="outline-3">
|
<div id="outline-container-orgec97ba8" class="outline-3">
|
||||||
<h3 id="orgd049e76">Yggdroot/indentLine</h3>
|
<h3 id="orgec97ba8"><code>Yggdroot/indentLine</code></h3>
|
||||||
<div class="outline-text-3" id="text-orgd049e76">
|
<div class="outline-text-3" id="text-orgec97ba8">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-vimrc"><span class="org-comment">" :IndentLinesToggle toggles lines on and off.</span>
|
<pre class="src src-vimrc"><span class="org-comment">" :IndentLinesToggle toggles lines on and off.</span>
|
||||||
<span class="org-vimrc-command">let</span> <span class="org-variable-name">g:indentLine_color_term</span> <span class="org-constant">=</span> <span class="org-highlight-numbers-number">239</span>
|
<span class="org-vimrc-command">let</span> <span class="org-variable-name">g:indentLine_color_term</span> <span class="org-constant">=</span> <span class="org-highlight-numbers-number">239</span>
|
||||||
@ -1245,9 +1275,9 @@ endfunc
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org9475dd3" class="outline-3">
|
<div id="outline-container-orgb950c54" class="outline-3">
|
||||||
<h3 id="org9475dd3">ryanoasis/vim-devicons</h3>
|
<h3 id="orgb950c54"><code>ryanoasis/vim-devicons</code></h3>
|
||||||
<div class="outline-text-3" id="text-org9475dd3">
|
<div class="outline-text-3" id="text-orgb950c54">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-vimrc"><span class="org-vimrc-command">let</span> <span class="org-variable-name">g:webdevicons_enable_ctrlp</span> <span class="org-constant">=</span> <span class="org-highlight-numbers-number">1</span>
|
<pre class="src src-vimrc"><span class="org-vimrc-command">let</span> <span class="org-variable-name">g:webdevicons_enable_ctrlp</span> <span class="org-constant">=</span> <span class="org-highlight-numbers-number">1</span>
|
||||||
</pre>
|
</pre>
|
||||||
@ -1255,9 +1285,9 @@ endfunc
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org3776a9d" class="outline-3">
|
<div id="outline-container-org58545fe" class="outline-3">
|
||||||
<h3 id="org3776a9d">junegunn/goyo.vim</h3>
|
<h3 id="org58545fe"><code>junegunn/goyo.vim</code></h3>
|
||||||
<div class="outline-text-3" id="text-org3776a9d">
|
<div class="outline-text-3" id="text-org58545fe">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-vimrc"><span class="org-vimrc-command">let</span> <span class="org-variable-name">g:goyo_width</span><span class="org-constant">=</span><span class="org-vimrc-number">100</span>
|
<pre class="src src-vimrc"><span class="org-vimrc-command">let</span> <span class="org-variable-name">g:goyo_width</span><span class="org-constant">=</span><span class="org-vimrc-number">100</span>
|
||||||
<span class="org-vimrc-command">let</span> <span class="org-variable-name">g:goyo_margin_top</span> <span class="org-constant">=</span> <span class="org-highlight-numbers-number">2</span>
|
<span class="org-vimrc-command">let</span> <span class="org-variable-name">g:goyo_margin_top</span> <span class="org-constant">=</span> <span class="org-highlight-numbers-number">2</span>
|
||||||
@ -1302,9 +1332,9 @@ Quit Vim if this is the only remaining buffer
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgc1ea9c9" class="outline-3">
|
<div id="outline-container-orgc2ae68e" class="outline-3">
|
||||||
<h3 id="orgc1ea9c9">tpope/vim-surround</h3>
|
<h3 id="orgc2ae68e"><code>tpope/vim-surround</code></h3>
|
||||||
<div class="outline-text-3" id="text-orgc1ea9c9">
|
<div class="outline-text-3" id="text-orgc2ae68e">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-vimrc"><span class="org-vimrc-command">vmap</span> Si <span class="org-function-name">S</span>(i_<span class="org-constant"><</span>esc<span class="org-constant">></span><span class="org-vimrc-command">f</span>)
|
<pre class="src src-vimrc"><span class="org-vimrc-command">vmap</span> Si <span class="org-function-name">S</span>(i_<span class="org-constant"><</span>esc<span class="org-constant">></span><span class="org-vimrc-command">f</span>)
|
||||||
<span class="org-vimrc-command">au</span> FileType mako <span class="org-vimrc-command">vmap</span> Si S<span class="org-comment">"i${ _(<esc>2f"a) }<esc></span>
|
<span class="org-vimrc-command">au</span> FileType mako <span class="org-vimrc-command">vmap</span> Si S<span class="org-comment">"i${ _(<esc>2f"a) }<esc></span>
|
||||||
@ -1315,9 +1345,9 @@ Quit Vim if this is the only remaining buffer
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org7cc5f39" class="outline-3">
|
<div id="outline-container-org48c6403" class="outline-3">
|
||||||
<h3 id="org7cc5f39">Vim-Markdown</h3>
|
<h3 id="org48c6403"><code>Vim-Markdown</code></h3>
|
||||||
<div class="outline-text-3" id="text-org7cc5f39">
|
<div class="outline-text-3" id="text-org48c6403">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-vimrc"><span class="org-vimrc-command">let</span> <span class="org-variable-name">g:vim_markdown_folding_disabled</span> <span class="org-constant">=</span> <span class="org-highlight-numbers-number">1</span>
|
<pre class="src src-vimrc"><span class="org-vimrc-command">let</span> <span class="org-variable-name">g:vim_markdown_folding_disabled</span> <span class="org-constant">=</span> <span class="org-highlight-numbers-number">1</span>
|
||||||
<span class="org-vimrc-command">let</span> <span class="org-variable-name">g:vim_markdown_conceal</span> <span class="org-constant">=</span> <span class="org-highlight-numbers-number">0</span>
|
<span class="org-vimrc-command">let</span> <span class="org-variable-name">g:vim_markdown_conceal</span> <span class="org-constant">=</span> <span class="org-highlight-numbers-number">0</span>
|
||||||
@ -1330,9 +1360,9 @@ Quit Vim if this is the only remaining buffer
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org2fde55c" class="outline-3">
|
<div id="outline-container-org6e96121" class="outline-3">
|
||||||
<h3 id="org2fde55c">Neomake</h3>
|
<h3 id="org6e96121"><code>Neomake</code></h3>
|
||||||
<div class="outline-text-3" id="text-org2fde55c">
|
<div class="outline-text-3" id="text-org6e96121">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-vimrc"><span class="org-comment">" Latex</span>
|
<pre class="src src-vimrc"><span class="org-comment">" Latex</span>
|
||||||
<span class="org-vimrc-command">autocmd</span><span class="org-constant">!</span> BufWritePost *<span class="org-constant">.</span>tex Neomake
|
<span class="org-vimrc-command">autocmd</span><span class="org-constant">!</span> BufWritePost *<span class="org-constant">.</span>tex Neomake
|
||||||
@ -1364,9 +1394,9 @@ Quit Vim if this is the only remaining buffer
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgf6f402a" class="outline-3">
|
<div id="outline-container-org52ec1d5" class="outline-3">
|
||||||
<h3 id="orgf6f402a">lervag/vimtex</h3>
|
<h3 id="org52ec1d5"><code>lervag/vimtex</code></h3>
|
||||||
<div class="outline-text-3" id="text-orgf6f402a">
|
<div class="outline-text-3" id="text-org52ec1d5">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-vimrc"><span class="org-comment">" let g:tex_conceal=""</span>
|
<pre class="src src-vimrc"><span class="org-comment">" let g:tex_conceal=""</span>
|
||||||
<span class="org-comment">" autocmd FileType tex let b:vimtex_main = 'main.tex'</span>
|
<span class="org-comment">" autocmd FileType tex let b:vimtex_main = 'main.tex'</span>
|
||||||
@ -1376,9 +1406,9 @@ Quit Vim if this is the only remaining buffer
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org53ca775" class="outline-3">
|
<div id="outline-container-org9b37457" class="outline-3">
|
||||||
<h3 id="org53ca775">jpalardy/vim-slime</h3>
|
<h3 id="org9b37457"><code>jpalardy/vim-slime</code></h3>
|
||||||
<div class="outline-text-3" id="text-org53ca775">
|
<div class="outline-text-3" id="text-org9b37457">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-vimrc"><span class="org-vimrc-command">if</span> <span class="org-function-name">exists</span>(<span class="org-string">'$TMUX'</span>)
|
<pre class="src src-vimrc"><span class="org-vimrc-command">if</span> <span class="org-function-name">exists</span>(<span class="org-string">'$TMUX'</span>)
|
||||||
<span class="org-vimrc-command">let</span> <span class="org-variable-name">g:slime_target</span> <span class="org-constant">=</span> <span class="org-comment">"tmux"</span>
|
<span class="org-vimrc-command">let</span> <span class="org-variable-name">g:slime_target</span> <span class="org-constant">=</span> <span class="org-comment">"tmux"</span>
|
||||||
@ -1390,9 +1420,9 @@ Quit Vim if this is the only remaining buffer
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org4c92519" class="outline-3">
|
<div id="outline-container-orga920649" class="outline-3">
|
||||||
<h3 id="org4c92519">mhinz/vim-grepper</h3>
|
<h3 id="orga920649"><code>mhinz/vim-grepper</code></h3>
|
||||||
<div class="outline-text-3" id="text-org4c92519">
|
<div class="outline-text-3" id="text-orga920649">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-vimrc"><span class="org-comment">" nnoremap <leader>G :Grepper -tool ag<cr></span>
|
<pre class="src src-vimrc"><span class="org-comment">" nnoremap <leader>G :Grepper -tool ag<cr></span>
|
||||||
<span class="org-comment">" nmap gs <plug>(GrepperOperator)</span>
|
<span class="org-comment">" nmap gs <plug>(GrepperOperator)</span>
|
||||||
@ -1418,9 +1448,9 @@ Quit Vim if this is the only remaining buffer
|
|||||||
<h2 id="org492ddcb">Bindings</h2>
|
<h2 id="org492ddcb">Bindings</h2>
|
||||||
<div class="outline-text-2" id="text-org492ddcb">
|
<div class="outline-text-2" id="text-org492ddcb">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org135a723" class="outline-3">
|
<div id="outline-container-org804ac1a" class="outline-3">
|
||||||
<h3 id="org135a723">Vim Which Key</h3>
|
<h3 id="org804ac1a">Vim Which Key</h3>
|
||||||
<div class="outline-text-3" id="text-org135a723">
|
<div class="outline-text-3" id="text-org804ac1a">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-vimrc"><span class="org-vimrc-command">nnoremap</span> <span class="org-constant"><</span><span class="org-vimrc-command">silent</span><span class="org-constant">></span> <span class="org-constant"><</span>leader<span class="org-constant">></span> :WhichKey <span class="org-string">'<Space>'</span><span class="org-constant"><</span><span class="org-vimrc-command">cr</span><span class="org-constant">></span>
|
<pre class="src src-vimrc"><span class="org-vimrc-command">nnoremap</span> <span class="org-constant"><</span><span class="org-vimrc-command">silent</span><span class="org-constant">></span> <span class="org-constant"><</span>leader<span class="org-constant">></span> :WhichKey <span class="org-string">'<Space>'</span><span class="org-constant"><</span><span class="org-vimrc-command">cr</span><span class="org-constant">></span>
|
||||||
|
|
||||||
@ -2013,9 +2043,9 @@ endfun
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgf9610f4" class="outline-3">
|
<div id="outline-container-orgf40e93e" class="outline-3">
|
||||||
<h3 id="orgf9610f4">Save Which Key Configuration</h3>
|
<h3 id="orgf40e93e">Save Which Key Configuration</h3>
|
||||||
<div class="outline-text-3" id="text-orgf9610f4">
|
<div class="outline-text-3" id="text-orgf40e93e">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-vimrc"><span class="org-vimrc-command">call</span> which_key#<span class="org-function-name">register</span>(<span class="org-string">'<Space>'</span>, <span class="org-comment">"g:which_key_map")</span>
|
<pre class="src src-vimrc"><span class="org-vimrc-command">call</span> which_key#<span class="org-function-name">register</span>(<span class="org-string">'<Space>'</span>, <span class="org-comment">"g:which_key_map")</span>
|
||||||
</pre>
|
</pre>
|
||||||
@ -2026,7 +2056,7 @@ endfun
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: Dehaeze Thomas</p>
|
<p class="author">Author: Dehaeze Thomas</p>
|
||||||
<p class="date">Created: 2021-04-25 dim. 19:10</p>
|
<p class="date">Created: 2021-10-25 lun. 14:33</p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -3,11 +3,11 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2021-01-08 ven. 01:43 -->
|
<!-- 2021-10-25 lun. 14:33 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<title>Windows Config and Install</title>
|
<title>Windows Config and Install</title>
|
||||||
<meta name="generator" content="Org mode" />
|
|
||||||
<meta name="author" content="Dehaeze Thomas" />
|
<meta name="author" content="Dehaeze Thomas" />
|
||||||
|
<meta name="generator" content="Org Mode" />
|
||||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||||
<script type="text/javascript" src="./dist/script.js"></script>
|
<script type="text/javascript" src="./dist/script.js"></script>
|
||||||
</head>
|
</head>
|
||||||
@ -16,20 +16,20 @@
|
|||||||
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="h" href="./index.html"> UP </a>
|
||||||
|
|
|
|
||||||
<a accesskey="H" href="./index.html"> HOME </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
|
||||||
</div><div id="content">
|
</div><div id="content" class="content">
|
||||||
<h1 class="title">Windows Config and Install</h1>
|
<h1 class="title">Windows Config and Install</h1>
|
||||||
<div id="table-of-contents">
|
<div id="table-of-contents" role="doc-toc">
|
||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents" role="doc-toc">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org9346dc9">Create a bootable USB Key</a></li>
|
<li><a href="#org9346dc9">Create a bootable USB Key</a></li>
|
||||||
<li><a href="#org0143940">Install Windows10 PRO</a></li>
|
<li><a href="#org0143940">Install Windows10 PRO</a></li>
|
||||||
<li><a href="#org0cc05f7">Install Software using Chocolatey</a></li>
|
<li><a href="#org0cc05f7">Install Software using Chocolatey</a></li>
|
||||||
<li><a href="#org0a94edb">Debloat windows10</a></li>
|
<li><a href="#org0a94edb">Debloat windows10</a></li>
|
||||||
<li><a href="#org432cd75">SSHFS</a>
|
<li><a href="#org9192414">SSHFS</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org46e6091">SSH Setup</a></li>
|
<li><a href="#org46e6091">SSH Setup</a></li>
|
||||||
<li><a href="#orgb2e9259">SSHFS</a></li>
|
<li><a href="#org432cd75">SSHFS</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgb8446e0">Software Setup</a>
|
<li><a href="#orgb8446e0">Software Setup</a>
|
||||||
@ -103,9 +103,9 @@ Run a PowerShell with administrative rights and run:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org432cd75" class="outline-2">
|
<div id="outline-container-org9192414" class="outline-2">
|
||||||
<h2 id="org432cd75">SSHFS</h2>
|
<h2 id="org9192414">SSHFS</h2>
|
||||||
<div class="outline-text-2" id="text-org432cd75">
|
<div class="outline-text-2" id="text-org9192414">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org46e6091" class="outline-3">
|
<div id="outline-container-org46e6091" class="outline-3">
|
||||||
<h3 id="org46e6091">SSH Setup</h3>
|
<h3 id="org46e6091">SSH Setup</h3>
|
||||||
@ -159,9 +159,9 @@ Finally, it should be possible to ssh to the server.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgb2e9259" class="outline-3">
|
<div id="outline-container-org432cd75" class="outline-3">
|
||||||
<h3 id="orgb2e9259">SSHFS</h3>
|
<h3 id="org432cd75">SSHFS</h3>
|
||||||
<div class="outline-text-3" id="text-orgb2e9259">
|
<div class="outline-text-3" id="text-org432cd75">
|
||||||
<p>
|
<p>
|
||||||
Install <a href="https://github.com/billziss-gh/sshfs-win">sshfs-win</a>.
|
Install <a href="https://github.com/billziss-gh/sshfs-win">sshfs-win</a>.
|
||||||
</p>
|
</p>
|
||||||
@ -178,7 +178,7 @@ Run the <code>Registry Editor</code>, and find <code>Computer\HKEY_LOCAL_MACHINE
|
|||||||
Then, to mount the network drive using <code>sshfs</code>:
|
Then, to mount the network drive using <code>sshfs</code>:
|
||||||
</p>
|
</p>
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-bash">net use X: <span class="org-string">\\</span>sshfs.kr\thomas@192.168.1.150\srv\storage /persistent:yes
|
<pre class="src src-bash">net use X: <span class="org-string">\\</span>sshfs.kr\thomas@192.168.1.21\srv\storage /persistent:yes
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -226,7 +226,7 @@ Then, Syncthing can be accessed with: <a href="http://localhost:8384/">http://lo
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: Dehaeze Thomas</p>
|
<p class="author">Author: Dehaeze Thomas</p>
|
||||||
<p class="date">Created: 2021-01-08 ven. 01:43</p>
|
<p class="date">Created: 2021-10-25 lun. 14:33</p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2021-04-25 dim. 19:10 -->
|
<!-- 2021-06-20 dim. 14:22 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<title>Configuration Files related to Xorg</title>
|
<title>Configuration Files related to Xorg</title>
|
||||||
<meta name="author" content="Dehaeze Thomas" />
|
<meta name="author" content="Dehaeze Thomas" />
|
||||||
@ -555,7 +555,7 @@ Finally, run SXHKD for the key bindings:
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: Dehaeze Thomas</p>
|
<p class="author">Author: Dehaeze Thomas</p>
|
||||||
<p class="date">Created: 2021-04-25 dim. 19:10</p>
|
<p class="date">Created: 2021-06-20 dim. 14:22</p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -3,11 +3,11 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2021-02-10 mer. 17:57 -->
|
<!-- 2021-06-20 dim. 14:22 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<title>Zathura</title>
|
<title>Zathura</title>
|
||||||
<meta name="generator" content="Org mode" />
|
|
||||||
<meta name="author" content="Dehaeze Thomas" />
|
<meta name="author" content="Dehaeze Thomas" />
|
||||||
|
<meta name="generator" content="Org Mode" />
|
||||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||||
<script type="text/javascript" src="./dist/script.js"></script>
|
<script type="text/javascript" src="./dist/script.js"></script>
|
||||||
</head>
|
</head>
|
||||||
@ -144,9 +144,9 @@ set recolor-keephue <span class="org-string">"false"</span>
|
|||||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Ideally would get the page from Zathura...</span>
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Ideally would get the page from Zathura...</span>
|
||||||
<span class="org-variable-name">pagenum</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">rofi</span> -dmenu -p <span class="org-string">"Page Number"</span><span class="org-rainbow-delimiters-depth-1">)</span>
|
<span class="org-variable-name">pagenum</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">rofi</span> -dmenu -p <span class="org-string">"Page Number"</span><span class="org-rainbow-delimiters-depth-1">)</span>
|
||||||
|
|
||||||
pdftk $<span class="org-highlight-numbers-number">1</span> <span class="org-type">cat</span> $<span class="org-variable-name">pagenum</span> output $<span class="org-variable-name">tmpfile</span>.pdf && <span class="org-sh-escaped-newline">\</span>
|
pdftk <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> <span class="org-type">cat</span> $<span class="org-variable-name">pagenum</span> output <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">tmpfile</span></span><span class="org-string">.pdf"</span> && <span class="org-sh-escaped-newline">\</span>
|
||||||
pdf2svg $<span class="org-variable-name">tmpfile</span>.pdf $<span class="org-variable-name">tmpfile</span>.svg && <span class="org-sh-escaped-newline">\</span>
|
pdf2svg <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">tmpfile</span></span><span class="org-string">.pdf"</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">tmpfile</span></span><span class="org-string">.svg"</span> && <span class="org-sh-escaped-newline">\</span>
|
||||||
inkscape $<span class="org-variable-name">tmpfile</span>.svg
|
inkscape <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">tmpfile</span></span><span class="org-string">.svg"</span>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -155,7 +155,7 @@ pdftk $<span class="org-highlight-numbers-number">1</span> <span class="org-type
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: Dehaeze Thomas</p>
|
<p class="author">Author: Dehaeze Thomas</p>
|
||||||
<p class="date">Created: 2021-02-10 mer. 17:57</p>
|
<p class="date">Created: 2021-06-20 dim. 14:22</p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user