Update html pages

This commit is contained in:
Thomas Dehaeze 2020-03-22 23:04:07 +01:00
parent 41dfef471c
commit 0db8735eed
7 changed files with 1039 additions and 1081 deletions

View File

@ -4,7 +4,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>
<!-- 2020-03-19 jeu. 10:39 --> <!-- 2020-03-22 dim. 23:04 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Desktop file for the applications</title> <title>Desktop file for the applications</title>
@ -201,7 +201,30 @@
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script> <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script> <script type="text/javascript" src="./js/readtheorg.js"></script>
<script type="text/javascript"> <script type="text/javascript">
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later /*
@licstart The following is the entire license notice for the
JavaScript code in this tag.
Copyright (C) 2012-2020 Free Software Foundation, Inc.
The JavaScript code in this tag is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this tag.
*/
<!--/*--><![CDATA[/*><!--*/ <!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id) function CodeHighlightOn(elem, id)
{ {
@ -222,7 +245,6 @@
target.className = elem.cacheClassTarget; target.className = elem.cacheClassTarget;
} }
/*]]>*///--> /*]]>*///-->
// @license-end
</script> </script>
</head> </head>
<body> <body>
@ -449,7 +471,7 @@
</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: 2020-03-19 jeu. 10:39</p> <p class="date">Created: 2020-03-22 dim. 23:04</p>
</div> </div>
</body> </body>
</html> </html>

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,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>
<!-- 2020-03-01 dim. 22:50 --> <!-- 2020-03-22 dim. 23:04 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<title>I3 Configuration</title> <title>I3 Configuration</title>
@ -201,7 +201,30 @@
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script> <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script> <script type="text/javascript" src="./js/readtheorg.js"></script>
<script type="text/javascript"> <script type="text/javascript">
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later /*
@licstart The following is the entire license notice for the
JavaScript code in this tag.
Copyright (C) 2012-2020 Free Software Foundation, Inc.
The JavaScript code in this tag is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this tag.
*/
<!--/*--><![CDATA[/*><!--*/ <!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id) function CodeHighlightOn(elem, id)
{ {
@ -222,7 +245,6 @@
target.className = elem.cacheClassTarget; target.className = elem.cacheClassTarget;
} }
/*]]>*///--> /*]]>*///-->
// @license-end
</script> </script>
</head> </head>
<body> <body>
@ -465,6 +487,7 @@ set $ws8 <span class="org-highlight-numbers-number">8</span>
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Yad"</span>] floating enable <span class="org-variable-name">for_window [class</span>=<span class="org-string">"Yad"</span>] floating enable
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"Bluetooth Devices"</span>] floating enable <span class="org-variable-name">for_window [title</span>=<span class="org-string">"Bluetooth Devices"</span>] floating enable
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"Simulink Library Browser"</span>] floating enable <span class="org-variable-name">for_window [title</span>=<span class="org-string">"Simulink Library Browser"</span>] floating enable
<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>
</pre> </pre>
</div> </div>
</div> </div>
@ -506,7 +529,7 @@ exec --no-startup-id $HOME/.config/polybar/scripts/launch.sh
</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: 2020-03-01 dim. 22:50</p> <p class="date">Created: 2020-03-22 dim. 23:04</p>
</div> </div>
</body> </body>
</html> </html>

View File

@ -4,7 +4,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>
<!-- 2020-03-19 jeu. 10:38 --> <!-- 2020-03-22 dim. 23:03 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Mail Configuration</title> <title>Mail Configuration</title>
@ -201,7 +201,30 @@
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script> <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script> <script type="text/javascript" src="./js/readtheorg.js"></script>
<script type="text/javascript"> <script type="text/javascript">
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later /*
@licstart The following is the entire license notice for the
JavaScript code in this tag.
Copyright (C) 2012-2020 Free Software Foundation, Inc.
The JavaScript code in this tag is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this tag.
*/
<!--/*--><![CDATA[/*><!--*/ <!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id) function CodeHighlightOn(elem, id)
{ {
@ -222,7 +245,6 @@
target.className = elem.cacheClassTarget; target.className = elem.cacheClassTarget;
} }
/*]]>*///--> /*]]>*///-->
// @license-end
</script> </script>
</head> </head>
<body> <body>
@ -239,8 +261,8 @@
<li><a href="#org2ca5a33">Synchronize Mailboxes - Mbsync</a> <li><a href="#org2ca5a33">Synchronize Mailboxes - Mbsync</a>
<ul> <ul>
<li><a href="#org3afb8bb">Global Defaults</a></li> <li><a href="#org3afb8bb">Global Defaults</a></li>
<li><a href="#org5827a09">Gmail Account</a></li> <li><a href="#orga97ff5e">Gmail Account</a></li>
<li><a href="#org88aa54d">ESRF Account</a></li> <li><a href="#org1257318">ESRF Account</a></li>
<li><a href="#org759800a">ULG Student Account</a></li> <li><a href="#org759800a">ULG Student Account</a></li>
<li><a href="#orgb0ed5cf">ULG Personal Account</a></li> <li><a href="#orgb0ed5cf">ULG Personal Account</a></li>
</ul> </ul>
@ -248,35 +270,35 @@
<li><a href="#org672ae70">Send Mails - Msmtp</a> <li><a href="#org672ae70">Send Mails - Msmtp</a>
<ul> <ul>
<li><a href="#org9620340">Defaults</a></li> <li><a href="#org9620340">Defaults</a></li>
<li><a href="#orga97ff5e">Gmail Account</a></li> <li><a href="#orgbda4030">Gmail Account</a></li>
<li><a href="#org1257318">ESRF Account</a></li> <li><a href="#org57deb6d">ESRF Account</a></li>
<li><a href="#org0bb0cef">ULG Account</a></li> <li><a href="#org0bb0cef">ULG Account</a></li>
<li><a href="#org06e99f4">ULIEGE Account</a></li> <li><a href="#org06e99f4">ULIEGE Account</a></li>
<li><a href="#org7b20d0c">Default Account</a></li> <li><a href="#org7b20d0c">Default Account</a></li>
</ul> </ul>
</li> </li>
<li><a href="#org8e85c4d"><span class="todo TODO">TODO</span> Mail Indexer - Mu</a></li> <li><a href="#org8e85c4d">Mail Indexer - Mu</a></li>
<li><a href="#orgc7467fd">Mail Client - NeoMutt</a> <li><a href="#orgc7467fd">Mail Client - NeoMutt</a>
<ul> <ul>
<li><a href="#org8133ca9">Bindings</a> <li><a href="#org8133ca9">Bindings</a>
<ul> <ul>
<li><a href="#org12a205c">Unding all the key bindings</a></li> <li><a href="#org12a205c">Unding all the key bindings</a></li>
<li><a href="#org33de0ba">Quit Neomutt</a></li> <li><a href="#org33de0ba">Quit Neomutt</a></li>
<li><a href="#org6dcc999">Generic</a></li> <li><a href="#org9ba3d55">Generic</a></li>
<li><a href="#org39630e2">Index and Pager</a></li> <li><a href="#org39630e2">Index and Pager</a></li>
<li><a href="#orgc73598b">Limit</a></li> <li><a href="#orgc73598b">Limit</a></li>
<li><a href="#orge5e6fdf">Search</a></li> <li><a href="#orge5e6fdf">Search</a></li>
<li><a href="#org85c9b0e">Attachments</a></li> <li><a href="#orgf73a3fa">Attachments</a></li>
<li><a href="#org6b5b778">Compose</a> <li><a href="#org6b5b778">Compose</a>
<ul> <ul>
<li><a href="#org7848e3c">Attach with Ranger Script</a></li> <li><a href="#org7848e3c">Attach with Ranger Script</a></li>
<li><a href="#org147e13d"><span class="todo TODO">TODO</span> Send HTML mails using Markdown</a></li> <li><a href="#org147e13d">Send HTML mails using Markdown</a></li>
</ul> </ul>
</li> </li>
<li><a href="#orga459fea">Browser</a></li> <li><a href="#orga459fea">Browser</a></li>
<li><a href="#org9ba3d55">Generic</a></li> <li><a href="#org6d1494c">Generic</a></li>
<li><a href="#org81e57df">Copy and move mails</a></li> <li><a href="#org81e57df">Copy and move mails</a></li>
<li><a href="#org62b51ff">Sidebar</a></li> <li><a href="#org1932502">Sidebar</a></li>
<li><a href="#orgcbcfabe">Reload Configuration</a></li> <li><a href="#orgcbcfabe">Reload Configuration</a></li>
<li><a href="#org62625e7">urlview - Open URL in emails</a></li> <li><a href="#org62625e7">urlview - Open URL in emails</a></li>
<li><a href="#org2c7bcf7">Searching using Mu</a></li> <li><a href="#org2c7bcf7">Searching using Mu</a></li>
@ -291,9 +313,9 @@
<ul> <ul>
<li><a href="#org4a8185b">Basic colors</a></li> <li><a href="#org4a8185b">Basic colors</a></li>
<li><a href="#org376f35d">Index</a></li> <li><a href="#org376f35d">Index</a></li>
<li><a href="#org0aeb69d">Sidebar</a></li> <li><a href="#org379a51a">Sidebar</a></li>
<li><a href="#orge423775">Message headers</a></li> <li><a href="#orge423775">Message headers</a></li>
<li><a href="#org760f989">Attachments</a></li> <li><a href="#org691f70d">Attachments</a></li>
<li><a href="#orgb4d93d5">Body</a></li> <li><a href="#orgb4d93d5">Body</a></li>
<li><a href="#org07b1c9d">PGP</a></li> <li><a href="#org07b1c9d">PGP</a></li>
<li><a href="#org4f061d9">Urls</a></li> <li><a href="#org4f061d9">Urls</a></li>
@ -307,26 +329,26 @@
<ul> <ul>
<li><a href="#orgbd57e22">Gmail</a> <li><a href="#orgbd57e22">Gmail</a>
<ul> <ul>
<li><a href="#org9ff5751">Configuration</a></li> <li><a href="#orgf9a4836">Configuration</a></li>
<li><a href="#orgd91b6d6">Signature</a></li> <li><a href="#org39fb206">Signature</a></li>
</ul> </ul>
</li> </li>
<li><a href="#orgc13752f">ESRF</a> <li><a href="#orgc13752f">ESRF</a>
<ul> <ul>
<li><a href="#org1102d16">Configuration</a></li> <li><a href="#orgf1c5d9f">Configuration</a></li>
<li><a href="#orgbe885a0">Signature</a></li> <li><a href="#org8838dc8">Signature</a></li>
</ul> </ul>
</li> </li>
<li><a href="#orgd5fd652">ULG</a> <li><a href="#orgd5fd652">ULG</a>
<ul> <ul>
<li><a href="#org2049446">Configuration</a></li> <li><a href="#orgacecf55">Configuration</a></li>
<li><a href="#orgfd51415">Signature</a></li> <li><a href="#orgc9677cf">Signature</a></li>
</ul> </ul>
</li> </li>
<li><a href="#orgc6c55ac">ULIEGE</a> <li><a href="#orgc6c55ac">ULIEGE</a>
<ul> <ul>
<li><a href="#orgf9a4836">Configuration</a></li> <li><a href="#org647fde0">Configuration</a></li>
<li><a href="#org39fb206">Signature</a></li> <li><a href="#orge0c1cfa">Signature</a></li>
</ul> </ul>
</li> </li>
</ul> </ul>
@ -341,13 +363,13 @@
<li><a href="#orge1d1147">Headers</a></li> <li><a href="#orge1d1147">Headers</a></li>
</ul> </ul>
</li> </li>
<li><a href="#org1932502">Sidebar</a> <li><a href="#org4e69538">Sidebar</a>
<ul> <ul>
<li><a href="#org953ed4c">General Config</a></li> <li><a href="#org953ed4c">General Config</a></li>
<li><a href="#org61e4389">Mailboxes to show in the sidebar.</a></li> <li><a href="#org61e4389">Mailboxes to show in the sidebar.</a></li>
</ul> </ul>
</li> </li>
<li><a href="#orgf73a3fa">Attachments</a> <li><a href="#org2a4b061">Attachments</a>
<ul> <ul>
<li><a href="#org39c5999">Attachment View Options</a></li> <li><a href="#org39c5999">Attachment View Options</a></li>
<li><a href="#org7a51e1d">Open Attachment</a></li> <li><a href="#org7a51e1d">Open Attachment</a></li>
@ -392,9 +414,9 @@ Expunge Both
</div> </div>
</div> </div>
<div id="outline-container-org5827a09" class="outline-3"> <div id="outline-container-orga97ff5e" class="outline-3">
<h3 id="org5827a09">Gmail Account</h3> <h3 id="orga97ff5e">Gmail Account</h3>
<div class="outline-text-3" id="text-org5827a09"> <div class="outline-text-3" id="text-orga97ff5e">
<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
@ -469,9 +491,9 @@ Sync Pull
</div> </div>
</div> </div>
<div id="outline-container-org88aa54d" class="outline-3"> <div id="outline-container-org1257318" class="outline-3">
<h3 id="org88aa54d">ESRF Account</h3> <h3 id="org1257318">ESRF Account</h3>
<div class="outline-text-3" id="text-org88aa54d"> <div class="outline-text-3" id="text-org1257318">
<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
@ -686,9 +708,9 @@ tls_certcheck off
</div> </div>
</div> </div>
<div id="outline-container-orga97ff5e" class="outline-3"> <div id="outline-container-orgbda4030" class="outline-3">
<h3 id="orga97ff5e">Gmail Account</h3> <h3 id="orgbda4030">Gmail Account</h3>
<div class="outline-text-3" id="text-orga97ff5e"> <div class="outline-text-3" id="text-orgbda4030">
<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
@ -702,9 +724,9 @@ passwordeval <span class="org-string">"pass email/dehaeze.thomas@gmail.com"</spa
</div> </div>
</div> </div>
<div id="outline-container-org1257318" class="outline-3"> <div id="outline-container-org57deb6d" class="outline-3">
<h3 id="org1257318">ESRF Account</h3> <h3 id="org57deb6d">ESRF Account</h3>
<div class="outline-text-3" id="text-org1257318"> <div class="outline-text-3" id="text-org57deb6d">
<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
@ -765,12 +787,20 @@ passwordeval <span class="org-string">"pass email/tdehaeze@uliege.be"</span>
</div> </div>
<div id="outline-container-org8e85c4d" class="outline-2"> <div id="outline-container-org8e85c4d" class="outline-2">
<h2 id="org8e85c4d"><span class="todo TODO">TODO</span> Mail Indexer - Mu</h2> <h2 id="org8e85c4d">Mail Indexer - Mu</h2>
<div class="outline-text-2" id="text-org8e85c4d"> <div class="outline-text-2" id="text-org8e85c4d">
<p> <p>
<a href="http://www.djcbsoftware.nl/code/mu/">http://www.djcbsoftware.nl/code/mu/</a> <code>Mu</code> (<a href="https://github.com/djcb/mu">github</a>) it used as a &ldquo;maildir indexer/searcher&rdquo;.
<a href="http://www.djcbsoftware.nl/code/mu/cheatsheet.html">http://www.djcbsoftware.nl/code/mu/cheatsheet.html</a> Useful commands are described in the <a href="http://www.djcbsoftware.nl/code/mu/cheatsheet.html">Cheat-sheet</a>.
</p> </p>
<p>
For instance, to find mails with <code>pdf</code> attachments:
</p>
<div class="org-src-container">
<pre class="src src-bash">mu <span class="org-type">find</span> <span class="org-string">'mime:application/pdf'</span>
</pre>
</div>
</div> </div>
</div> </div>
@ -1079,9 +1109,9 @@ macro index q <span class="org-string">"&lt;shell-escape&gt;if [ $TMUX ]; then t
</div> </div>
</div> </div>
<div id="outline-container-org6dcc999" class="outline-4"> <div id="outline-container-org9ba3d55" class="outline-4">
<h4 id="org6dcc999">Generic</h4> <h4 id="org9ba3d55">Generic</h4>
<div class="outline-text-4" id="text-org6dcc999"> <div class="outline-text-4" id="text-org9ba3d55">
<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
@ -1245,9 +1275,9 @@ bind index,pager N search-opposite
</div> </div>
</div> </div>
<div id="outline-container-org85c9b0e" class="outline-4"> <div id="outline-container-orgf73a3fa" class="outline-4">
<h4 id="org85c9b0e">Attachments</h4> <h4 id="orgf73a3fa">Attachments</h4>
<div class="outline-text-4" id="text-org85c9b0e"> <div class="outline-text-4" id="text-orgf73a3fa">
<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
@ -1307,13 +1337,8 @@ Attach multiple files using ranger
</div> </div>
<div id="outline-container-org147e13d" class="outline-5"> <div id="outline-container-org147e13d" class="outline-5">
<h5 id="org147e13d"><span class="todo TODO">TODO</span> Send HTML mails using Markdown</h5> <h5 id="org147e13d">Send HTML mails using Markdown</h5>
<div class="outline-text-5" id="text-org147e13d"> <div class="outline-text-5" id="text-org147e13d">
<p>
<a href="https://unix.stackexchange.com/questions/108485/send-email-written-in-markdown-using-mutt/424162">https://unix.stackexchange.com/questions/108485/send-email-written-in-markdown-using-mutt/424162</a>
<a href="https://github.com/Roguelazer/muttdown">https://github.com/Roguelazer/muttdown</a>
</p>
<p> <p>
Write html emails using markdown Write html emails using markdown
</p> </p>
@ -1340,9 +1365,9 @@ bind browser q exit
</div> </div>
</div> </div>
<div id="outline-container-org9ba3d55" class="outline-4"> <div id="outline-container-org6d1494c" class="outline-4">
<h4 id="org9ba3d55">Generic</h4> <h4 id="org6d1494c">Generic</h4>
<div class="outline-text-4" id="text-org9ba3d55"> <div class="outline-text-4" id="text-org6d1494c">
<p> <p>
Enter Command Enter Command
</p> </p>
@ -1364,9 +1389,9 @@ macro index M <span class="org-string">"&lt;save-message&gt;?&lt;toggle-mailboxe
</div> </div>
</div> </div>
<div id="outline-container-org62b51ff" class="outline-4"> <div id="outline-container-org1932502" class="outline-4">
<h4 id="org62b51ff">Sidebar</h4> <h4 id="org1932502">Sidebar</h4>
<div class="outline-text-4" id="text-org62b51ff"> <div class="outline-text-4" id="text-org1932502">
<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
@ -1529,9 +1554,9 @@ color index brightcolor000 color001 <span class="org-string">"~v~(~D)"</span>
</div> </div>
</div> </div>
<div id="outline-container-org0aeb69d" class="outline-4"> <div id="outline-container-org379a51a" class="outline-4">
<h4 id="org0aeb69d">Sidebar</h4> <h4 id="org379a51a">Sidebar</h4>
<div class="outline-text-4" id="text-org0aeb69d"> <div class="outline-text-4" id="text-org379a51a">
<div class="org-src-container"> <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> <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_highlight color000 color003 <span class="org-comment-delimiter"># </span><span class="org-comment">Mailbox is highlighted</span>
@ -1554,9 +1579,9 @@ color header brightcolor004 color000 <span class="org-string">"^(Subject)"</
</div> </div>
</div> </div>
<div id="outline-container-org760f989" class="outline-4"> <div id="outline-container-org691f70d" class="outline-4">
<h4 id="org760f989">Attachments</h4> <h4 id="org691f70d">Attachments</h4>
<div class="outline-text-4" id="text-org760f989"> <div class="outline-text-4" id="text-org691f70d">
<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">Color if the attachment is autoviewed</span> <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> color attach_headers brightgreen default <span class="org-string">"Autoview"</span>
@ -1702,9 +1727,9 @@ macro index,pager gm <span class="org-string">"&lt;change-folder&gt;+gmail/Inbox
<h4 id="orgbd57e22">Gmail</h4> <h4 id="orgbd57e22">Gmail</h4>
<div class="outline-text-4" id="text-orgbd57e22"> <div class="outline-text-4" id="text-orgbd57e22">
</div> </div>
<div id="outline-container-org9ff5751" class="outline-5"> <div id="outline-container-orgf9a4836" class="outline-5">
<h5 id="org9ff5751">Configuration</h5> <h5 id="orgf9a4836">Configuration</h5>
<div class="outline-text-5" id="text-org9ff5751"> <div class="outline-text-5" id="text-orgf9a4836">
<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">"msmtp -a gmail"</span> <span class="org-variable-name">set sendmail</span> = <span class="org-string">"msmtp -a gmail"</span>
@ -1728,9 +1753,9 @@ macro index,pager D \
</div> </div>
</div> </div>
<div id="outline-container-orgd91b6d6" class="outline-5"> <div id="outline-container-org39fb206" class="outline-5">
<h5 id="orgd91b6d6">Signature</h5> <h5 id="org39fb206">Signature</h5>
<div class="outline-text-5" id="text-orgd91b6d6"> <div class="outline-text-5" id="text-org39fb206">
<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>
@ -1750,9 +1775,9 @@ This empty code block is used to add a new line after signature
<h4 id="orgc13752f">ESRF</h4> <h4 id="orgc13752f">ESRF</h4>
<div class="outline-text-4" id="text-orgc13752f"> <div class="outline-text-4" id="text-orgc13752f">
</div> </div>
<div id="outline-container-org1102d16" class="outline-5"> <div id="outline-container-orgf1c5d9f" class="outline-5">
<h5 id="org1102d16">Configuration</h5> <h5 id="orgf1c5d9f">Configuration</h5>
<div class="outline-text-5" id="text-org1102d16"> <div class="outline-text-5" id="text-orgf1c5d9f">
<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">"msmtp -a esrf"</span> <span class="org-variable-name">set sendmail</span> = <span class="org-string">"msmtp -a esrf"</span>
@ -1776,9 +1801,9 @@ macro index,pager D \
</div> </div>
</div> </div>
<div id="outline-container-orgbe885a0" class="outline-5"> <div id="outline-container-org8838dc8" class="outline-5">
<h5 id="orgbe885a0">Signature</h5> <h5 id="org8838dc8">Signature</h5>
<div class="outline-text-5" id="text-orgbe885a0"> <div class="outline-text-5" id="text-org8838dc8">
<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>
@ -1798,9 +1823,9 @@ This empty code block is used to add a new line after signature
<h4 id="orgd5fd652">ULG</h4> <h4 id="orgd5fd652">ULG</h4>
<div class="outline-text-4" id="text-orgd5fd652"> <div class="outline-text-4" id="text-orgd5fd652">
</div> </div>
<div id="outline-container-org2049446" class="outline-5"> <div id="outline-container-orgacecf55" class="outline-5">
<h5 id="org2049446">Configuration</h5> <h5 id="orgacecf55">Configuration</h5>
<div class="outline-text-5" id="text-org2049446"> <div class="outline-text-5" id="text-orgacecf55">
<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">"msmtp -a ulg"</span> <span class="org-variable-name">set sendmail</span> = <span class="org-string">"msmtp -a ulg"</span>
@ -1824,9 +1849,9 @@ macro index,pager D \
</div> </div>
</div> </div>
<div id="outline-container-orgfd51415" class="outline-5"> <div id="outline-container-orgc9677cf" class="outline-5">
<h5 id="orgfd51415">Signature</h5> <h5 id="orgc9677cf">Signature</h5>
<div class="outline-text-5" id="text-orgfd51415"> <div class="outline-text-5" id="text-orgc9677cf">
<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>
@ -1846,9 +1871,9 @@ This empty code block is used to add a new line after signature
<h4 id="orgc6c55ac">ULIEGE</h4> <h4 id="orgc6c55ac">ULIEGE</h4>
<div class="outline-text-4" id="text-orgc6c55ac"> <div class="outline-text-4" id="text-orgc6c55ac">
</div> </div>
<div id="outline-container-orgf9a4836" class="outline-5"> <div id="outline-container-org647fde0" class="outline-5">
<h5 id="orgf9a4836">Configuration</h5> <h5 id="org647fde0">Configuration</h5>
<div class="outline-text-5" id="text-orgf9a4836"> <div class="outline-text-5" id="text-org647fde0">
<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">"msmtp -a uliege"</span> <span class="org-variable-name">set sendmail</span> = <span class="org-string">"msmtp -a uliege"</span>
@ -1872,9 +1897,9 @@ macro index,pager D \
</div> </div>
</div> </div>
<div id="outline-container-org39fb206" class="outline-5"> <div id="outline-container-orge0c1cfa" class="outline-5">
<h5 id="org39fb206">Signature</h5> <h5 id="orge0c1cfa">Signature</h5>
<div class="outline-text-5" id="text-org39fb206"> <div class="outline-text-5" id="text-orge0c1cfa">
<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>
@ -2010,9 +2035,9 @@ hdr_order from: to: cc: date: subject: <span class="org-comment-delimiter"># </
</div> </div>
</div> </div>
<div id="outline-container-org1932502" class="outline-3"> <div id="outline-container-org4e69538" class="outline-3">
<h3 id="org1932502">Sidebar</h3> <h3 id="org4e69538">Sidebar</h3>
<div class="outline-text-3" id="text-org1932502"> <div class="outline-text-3" id="text-org4e69538">
</div> </div>
<div id="outline-container-org953ed4c" class="outline-4"> <div id="outline-container-org953ed4c" class="outline-4">
<h4 id="org953ed4c">General Config</h4> <h4 id="org953ed4c">General Config</h4>
@ -2120,9 +2145,9 @@ named-mailboxes <span class="org-string">" &#61460; Trash"</span> =uliege/Trash
</div> </div>
</div> </div>
<div id="outline-container-orgf73a3fa" class="outline-3"> <div id="outline-container-org2a4b061" class="outline-3">
<h3 id="orgf73a3fa">Attachments</h3> <h3 id="org2a4b061">Attachments</h3>
<div class="outline-text-3" id="text-orgf73a3fa"> <div class="outline-text-3" id="text-org2a4b061">
</div> </div>
<div id="outline-container-org39c5999" class="outline-4"> <div id="outline-container-org39c5999" class="outline-4">
<h4 id="org39c5999">Attachment View Options</h4> <h4 id="org39c5999">Attachment View Options</h4>
@ -2321,7 +2346,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: 2020-03-19 jeu. 10:38</p> <p class="date">Created: 2020-03-22 dim. 23:03</p>
</div> </div>
</body> </body>
</html> </html>

View File

@ -4,7 +4,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>
<!-- 2020-03-19 jeu. 10:39 --> <!-- 2020-03-22 dim. 23:03 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Polybar Configuration</title> <title>Polybar Configuration</title>
@ -201,7 +201,30 @@
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script> <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script> <script type="text/javascript" src="./js/readtheorg.js"></script>
<script type="text/javascript"> <script type="text/javascript">
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later /*
@licstart The following is the entire license notice for the
JavaScript code in this tag.
Copyright (C) 2012-2020 Free Software Foundation, Inc.
The JavaScript code in this tag is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this tag.
*/
<!--/*--><![CDATA[/*><!--*/ <!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id) function CodeHighlightOn(elem, id)
{ {
@ -222,7 +245,6 @@
target.className = elem.cacheClassTarget; target.className = elem.cacheClassTarget;
} }
/*]]>*///--> /*]]>*///-->
// @license-end
</script> </script>
</head> </head>
<body> <body>
@ -263,7 +285,7 @@
</li> </li>
<li><a href="#org10f4424">NordVPN</a> <li><a href="#org10f4424">NordVPN</a>
<ul> <ul>
<li><a href="#org1858160"><span class="todo TODO">TODO</span> Nordvpn Status script</a></li> <li><a href="#org1858160">Nordvpn Status script</a></li>
<li><a href="#orgfb45dca">Nordvpn Toggle</a></li> <li><a href="#orgfb45dca">Nordvpn Toggle</a></li>
</ul> </ul>
</li> </li>
@ -285,12 +307,6 @@
<li><a href="#org8891736">Toggle Automatic Lock Screen</a></li> <li><a href="#org8891736">Toggle Automatic Lock Screen</a></li>
</ul> </ul>
</li> </li>
<li><a href="#orge9a7da7">Weather</a>
<ul>
<li><a href="#orgeba3af9">Script to retrieve the weather</a></li>
<li><a href="#org4aa4897"><span class="todo TODO">TODO</span> Open Weather Webpage</a></li>
</ul>
</li>
<li><a href="#org7b140fd">Network</a></li> <li><a href="#org7b140fd">Network</a></li>
<li><a href="#org726272d">Screenshot</a></li> <li><a href="#org726272d">Screenshot</a></li>
<li><a href="#orgc30611d">Scripts</a> <li><a href="#orgc30611d">Scripts</a>
@ -374,7 +390,7 @@
<span class="org-variable-name">modules-left</span> = i3 bspwm xwindow <span class="org-variable-name">modules-left</span> = i3 bspwm 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 xbacklight redshift packages nordvpn lockscreen dunst unread_mail cpu battery temperature date <span class="org-variable-name">modules-right</span> = pulseaudio xbacklight redshift nordvpn lockscreen dunst packages unread_mail cpu battery temperature date
<span class="org-variable-name">wm-restack</span> = i3 <span class="org-variable-name">wm-restack</span> = i3
@ -695,27 +711,23 @@
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">module/temperature</span>] <pre class="src src-conf">[<span class="org-type">module/temperature</span>]
<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">5</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">warn-temperature</span> = <span class="org-highlight-numbers-number">70</span>
<span class="org-variable-name">hwmon-path</span> = /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input <span class="org-variable-name">hwmon-path</span> = /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input
<span class="org-variable-name">units</span> = false
<span class="org-variable-name">format</span> = %{A1:$TERMINAL -e <span class="org-string">"watch sensors"</span> &amp;:}&lt;ramp&gt; &lt;label&gt;%{A} <span class="org-variable-name">format</span> = %{A1:$TERMINAL --class=<span class="org-string">"Floating"</span> -e <span class="org-string">"watch sensors"</span> &amp;:}&lt;ramp&gt; &lt;label&gt;%{A}
<span class="org-variable-name">format-underline</span> = ${colors.bg}
<span class="org-variable-name">format-warn</span> = &lt;ramp&gt; &lt;label-warn&gt; <span class="org-variable-name">format-warn</span> = &lt;ramp&gt; &lt;label-warn&gt;
<span class="org-variable-name">label</span> = %temperature-c%&#176;C
<span class="org-variable-name">label-warn</span> = %temperature-c%&#176;C
<span class="org-variable-name">label-warn-foreground</span> = ${colors.fg}
<span class="org-variable-name">format-warn-underline</span> = ${colors.red} <span class="org-variable-name">format-warn-underline</span> = ${colors.red}
<span class="org-variable-name">label</span> = %temperature-c%
<span class="org-variable-name">label-warn</span> = %temperature-c%
<span class="org-variable-name">label-warn-foreground</span> = ${colors.red}
<span class="org-variable-name">ramp-0</span> = &#62155; <span class="org-variable-name">ramp-0</span> = &#62155;
<span class="org-variable-name">ramp-1</span> = &#62154; <span class="org-variable-name">ramp-1</span> = &#62154;
<span class="org-variable-name">ramp-2</span> = &#62153; <span class="org-variable-name">ramp-2</span> = &#62153;
<span class="org-variable-name">ramp-3</span> = &#62152; <span class="org-variable-name">ramp-3</span> = &#62152;
<span class="org-variable-name">ramp-4</span> = &#62151; <span class="org-variable-name">ramp-4</span> = &#62151;
<span class="org-variable-name">ramp-foreground</span> = ${color.fg} <span class="org-variable-name">ramp-foreground</span> = ${colors.fg}
</pre> </pre>
</div> </div>
</div> </div>
@ -728,7 +740,6 @@
<pre class="src src-conf">[<span class="org-type">module/unread_mail</span>] <pre class="src src-conf">[<span class="org-type">module/unread_mail</span>]
<span class="org-variable-name">type</span> = custom/script <span class="org-variable-name">type</span> = custom/script
<span class="org-variable-name">label-font</span> = <span class="org-highlight-numbers-number">2</span>
<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">click-left</span> = ~/.config/polybar/scripts/mail-open.sh <span class="org-variable-name">click-left</span> = ~/.config/polybar/scripts/mail-open.sh
<span class="org-variable-name">format</span> = &lt;label&gt; <span class="org-variable-name">format</span> = &lt;label&gt;
@ -742,12 +753,12 @@
<h3 id="org2c713a7">Unread Mail Scripts</h3> <h3 id="org2c713a7">Unread Mail Scripts</h3>
<div class="outline-text-3" id="text-org2c713a7"> <div class="outline-text-3" id="text-org2c713a7">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">mails</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">du</span> -a ~/.mail/*/Inbox/new/* <span class="org-highlight-numbers-number">2</span>&gt;/dev/null | sed -n <span class="org-string">'$='</span><span class="org-rainbow-delimiters-depth-1">)</span> <pre class="src src-bash"><span class="org-variable-name">mail_nb</span>=<span class="org-sh-quoted-exec">`du -a ~/.mail/*/Inbox/new/* 2&gt;/dev/null | wc -l`</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">mails</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-keyword">if</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">mail_nb</span></span><span class="org-string">"</span> -eq <span class="org-string">"0"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-type">echo</span> <span class="org-string">"&#63215;"</span> <span class="org-type">echo</span> <span class="org-string">"&#63215;"</span>;
<span class="org-keyword">else</span> <span class="org-keyword">else</span>
<span class="org-type">echo</span> <span class="org-string">"%{F#859900}&#63215;%{F-}"</span> <span class="org-type">echo</span> <span class="org-string">"%{F#859900}&#63215; </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">mail_nb</span></span><span class="org-string">%{F-}"</span>;
<span class="org-keyword">fi</span> <span class="org-keyword">fi</span>
</pre> </pre>
</div> </div>
@ -772,7 +783,6 @@
<pre class="src src-conf">[<span class="org-type">module/redshift</span>] <pre class="src src-conf">[<span class="org-type">module/redshift</span>]
<span class="org-variable-name">type</span> = custom/script <span class="org-variable-name">type</span> = custom/script
<span class="org-variable-name">label-font</span> = <span class="org-highlight-numbers-number">2</span>
<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">click-left</span> = ~/.config/polybar/scripts/redshift-toggle.sh <span class="org-variable-name">click-left</span> = ~/.config/polybar/scripts/redshift-toggle.sh
<span class="org-variable-name">format</span> = &lt;label&gt; <span class="org-variable-name">format</span> = &lt;label&gt;
@ -828,11 +838,8 @@
</div> </div>
<div id="outline-container-org1858160" class="outline-3"> <div id="outline-container-org1858160" class="outline-3">
<h3 id="org1858160"><span class="todo TODO">TODO</span> Nordvpn Status script</h3> <h3 id="org1858160">Nordvpn Status script</h3>
<div class="outline-text-3" id="text-org1858160"> <div class="outline-text-3" id="text-org1858160">
<ul class="org-ul">
<li class="off"><code>[&#xa0;]</code> Should check if there is a tmpfile, if there is not, run nordvpn status and create the tmpfile accordindly</li>
</ul>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">tmpfile</span>=<span class="org-string">"/tmp/vpnstatus"</span>; <pre class="src src-bash"><span class="org-variable-name">tmpfile</span>=<span class="org-string">"/tmp/vpnstatus"</span>;
@ -885,11 +892,12 @@
<h3 id="org9b8a9c8">Packages Status script</h3> <h3 id="org9b8a9c8">Packages Status script</h3>
<div class="outline-text-3" id="text-org9b8a9c8"> <div class="outline-text-3" id="text-org9b8a9c8">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">packagenb</span>=<span class="org-sh-quoted-exec">`yay -Qu 2&gt; /dev/null | wc -l`</span>; <pre class="src src-bash"><span class="org-variable-name">package_nb</span>=<span class="org-sh-quoted-exec">`yay -Qu 2&gt; /dev/null | wc -l`</span>;
<span class="org-keyword">if</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">packagenb</span></span><span class="org-string">"</span> -eq <span class="org-string">"0"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-keyword">if</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">package_nb</span></span><span class="org-string">"</span> -eq <span class="org-string">"0"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-type">echo</span> <span class="org-string">"&#62211;"</span>; <span class="org-type">echo</span> <span class="org-string">"&#62211;"</span>;
<span class="org-keyword">else</span> <span class="org-keyword">else</span>
<span class="org-type">echo</span> <span class="org-string">"%{F#859900}&#62211;%{F-}"</span>; <span class="org-type">echo</span> <span class="org-string">"%{F#859900}&#62211; </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">package_nb</span></span><span class="org-string">%{F-}"</span>;
<span class="org-keyword">fi</span> <span class="org-keyword">fi</span>
</pre> </pre>
</div> </div>
@ -1016,152 +1024,6 @@
</div> </div>
</div> </div>
<div id="outline-container-orge9a7da7" class="outline-2">
<h2 id="orge9a7da7">Weather</h2>
<div class="outline-text-2" id="text-orge9a7da7">
<p>
<a href="https://github.com/x70b1/polybar-scripts/tree/master/polybar-scripts/openweathermap-fullfeatured">https://github.com/x70b1/polybar-scripts/tree/master/polybar-scripts/openweathermap-fullfeatured</a>
</p>
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">module/weather</span>]
<span class="org-variable-name">type</span> = custom/script
<span class="org-variable-name">exec</span> = ~/.config/polybar/scripts/weather-status.sh
<span class="org-variable-name">click-left</span> = ~/.config/polybar/scripts/weather-open.sh
<span class="org-variable-name">interval</span> = <span class="org-highlight-numbers-number">600</span>
<span class="org-variable-name">label-font</span> = <span class="org-highlight-numbers-number">3</span>
</pre>
</div>
</div>
<div id="outline-container-orgeba3af9" class="outline-3">
<h3 id="orgeba3af9">Script to retrieve the weather</h3>
<div class="outline-text-3" id="text-orgeba3af9">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-function-name">get_icon</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-keyword">case</span> $<span class="org-highlight-numbers-number">1</span><span class="org-keyword"> in</span>
01d) <span class="org-variable-name">icon</span>=<span class="org-string">"&#61453;"</span>;;
01n) <span class="org-variable-name">icon</span>=<span class="org-string">"&#61486;"</span>;;
02d) <span class="org-variable-name">icon</span>=<span class="org-string">"&#61442;"</span>;;
02n) <span class="org-variable-name">icon</span>=<span class="org-string">"&#61574;"</span>;;
03*) <span class="org-variable-name">icon</span>=<span class="org-string">"&#61505;"</span>;;
04*) <span class="org-variable-name">icon</span>=<span class="org-string">"&#61459;"</span>;;
09d) <span class="org-variable-name">icon</span>=<span class="org-string">"&#61464;"</span>;;
09n) <span class="org-variable-name">icon</span>=<span class="org-string">"&#61464;"</span>;;
10d) <span class="org-variable-name">icon</span>=<span class="org-string">"&#61448;"</span>;;
10n) <span class="org-variable-name">icon</span>=<span class="org-string">"&#61494;"</span>;;
11d) <span class="org-variable-name">icon</span>=<span class="org-string">"&#61445;"</span>;;
11n) <span class="org-variable-name">icon</span>=<span class="org-string">"&#61477;"</span>;;
13d) <span class="org-variable-name">icon</span>=<span class="org-string">"&#61450;"</span>;;
13n) <span class="org-variable-name">icon</span>=<span class="org-string">"&#61482;"</span>;;
50d) <span class="org-variable-name">icon</span>=<span class="org-string">"&#61443;"</span>;;
50n) <span class="org-variable-name">icon</span>=<span class="org-string">"&#61514;"</span>;;
*) <span class="org-variable-name">icon</span>=<span class="org-string">"&#61453;"</span>;
<span class="org-keyword">esac</span>
<span class="org-type">echo</span> $<span class="org-variable-name">icon</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-function-name">get_duration</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-variable-name">osname</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">uname</span> -s<span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-keyword">case</span> $<span class="org-variable-name">osname</span><span class="org-keyword"> in</span>
*BSD) <span class="org-type">date</span> -r <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> -u +%H:%M;;
*) <span class="org-type">date</span> --date=<span class="org-string">"@</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> -u +%H:%M;;
<span class="org-keyword">esac</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-variable-name">KEY</span>=<span class="org-string">"a705adc4ce0e271801051b9460ecb1cd"</span>
<span class="org-variable-name">CITY</span>=<span class="org-string">""</span>
<span class="org-variable-name">UNITS</span>=<span class="org-string">"metric"</span>
<span class="org-variable-name">SYMBOL</span>=<span class="org-string">"&#176;"</span>
<span class="org-variable-name">API</span>=<span class="org-string">"https://api.openweathermap.org/data/2.5"</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">CITY</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">if</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">CITY</span></span><span class="org-string">"</span> -eq <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">CITY</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span> <span class="org-highlight-numbers-number">2</span>&gt;/dev/null; <span class="org-keyword">then</span>
<span class="org-variable-name">CITY_PARAM</span>=<span class="org-string">"id=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">CITY</span></span><span class="org-string">"</span>
<span class="org-keyword">else</span>
<span class="org-variable-name">CITY_PARAM</span>=<span class="org-string">"q=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">CITY</span></span><span class="org-string">"</span>
<span class="org-keyword">fi</span>
<span class="org-variable-name">current</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">curl</span> -sf <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">API</span></span><span class="org-string">/weather?appid=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">KEY</span></span><span class="org-string">&amp;</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">CITY_PARAM</span></span><span class="org-string">&amp;units=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">UNITS</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-variable-name">forecast</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">curl</span> -sf <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">API</span></span><span class="org-string">/forecast?appid=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">KEY</span></span><span class="org-string">&amp;</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">CITY_PARAM</span></span><span class="org-string">&amp;units=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">UNITS</span></span><span class="org-string">&amp;cnt=1"</span><span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-keyword">else</span>
<span class="org-variable-name">location</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">curl</span> -sf https://location.services.mozilla.com/v1/geolocate?<span class="org-variable-name">key</span>=geoclue<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">location</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-variable-name">location_lat</span>=<span class="org-string">"</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">location</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">" | jq '.location.lat')</span></span><span class="org-string">"</span>
<span class="org-variable-name">location_lon</span>=<span class="org-string">"</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">location</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">" | jq '.location.lng')</span></span><span class="org-string">"</span>
<span class="org-variable-name">current</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">curl</span> -sf <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">API</span></span><span class="org-string">/weather?appid=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">KEY</span></span><span class="org-string">&amp;lat=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">location_lat</span></span><span class="org-string">&amp;lon=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">location_lon</span></span><span class="org-string">&amp;units=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">UNITS</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-variable-name">forecast</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">curl</span> -sf <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">API</span></span><span class="org-string">/forecast?appid=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">KEY</span></span><span class="org-string">&amp;lat=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">location_lat</span></span><span class="org-string">&amp;lon=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">location_lon</span></span><span class="org-string">&amp;units=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">UNITS</span></span><span class="org-string">&amp;cnt=1"</span><span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-keyword">fi</span>
<span class="org-keyword">fi</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">current</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span> &amp;&amp; <span class="org-rainbow-delimiters-depth-1">[</span> -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">forecast</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-variable-name">current_temp</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">current</span></span><span class="org-string">"</span> | jq <span class="org-string">".main.temp"</span> | cut -d <span class="org-string">"."</span> -f <span class="org-highlight-numbers-number">1</span><span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-variable-name">current_icon</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">current</span></span><span class="org-string">"</span> | jq -r <span class="org-string">".weather[0].icon"</span><span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-variable-name">forecast_temp</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">forecast</span></span><span class="org-string">"</span> | jq <span class="org-string">".list[].main.temp"</span> | cut -d <span class="org-string">"."</span> -f <span class="org-highlight-numbers-number">1</span><span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-variable-name">forecast_icon</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">forecast</span></span><span class="org-string">"</span> | jq -r <span class="org-string">".list[].weather[0].icon"</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-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">current_temp</span></span><span class="org-string">"</span> -gt <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">forecast_temp</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-variable-name">trend</span>=<span class="org-string">"&#62786;"</span> <span class="org-comment-delimiter">#</span><span class="org-comment">&#61576;</span>
<span class="org-keyword">elif</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">forecast_temp</span></span><span class="org-string">"</span> -gt <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">current_temp</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-variable-name">trend</span>=<span class="org-string">"&#62811;"</span> <span class="org-comment-delimiter">#</span><span class="org-comment">&#61527;</span>
<span class="org-keyword">else</span>
<span class="org-variable-name">trend</span>=<span class="org-string">"&#62803;"</span> <span class="org-comment-delimiter">#</span><span class="org-comment">&#61517;</span>
<span class="org-keyword">fi</span>
<span class="org-variable-name">sun_rise</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">current</span></span><span class="org-string">"</span> | jq <span class="org-string">".sys.sunrise"</span><span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-variable-name">sun_set</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">current</span></span><span class="org-string">"</span> | jq <span class="org-string">".sys.sunset"</span><span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-variable-name">now</span>=$<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>
<span class="org-keyword">if</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">sun_rise</span></span><span class="org-string">"</span> -gt <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">now</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-variable-name">daytime</span>=<span class="org-string">"&#61521; </span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">get_duration</span><span class="org-string"><span class="org-sh-quoted-exec"> "$((sun_rise-now)</span></span><span class="org-string">)")"</span>
<span class="org-keyword">elif</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">sun_set</span></span><span class="org-string">"</span> -gt <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">now</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-variable-name">daytime</span>=<span class="org-string">"&#61522; </span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">get_duration</span><span class="org-string"><span class="org-sh-quoted-exec"> "$((sun_set-now)</span></span><span class="org-string">)")"</span>
<span class="org-keyword">else</span>
<span class="org-variable-name">daytime</span>=<span class="org-string">"&#61521; </span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">get_duration</span><span class="org-string"><span class="org-sh-quoted-exec"> "$((sun_rise-now)</span></span><span class="org-string">)")"</span>
<span class="org-keyword">fi</span>
<span class="org-type">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">get_icon</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">current_icon</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">")</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">current_temp</span></span><span class="org-string">$SYMBOL </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">trend</span></span><span class="org-string"> </span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">get_icon</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">forecast_icon</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">")</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">forecast_temp</span></span><span class="org-string">$SYMBOL </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">daytime</span></span><span class="org-string">"</span>
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org4aa4897" class="outline-3">
<h3 id="org4aa4897"><span class="todo TODO">TODO</span> Open Weather Webpage</h3>
<div class="outline-text-3" id="text-org4aa4897">
<ul class="org-ul">
<li class="off"><code>[&#xa0;]</code> Find a way to open a web page with detailed forecast with the current location</li>
</ul>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">location=$(</span><span class="org-sh-quoted-exec">curl</span><span class="org-comment"> -sf https://location.services.mozilla.com/v1/geolocate?key=geoclue)</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">if [ -n "$location" ]; then</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">location_lat="$(</span><span class="org-sh-quoted-exec">echo</span><span class="org-comment"> "$location" | jq '.location.lat')"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">location_lon="$(</span><span class="org-sh-quoted-exec">echo</span><span class="org-comment"> "$location" | jq '.location.lng')"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">else</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">fi</span>
$<span class="org-variable-name">BROWSER</span> https://www.yahoo.com/news/weather/france/grenoble/grenoble-593720
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org7b140fd" class="outline-2"> <div id="outline-container-org7b140fd" class="outline-2">
<h2 id="org7b140fd">Network</h2> <h2 id="org7b140fd">Network</h2>
<div class="outline-text-2" id="text-org7b140fd"> <div class="outline-text-2" id="text-org7b140fd">
@ -1256,7 +1118,7 @@ polybar top &gt;&gt;/tmp/polybar.log <span class="org-highlight-numbers-number">
</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: 2020-03-19 jeu. 10:39</p> <p class="date">Created: 2020-03-22 dim. 23:03</p>
</div> </div>
</body> </body>
</html> </html>

View File

@ -4,7 +4,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>
<!-- 2020-03-19 jeu. 10:38 --> <!-- 2020-03-22 dim. 23:03 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Qutebrowser Configuration</title> <title>Qutebrowser Configuration</title>
@ -201,7 +201,30 @@
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script> <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script> <script type="text/javascript" src="./js/readtheorg.js"></script>
<script type="text/javascript"> <script type="text/javascript">
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later /*
@licstart The following is the entire license notice for the
JavaScript code in this tag.
Copyright (C) 2012-2020 Free Software Foundation, Inc.
The JavaScript code in this tag is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this tag.
*/
<!--/*--><![CDATA[/*><!--*/ <!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id) function CodeHighlightOn(elem, id)
{ {
@ -222,7 +245,6 @@
target.className = elem.cacheClassTarget; target.className = elem.cacheClassTarget;
} }
/*]]>*///--> /*]]>*///-->
// @license-end
</script> </script>
</head> </head>
<body> <body>
@ -254,10 +276,10 @@
<ul> <ul>
<li><a href="#org6be4b76">Create a new password</a></li> <li><a href="#org6be4b76">Create a new password</a></li>
<li><a href="#orgd3cff42">Cast Youtube to Chromecast</a></li> <li><a href="#orgd3cff42">Cast Youtube to Chromecast</a></li>
<li><a href="#org4b6d5f9">Add url to refile.org</a></li>
<li><a href="#orgb8e61c0">Password<sub>fill</sub><sub>rc</sub></a></li> <li><a href="#orgb8e61c0">Password<sub>fill</sub><sub>rc</sub></a></li>
<li><a href="#org58d6993">Org-Capture</a></li> <li><a href="#org58d6993">Org-Capture</a></li>
<li><a href="#org63ffcb4">Add Url to Buku using Rofi</a></li> <li><a href="#org63ffcb4">Add Url to Buku using Rofi</a></li>
<li><a href="#org0a503bf">Add Url to Buku without asking for information</a></li>
</ul> </ul>
</li> </li>
</ul> </ul>
@ -311,7 +333,7 @@
<h2 id="orgdefaa05">Editor</h2> <h2 id="orgdefaa05">Editor</h2>
<div class="outline-text-2" id="text-orgdefaa05"> <div class="outline-text-2" id="text-orgdefaa05">
<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">'-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/termite'</span>, <span class="org-string">'--class="Floating"'</span>, <span class="org-string">'-e'</span>, <span class="org-string">'nvim {}'</span>]
</pre> </pre>
</div> </div>
</div> </div>
@ -604,7 +626,7 @@ Create a Password for the current website
</div> </div>
<p> <p>
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">config.bind(<span class="org-string">',p'</span>, <span class="org-string">'spawn --userscript password_fill'</span>)
@ -612,7 +634,7 @@ Use Pass to fill password and username (configuration is done in <code>~/.config
</div> </div>
<p> <p>
Open Youtube video using MPV 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">config.bind(<span class="org-string">',m'</span>, <span class="org-string">'spawn --detach mpv --force-window yes {url}'</span>)
@ -630,24 +652,16 @@ config.bind(<span class="org-string">',C'</span>, <span class="org-string">'hint
</div> </div>
<p> <p>
Add url to refile.org Add page to Bookmarks using <code>buku</code>
</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/add-to-orgmode-refile.sh'</span>) <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>
</div>
<p>
Add page to Bookmarks
</p>
<div class="org-src-container">
<pre class="src src-python">config.bind(<span class="org-string">',b'</span>, <span class="org-string">'spawn buku -a {url}'</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">'spawn --userscript ~/.config/qutebrowser/userscripts/buku-rofi.sh'</span>)
</pre> </pre>
</div> </div>
<p> <p>
Open bookmark using buku Open bookmark using <code>buku</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 ~/bin/bukurun'</span>) <pre class="src src-python">config.bind(<span class="org-string">',o'</span>, <span class="org-string">'spawn ~/bin/bukurun'</span>)
@ -713,21 +727,6 @@ pass insert --multiline <span class="org-string">"</span><span class="org-string
</div> </div>
</div> </div>
<div id="outline-container-org4b6d5f9" class="outline-3">
<h3 id="org4b6d5f9">Add url to refile.org</h3>
<div class="outline-text-3" id="text-org4b6d5f9">
<p>
Add the date and time of add to properties.
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-type">echo</span> <span class="org-string">"* </span><span class="org-bold"><span class="org-warning">TODO</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">QUTE_TITLE</span></span><span class="org-string">"</span> &gt;&gt; ~/Dropbox/org/refile.org
<span class="org-type">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_URL</span></span><span class="org-string">"</span> &gt;&gt; ~/Dropbox/org/refile.org
<span class="org-type">echo</span> <span class="org-string">"message-info 'Added to refile.org'"</span> &gt;&gt; <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_FIFO</span></span><span class="org-string">"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgb8e61c0" class="outline-3"> <div id="outline-container-orgb8e61c0" class="outline-3">
<h3 id="orgb8e61c0">Password<sub>fill</sub><sub>rc</sub></h3> <h3 id="orgb8e61c0">Password<sub>fill</sub><sub>rc</sub></h3>
<div class="outline-text-3" id="text-orgb8e61c0"> <div class="outline-text-3" id="text-orgb8e61c0">
@ -784,7 +783,17 @@ Add the date and time of add to properties.
<pre class="src src-bash"><span class="org-variable-name">title</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_TITLE</span></span><span class="org-string">"</span> | rofi -p <span class="org-string">"Title"</span> -dmenu -lines <span class="org-highlight-numbers-number">1</span><span class="org-rainbow-delimiters-depth-1">)</span> <pre class="src src-bash"><span class="org-variable-name">title</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_TITLE</span></span><span class="org-string">"</span> | rofi -p <span class="org-string">"Title"</span> -dmenu -lines <span class="org-highlight-numbers-number">1</span><span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-variable-name">tags</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">buku</span> -t --nc --np | sed -e <span class="org-string">'s/\s*[[:digit:]]*\.\s*\(.*\)\s*([[:digit:]]*)\s*/\1/'</span> -e <span class="org-string">'/^\s*$/d'</span> | sort | uniq | rofi -p <span class="org-string">"Tags"</span> -dmenu<span class="org-rainbow-delimiters-depth-1">)</span> <span class="org-variable-name">tags</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">buku</span> -t --nc --np | sed -e <span class="org-string">'s/\s*[[:digit:]]*\.\s*\(.*\)\s*([[:digit:]]*)\s*/\1/'</span> -e <span class="org-string">'/^\s*$/d'</span> | sort | uniq | rofi -p <span class="org-string">"Tags"</span> -dmenu<span class="org-rainbow-delimiters-depth-1">)</span>
buku --add <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_URL</span></span><span class="org-string">"</span> --tag <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">tags</span></span><span class="org-string">"</span> --title <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">title</span></span><span class="org-string">"</span> buku --add <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_URL</span></span><span class="org-string">"</span> --tag <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">tags</span></span><span class="org-string">"</span> --title <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">title</span></span><span class="org-string">"</span> &amp;&amp; dunstify <span class="org-string">"Buku"</span> <span class="org-string">"&#128209; Bookmark Added"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org0a503bf" class="outline-3">
<h3 id="org0a503bf">Add Url to Buku without asking for information</h3>
<div class="outline-text-3" id="text-org0a503bf">
<div class="org-src-container">
<pre class="src src-bash">buku --add $<span class="org-variable-name">QUTE_URL</span> --title <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_TITLE</span></span><span class="org-string">"</span> &amp;&amp; dunstify <span class="org-string">"Buku"</span> <span class="org-string">"&#128209; Bookmark Added"</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -793,7 +802,7 @@ buku --add <span class="org-string">"</span><span class="org-string"><span class
</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: 2020-03-19 jeu. 10:38</p> <p class="date">Created: 2020-03-22 dim. 23:03</p>
</div> </div>
</body> </body>
</html> </html>

View File

@ -4,7 +4,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>
<!-- 2020-03-19 jeu. 10:38 --> <!-- 2020-03-22 dim. 23:03 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Scripts</title> <title>Scripts</title>
@ -201,7 +201,30 @@
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script> <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script> <script type="text/javascript" src="./js/readtheorg.js"></script>
<script type="text/javascript"> <script type="text/javascript">
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later /*
@licstart The following is the entire license notice for the
JavaScript code in this tag.
Copyright (C) 2012-2020 Free Software Foundation, Inc.
The JavaScript code in this tag is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this tag.
*/
<!--/*--><![CDATA[/*><!--*/ <!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id) function CodeHighlightOn(elem, id)
{ {
@ -222,7 +245,6 @@
target.className = elem.cacheClassTarget; target.className = elem.cacheClassTarget;
} }
/*]]>*///--> /*]]>*///-->
// @license-end
</script> </script>
</head> </head>
<body> <body>
@ -407,7 +429,7 @@ xclip -h <span class="org-highlight-numbers-number">2</span>&gt;/dev/null || <sp
xdotool key Shift+Insert xdotool key Shift+Insert
<span class="org-keyword">else</span> <span class="org-keyword">else</span>
<span class="org-type">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">chosen</span></span><span class="org-string">"</span> | tr -d <span class="org-string">'\n'</span> | xsel -ib <span class="org-type">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">chosen</span></span><span class="org-string">"</span> | tr -d <span class="org-string">'\n'</span> | xsel -ib
notify-send <span class="org-string">"'</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">chosen</span></span><span class="org-string">' copied to clipboard."</span> &amp; dunstify <span class="org-string">"'</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">chosen</span></span><span class="org-string">' copied to clipboard."</span> &amp;
<span class="org-keyword">fi</span> <span class="org-keyword">fi</span>
</pre> </pre>
</div> </div>
@ -587,7 +609,7 @@ mopidy --config ~/.config/mopidy/mopidy.conf &gt;/dev/null <span class="org-high
</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: 2020-03-19 jeu. 10:38</p> <p class="date">Created: 2020-03-22 dim. 23:03</p>
</div> </div>
</body> </body>
</html> </html>