Add Published HTML

This commit is contained in:
Thomas Dehaeze 2020-01-11 22:04:45 +01:00
parent 77d0f47b9f
commit d94383ec3c
38 changed files with 40956 additions and 6407 deletions

508
docs/applications.html Normal file
View File

@ -0,0 +1,508 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 21:51 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Desktop file for the applications</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="../css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="../css/readtheorg.css"/>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="../js/readtheorg.js"></script>
<script type="text/javascript">
/*
@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[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</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">Desktop file for the applications</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org3781e6a">Mime Applications</a></li>
<li><a href="#org40d2ff7">Neomutt</a></li>
<li><a href="#org12f6658">Zathura</a></li>
<li><a href="#orgfba702e">Weechat</a></li>
<li><a href="#org0917adc">Matlab</a></li>
<li><a href="#org721c080">Neovim</a></li>
<li><a href="#org253b1df"><span class="todo TODO">TODO</span> Transmission</a></li>
<li><a href="#org11a99e9">Images</a></li>
<li><a href="#org993c573"><span class="todo TODO">TODO</span> RSS</a></li>
<li><a href="#orgf48f5f6">Qutebrowser</a></li>
<li><a href="#org6d53535">Org-Protocol</a></li>
<li><a href="#org77502a5">Ranger</a></li>
</ul>
</div>
</div>
<div id="outline-container-org3781e6a" class="outline-2">
<h2 id="org3781e6a">Mime Applications</h2>
<div class="outline-text-2" id="text-org3781e6a">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Default Applications</span>]
<span class="org-variable-name">text/plain</span>=nvim.desktop
<span class="org-variable-name">x-scheme-handler/magnet</span>=torrent.desktop;
<span class="org-variable-name">text/x-shellscript</span>=nvim.desktop;
<span class="org-variable-name">image/png</span>=img.desktop;
<span class="org-variable-name">image/jpeg</span>=img.desktop;
<span class="org-variable-name">image/gif</span>=img.desktop;
<span class="org-variable-name">application/rss+xml</span>=rss.desktop
<span class="org-variable-name">x-scheme-handler/mailto</span>=neomutt.desktop
<span class="org-variable-name">message/rfc822</span>=neomutt.desktop
<span class="org-variable-name">application/x-bittorrent</span>=deluge.desktop
<span class="org-variable-name">application/pdf</span>=zathura.desktop
<span class="org-variable-name">x-scheme-handler/http</span>=qutebrowser.desktop
<span class="org-variable-name">x-scheme-handler/https</span>=qutebrowser.desktop
<span class="org-variable-name">x-scheme-handler/ftp</span>=qutebrowser.desktop
<span class="org-variable-name">x-scheme-handler/chrome</span>=qutebrowser.desktop
<span class="org-variable-name">text/html</span>=qutebrowser.desktop
<span class="org-variable-name">application/x-extension-htm</span>=qutebrowser.desktop
<span class="org-variable-name">application/x-extension-html</span>=qutebrowser.desktop
<span class="org-variable-name">application/x-extension-shtml</span>=qutebrowser.desktop
<span class="org-variable-name">application/xhtml+xml</span>=qutebrowser.desktop
<span class="org-variable-name">application/x-extension-xhtml</span>=qutebrowser.desktop
<span class="org-variable-name">application/x-extension-xht</span>=qutebrowser.desktop
[<span class="org-type">Added Associations</span>]
<span class="org-variable-name">text/plain</span>=mousepad.desktop;
<span class="org-variable-name">application/x-bittorrent</span>=deluge.desktop;
</pre>
</div>
</div>
</div>
<div id="outline-container-org40d2ff7" class="outline-2">
<h2 id="org40d2ff7">Neomutt</h2>
<div class="outline-text-2" id="text-org40d2ff7">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Desktop Entry</span>]
<span class="org-variable-name">Name</span>=Neomutt
<span class="org-variable-name">GenericName</span>=Email client
<span class="org-variable-name">Exec</span>=/usr/bin/termite -e neomutt %u
<span class="org-variable-name">Type</span>=Application
<span class="org-variable-name">Icon</span>=/usr/share/icons/Papirus/64x64/apps/mutt.svg
<span class="org-variable-name">Categories</span>=Network;Email;
<span class="org-variable-name">MimeType</span>=message/rfc822;x-scheme-handler/mailto;application/x-xpinstall;
<span class="org-variable-name">StartupNotify</span>=true
</pre>
</div>
</div>
</div>
<div id="outline-container-org12f6658" class="outline-2">
<h2 id="org12f6658">Zathura</h2>
<div class="outline-text-2" id="text-org12f6658">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Desktop Entry</span>]
<span class="org-variable-name">Version</span>=<span class="org-highlight-numbers-number">1.0</span>
<span class="org-variable-name">Type</span>=Application
<span class="org-variable-name">Name</span>=Zathura
<span class="org-variable-name">Comment</span>=A minimalistic document viewer
<span class="org-variable-name">Exec</span>=zathura %U
<span class="org-variable-name">Icon</span>=/usr/share/icons/Papirus/64x64/apps/zathura.svg
<span class="org-variable-name">Terminal</span>=false
<span class="org-variable-name">Categories</span>=Office;Viewer;
<span class="org-variable-name">Keywords</span>=PDF;PS;PostScript;DjVU;document;presentation;viewer;
</pre>
</div>
</div>
</div>
<div id="outline-container-orgfba702e" class="outline-2">
<h2 id="orgfba702e">Weechat</h2>
<div class="outline-text-2" id="text-orgfba702e">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Desktop Entry</span>]
<span class="org-variable-name">Encoding</span>=UTF-8
<span class="org-variable-name">MultipleArgs</span>=false
<span class="org-variable-name">Terminal</span>=false
<span class="org-variable-name">Exec</span>=termite --class=WeeChat -e <span class="org-string">'weechat'</span>
<span class="org-variable-name">StartupWMClass</span>=WeeChat
<span class="org-variable-name">Icon</span>=/usr/share/icons/Papirus/64x64/apps/weechat.svg
<span class="org-variable-name">Type</span>=Application
<span class="org-variable-name">Categories</span>=Network;IRCClient;
<span class="org-variable-name">StartupNotify</span>=true
<span class="org-variable-name">Name</span>=WeeChat
<span class="org-variable-name">GenericName</span>=IRC Client
</pre>
</div>
</div>
</div>
<div id="outline-container-org0917adc" class="outline-2">
<h2 id="org0917adc">Matlab</h2>
<div class="outline-text-2" id="text-org0917adc">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Desktop Entry</span>]
<span class="org-variable-name">Version</span>=R2019b
<span class="org-variable-name">Type</span>=Application
<span class="org-variable-name">Terminal</span>=false
<span class="org-variable-name">MimeType</span>=text/x-matlab
<span class="org-variable-name">Exec</span>=/usr/local/MATLAB/R2019b/bin/matlab -desktop
<span class="org-variable-name">Name</span>=MATLAB
<span class="org-variable-name">Icon</span>=matlab
<span class="org-variable-name">Categories</span>=Development;Math;Science
<span class="org-variable-name">Comment</span>=Scientific computing environment
<span class="org-variable-name">StartupNotify</span>=true
</pre>
</div>
</div>
</div>
<div id="outline-container-org721c080" class="outline-2">
<h2 id="org721c080">Neovim</h2>
<div class="outline-text-2" id="text-org721c080">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Desktop Entry</span>]
<span class="org-variable-name">Name</span>=Neovim
<span class="org-variable-name">GenericName</span>=Text Editor
<span class="org-variable-name">Comment</span>=Edit text files
<span class="org-variable-name">Exec</span>=nvim %F
<span class="org-variable-name">Terminal</span>=true
<span class="org-variable-name">Type</span>=Application
<span class="org-variable-name">Keywords</span>=Text;editor;
<span class="org-variable-name">Icon</span>=/usr/share/icons/Papirus/48x48/apps/nvim.svg
<span class="org-variable-name">Categories</span>=Utility;TextEditor;
<span class="org-variable-name">StartupNotify</span>=false
<span class="org-variable-name">MimeType</span>=text/english;text/plain;text/x-makefile;
</pre>
</div>
</div>
</div>
<div id="outline-container-org253b1df" class="outline-2">
<h2 id="org253b1df"><span class="todo TODO">TODO</span> Transmission</h2>
<div class="outline-text-2" id="text-org253b1df">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Desktop Entry</span>]
<span class="org-variable-name">Type</span>=Application
<span class="org-variable-name">Name</span>=Torrent
<span class="org-variable-name">Exec</span>=/usr/bin/env transadd %U
</pre>
</div>
</div>
</div>
<div id="outline-container-org11a99e9" class="outline-2">
<h2 id="org11a99e9">Images</h2>
<div class="outline-text-2" id="text-org11a99e9">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Desktop Entry</span>]
<span class="org-variable-name">Type</span>=Application
<span class="org-variable-name">Name</span>=Image viewer
<span class="org-variable-name">Exec</span>=/usr/bin/sxiv -a %u
</pre>
</div>
</div>
</div>
<div id="outline-container-org993c573" class="outline-2">
<h2 id="org993c573"><span class="todo TODO">TODO</span> RSS</h2>
<div class="outline-text-2" id="text-org993c573">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Desktop Entry</span>]
<span class="org-variable-name">Type</span>=Application
<span class="org-variable-name">Name</span>=RSS feed addition
<span class="org-variable-name">Exec</span>=/usr/bin/env rssadd %U
</pre>
</div>
</div>
</div>
<div id="outline-container-orgf48f5f6" class="outline-2">
<h2 id="orgf48f5f6">Qutebrowser</h2>
<div class="outline-text-2" id="text-orgf48f5f6">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Desktop Entry</span>]
<span class="org-variable-name">Name</span>=qutebrowser
<span class="org-variable-name">GenericName</span>=Web Browser
<span class="org-variable-name">Comment</span>=A keyboard-driven, vim-like browser based on PyQt5
<span class="org-variable-name">Icon</span>=qutebrowser
<span class="org-variable-name">Type</span>=Application
<span class="org-variable-name">Categories</span>=Network;WebBrowser;
<span class="org-variable-name">Exec</span>=qutebrowser %u
<span class="org-variable-name">Terminal</span>=false
<span class="org-variable-name">StartupNotify</span>=false
<span class="org-variable-name">MimeType</span>=text/html;text/xml;application/xhtml+xml;application/xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/qute;
<span class="org-variable-name">Keywords</span>=Browser
<span class="org-variable-name">Actions</span>=new-window;preferences;
</pre>
</div>
</div>
</div>
<div id="outline-container-org6d53535" class="outline-2">
<h2 id="org6d53535">Org-Protocol</h2>
<div class="outline-text-2" id="text-org6d53535">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Desktop Entry</span>]
<span class="org-variable-name">Name</span>=org-protocol
<span class="org-variable-name">Exec</span>=emacsclient %u
<span class="org-variable-name">Type</span>=Application
<span class="org-variable-name">Terminal</span>=false
<span class="org-variable-name">Categories</span>=System;
<span class="org-variable-name">MimeType</span>=x-scheme-handler/org-protocol;
</pre>
</div>
</div>
</div>
<div id="outline-container-org77502a5" class="outline-2">
<h2 id="org77502a5">Ranger</h2>
<div class="outline-text-2" id="text-org77502a5">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Desktop Entry</span>]
<span class="org-variable-name">Type</span>=Application
<span class="org-variable-name">Name</span>=ranger
<span class="org-variable-name">Comment</span>=Launches the ranger file manager
<span class="org-variable-name">Icon</span>=utilities-terminal
<span class="org-variable-name">Terminal</span>=true
<span class="org-variable-name">Exec</span>=ranger
<span class="org-variable-name">Categories</span>=ConsoleOnly;System;FileTools;FileManager
<span class="org-variable-name">MimeType</span>=inode/directory;inode/mount-point;x-scheme-handler/ssh;x-scheme-handler/smb;x-scheme-handler/nfs;x-scheme-handler/ftp;
</pre>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 21:51</p>
</div>
</body>
</html>

971
docs/bash.html Normal file
View File

@ -0,0 +1,971 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 22:00 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Bash Configuration</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="../css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="../css/readtheorg.css"/>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="../js/readtheorg.js"></script>
<script type="text/javascript">
/*
@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[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</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">Bash Configuration</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#orge676bb2">Bashrc</a>
<ul>
<li><a href="#org6524e6a"><span class="todo TODO">TODO</span> What does that do?</a></li>
<li><a href="#orgade44ee">Bash Completion</a></li>
<li><a href="#orgd9f988d">Ignore case for autocompletion</a></li>
<li><a href="#org41663f0">Use Color</a></li>
<li><a href="#org72d992f"><span class="todo TODO">TODO</span> Set colorful PS1 only on colorful terminals.</a></li>
<li><a href="#org6e324a6">Prompt</a></li>
<li><a href="#org3b3776c">SSH Agent</a></li>
<li><a href="#org586ae40">Rebind up and down arrow keys to search through bash history</a></li>
<li><a href="#org928d454"><span class="todo TODO">TODO</span> Aliases</a>
<ul>
<li><a href="#orgfc778e8">Better defaults for some commands</a></li>
<li><a href="#orgd519f4b">One letter aliases</a></li>
<li><a href="#org564af34">Neovim</a></li>
<li><a href="#org258d499">Magit</a></li>
<li><a href="#org9b3882d">Vim-like</a></li>
<li><a href="#orgafc5f84">Youtube</a></li>
<li><a href="#org62f7fe5">Print each PATH entry on a separate line</a></li>
<li><a href="#orgc2bc628"><span class="todo TODO">TODO</span> IP addresses - Remove the use of <code>dig</code> and <code>ifbashig</code></a></li>
</ul>
</li>
<li><a href="#org25e4d93"><span class="todo TODO">TODO</span> Functions</a>
<ul>
<li><a href="#orgfc4520c">Display colors</a></li>
<li><a href="#orgd523ae5"><span class="todo TODO">TODO</span> Meteo - Is Dig mandatory?</a></li>
<li><a href="#org9277857"><span class="todo TODO">TODO</span> Upload using transfer.sh</a></li>
<li><a href="#orgee3bfdb"><span class="todo TODO">TODO</span> Upload alternative</a></li>
<li><a href="#org06c01e0">Extract archive</a></li>
<li><a href="#org1522290">Tree display</a></li>
<li><a href="#orgfe71409">Create a new directory and enter it</a></li>
<li><a href="#org4395b78">Filesize of directory</a></li>
<li><a href="#orgf1e7ce2">Redirect both standard output and standard error, as well as sending to background</a></li>
<li><a href="#org2896f4a">Send SMS</a></li>
</ul>
</li>
<li><a href="#org9d14b86">Bash History</a></li>
</ul>
</li>
<li><a href="#org6a5ac47">Bash Profile</a></li>
<li><a href="#org99b9ec7">Profile</a>
<ul>
<li><a href="#orgfbbfbf9">QT And GTK Themes</a></li>
<li><a href="#orgbe2ffab">Gui program to ask for sudo password</a></li>
<li><a href="#org3e2966e">Default</a></li>
<li><a href="#org5ea13c1">Exports</a>
<ul>
<li><a href="#org1a74001">XDG Default</a></li>
<li><a href="#org117a776">Better yaourt colors</a></li>
<li><a href="#org684e85f">Use Ripgrep for FZF</a></li>
<li><a href="#org545dc00">Goland</a></li>
<li><a href="#orgeca4d01">SSH Agent</a></li>
</ul>
</li>
<li><a href="#org3b15f2e">Path</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div id="outline-container-orge676bb2" class="outline-2">
<h2 id="orge676bb2">Bashrc</h2>
<div class="outline-text-2" id="text-orge676bb2">
</div>
<div id="outline-container-org6524e6a" class="outline-3">
<h3 id="org6524e6a"><span class="todo TODO">TODO</span> What does that do?</h3>
<div class="outline-text-3" id="text-org6524e6a">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> $<span class="org-variable-name">-</span> != *i* <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span> &amp;&amp; <span class="org-keyword">return</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgade44ee" class="outline-3">
<h3 id="orgade44ee">Bash Completion</h3>
<div class="outline-text-3" id="text-orgade44ee">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-rainbow-delimiters-depth-1">[</span> -r /usr/share/bash-completion/bash_completion <span class="org-rainbow-delimiters-depth-1">]</span> &amp;&amp; <span class="org-builtin">.</span> /usr/share/bash-completion/bash_completion
</pre>
</div>
</div>
</div>
<div id="outline-container-orgd9f988d" class="outline-3">
<h3 id="orgd9f988d">Ignore case for autocompletion</h3>
<div class="outline-text-3" id="text-orgd9f988d">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">bind</span> <span class="org-string">"set completion-ignore-case on"</span>
<span class="org-builtin">bind</span> <span class="org-string">"set show-all-if-ambiguous on"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org41663f0" class="outline-3">
<h3 id="org41663f0">Use Color</h3>
<div class="outline-text-3" id="text-org41663f0">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">use_color</span>=true
<span class="org-builtin">alias</span> <span class="org-type">ls</span>=<span class="org-string">'</span><span class="org-type"><span class="org-string">ls</span></span><span class="org-string"> -hN --color=auto --group-directories-first'</span>
<span class="org-builtin">alias</span> <span class="org-type">grep</span>=<span class="org-string">'</span><span class="org-type"><span class="org-string">grep</span></span><span class="org-string"> --colour=auto'</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org72d992f" class="outline-3">
<h3 id="org72d992f"><span class="todo TODO">TODO</span> Set colorful PS1 only on colorful terminals.</h3>
<div class="outline-text-3" id="text-org72d992f">
<p>
dircolors &#x2013;print-database uses its own built-in database instead of using /etc/DIR<sub>COLORS</sub>. Try to use the external file first to take advantage of user additions. Use internal bash globbing instead of external grep binary.
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">safe_term</span>=$<span class="org-rainbow-delimiters-depth-1">{</span><span class="org-variable-name">TERM</span>//<span class="org-rainbow-delimiters-depth-2">[</span>^<span class="org-rainbow-delimiters-depth-3">[</span>:alnum:<span class="org-rainbow-delimiters-depth-3">]</span><span class="org-rainbow-delimiters-depth-2">]</span>/?<span class="org-rainbow-delimiters-depth-1">}</span> <span class="org-comment-delimiter"># </span><span class="org-comment">sanitize TERM</span>
<span class="org-variable-name">match_lhs</span>=<span class="org-string">""</span>
<span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> -f ~/.dir_colors <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span> &amp;&amp; <span class="org-variable-name">match_lhs</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">{match_lhs}</span></span><span class="org-string"><span class="org-sh-quoted-exec">$(&lt;~/.dir_colors)</span></span><span class="org-string">"</span>
<span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> -f /etc/DIR_COLORS <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span> &amp;&amp; <span class="org-variable-name">match_lhs</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">{match_lhs}</span></span><span class="org-string"><span class="org-sh-quoted-exec">$(&lt;/etc/DIR_COLORS)</span></span><span class="org-string">"</span>
<span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> -z $<span class="org-rainbow-delimiters-depth-3">{</span><span class="org-variable-name">match_lhs</span><span class="org-rainbow-delimiters-depth-3">}</span> <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span> <span class="org-sh-escaped-newline">\</span>
&amp;&amp; <span class="org-builtin">type</span> -P dircolors &gt;/dev/null <span class="org-sh-escaped-newline">\</span>
&amp;&amp; <span class="org-variable-name">match_lhs</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">dircolors</span> --print-database<span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> $<span class="org-string">'\n'</span>$<span class="org-rainbow-delimiters-depth-3">{</span><span class="org-variable-name">match_lhs</span><span class="org-rainbow-delimiters-depth-3">}</span> == *$<span class="org-string">'\n'"TERM "</span>$<span class="org-rainbow-delimiters-depth-3">{</span><span class="org-variable-name">safe_term</span><span class="org-rainbow-delimiters-depth-3">}</span>* <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span> &amp;&amp; <span class="org-variable-name">use_color</span>=true
<span class="org-keyword">if</span> $<span class="org-rainbow-delimiters-depth-1">{</span><span class="org-variable-name">use_color</span><span class="org-rainbow-delimiters-depth-1">}</span> ; <span class="org-keyword">then</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Enable colors for ls, etc. Prefer ~/.dir_colors #64489</span>
<span class="org-keyword">if </span><span class="org-builtin">type</span> -P dircolors &gt;/dev/null ; <span class="org-keyword">then</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> -f ~/.dir_colors <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-builtin">eval</span> $<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">dircolors</span> -b ~/.dir_colors<span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-keyword">elif</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> -f /etc/DIR_COLORS <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-builtin">eval</span> $<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">dircolors</span> -b /etc/DIR_COLORS<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><span class="org-rainbow-delimiters-depth-2">[</span> $<span class="org-rainbow-delimiters-depth-3">{</span><span class="org-variable-name">EUID</span><span class="org-rainbow-delimiters-depth-3">}</span> == <span class="org-highlight-numbers-number">0</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">PS1</span>=<span class="org-string">'\[\033[01;31m\][\h\[\033[01;36m\] \W\[\033[01;31m\]]\$\[\033[00m\] '</span>
<span class="org-keyword">else</span>
<span class="org-variable-name">PS1</span>=<span class="org-string">'\[\033[01;32m\][\u@\h\[\033[01;37m\] \W\[\033[01;32m\]]\$\[\033[00m\] '</span>
<span class="org-keyword">fi</span>
<span class="org-keyword">else</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-rainbow-delimiters-depth-3">{</span><span class="org-variable-name">EUID</span><span class="org-rainbow-delimiters-depth-3">}</span> == <span class="org-highlight-numbers-number">0</span> <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span> ; <span class="org-keyword">then</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">show root@ when we don't have colors</span>
<span class="org-variable-name">PS1</span>=<span class="org-string">'\u@\h \W \$ '</span>
<span class="org-keyword">else</span>
<span class="org-variable-name">PS1</span>=<span class="org-string">'\u@\h \w \$ '</span>
<span class="org-keyword">fi</span>
<span class="org-keyword">fi</span>
</pre>
</div>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">unset</span> use_color safe_term match_lhs sh
</pre>
</div>
<div class="org-src-container">
<pre class="src src-bash">xhost +local:root &gt; /dev/null <span class="org-highlight-numbers-number">2</span>&gt;&amp;<span class="org-highlight-numbers-number">1</span>
<span class="org-builtin">complete</span> -cf <span class="org-type">sudo</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Line wrap on window resize</span>
<span class="org-builtin">shopt</span> -s checkwinsize
<span class="org-builtin">shopt</span> -s expand_aliases
<span class="org-comment-delimiter"># </span><span class="org-comment">Auto "</span><span class="org-type"><span class="org-comment">cd</span></span><span class="org-comment">" when entering just a path</span>
<span class="org-builtin">shopt</span> -s autocd
<span class="org-comment-delimiter"># </span><span class="org-comment">Enable history appending instead of overwriting</span>
<span class="org-builtin">shopt</span> -s histappend
</pre>
</div>
</div>
</div>
<div id="outline-container-org6e324a6" class="outline-3">
<h3 id="org6e324a6">Prompt</h3>
<div class="outline-text-3" id="text-org6e324a6">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">PS1</span>=<span class="org-string">"\[</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">tput</span><span class="org-string"><span class="org-sh-quoted-exec"> bold)</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">tput</span><span class="org-string"><span class="org-sh-quoted-exec"> setaf 1)</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">tput</span><span class="org-string"><span class="org-sh-quoted-exec"> setaf 3)</span></span><span class="org-string">\]\u\[</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">tput</span><span class="org-string"><span class="org-sh-quoted-exec"> setaf 2)</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">tput</span><span class="org-string"><span class="org-sh-quoted-exec"> setaf 4)</span></span><span class="org-string">\]\h \[</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">tput</span><span class="org-string"><span class="org-sh-quoted-exec"> setaf 5)</span></span><span class="org-string">\]\W\[</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">tput</span><span class="org-string"><span class="org-sh-quoted-exec"> setaf 1)</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">tput</span><span class="org-string"><span class="org-sh-quoted-exec"> setaf 7)</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">tput</span><span class="org-string"><span class="org-sh-quoted-exec"> sgr0)</span></span><span class="org-string">\]"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org3b3776c" class="outline-3">
<h3 id="org3b3776c">SSH Agent</h3>
<div class="outline-text-3" id="text-org3b3776c">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">if ! </span><span class="org-type"><span class="org-comment">pgrep</span></span><span class="org-comment"> -u "$USER" ssh-agent &gt; /dev/null; then</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">ssh-agent &gt; "$XDG_RUNTIME_DIR/ssh-agent.env"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">fi</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">if [[ ! "$SSH_AUTH_SOCK" ]]; then</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">eval "$(&lt;"$XDG_RUNTIME_DIR/ssh-agent.env")"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">fi</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org586ae40" class="outline-3">
<h3 id="org586ae40">Rebind up and down arrow keys to search through bash history</h3>
<div class="outline-text-3" id="text-org586ae40">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">bind</span> <span class="org-string">'"\e[A": history-search-backward'</span>
<span class="org-builtin">bind</span> <span class="org-string">'"\e[B": history-search-forward'</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org928d454" class="outline-3">
<h3 id="org928d454"><span class="todo TODO">TODO</span> Aliases</h3>
<div class="outline-text-3" id="text-org928d454">
</div>
<div id="outline-container-orgfc778e8" class="outline-4">
<h4 id="orgfc778e8">Better defaults for some commands</h4>
<div class="outline-text-4" id="text-orgfc778e8">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">alias</span> <span class="org-type">cp</span>=<span class="org-string">"</span><span class="org-type"><span class="org-string">cp</span></span><span class="org-string"> -i"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">confirm before overwriting something</span>
<span class="org-builtin">alias</span> <span class="org-variable-name">df</span>=<span class="org-string">'df -h'</span> <span class="org-comment-delimiter"># </span><span class="org-comment">human-readable sizes</span>
<span class="org-builtin">alias</span> <span class="org-variable-name">free</span>=<span class="org-string">'free -m'</span> <span class="org-comment-delimiter"># </span><span class="org-comment">show sizes in MB</span>
<span class="org-builtin">alias</span> <span class="org-variable-name">mutt</span>=<span class="org-string">"neomutt"</span>
<span class="org-builtin">alias</span> <span class="org-variable-name">tmux</span>=<span class="org-string">'tmux -f $XDG_CONFIG_HOME/tmux/tmux.conf'</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgd519f4b" class="outline-4">
<h4 id="orgd519f4b">One letter aliases</h4>
<div class="outline-text-4" id="text-orgd519f4b">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">alias</span> <span class="org-variable-name">r</span>=<span class="org-string">"ranger"</span>
<span class="org-builtin">alias</span> <span class="org-variable-name">t</span>=<span class="org-string">"tmux"</span>
<span class="org-builtin">alias</span> <span class="org-variable-name">v</span>=<span class="org-string">"nvim"</span>
<span class="org-builtin">alias</span> <span class="org-variable-name">sv</span>=<span class="org-string">'</span><span class="org-type"><span class="org-string">sudo</span></span><span class="org-string"> -E nvim'</span>
<span class="org-builtin">alias</span> <span class="org-variable-name">g</span>=<span class="org-string">"</span><span class="org-type"><span class="org-string">git</span></span><span class="org-string">"</span>
<span class="org-builtin">alias</span> <span class="org-variable-name">m</span>=<span class="org-string">"neomutt"</span>
<span class="org-builtin">alias</span> <span class="org-variable-name">y</span>=<span class="org-string">"yadm"</span>
<span class="org-builtin">alias</span> <span class="org-variable-name">o</span>=<span class="org-string">"xdg-open"</span>
<span class="org-builtin">alias</span> <span class="org-variable-name">x</span>=<span class="org-string">"sxiv -ft *"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org564af34" class="outline-4">
<h4 id="org564af34">Neovim</h4>
<div class="outline-text-4" id="text-org564af34">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">command</span> -v nvim &gt;/dev/null &amp;&amp; <span class="org-builtin">alias</span> <span class="org-variable-name">vim</span>=<span class="org-string">"nvim"</span> <span class="org-variable-name">vimdiff</span>=<span class="org-string">"nvim -d"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Use neovim for vim if present.</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org258d499" class="outline-4">
<h4 id="org258d499">Magit</h4>
<div class="outline-text-4" id="text-org258d499">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">alias magit="emacsclient -create-frame --alternate-editor=\"\" --eval '(magit-status)'"</span>
<span class="org-builtin">alias</span> <span class="org-variable-name">magit</span>=<span class="org-string">"nvim -c MagitOnly"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org9b3882d" class="outline-4">
<h4 id="org9b3882d">Vim-like</h4>
<div class="outline-text-4" id="text-org9b3882d">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">alias</span> :<span class="org-variable-name">q</span>=exit
<span class="org-builtin">alias</span> :<span class="org-variable-name">e</span>=nvim
</pre>
</div>
</div>
</div>
<div id="outline-container-orgafc5f84" class="outline-4">
<h4 id="orgafc5f84">Youtube</h4>
<div class="outline-text-4" id="text-orgafc5f84">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">alias</span> <span class="org-variable-name">yt</span>=<span class="org-string">"youtube-dl --add-metadata -ic"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Download video link</span>
<span class="org-builtin">alias</span> <span class="org-variable-name">yta</span>=<span class="org-string">"yt -x -f bestaudio/best"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Download only audio</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org62f7fe5" class="outline-4">
<h4 id="org62f7fe5">Print each PATH entry on a separate line</h4>
<div class="outline-text-4" id="text-org62f7fe5">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">alias</span> <span class="org-variable-name">path</span>=<span class="org-string">'</span><span class="org-type"><span class="org-string">echo</span></span><span class="org-string"> -e ${PATH//:/\\n}'</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgc2bc628" class="outline-4">
<h4 id="orgc2bc628"><span class="todo TODO">TODO</span> IP addresses - Remove the use of <code>dig</code> and <code>ifbashig</code></h4>
<div class="outline-text-4" id="text-orgc2bc628">
<p>
Use <code>addr</code> instead
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">alias ip="dig +short myip.opendns.com @resolver1.opendns.com"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">alias localip="ip route get 8.8.4.4 | head -1 | awk '{print $7}'"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">alias ips="ifconfig -a | </span><span class="org-type"><span class="org-comment">grep</span></span><span class="org-comment"> -o 'inet6\? \(addr:\)\?\s\?\(\(\([0-9]\+\.\)\{3\}[0-9]\+\)\|[a-fA-F0-9:]\+\)' | awk '{ sub(/inet6? (addr:)? ?/, \"\"); print }'"</span>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org25e4d93" class="outline-3">
<h3 id="org25e4d93"><span class="todo TODO">TODO</span> Functions</h3>
<div class="outline-text-3" id="text-org25e4d93">
</div>
<div id="outline-container-orgfc4520c" class="outline-4">
<h4 id="orgfc4520c">Display colors</h4>
<div class="outline-text-4" id="text-orgfc4520c">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-function-name">colors</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-builtin">local</span> fgc bgc vals seq0
<span class="org-builtin">printf</span> <span class="org-string">"Color escapes are %s\n"</span> <span class="org-string">'\e[${value};...;${value}m'</span>
<span class="org-builtin">printf</span> <span class="org-string">"Values 30..37 are \e[33mforeground colors\e[m\n"</span>
<span class="org-builtin">printf</span> <span class="org-string">"Values 40..47 are \e[43mbackground colors\e[m\n"</span>
<span class="org-builtin">printf</span> <span class="org-string">"Value 1 gives a \e[1mbold-faced look\e[m\n\n"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">foreground colors</span>
<span class="org-keyword">for</span> fgc<span class="org-keyword"> in</span> <span class="org-rainbow-delimiters-depth-2">{</span>30..37<span class="org-rainbow-delimiters-depth-2">}</span>; <span class="org-keyword">do</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">background colors</span>
<span class="org-keyword">for</span> bgc<span class="org-keyword"> in</span> <span class="org-rainbow-delimiters-depth-2">{</span>40..47<span class="org-rainbow-delimiters-depth-2">}</span>; <span class="org-keyword">do</span>
<span class="org-variable-name">fgc</span>=$<span class="org-rainbow-delimiters-depth-2">{</span><span class="org-variable-name">fgc</span>#37<span class="org-rainbow-delimiters-depth-2">}</span> <span class="org-comment-delimiter"># </span><span class="org-comment">white</span>
<span class="org-variable-name">bgc</span>=$<span class="org-rainbow-delimiters-depth-2">{</span><span class="org-variable-name">bgc</span>#40<span class="org-rainbow-delimiters-depth-2">}</span> <span class="org-comment-delimiter"># </span><span class="org-comment">black</span>
<span class="org-variable-name">vals</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">{fgc:+$fgc;}</span></span><span class="org-string">${bgc}"</span>
<span class="org-variable-name">vals</span>=$<span class="org-rainbow-delimiters-depth-2">{</span><span class="org-variable-name">vals</span>%%;<span class="org-rainbow-delimiters-depth-2">}</span>
<span class="org-variable-name">seq0</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">{vals:+\e[${vals}</span></span><span class="org-string">m}"</span>
<span class="org-builtin">printf</span> <span class="org-string">" %-9s"</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">{seq0:-(default)}</span></span><span class="org-string">"</span>
<span class="org-builtin">printf</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">{seq0}</span></span><span class="org-string">TEXT\e[m"</span>
<span class="org-builtin">printf</span> <span class="org-string">" \e[</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{vals:+${vals+$vals;}</span></span><span class="org-string">}1mBOLD\e[m"</span>
<span class="org-keyword">done</span>
<span class="org-type">echo</span>; <span class="org-type">echo</span>
<span class="org-keyword">done</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgd523ae5" class="outline-4">
<h4 id="orgd523ae5"><span class="todo TODO">TODO</span> Meteo - Is Dig mandatory?</h4>
<div class="outline-text-4" id="text-orgd523ae5">
<p>
To install <code>dig</code>, use <code>yay -S bind-tools</code>
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-function-name">meteo</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-2">[</span> -n <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">*</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
<span class="org-variable-name">address</span>=<span class="org-string">"wttr.in/"</span>
<span class="org-variable-name">address</span>+=$<span class="org-variable-name">*</span>
<span class="org-variable-name">address</span>+=<span class="org-string">"?lang=fr"</span>
<span class="org-type">curl</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">address</span></span><span class="org-string">"</span>
<span class="org-keyword">else</span>
<span class="org-variable-name">address</span>=<span class="org-string">"wttr.in/"</span>
<span class="org-variable-name">address</span>+=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">ip</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-variable-name">address</span>+=<span class="org-string">"?lang=fr"</span>
<span class="org-type">curl</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">address</span></span><span class="org-string">"</span>
<span class="org-keyword">fi</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-builtin">alias</span> <span class="org-variable-name">meteo</span>=meteo
</pre>
</div>
</div>
</div>
<div id="outline-container-org9277857" class="outline-4">
<h4 id="org9277857"><span class="todo TODO">TODO</span> Upload using transfer.sh</h4>
<div class="outline-text-4" id="text-org9277857">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-function-name">upload</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">write to output to tmpfile because of progress bar</span>
<span class="org-variable-name">tmpfile</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">mktemp</span> -t transferXXX<span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">basefile=$(</span><span class="org-sh-quoted-exec">basename</span><span class="org-comment"> "$1" | sed -e 's/[^a-zA-Z0-9]/-/g')</span>
<span class="org-type">curl</span> --progress-bar --upload-file <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">"https://transfer.sh/"</span> &gt;&gt; $<span class="org-variable-name">tmpfile</span>;
<span class="org-type">cat</span> $<span class="org-variable-name">tmpfile</span> | xclip -selection clipboard;
<span class="org-type">echo</span> <span class="org-string">"Copied:"</span> $<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">cat</span> $<span class="org-variable-name">tmpfile</span><span class="org-rainbow-delimiters-depth-2">)</span>;
<span class="org-type">rm</span> -f $<span class="org-variable-name">tmpfile</span>;
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-builtin">alias</span> <span class="org-variable-name">upload</span>=upload
</pre>
</div>
</div>
</div>
<div id="outline-container-orgee3bfdb" class="outline-4">
<h4 id="orgee3bfdb"><span class="todo TODO">TODO</span> Upload alternative</h4>
<div class="outline-text-4" id="text-orgee3bfdb">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-function-name">transfer</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-type">curl</span> --progress-bar --upload-file <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> https://transfer.sh/$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">basename</span> $<span class="org-highlight-numbers-number">1</span><span class="org-rainbow-delimiters-depth-2">)</span> | xclip -in -selection clipboard;
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-builtin">alias</span> <span class="org-variable-name">transfer</span>=transfer
</pre>
</div>
</div>
</div>
<div id="outline-container-org06c01e0" class="outline-4">
<h4 id="org06c01e0">Extract archive</h4>
<div class="outline-text-4" id="text-org06c01e0">
<p>
usage: ex &lt;file&gt;
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-function-name">ex</span> <span class="org-rainbow-delimiters-depth-1">()</span>
<span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-keyword">if</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-keyword">then</span>
<span class="org-keyword">case</span> $<span class="org-highlight-numbers-number">1</span><span class="org-keyword"> in</span>
*.tar.bz2) tar xjf $<span class="org-highlight-numbers-number">1</span> ;;
*.tar.gz) tar xzf $<span class="org-highlight-numbers-number">1</span> ;;
*.bz2) bunzip2 $<span class="org-highlight-numbers-number">1</span> ;;
*.rar) unrar x $<span class="org-highlight-numbers-number">1</span> ;;
*.gz) gunzip $<span class="org-highlight-numbers-number">1</span> ;;
*.tar) tar xf $<span class="org-highlight-numbers-number">1</span> ;;
*.tbz2) tar xjf $<span class="org-highlight-numbers-number">1</span> ;;
*.tgz) tar xzf $<span class="org-highlight-numbers-number">1</span> ;;
*.zip) unzip $<span class="org-highlight-numbers-number">1</span> ;;
*.Z) uncompress $<span class="org-highlight-numbers-number">1</span>;;
*.7z) 7z x $<span class="org-highlight-numbers-number">1</span> ;;
*) <span class="org-type">echo</span> <span class="org-string">"'</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">' cannot be extracted via ex()"</span> ;;
<span class="org-keyword">esac</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">1</span></span><span class="org-string">' is not a valid file"</span>
<span class="org-keyword">fi</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org1522290" class="outline-4">
<h4 id="org1522290">Tree display</h4>
<div class="outline-text-4" id="text-org1522290">
<p>
<code>tre</code> is a shorthand for <code>tree</code> with hidden files and color enabled, ignoring
the <code>.git</code> directory, listing directories first. The output gets piped into
<code>less</code> with options to preserve color and line numbers, unless the output is
small enough for one screen.
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">function</span> <span class="org-function-name">tre</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
tree -aC -I <span class="org-string">'.git|node_modules|bower_components'</span> --dirsfirst <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-type">less</span> -FRNX;
<span class="org-rainbow-delimiters-depth-1">}</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgfe71409" class="outline-4">
<h4 id="orgfe71409">Create a new directory and enter it</h4>
<div class="outline-text-4" id="text-orgfe71409">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">function</span> <span class="org-function-name">mkd</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-type">mkdir</span> -p <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> &amp;&amp; <span class="org-type">cd</span> <span class="org-string">"$_"</span>;
<span class="org-rainbow-delimiters-depth-1">}</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org4395b78" class="outline-4">
<h4 id="org4395b78">Filesize of directory</h4>
<div class="outline-text-4" id="text-org4395b78">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">function</span> <span class="org-function-name">fs</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-keyword">if</span> du -b /dev/null &gt; /dev/null <span class="org-highlight-numbers-number">2</span>&gt;&amp;<span class="org-highlight-numbers-number">1</span>; <span class="org-keyword">then</span>
<span class="org-builtin">local</span> <span class="org-variable-name">arg</span>=-sbh;
<span class="org-keyword">else</span>
<span class="org-builtin">local</span> <span class="org-variable-name">arg</span>=-sh;
<span class="org-keyword">fi</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-2">[</span><span class="org-rainbow-delimiters-depth-3">[</span> -n <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-3">]</span><span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
du $<span class="org-variable-name">arg</span> -- <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span>;
<span class="org-keyword">else</span>
du $<span class="org-variable-name">arg</span> .<span class="org-rainbow-delimiters-depth-2">[</span>^.<span class="org-rainbow-delimiters-depth-2">]</span>* ./*;
<span class="org-keyword">fi</span>;
<span class="org-rainbow-delimiters-depth-1">}</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgf1e7ce2" class="outline-4">
<h4 id="orgf1e7ce2">Redirect both standard output and standard error, as well as sending to background</h4>
<div class="outline-text-4" id="text-orgf1e7ce2">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">function</span> <span class="org-function-name">nullify</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">@</span></span><span class="org-string">"</span> &gt;/dev/null <span class="org-highlight-numbers-number">2</span>&gt;&amp;<span class="org-highlight-numbers-number">1</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org2896f4a" class="outline-4">
<h4 id="org2896f4a">Send SMS</h4>
<div class="outline-text-4" id="text-org2896f4a">
<p>
<a href="https://doronbehar.com/articles/using-kdeconnect-to-comfortably-send-sms-messages-from-the-shell/#kdeconnects-builtin-sms-interface">https://doronbehar.com/articles/using-kdeconnect-to-comfortably-send-sms-messages-from-the-shell/#kdeconnects-builtin-sms-interface</a>
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-function-name">sms</span><span class="org-rainbow-delimiters-depth-1">(){</span>
<span class="org-builtin">local</span> <span class="org-variable-name">args</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-comment-delimiter"># </span><span class="org-comment">local phone_number name phone_type</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">khard phone --parsable | sort -u | fzf | IFS=$'\t' read -r phone_number name phone_type</span>
<span class="org-builtin">local</span> <span class="org-variable-name">phone_number</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">khard</span> phone --parsable | sort -u | fzf | cut -f1 -d$<span class="org-string">'\t'</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-rainbow-delimiters-depth-3">[</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">{phone_number}</span></span><span class="org-string">"</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-type">echo</span> No recipient was chosen &gt;&amp;<span class="org-highlight-numbers-number">2</span>
<span class="org-keyword">return</span>
<span class="org-keyword">else</span>
<span class="org-comment-delimiter"># </span><span class="org-type"><span class="org-comment">echo</span></span><span class="org-comment"> "${name}"$'\t'"${phone_number}"$'\t'"${phone_type}" &gt; ${_KDECONNECT_SMS_LAST_RECIPIENT}</span>
kdeconnect-cli --send-sms <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{args}</span></span><span class="org-string">"</span> --destination <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{phone_number}</span></span><span class="org-string">"</span> --device 4de3b5de2264a17c
<span class="org-comment-delimiter"># </span><span class="org-comment">kdeconnect-cli --device ${_KDECONNECT_DEFAULT_DEVICE} --send-sms "${args}" --destination "${phone_number}" &amp;&amp; \</span>
<span class="org-comment-delimiter"># </span><span class="org-type"><span class="org-comment">echo</span></span><span class="org-comment"> sent sms message to ${name} | fribidi</span>
<span class="org-keyword">fi</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org9d14b86" class="outline-3">
<h3 id="org9d14b86">Bash History</h3>
<div class="outline-text-3" id="text-org9d14b86">
<p>
Undocumented feature which sets the size to &ldquo;unlimited&rdquo;. <a href="http://stackoverflow.com/questions/9457233/unlimited-bash-history">http://stackoverflow.com/questions/9457233/unlimited-bash-history</a>
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">HISTFILESIZE</span>=
<span class="org-builtin">export</span> <span class="org-variable-name">HISTSIZE</span>=
<span class="org-builtin">export</span> <span class="org-variable-name">HISTTIMEFORMAT</span>=<span class="org-string">"[%F %T] "</span>
</pre>
</div>
<p>
Change the file location because certain bash sessions truncate <code>.bash_history</code> file upon close. <a href="http://superuser.com/questions/575479/bash-history-truncated-to-500-lines-on-each-login">http://superuser.com/questions/575479/bash-history-truncated-to-500-lines-on-each-login</a>
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">HISTFILE</span>=~/.bash_eternal_history
</pre>
</div>
<p>
Force prompt to write history after every command. <a href="http://superuser.com/questions/20900/bash-history-loss">http://superuser.com/questions/20900/bash-history-loss</a>
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">PROMPT_COMMAND</span>=<span class="org-string">"history -a; </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">PROMPT_COMMAND</span></span><span class="org-string">"</span>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org6a5ac47" class="outline-2">
<h2 id="org6a5ac47">Bash Profile</h2>
<div class="outline-text-2" id="text-org6a5ac47">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> -f ~/.profile <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span> &amp;&amp; <span class="org-builtin">.</span> ~/.profile
<span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> -f ~/.bashrc <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span> &amp;&amp; <span class="org-builtin">.</span> ~/.bashrc
</pre>
</div>
</div>
</div>
<div id="outline-container-org99b9ec7" class="outline-2">
<h2 id="org99b9ec7">Profile</h2>
<div class="outline-text-2" id="text-org99b9ec7">
</div>
<div id="outline-container-orgfbbfbf9" class="outline-3">
<h3 id="orgfbbfbf9">QT And GTK Themes</h3>
<div class="outline-text-3" id="text-orgfbbfbf9">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">QT_QPA_PLATFORMTHEME</span>=<span class="org-string">"qt5ct"</span>
<span class="org-builtin">export</span> <span class="org-variable-name">GTK2_RC_FILES</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">HOME</span></span><span class="org-string">/.gtkrc-2.0"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgbe2ffab" class="outline-3">
<h3 id="orgbe2ffab">Gui program to ask for sudo password</h3>
<div class="outline-text-3" id="text-orgbe2ffab">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">SUDO_ASKPASS</span>=~/bin/askpass-rofi
</pre>
</div>
</div>
</div>
<div id="outline-container-org3e2966e" class="outline-3">
<h3 id="org3e2966e">Default</h3>
<div class="outline-text-3" id="text-org3e2966e">
<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>
<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">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">FILE</span>=<span class="org-string">"ranger"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org5ea13c1" class="outline-3">
<h3 id="org5ea13c1">Exports</h3>
<div class="outline-text-3" id="text-org5ea13c1">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">TERM</span>=xterm-256color
</pre>
</div>
</div>
<div id="outline-container-org1a74001" class="outline-4">
<h4 id="org1a74001">XDG Default</h4>
<div class="outline-text-4" id="text-org1a74001">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">XDG_CONFIG_HOME</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">HOME</span></span><span class="org-string">/.config"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org117a776" class="outline-4">
<h4 id="org117a776">Better yaourt colors</h4>
<div class="outline-text-4" id="text-org117a776">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">YAOURT_COLORS</span>=<span class="org-string">"nb=1:pkg=1:ver=1;32:lver=1;45:installed=1;42:grp=1;34:od=1;41;5:votes=1;44:dsc=0:other=1;35"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org684e85f" class="outline-4">
<h4 id="org684e85f">Use Ripgrep for FZF</h4>
<div class="outline-text-4" id="text-org684e85f">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">FZF_DEFAULT_COMMAND</span>=<span class="org-string">'rg --files --no-ignore --hidden --follow --glob "!.git/*"'</span>
<span class="org-builtin">export</span> <span class="org-variable-name">FZF_DEFAULT_OPTS</span>=<span class="org-string">'--layout=reverse --height=20'</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org545dc00" class="outline-4">
<h4 id="org545dc00">Goland</h4>
<div class="outline-text-4" id="text-org545dc00">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">GOPATH</span>=$<span class="org-variable-name">HOME</span>/go
</pre>
</div>
</div>
</div>
<div id="outline-container-orgeca4d01" class="outline-4">
<h4 id="orgeca4d01">SSH Agent</h4>
<div class="outline-text-4" id="text-orgeca4d01">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">SSH_AUTH_SOCK</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">{XDG_RUNTIME_DIR}</span></span><span class="org-string">/ssh-agent.socket"</span>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org3b15f2e" class="outline-3">
<h3 id="org3b15f2e">Path</h3>
<div class="outline-text-3" id="text-org3b15f2e">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">PATH</span>=$<span class="org-variable-name">HOME</span>/appimages:$<span class="org-variable-name">PATH</span>
<span class="org-variable-name">PATH</span>=$<span class="org-variable-name">HOME</span>/.gem/ruby/2.5.0/bin:$<span class="org-variable-name">PATH</span>
<span class="org-variable-name">PATH</span>=$<span class="org-variable-name">GOPATH</span>:$<span class="org-variable-name">GOPATH</span>/bin:$<span class="org-variable-name">PATH</span>
<span class="org-variable-name">PATH</span>=~/bin:$<span class="org-variable-name">PATH</span>
<span class="org-variable-name">PATH</span>=~/.emacs.d/bin:$<span class="org-variable-name">PATH</span>
<span class="org-builtin">export</span> PATH
</pre>
</div>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 22:00</p>
</div>
</body>
</html>

927
docs/binaries.html Normal file
View File

@ -0,0 +1,927 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 22:00 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Binaries</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="../css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="../css/readtheorg.css"/>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="../js/readtheorg.js"></script>
<script type="text/javascript">
/*
@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[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</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">Binaries</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org40c80c4">Select Screen</a></li>
<li><a href="#orgc397cd6">getbib</a></li>
<li><a href="#org7ea4d1f">vpnToggle</a></li>
<li><a href="#org9d26597">bukurun</a></li>
<li><a href="#org31b0545">i3exit</a></li>
<li><a href="#org66b3195">readbib</a></li>
<li><a href="#org8d458ec">readnotes</a></li>
<li><a href="#org94000e9">askpass</a></li>
<li><a href="#orgfa2a5c4">Take Screenshot</a></li>
<li><a href="#org7cb3c53">Remote Desktop Connect</a></li>
<li><a href="#orgdee48e4">Toggle Network</a></li>
<li><a href="#orgc1d9d95">Print on Rnice</a></li>
<li><a href="#orgf1a877f">Mount TMP14DAYS</a></li>
</ul>
</div>
</div>
<div id="outline-container-org40c80c4" class="outline-2">
<h2 id="org40c80c4">Select Screen</h2>
<div class="outline-text-2" id="text-org40c80c4">
<p>
Script taken from Luke Smith.
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-function-name">twoscreen</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">If multi-monitor is selected and there are two screens.</span>
<span class="org-variable-name">mirror</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">printf</span> <span class="org-string">"no\\nyes"</span> | dmenu -i -p <span class="org-string">"Mirror displays?"</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Mirror displays using native resolution of external display and a scaled</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">version for the internal display</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">mirror</span></span><span class="org-string">"</span> = <span class="org-string">"yes"</span> <span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
<span class="org-variable-name">external</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">screens</span></span><span class="org-string">"</span> | dmenu -i -p <span class="org-string">"Optimize resolution for:"</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-variable-name">internal</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">screens</span></span><span class="org-string">"</span> | <span class="org-type">grep</span> -v <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">external</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-variable-name">res_external</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">xrandr</span> --query | sed -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">external</span></span><span class="org-string">/,/\+/p"</span> | <span class="org-sh-escaped-newline">\</span>
tail -n <span class="org-highlight-numbers-number">1</span> | awk <span class="org-string">'{print $1}'</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-variable-name">res_internal</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">xrandr</span> --query | sed -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">internal</span></span><span class="org-string">/,/\+/p"</span> | <span class="org-sh-escaped-newline">\</span>
tail -n <span class="org-highlight-numbers-number">1</span> | awk <span class="org-string">'{print $1}'</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-variable-name">res_ext_x</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> $<span class="org-variable-name">res_external</span> | sed <span class="org-string">'s/x.*//'</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-variable-name">res_ext_y</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> $<span class="org-variable-name">res_external</span> | sed <span class="org-string">'s/.*x//'</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-variable-name">res_int_x</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> $<span class="org-variable-name">res_internal</span> | sed <span class="org-string">'s/x.*//'</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-variable-name">res_int_y</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> $<span class="org-variable-name">res_internal</span> | sed <span class="org-string">'s/.*x//'</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-variable-name">scale_x</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">res_ext_x</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">res_int_x</span></span><span class="org-string">"</span> | bc -l<span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-variable-name">scale_y</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">res_ext_y</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">res_int_y</span></span><span class="org-string">"</span> | bc -l<span class="org-rainbow-delimiters-depth-2">)</span>
xrandr --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">external</span></span><span class="org-string">"</span> --auto --scale 1.0x1.0 <span class="org-sh-escaped-newline">\</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">internal</span></span><span class="org-string">"</span> --auto --same-as <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">external</span></span><span class="org-string">"</span> <span class="org-sh-escaped-newline">\</span>
--scale <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">scale_x</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">scale_y</span></span><span class="org-string">"</span>
<span class="org-keyword">else</span>
<span class="org-variable-name">primary</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">screens</span></span><span class="org-string">"</span> | dmenu -i -p <span class="org-string">"Select primary display:"</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-variable-name">secondary</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">screens</span></span><span class="org-string">"</span> | <span class="org-type">grep</span> -v <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">primary</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-variable-name">direction</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">printf</span> <span class="org-string">"left\\nright"</span> | dmenu -i -p <span class="org-string">"What side of </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">primary</span></span><span class="org-string"> should </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">secondary</span></span><span class="org-string"> be on?"</span><span class="org-rainbow-delimiters-depth-2">)</span>
xrandr --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">primary</span></span><span class="org-string">"</span> --auto --scale 1.0x1.0 --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">secondary</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">direction</span></span><span class="org-string">"</span>-of <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">primary</span></span><span class="org-string">"</span> --auto --scale 1.0x1.0
<span class="org-keyword">fi</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-function-name">morescreen</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">If multi-monitor is selected and there are more than two screens.</span>
<span class="org-variable-name">primary</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">screens</span></span><span class="org-string">"</span> | dmenu -i -p <span class="org-string">"Select primary display:"</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-variable-name">secondary</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">screens</span></span><span class="org-string">"</span> | <span class="org-type">grep</span> -v <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">primary</span></span><span class="org-string">"</span> | dmenu -i -p <span class="org-string">"Select secondary display:"</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-variable-name">direction</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">printf</span> <span class="org-string">"left\\nright"</span> | dmenu -i -p <span class="org-string">"What side of </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">primary</span></span><span class="org-string"> should </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">secondary</span></span><span class="org-string"> be on?"</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-variable-name">tertiary</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">screens</span></span><span class="org-string">"</span> | <span class="org-type">grep</span> -v <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">primary</span></span><span class="org-string">"</span> | <span class="org-type">grep</span> -v <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">secondary</span></span><span class="org-string">"</span> | dmenu -i -p <span class="org-string">"Select third display:"</span><span class="org-rainbow-delimiters-depth-2">)</span>
xrandr --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">primary</span></span><span class="org-string">"</span> --auto --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">secondary</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">direction</span></span><span class="org-string">"</span>-of <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">primary</span></span><span class="org-string">"</span> --auto --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">tertiary</span></span><span class="org-string">"</span> --<span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">printf</span><span class="org-string"><span class="org-sh-quoted-exec"> "left\\nright" | </span></span><span class="org-type"><span class="org-string"><span class="org-sh-quoted-exec">grep</span></span></span><span class="org-string"><span class="org-sh-quoted-exec"> -v "</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">direction</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">")</span></span><span class="org-string">"</span>-of <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">primary</span></span><span class="org-string">"</span> --auto
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-function-name">multimon</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">Multi-monitor handler.</span>
<span class="org-keyword">case</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">screens</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">" | wc -l)</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
<span class="org-highlight-numbers-number">1</span>) xrandr $<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">allposs</span></span><span class="org-string">"</span> | <span class="org-type">grep</span> -v <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">screens</span></span><span class="org-string">"</span> | awk <span class="org-string">'{print "--output", $1, "--off"}'</span> | tr <span class="org-string">'\n'</span> <span class="org-string">' '</span><span class="org-rainbow-delimiters-depth-2">)</span> ;;
<span class="org-highlight-numbers-number">2</span>) twoscreen ;;
*) morescreen ;;
<span class="org-keyword">esac</span> ;<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Get all possible displays</span>
<span class="org-variable-name">allposs</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">xrandr</span> -q | <span class="org-type">grep</span> <span class="org-string">"connected"</span><span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Get all connected screens.</span>
<span class="org-variable-name">screens</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">allposs</span></span><span class="org-string">"</span> | <span class="org-type">grep</span> <span class="org-string">" connected"</span> | awk <span class="org-string">'{print $1}'</span><span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Get user choice including multi-monitor and manual selection:</span>
<span class="org-variable-name">chosen</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">printf</span> <span class="org-string">"%s\\ncancel\\nmulti-monitor\\nmanual selection"</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">screens</span></span><span class="org-string">"</span> | dmenu -i -p <span class="org-string">"Select display arangement:"</span><span class="org-rainbow-delimiters-depth-1">)</span> &amp;&amp;
<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">chosen</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
<span class="org-string">"cancel"</span>) <span class="org-keyword">exit</span> ;;
<span class="org-string">"manual selection"</span>) arandr ; <span class="org-keyword">exit</span> ;;
<span class="org-string">"multi-monitor"</span>) multimon ;;
*) xrandr --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">chosen</span></span><span class="org-string">"</span> --auto --scale 1.0x1.0 $<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">allposs</span></span><span class="org-string">"</span> | <span class="org-type">grep</span> -v <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> | awk <span class="org-string">'{print "--output", $1, "--off"}'</span> | tr <span class="org-string">'\n'</span> <span class="org-string">' '</span><span class="org-rainbow-delimiters-depth-1">)</span> ;;
<span class="org-keyword">esac</span>
$<span class="org-variable-name">HOME</span>/.config/polybar/scripts/launch.sh <span class="org-comment-delimiter"># </span><span class="org-comment">restart polybar</span>
<span class="org-type">pgrep</span> -x dunst &gt;/dev/null &amp;&amp; killall dunst &amp;&amp; setsid dunst &amp; <span class="org-comment-delimiter"># </span><span class="org-comment">Restart dunst to ensure proper location on screen</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgc397cd6" class="outline-2">
<h2 id="orgc397cd6">getbib</h2>
<div class="outline-text-2" id="text-orgc397cd6">
<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> &amp;&amp; <span class="org-type">echo</span> <span class="org-string">"Give either a pdf file or a DOI as an argument."</span> &amp;&amp; <span class="org-keyword">exit</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-comment-delimiter"># </span><span class="org-comment">Try to get DOI from pdfinfo or pdftotext output.</span>
<span class="org-variable-name">doi</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">pdfinfo</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-type">grep</span> -io <span class="org-string">"doi:.*"</span><span class="org-rainbow-delimiters-depth-1">)</span> ||
<span class="org-variable-name">doi</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">pdftotext</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-highlight-numbers-number">2</span>&gt;/dev/null - | <span class="org-type">grep</span> -io <span class="org-string">"doi:.*"</span> -m <span class="org-highlight-numbers-number">1</span><span class="org-rainbow-delimiters-depth-1">)</span> ||
<span class="org-keyword">exit</span> <span class="org-highlight-numbers-number">1</span>
<span class="org-keyword">else</span>
<span class="org-variable-name">doi</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">fi</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Check crossref.org for the bib citation.</span>
<span class="org-type">curl</span> -s <span class="org-string">"http://api.crossref.org/works/</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">doi</span></span><span class="org-string">/transform/application/x-bibtex"</span> -w <span class="org-string">"\\n"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org7ea4d1f" class="outline-2">
<h2 id="org7ea4d1f">vpnToggle</h2>
<div class="outline-text-2" id="text-org7ea4d1f">
<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> $<span class="org-rainbow-delimiters-depth-3">(</span><span class="org-sh-quoted-exec">nordvpn</span> status<span class="org-rainbow-delimiters-depth-3">)</span> == *<span class="org-string">"Connected"</span>* <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
nordvpn disconnect &amp;&amp; dunstify --replace=<span class="org-highlight-numbers-number">23198</span> <span class="org-string">"VPN"</span> <span class="org-string">"Disconnected"</span>;
<span class="org-keyword">else</span>
<span class="org-variable-name">country</span>=<span class="org-sh-quoted-exec">`</span><span class="org-type"><span class="org-sh-quoted-exec">cat</span></span><span class="org-sh-quoted-exec"> ~/bin/nordvpn_countries.txt | sed 's/\s*\t\s*/ /g ; s/\s/\n/g ; s/_/ /g ; /^[a-zA-Z]/!d ; s/\(.*\)/\L\1/' | rofi -i -dmenu | sed 's/\s/_/g'`</span>;
dunstify --replace=<span class="org-highlight-numbers-number">23198</span> <span class="org-string">"VPN"</span> <span class="org-string">"Connecting to </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">country</span></span><span class="org-string">..."</span>;
nordvpn connect $<span class="org-variable-name">country</span> &amp;&amp; dunstify --replace=<span class="org-highlight-numbers-number">23198</span> <span class="org-string">"VPN"</span> <span class="org-string">"Connected to </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">country</span></span><span class="org-string">"</span>;
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org9d26597" class="outline-2">
<h2 id="org9d26597">bukurun</h2>
<div class="outline-text-2" id="text-org9d26597">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-function-name">_rofi</span> <span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
rofi -dmenu -i -no-levenshtein-sort -width <span class="org-highlight-numbers-number">1000</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">display settings</span>
<span class="org-variable-name">display_type</span>=<span class="org-highlight-numbers-number">1</span>
<span class="org-variable-name">max_str_width</span>=<span class="org-highlight-numbers-number">80</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">keybindings</span>
<span class="org-variable-name">switch_view</span>=<span class="org-string">"Alt+Tab"</span>
<span class="org-variable-name">new_bookmark</span>=<span class="org-string">"Alt+n"</span>
<span class="org-variable-name">actions</span>=<span class="org-string">"Alt+a"</span>
<span class="org-variable-name">edit</span>=<span class="org-string">"Alt+e"</span>
<span class="org-variable-name">delete</span>=<span class="org-string">"Alt+d"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">colors</span>
<span class="org-variable-name">help_color</span>=<span class="org-string">"#334433"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">source global config</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> -f /etc/buku_run.config <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-builtin">source</span> /etc/buku_run.config
<span class="org-keyword">fi</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">source local config:</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-variable-name">XDG_CONFIG_DIR</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-rainbow-delimiters-depth-2">[</span> -f $<span class="org-variable-name">HOME</span>/.config/buku_run/config <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-builtin">source</span> $<span class="org-variable-name">HOME</span>/.config/buku_run/config
<span class="org-keyword">else</span>
<span class="org-type">echo</span> <span class="org-string">"User config file \'~/.config/buku_run/config\' not found. using global config"</span>
<span class="org-keyword">fi</span>
<span class="org-keyword">else</span>
<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-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{XDG_CONFIG_DIR}</span></span><span class="org-string">/buku_run/config"</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-builtin">source</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">{XDG_CONFIG_DIR}</span></span><span class="org-string">/buku_run/config"</span>
<span class="org-keyword">else</span>
<span class="org-type">echo</span> <span class="org-string">"User config file \'~/.config/buku_run/config\' not found. using global config"</span>
<span class="org-keyword">fi</span>
<span class="org-keyword">fi</span>
<span class="org-function-name">main</span> <span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-variable-name">HELP</span>=<span class="org-string">"Welcome to Buku. Use &lt;span color='</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{help_color}</span></span><span class="org-string">'&gt;</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{new_bookmark}</span></span><span class="org-string">&lt;/span&gt; to add a new Bookmark</span>
<span class="org-string">Use &lt;span color='</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{help_color}</span></span><span class="org-string">'&gt;</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{switch_view}</span></span><span class="org-string">&lt;/span&gt; to switch View. &lt;span color='</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{help_color}</span></span><span class="org-string">'&gt;</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{actions}</span></span><span class="org-string">&lt;/span&gt; for actions"</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">mode</span> == <span class="org-string">"bookmarks"</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">content</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">parseBuku</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-variable-name">menu</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">{content}</span></span><span class="org-string">"</span> | _rofi -p <span class="org-string">'&gt; '</span> -filter <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{filter}</span></span><span class="org-string">"</span> -mesg <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{HELP}</span></span><span class="org-string">"</span> -kb-custom-1 <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{new_bookmark}</span></span><span class="org-string">"</span> -kb-custom-2 <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{switch_view}</span></span><span class="org-string">"</span> -kb-custom-3 <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{actions}</span></span><span class="org-string">"</span> -kb-custom-4 <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{edit}</span></span><span class="org-string">"</span> -kb-custom-5 <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{delete}</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-2">)</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">mode</span> == <span class="org-string">"tags"</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">menu</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">buku</span> --np --st | awk <span class="org-string">'{$NF=""; print $0}'</span> | cut -d <span class="org-string">' '</span> -f2- | _rofi -p <span class="org-string">'&gt; '</span> -mesg <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{HELP}</span></span><span class="org-string">"</span> -kb-custom-1 <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{new_bookmark}</span></span><span class="org-string">"</span> -kb-custom-2 <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{switch_view}</span></span><span class="org-string">"</span> -kb-custom-3 <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{actions}</span></span><span class="org-string">"</span> -kb-custom-4 <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{edit}</span></span><span class="org-string">"</span> -kb-custom-5 <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{delete}</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-keyword">fi</span>
<span class="org-variable-name">val</span>=$<span class="org-variable-name">?</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">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">12</span> <span class="org-rainbow-delimiters-depth-3">]</span><span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
optionsMenu
<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">10</span> <span class="org-rainbow-delimiters-depth-3">]</span><span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
addMark
<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">14</span> <span class="org-rainbow-delimiters-depth-3">]</span><span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
deleteMenu
<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">13</span> <span class="org-rainbow-delimiters-depth-3">]</span><span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
editMenu
<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">11</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">mode</span> == <span class="org-string">"bookmarks"</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-builtin">export</span> <span class="org-variable-name">mode</span>=<span class="org-string">"tags"</span>
<span class="org-variable-name">mode</span>=tags main
<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">mode</span> == <span class="org-string">"tags"</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-builtin">export</span> <span class="org-variable-name">mode</span>=<span class="org-string">"bookmarks"</span>
<span class="org-variable-name">mode</span>=bookmarks main
<span class="org-keyword">fi</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-variable-name">mode</span> == <span class="org-string">"bookmarks"</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">id</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">getId</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">content</span></span><span class="org-string">"</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">menu</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-keyword">for</span> bm<span class="org-keyword"> in</span> $<span class="org-rainbow-delimiters-depth-2">{</span><span class="org-variable-name">id</span><span class="org-rainbow-delimiters-depth-2">}</span>; <span class="org-keyword">do</span>
buku -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">{bm}</span></span><span class="org-string">"</span>
<span class="org-keyword">done</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">mode</span> == <span class="org-string">"tags"</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">filter</span>=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{menu}</span></span><span class="org-string">"</span> <span class="org-variable-name">mode</span>=<span class="org-string">"bookmarks"</span> main
<span class="org-keyword">fi</span>
<span class="org-keyword">fi</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-function-name">optionsMenu</span> <span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-2">[</span><span class="org-rainbow-delimiters-depth-3">[</span> $<span class="org-variable-name">mode</span> == <span class="org-string">"bookmarks"</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">askmenu</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"&lt; Return\n---\n1. Edit\n2. Delete"</span> | _rofi -p <span class="org-string">'&gt; '</span> -mesg <span class="org-string">"Choose Action for bookmark"</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-variable-name">val</span>=$<span class="org-variable-name">?</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">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-variable-name">askmenu</span> == <span class="org-string">"&lt; Return"</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-builtin">export</span> <span class="org-variable-name">mode</span>=bookmarks
main
<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">askmenu</span> == <span class="org-string">"1. Edit"</span> <span class="org-rainbow-delimiters-depth-3">]</span><span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
editMenu
<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">askmenu</span> == <span class="org-string">"2. Delete"</span> <span class="org-rainbow-delimiters-depth-3">]</span><span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
deleteMenu
<span class="org-keyword">fi</span>
<span class="org-keyword">fi</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">mode</span> == <span class="org-string">"tags"</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">askmenu</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"&lt; Return\n---\n1. Replace Tag\n2. Delete Tag"</span> | _rofi -p <span class="org-string">'&gt; '</span> -mesg <span class="org-string">"Choose Action for tag \"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{menu}</span></span><span class="org-string">\""</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-variable-name">val</span>=$<span class="org-variable-name">?</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">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-variable-name">askmenu</span> == <span class="org-string">"&lt; Return"</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-builtin">export</span> <span class="org-variable-name">mode</span>=tags
main
<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">askmenu</span> == <span class="org-string">"1. Replace Tag"</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">newtag</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> | _rofi -p <span class="org-string">'&gt; '</span> -mesg <span class="org-string">"Enter new tag name for tag \"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{menu}</span></span><span class="org-string">\""</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-variable-name">val</span>=$<span class="org-variable-name">?</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">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-variable-name">newtag</span> == <span class="org-string">""</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">mode</span>=tags main
<span class="org-keyword">else</span>
buku -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">{menu}</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">{newtag}</span></span><span class="org-string">"</span>
<span class="org-variable-name">mode</span>=tags main
<span class="org-keyword">fi</span>
<span class="org-keyword">fi</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">askmenu</span> == <span class="org-string">"2. Delete Tag"</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">delask</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"1. Yes\n2. No"</span> | _rofi -p <span class="org-string">'&gt; '</span> -mesg <span class="org-string">"Really delete tag?"</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-variable-name">val</span>=$<span class="org-variable-name">?</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">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-variable-name">delask</span> == <span class="org-string">"1. Yes"</span> <span class="org-rainbow-delimiters-depth-3">]</span><span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
buku -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">{menu}</span></span><span class="org-string">"</span>
<span class="org-variable-name">mode</span>=tags main
<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">delask</span> == <span class="org-string">"2. No"</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">mode</span>=tags main
<span class="org-keyword">fi</span>
<span class="org-keyword">fi</span>
<span class="org-keyword">fi</span>
<span class="org-keyword">fi</span>
<span class="org-keyword">fi</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-function-name">deleteMenu</span> <span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-variable-name">id</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">getId</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">content</span></span><span class="org-string">"</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">menu</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-variable-name">delask</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"1. Yes\n2. No"</span> | _rofi -p <span class="org-string">'&gt; '</span> -mesg <span class="org-string">"Really delete bookmark?"</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-variable-name">val</span>=$<span class="org-variable-name">?</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">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-variable-name">delask</span> == <span class="org-string">"1. Yes"</span> <span class="org-rainbow-delimiters-depth-3">]</span><span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
buku -d $<span class="org-rainbow-delimiters-depth-2">{</span><span class="org-variable-name">id</span><span class="org-rainbow-delimiters-depth-2">}</span> --tacit
<span class="org-variable-name">mode</span>=bookmarks main
<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">delask</span> == <span class="org-string">"2. No"</span> <span class="org-rainbow-delimiters-depth-3">]</span><span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
optionsMenu
<span class="org-keyword">fi</span>
<span class="org-keyword">fi</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-function-name">editMenu</span> <span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-variable-name">id</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">getId</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">content</span></span><span class="org-string">"</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">menu</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-variable-name">title</span>=<span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">getTitleFromId</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">id</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">)</span></span><span class="org-string">"</span>
<span class="org-variable-name">bookmark</span>=<span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">getUrlFromId</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">id</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">)</span></span><span class="org-string">"</span>
<span class="org-variable-name">tags</span>=<span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">getTagsFromId</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">id</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">)</span></span><span class="org-string">"</span>
<span class="org-variable-name">content</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"1. 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">\n2. url: </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">bookmark</span></span><span class="org-string">\n3. tags: </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><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-variable-name">editmenu</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"&lt; Return\n---\n</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{content}</span></span><span class="org-string">"</span> | _rofi -p <span class="org-string">'&gt; '</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-variable-name">val</span>=$<span class="org-variable-name">?</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">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-variable-name">editmenu</span> == <span class="org-string">"&lt; Return"</span> <span class="org-rainbow-delimiters-depth-3">]</span><span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
main
<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">editmenu</span> == <span class="org-string">"tags: NOTAG"</span> <span class="org-rainbow-delimiters-depth-3">]</span><span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
addTags --update
<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">editmenu</span> =~ tags:* <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">tags</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">{tags}</span></span><span class="org-string">"</span> editTags
<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">editmenu</span> =~ url:* <span class="org-rainbow-delimiters-depth-3">]</span><span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
editBookmark
<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">editmenu</span> =~ title:* <span class="org-rainbow-delimiters-depth-3">]</span><span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
editTitle
<span class="org-keyword">fi</span>
<span class="org-keyword">fi</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-function-name">editTags</span> <span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-variable-name">edittagsmenu</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> | _rofi -filter <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{tags}</span></span><span class="org-string">"</span> -p <span class="org-string">'&gt; '</span> -mesg <span class="org-string">"Edit Tags and hit Enter"</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-variable-name">val</span>=$<span class="org-variable-name">?</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">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>
buku -u $<span class="org-rainbow-delimiters-depth-2">{</span><span class="org-variable-name">id</span><span class="org-rainbow-delimiters-depth-2">}</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">{edittagsmenu}</span></span><span class="org-string">"</span>
<span class="org-keyword">fi</span>
<span class="org-variable-name">mode</span>=bookmarks main
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-function-name">editBookmark</span> <span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-variable-name">bmarkmenu</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">""</span> | _rofi -p <span class="org-string">"&gt; "</span> -filter <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{bookmark}</span></span><span class="org-string">"</span> -mesg <span class="org-string">"Edit Bookmark and hit Enter"</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-variable-name">val</span>=$<span class="org-variable-name">?</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">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-variable-name">bmarkmenu</span> == <span class="org-string">"http"</span>* <span class="org-rainbow-delimiters-depth-3">]</span><span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
buku -u <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{id}</span></span><span class="org-string">"</span> --url <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{bmarkmenu}</span></span><span class="org-string">"</span>
<span class="org-keyword">else</span>
<span class="org-type">echo</span> <span class="org-string">""</span> | rofi -e <span class="org-string">"Not a valid URI, Make sure URLs start with http"</span>
editBookmark
<span class="org-keyword">fi</span>
<span class="org-keyword">fi</span>
<span class="org-variable-name">mode</span>=bookmarks main
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-function-name">editTitle</span> <span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-variable-name">titlemenu</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">""</span> | _rofi -p <span class="org-string">"&gt; "</span> -filter <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{title}</span></span><span class="org-string">"</span> -mesg <span class="org-string">"Edit Title and hit Enter"</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-variable-name">val</span>=$<span class="org-variable-name">?</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">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>
buku -u <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{id}</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">{titlemenu}</span></span><span class="org-string">"</span>
<span class="org-keyword">fi</span>
<span class="org-variable-name">mode</span>=bookmarks main
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-function-name">addMark</span> <span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-variable-name">inserturl</span>=<span class="org-sh-quoted-exec">$</span><span class="org-sh-quoted-exec"><span class="org-rainbow-delimiters-depth-2">(</span></span><span class="org-sh-quoted-exec">echo -e </span><span class="org-string"><span class="org-sh-quoted-exec">"$(</span></span><span class="org-sh-quoted-exec">xclip</span><span class="org-string"><span class="org-sh-quoted-exec"> -o)</span></span><span class="org-string">"</span> | _rofi -p <span class="org-string">'&gt; '</span> -mesg <span class="org-string">"Use URL below or type manually"</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-variable-name">val</span>=$<span class="org-variable-name">?</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">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>
addTags
<span class="org-keyword">fi</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-function-name">addTags</span> <span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-variable-name">inserttags</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">buku</span> --np --st | awk <span class="org-string">'{$NF=""; print $0}'</span> | cut -d <span class="org-string">' '</span> -f2- | _rofi -p <span class="org-string">'&gt; '</span> -mesg <span class="org-string">"Add some tags. Separate tags with ', '"</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-variable-name">val</span>=$<span class="org-variable-name">?</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">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-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-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-variable-name">tags</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">tag</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-keyword">done</span>
<span class="org-keyword">else</span>
<span class="org-variable-name">tags</span>=$<span class="org-rainbow-delimiters-depth-2">{</span><span class="org-variable-name">inserttags</span><span class="org-rainbow-delimiters-depth-2">}</span>
<span class="org-keyword">fi</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-highlight-numbers-number">1</span> == <span class="org-string">"--update"</span> <span class="org-rainbow-delimiters-depth-3">]</span><span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
buku -u <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{id}</span></span><span class="org-string">"</span> --tag $<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">else</span>
buku -a $<span class="org-rainbow-delimiters-depth-2">{</span><span class="org-variable-name">inserturl</span><span class="org-rainbow-delimiters-depth-2">}</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">fi</span>
<span class="org-keyword">fi</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-function-name">parseBuku</span> <span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-type">echo</span> <span class="org-string">"$(</span><span class="org-sh-quoted-exec">buku</span><span class="org-string"> --nc -p | gawk -v max="</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">max_str_width</span></span><span class="org-string">" -v type="</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">display_type</span></span><span class="org-string">" '</span>
<span class="org-string">BEGIN {</span>
<span class="org-string"> RS=""</span>
<span class="org-string"> FS="\n"</span>
<span class="org-string">}</span>
<span class="org-string">{</span>
<span class="org-string"> if (</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">3</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">3</span></span><span class="org-string"> = " # NOTAG"</span>
<span class="org-string"> id = gensub(/([0-9]+)\.(.*)/, "\\1", "g", </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"> url = substr(gensub(/\s+&gt; (.*)/, "\\1", "g", </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">2</span></span><span class="org-string">),0,max)</span>
<span class="org-string"> tags = gensub(/\s+# (.*)/, "\\1", "g", </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">3</span></span><span class="org-string">)</span>
<span class="org-string"> title = substr(gensub(/[0-9]+\.\s*(.*)/, "\\1", "g", </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">),0,max)</span>
<span class="org-string"> if (type == 1)</span>
<span class="org-string"> print id "\t" url "\t" tags</span>
<span class="org-string"> else</span>
<span class="org-string"> print id "\t" title "\t" tags</span>
<span class="org-string"> if (type == 3)</span>
<span class="org-string"> print " \t" url "\t "</span>
<span class="org-string"> print ""</span>
<span class="org-string">}</span>
<span class="org-string">' | column -t -s $'\t')"</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-function-name">getId</span> <span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-variable-name">id</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">{2%% *}</span></span><span class="org-string">"</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">id</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
<span class="org-variable-name">prev</span>=<span class="org-string">""</span>
<span class="org-variable-name">IFS</span>=$<span class="org-string">'\n'</span>
<span class="org-keyword">for</span> line<span class="org-keyword"> in</span> $<span class="org-highlight-numbers-number">1</span>; <span class="org-keyword">do</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">2</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">line</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
<span class="org-variable-name">id</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">{prev%% *}</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-keyword">break</span>
<span class="org-keyword">else</span>
<span class="org-variable-name">prev</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">line</span></span><span class="org-string">"</span>
<span class="org-keyword">fi</span>
<span class="org-keyword">done</span>
<span class="org-keyword">fi</span>
<span class="org-type">echo</span> $<span class="org-variable-name">id</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-function-name">getTitleFromId</span> <span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-type">echo</span> <span class="org-string">"$(</span><span class="org-sh-quoted-exec">buku</span><span class="org-string"> --nc -p </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"> | gawk '</span>
<span class="org-string"> BEGIN {</span>
<span class="org-string"> RS=""</span>
<span class="org-string"> FS="\n"</span>
<span class="org-string"> }</span>
<span class="org-string"> {</span>
<span class="org-string"> print gensub(/[0-9]+\.\s*(.*)/, "\\1", "g", </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">)</span>
<span class="org-string"> }</span>
<span class="org-string"> ')"</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-function-name">getUrlFromId</span> <span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-type">echo</span> <span class="org-string">"$(</span><span class="org-sh-quoted-exec">buku</span><span class="org-string"> --nc -p </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"> | gawk '</span>
<span class="org-string"> BEGIN {</span>
<span class="org-string"> RS=""</span>
<span class="org-string"> FS="\n"</span>
<span class="org-string"> }</span>
<span class="org-string"> {</span>
<span class="org-string"> print gensub(/\s+&gt; (.*)/, "\\1", "g", </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">2</span></span><span class="org-string">)</span>
<span class="org-string"> }</span>
<span class="org-string"> ')"</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-function-name">getTagsFromId</span> <span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-type">echo</span> <span class="org-string">"$(</span><span class="org-sh-quoted-exec">buku</span><span class="org-string"> --nc -p </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"> | gawk '</span>
<span class="org-string"> BEGIN {</span>
<span class="org-string"> RS=""</span>
<span class="org-string"> FS="\n"</span>
<span class="org-string"> }</span>
<span class="org-string"> {</span>
<span class="org-string"> print gensub(/\s+# (.*)/, "\\1", "g", </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">3</span></span><span class="org-string">)</span>
<span class="org-string"> }</span>
<span class="org-string"> ')"</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-variable-name">mode</span>=bookmarks main
</pre>
</div>
</div>
</div>
<div id="outline-container-org31b0545" class="outline-2">
<h2 id="org31b0545">i3exit</h2>
<div class="outline-text-2" id="text-org31b0545">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">with openrc use loginctl</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>
lock)
~/scripts/lockscreen.sh
;;
<span class="org-keyword">logout</span>)
loginctl terminate-session <span class="org-sh-quoted-exec">`loginctl session-status | head -n 1 | awk '{print $1}'`</span>
;;
switch_user)
dm-tool switch-to-greeter
;;
<span class="org-builtin">suspend</span>)
systemctl suspend &amp;&amp; ~/scripts/lockscreen.sh
;;
hibernate)
systemctl hibernate &amp;&amp; ~/scripts/lockscreen.sh
;;
reboot)
systemctl reboot
;;
shutdown)
systemctl poweroff
;;
*)
<span class="org-type">echo</span> <span class="org-string">"== ! i3exit: missing or invalid argument ! =="</span>
<span class="org-type">echo</span> <span class="org-string">"Try again with: lock | logout | switch_user | suspend | hibernate | reboot | shutdown"</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">exit</span> <span class="org-highlight-numbers-number">0</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org66b3195" class="outline-2">
<h2 id="org66b3195">readbib</h2>
<div class="outline-text-2" id="text-org66b3195">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-type">cd</span> ~/Cloud/thesis/ressources/pdfs/ &amp;&amp; <span class="org-type">ls</span> | dmenu -l <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>
</div>
</div>
</div>
<div id="outline-container-org8d458ec" class="outline-2">
<h2 id="org8d458ec">readnotes</h2>
<div class="outline-text-2" id="text-org8d458ec">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-type">cd</span> ~/Cloud/thesis/ressources/notes/ &amp;&amp; <span class="org-type">ls</span> *.pdf | dmenu -l <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>
</div>
</div>
</div>
<div id="outline-container-org94000e9" class="outline-2">
<h2 id="org94000e9">askpass</h2>
<div class="outline-text-2" id="text-org94000e9">
<p>
Take password prompt from STDIN, print password to STDOUT.
The sed piece just removes the colon from the provided prompt: <code>rofi -p</code> already gives us a colon
</p>
<div class="org-src-container">
<pre class="src src-bash">rofi -dmenu <span class="org-sh-escaped-newline">\</span>
-password <span class="org-sh-escaped-newline">\</span>
-no-fixed-num-lines <span class="org-sh-escaped-newline">\</span>
-p <span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">printf</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>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgfa2a5c4" class="outline-2">
<h2 id="orgfa2a5c4">Take Screenshot</h2>
<div class="outline-text-2" id="text-orgfa2a5c4">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">status</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"All\nGUI\nSelection\nCropped\nCopy\nShadow\nActive"</span> | rofi -i -dmenu -p <span class="org-string">"Type"</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">status</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>
<span class="org-variable-name">name</span>=<span class="org-sh-quoted-exec">$</span><span class="org-sh-quoted-exec"><span class="org-rainbow-delimiters-depth-1">(</span></span><span class="org-sh-quoted-exec">echo -e </span><span class="org-string"><span class="org-sh-quoted-exec">"screenshot-$(</span></span><span class="org-sh-quoted-exec">date</span><span class="org-string"><span class="org-sh-quoted-exec"> +"%m-%d-%y_%H-%M-%S")</span></span><span class="org-string">"</span> | rofi -i -dmenu -p <span class="org-string">"Filename"</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">name</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>
<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">status</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
<span class="org-string">"All"</span>)
maim ~/Pictures/$<span class="org-variable-name">name</span>.png ;;
<span class="org-string">"GUI"</span>)
flameshot gui -r &gt; ~/Pictures/$<span class="org-variable-name">name</span>.png ;;
<span class="org-string">"Selection"</span>)
maim -s ~/Pictures/$<span class="org-variable-name">name</span>.png ;;
<span class="org-string">"Cropped"</span>)
maim -s ~/Pictures/$<span class="org-variable-name">name</span>.png &amp;&amp; convert -trim ~/Pictures/$<span class="org-variable-name">name</span>.png ~/Pictures/$<span class="org-variable-name">name</span>.png;;
<span class="org-string">"Copy"</span>)
maim -s | xclip -selection clipboard -t image/png ;;
<span class="org-string">"Shadow"</span>)
maim -st <span class="org-highlight-numbers-number">9999999</span> | convert - <span class="org-string">\(</span> +clone -background black -shadow 80x3+5+5 <span class="org-string">\)</span> +swap -background none -layers merge +repage ~/Pictures/$<span class="org-variable-name">name</span>.png ;;
<span class="org-string">"Active"</span>)
maim -i $<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">xdotool</span> getactivewindow<span class="org-rainbow-delimiters-depth-1">)</span> ~/Pictures/$<span class="org-variable-name">name</span>.png ;;
<span class="org-keyword">esac</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org7cb3c53" class="outline-2">
<h2 id="org7cb3c53">Remote Desktop Connect</h2>
<div class="outline-text-2" id="text-org7cb3c53">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">computer</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">'RNICE\nPCMEL1\nPCNASS1\nPCMEG01'</span> | dmenu -p <span class="org-string">'Computer:'</span> -l <span class="org-highlight-numbers-number">20</span><span class="org-rainbow-delimiters-depth-1">)</span>;
<span class="org-keyword">case</span> $<span class="org-variable-name">computer</span><span class="org-keyword"> in</span>
PCMEL1)
rdesktop -a <span class="org-highlight-numbers-number">16</span> -P -z -x m -r sound:off -g <span class="org-string">"80%"</span> -u <span class="org-string">"ESRF\OPPEL"</span> -p $<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">pass</span> esrf/PCMEL1/OPPEL | sed -n 1p<span class="org-rainbow-delimiters-depth-1">)</span> pcmel1
;;
PCMEG01)
rdesktop -a <span class="org-highlight-numbers-number">16</span> -P -z -x m -r sound:off -g <span class="org-string">"80%"</span> -u <span class="org-string">"ESRF\DEHAEZE"</span> -p $<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">pass</span> ssl.esrf.fr/dehaeze | sed -n 1p<span class="org-rainbow-delimiters-depth-1">)</span> pcmeg01
;;
PCNASS1)
rdesktop -a <span class="org-highlight-numbers-number">16</span> -P -z -x m -r sound:off -g <span class="org-string">"80%"</span> -u <span class="org-string">"ESRF\DEHAEZE"</span> -p $<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">pass</span> ssl.esrf.fr/dehaeze | sed -n 1p<span class="org-rainbow-delimiters-depth-1">)</span> pcnass1
;;
RNICE)
<span class="org-type">echo</span> <span class="org-string">"Not yet implemented"</span>
;;
*)
<span class="org-type">echo</span> <span class="org-string">"Not existing"</span>
;;
<span class="org-keyword">esac</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgdee48e4" class="outline-2">
<h2 id="orgdee48e4">Toggle Network</h2>
<div class="outline-text-2" id="text-orgdee48e4">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">result</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">nmcli</span> device | sed <span class="org-string">'1d'</span> | dmenu -l <span class="org-highlight-numbers-number">20</span><span class="org-rainbow-delimiters-depth-1">)</span>;
<span class="org-variable-name">interface</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> $<span class="org-variable-name">result</span> | awk -F <span class="org-string">' '</span> <span class="org-string">'{print $1}'</span><span class="org-rainbow-delimiters-depth-1">)</span>;
<span class="org-variable-name">status</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> $<span class="org-variable-name">result</span> | awk -F <span class="org-string">' '</span> <span class="org-string">'{print $3}'</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-variable-name">status</span> == <span class="org-string">'disconnected'</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
nmcli device connect $<span class="org-variable-name">interface</span>
<span class="org-keyword">else</span>
nmcli device disconnect $<span class="org-variable-name">interface</span>
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgc1d9d95" class="outline-2">
<h2 id="orgc1d9d95">Print on Rnice</h2>
<div class="outline-text-2" id="text-orgc1d9d95">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">nbpage</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">'1\n2\n4'</span> | dmenu -p <span class="org-string">'Number of pages per sheet'</span> -l <span class="org-highlight-numbers-number">20</span><span class="org-rainbow-delimiters-depth-1">)</span>;
<span class="org-variable-name">sides</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">'one-sided\ntwo-sided-long-edge\ntwo-sided-short-edge'</span> | dmenu -p <span class="org-string">'Two Sided:'</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-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-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=A4 -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>;
<span class="org-comment-delimiter"># </span><span class="org-comment">Finally, delete the file</span>
<span class="org-keyword">else</span>
<span class="org-type">echo</span> <span class="org-string">"Command Failed"</span>
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgf1a877f" class="outline-2">
<h2 id="orgf1a877f">Mount TMP14DAYS</h2>
<div class="outline-text-2" id="text-orgf1a877f">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-type">sudo</span> -A <span class="org-type">mkdir</span> ~/tmp_14_days;
<span class="org-type">sudo</span> -A mount -o rw,relatime,<span class="org-variable-name">vers</span>=3,<span class="org-variable-name">rsize</span>=1048576,<span class="org-variable-name">wsize</span>=1048576,<span class="org-variable-name">namlen</span>=255,hard,<span class="org-variable-name">proto</span>=tcp,<span class="org-variable-name">timeo</span>=600,<span class="org-variable-name">retrans</span>=2,<span class="org-variable-name">sec</span>=sys,<span class="org-variable-name">mountaddr</span>=160.103.232.103,<span class="org-variable-name">mountvers</span>=3,<span class="org-variable-name">mountport</span>=597,<span class="org-variable-name">mountproto</span>=tcp,<span class="org-variable-name">local_lock</span>=none,<span class="org-variable-name">addr</span>=160.103.232.103 rnice:/hz/tmp_14_days ~/tmp_14_days;
</pre>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 22:00</p>
</div>
</body>
</html>

299
docs/bookmarks.html Normal file
View File

@ -0,0 +1,299 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 21:59 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Bukurun (Bookmark Manager)</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="../css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="../css/readtheorg.css"/>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="../js/readtheorg.js"></script>
<script type="text/javascript">
/*
@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[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</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">Bukurun (Bookmark Manager)</h1>
<div class="org-src-container">
<pre class="src src-conf"><span class="org-type">_rofi ()</span> {
rofi -dmenu -i -no-levenshtein-sort -width <span class="org-highlight-numbers-number">1000</span> <span class="org-string">"$@"</span>
}
</pre>
</div>
<p>
Display settings
</p>
<div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">display_type</span>=<span class="org-highlight-numbers-number">1</span>
<span class="org-variable-name">max_str_width</span>=<span class="org-highlight-numbers-number">80</span>
</pre>
</div>
<p>
Keybindings
</p>
<div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">switch_view</span>=<span class="org-string">"Alt+Tab"</span>
<span class="org-variable-name">new_bookmark</span>=<span class="org-string">"Alt+n"</span>
<span class="org-variable-name">actions</span>=<span class="org-string">"Alt+a"</span>
<span class="org-variable-name">edit</span>=<span class="org-string">"Alt+e"</span>
<span class="org-variable-name">delete</span>=<span class="org-string">"Alt+d"</span>
</pre>
</div>
<p>
Colors
</p>
<div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">help_color</span>=<span class="org-string">"#2d7ed8"</span>
</pre>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 21:59</p>
</div>
</body>
</html>

348
docs/bspwm.html Normal file
View File

@ -0,0 +1,348 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 21:59 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>BSPWM</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="../css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="../css/readtheorg.css"/>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="../js/readtheorg.js"></script>
<script type="text/javascript">
/*
@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[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</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">BSPWM</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org38f8bff">List Desktops</a></li>
<li><a href="#org47837f1">Basic Config</a></li>
<li><a href="#orgfb29e3b">Colors</a></li>
<li><a href="#org04a808f">Rules</a></li>
<li><a href="#orgd001a1e">Run Polybar and SXHKD</a></li>
</ul>
</div>
</div>
<div id="outline-container-org38f8bff" class="outline-2">
<h2 id="org38f8bff">List Desktops</h2>
<div class="outline-text-2" id="text-org38f8bff">
<div class="org-src-container">
<pre class="src src-bash">bspc monitor -d code web mail misc figs
</pre>
</div>
</div>
</div>
<div id="outline-container-org47837f1" class="outline-2">
<h2 id="org47837f1">Basic Config</h2>
<div class="outline-text-2" id="text-org47837f1">
<div class="org-src-container">
<pre class="src src-bash">bspc config border_width <span class="org-highlight-numbers-number">1</span>
bspc config window_gap <span class="org-highlight-numbers-number">8</span>
bspc config top_padding <span class="org-highlight-numbers-number">27</span> <span class="org-comment-delimiter"># </span><span class="org-comment">top_padding I set equal to polybar's height</span>
bspc config split_ratio <span class="org-highlight-numbers-number">0.52</span>
bspc config borderless_monocle true
bspc config gapless_monocle true
bspc config focus_follows_pointer true
</pre>
</div>
</div>
</div>
<div id="outline-container-orgfb29e3b" class="outline-2">
<h2 id="orgfb29e3b">Colors</h2>
<div class="outline-text-2" id="text-orgfb29e3b">
<div class="org-src-container">
<pre class="src src-bash">bspc config normal_border_color <span class="org-string">\#</span>32302f
bspc config focused_border_color <span class="org-string">\#</span>bdae93
</pre>
</div>
</div>
</div>
<div id="outline-container-org04a808f" class="outline-2">
<h2 id="org04a808f">Rules</h2>
<div class="outline-text-2" id="text-org04a808f">
<p>
Use <code>xprop</code> to obtain information about the window.
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">If refreshing bspwm, remove all previous rules to prevent doubling up.</span>
bspc rule -r <span class="org-string">"*"</span>
bspc rule --add qutebrowser <span class="org-variable-name">desktop</span>=<span class="org-string">'web'</span> <span class="org-variable-name">follow</span>=on <span class="org-variable-name">state</span>=tiled
bspc rule --add Emacs <span class="org-variable-name">desktop</span>=<span class="org-string">'code'</span> <span class="org-variable-name">follow</span>=on <span class="org-variable-name">state</span>=tiled
bspc rule --add Zathura <span class="org-variable-name">state</span>=tiled
bspc rule --add Pavucontrol <span class="org-variable-name">state</span>=floating
bspc rule --add Blueman-manager <span class="org-variable-name">state</span>=floating
</pre>
</div>
</div>
</div>
<div id="outline-container-orgd001a1e" class="outline-2">
<h2 id="orgd001a1e">Run Polybar and SXHKD</h2>
<div class="outline-text-2" id="text-orgd001a1e">
<div class="org-src-container">
<pre class="src src-bash">$<span class="org-variable-name">HOME</span>/.config/polybar/scripts/launch.sh
sxhkd -m <span class="org-highlight-numbers-number">1</span> -c ~/.config/sxhkd/sxhkdrc.bspwm &amp;
</pre>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 21:59</p>
</div>
</body>
</html>

352
docs/calendar.html Normal file
View File

@ -0,0 +1,352 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 22:00 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Calendar Configuration</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="../css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="../css/readtheorg.css"/>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="../js/readtheorg.js"></script>
<script type="text/javascript">
/*
@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[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</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">Calendar Configuration</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org6792e9b">Vdirsyncer</a></li>
<li><a href="#org481e0d6">Khal</a></li>
</ul>
</div>
</div>
<div id="outline-container-org6792e9b" class="outline-2">
<h2 id="org6792e9b">Vdirsyncer</h2>
<div class="outline-text-2" id="text-org6792e9b">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">general</span>]
<span class="org-variable-name">status_path</span> = <span class="org-string">"~/.config/vdirsyncer/status/"</span>
[<span class="org-type">pair google_calendar</span>]
<span class="org-variable-name">a</span> = <span class="org-string">"google_calendar_remote"</span>
<span class="org-variable-name">b</span> = <span class="org-string">"google_calendar_local"</span>
<span class="org-variable-name">collections</span> = [<span class="org-string">"dehaeze.thomas@gmail.com"</span>, <span class="org-string">"8kjmhe2ar0abnm054ill1fb0gc@group.calendar.google.com"</span>]
<span class="org-variable-name">conflict_resolution</span> = <span class="org-string">"a wins"</span>
[<span class="org-type">storage google_calendar_remote</span>]
<span class="org-variable-name">type</span> = <span class="org-string">"google_calendar"</span>
<span class="org-variable-name">token_file</span> = <span class="org-string">"~/.config/dotfiles/private/token_file"</span>
<span class="org-variable-name">client_id</span> = <span class="org-string">"188415318767-802h28ig8gromo0f72blrbg6cgcop6m8.apps.googleusercontent.com"</span>
<span class="org-variable-name">client_secret</span> = <span class="org-string">"***REMOVED***"</span>
[<span class="org-type">storage google_calendar_local</span>]
<span class="org-variable-name">type</span> = <span class="org-string">"filesystem"</span>
<span class="org-variable-name">path</span> = <span class="org-string">"~/.calendars/google/"</span>
<span class="org-variable-name">fileext</span> = <span class="org-string">".ics"</span>
[<span class="org-type">pair google_contacts</span>]
<span class="org-variable-name">a</span> = <span class="org-string">"google_contacts_remote"</span>
<span class="org-variable-name">b</span> = <span class="org-string">"google_contacts_local"</span>
<span class="org-variable-name">collections</span> = [<span class="org-string">"from a"</span>, <span class="org-string">"from b"</span>]
<span class="org-variable-name">conflict_resolution</span> = <span class="org-string">"a wins"</span>
[<span class="org-type">storage google_contacts_local</span>]
<span class="org-variable-name">type</span> = <span class="org-string">"filesystem"</span>
<span class="org-variable-name">path</span> = <span class="org-string">"~/.contacts/"</span>
<span class="org-variable-name">fileext</span> = <span class="org-string">".vcf"</span>
[<span class="org-type">storage google_contacts_remote</span>]
<span class="org-variable-name">type</span> = <span class="org-string">"google_contacts"</span>
<span class="org-variable-name">token_file</span> = <span class="org-string">"~/.config/dotfiles/private/token_file_carddav"</span>
<span class="org-variable-name">client_id</span> = <span class="org-string">"188415318767-802h28ig8gromo0f72blrbg6cgcop6m8.apps.googleusercontent.com"</span>
<span class="org-variable-name">client_secret</span> = <span class="org-string">"***REMOVED***"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org481e0d6" class="outline-2">
<h2 id="org481e0d6">Khal</h2>
<div class="outline-text-2" id="text-org481e0d6">
<p>
:header-arg s: :tangle ~/.config/khal/config
:header-args+: :comments both :mkdirp yes
</p>
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">calendars</span>]
[<span class="org-type">[home]</span>]
<span class="org-variable-name">path</span> = ~/.calendars/google/dehaeze.thomas@gmail.com/
<span class="org-variable-name">color</span> = <span class="org-string">"#B8BB26"</span>
[<span class="org-type">[work]</span>]
<span class="org-variable-name">path</span> = ~/.calendars/google/8kjmhe2ar0abnm054ill1fb0gc@group.calendar.google.com/
<span class="org-variable-name">color</span> = <span class="org-string">"#FB4934"</span>
[<span class="org-type">highlight_days</span>]
<span class="org-variable-name">multiple</span> = <span class="org-string">"#FABD2F"</span>
[<span class="org-type">default</span>]
<span class="org-variable-name">highlight_event_days</span> = True
[<span class="org-type">keybindings</span>]
<span class="org-variable-name">delete</span> = d
<span class="org-variable-name">today</span> = .
<span class="org-variable-name">new</span> = c
</pre>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 22:00</p>
</div>
</body>
</html>

406
docs/compositor.html Normal file
View File

@ -0,0 +1,406 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 22:00 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Picom (Compositor)</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="../css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="../css/readtheorg.css"/>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="../js/readtheorg.js"></script>
<script type="text/javascript">
/*
@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[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</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">Picom (Compositor)</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org83d8ce7">Shadow</a></li>
<li><a href="#org79d6699">Opacity</a></li>
<li><a href="#org61a6af4">Fading</a></li>
<li><a href="#org7c10dee">Other</a></li>
<li><a href="#orgd16d016">Window Type Setting</a></li>
</ul>
</div>
</div>
<div id="outline-container-org83d8ce7" class="outline-2">
<h2 id="org83d8ce7">Shadow</h2>
<div class="outline-text-2" id="text-org83d8ce7">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">shadow</span> = true;
<span class="org-variable-name">shadow-radius</span> = <span class="org-highlight-numbers-number">12</span>;
<span class="org-variable-name">shadow-offset-x</span> = -12;
<span class="org-variable-name">shadow-offset-y</span> = -12;
<span class="org-variable-name">shadow-opacity</span> = <span class="org-highlight-numbers-number">0.95</span>;
<span class="org-variable-name">shadow-exclude</span> = [
<span class="org-string">"name = 'Notification'"</span>,
<span class="org-string">"window_type = 'dock'"</span>,
<span class="org-string">"window_type = 'dnd'"</span>,
<span class="org-string">"class_g = 'VirtualBox'"</span>,
<span class="org-string">"class_g = 'Conky'"</span>,
<span class="org-string">"class_g ?= 'Notify-osd'"</span>,
<span class="org-string">"class_g = 'Tilda'"</span>,
<span class="org-string">"class_g = 'Firefox'"</span>,
<span class="org-string">"class_g = 'Opera'"</span>,
<span class="org-string">"class_g = 'CoverGloobus'"</span>,
<span class="org-string">"class_g = 'Cairo-clock'"</span>,
<span class="org-string">"class_g = 'dzen'"</span>,
<span class="org-string">"class_g = 'stalonetray'"</span>,
<span class="org-string">"_GTK_FRAME_EXTENTS@:c"</span>
];
</pre>
</div>
</div>
</div>
<div id="outline-container-org79d6699" class="outline-2">
<h2 id="org79d6699">Opacity</h2>
<div class="outline-text-2" id="text-org79d6699">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">menu-opacity = 0.92;</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">inactive-opacity = 0.92;</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">active-opacity = 0.92;</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">frame-opacity = 0.9;</span>
<span class="org-variable-name">inactive-opacity-override</span> = false;
<span class="org-comment-delimiter"># </span><span class="org-comment">inactive-dim = 0.2;</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">inactive-dim-fixed = true;</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">blur-background = true;</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">blur-background-frame = true;</span>
<span class="org-variable-name">blur-kern</span> = <span class="org-string">"3x3box"</span>;
<span class="org-comment-delimiter"># </span><span class="org-comment">blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1";</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">blur-background-fixed = true;</span>
<span class="org-variable-name">blur-background-exclude</span> = [
<span class="org-string">"window_type = 'dock'"</span>,
<span class="org-string">"window_type = 'desktop'"</span>,
<span class="org-string">"class_g = 'CoverGloobus'"</span>,
<span class="org-string">"class_g = 'Opera'"</span>,
<span class="org-string">"_GTK_FRAME_EXTENTS@:c"</span>
];
<span class="org-comment-delimiter">#</span><span class="org-comment">opacity-rule = [ "80:class_g = 'XTerm'" ];</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">opacity-rule = [ "80:class_g = 'UXTerm'" ];</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">opacity-rule = [ "80:class_g = 'i3bar'" ];</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">opacity-rule = [ "90:class_g = 'dzen'" ];</span>
<span class="org-variable-name">opacity-rule</span> = [ <span class="org-string">"40:class_g = 'Bspwm' &amp;&amp; class_i = 'presel_feedback'"</span> ];
</pre>
</div>
</div>
</div>
<div id="outline-container-org61a6af4" class="outline-2">
<h2 id="org61a6af4">Fading</h2>
<div class="outline-text-2" id="text-org61a6af4">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">fading</span> = false;
<span class="org-variable-name">fade-delta</span> = <span class="org-highlight-numbers-number">10.0</span>;
<span class="org-variable-name">fade-in-step</span> = <span class="org-highlight-numbers-number">0.03</span>;
<span class="org-variable-name">fade-out-step</span> = <span class="org-highlight-numbers-number">0.03</span>;
<span class="org-comment-delimiter"># </span><span class="org-comment">no-fading-openclose = true;</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">no-fading-destroyed-argb = true;</span>
<span class="org-variable-name">fade-exclude</span> = [
];
</pre>
</div>
</div>
</div>
<div id="outline-container-org7c10dee" class="outline-2">
<h2 id="org7c10dee">Other</h2>
<div class="outline-text-2" id="text-org7c10dee">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">backend</span> = <span class="org-string">"xrender"</span>;
<span class="org-variable-name">mark-wmwin-focused</span> = true;
<span class="org-variable-name">mark-ovredir-focused</span> = true;
<span class="org-comment-delimiter"># </span><span class="org-comment">use-ewmh-active-win = true;</span>
<span class="org-variable-name">detect-rounded-corners</span> = true;
<span class="org-variable-name">detect-client-opacity</span> = true;
<span class="org-variable-name">refresh-rate</span> = <span class="org-highlight-numbers-number">0</span>;
<span class="org-variable-name">vsync</span> = false;
<span class="org-variable-name">dbe</span> = false;
<span class="org-comment-delimiter"># </span><span class="org-comment">sw-opti = true;</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">unredir-if-possible = true;</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">unredir-if-possible-delay = 5000;</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">unredir-if-possible-exclude = [ ];</span>
<span class="org-variable-name">detect-transient</span> = true;
<span class="org-variable-name">detect-client-leader</span> = true;
<span class="org-variable-name">invert-color-include</span> = [ ];
<span class="org-comment-delimiter"># </span><span class="org-comment">resize-damage = 1;</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgd16d016" class="outline-2">
<h2 id="orgd16d016">Window Type Setting</h2>
<div class="outline-text-2" id="text-orgd16d016">
<div class="org-src-container">
<pre class="src src-conf">wintypes:
{
<span class="org-variable-name">tooltip</span> = {
<span class="org-variable-name">fade</span> = true;
<span class="org-variable-name">shadow</span> = true;
<span class="org-variable-name">opacity</span> = <span class="org-highlight-numbers-number">0.75</span>;
<span class="org-variable-name">focus</span> = true;
};
<span class="org-variable-name">fullscreen</span> = {
<span class="org-variable-name">fade</span> = true;
<span class="org-variable-name">shadow</span> = false;
<span class="org-variable-name">opacity</span> = <span class="org-highlight-numbers-number">1</span>;
<span class="org-variable-name">focus</span> = true;
};
};
</pre>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 22:00</p>
</div>
</body>
</html>

501
docs/config.html Normal file
View File

@ -0,0 +1,501 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 21:59 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Configuration Files</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="../css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="../css/readtheorg.css"/>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="../js/readtheorg.js"></script>
<script type="text/javascript">
/*
@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[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</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">Configuration Files</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org4d50f78">Font</a></li>
<li><a href="#org09a995e">Input</a></li>
<li><a href="#org5432d18">GnuPG</a></li>
<li><a href="#orgb73fd39">Redshift</a></li>
<li><a href="#org2836d2e">dmenu</a></li>
<li><a href="#org4f16229">Locale</a></li>
<li><a href="#org3de708f">Pass Git Helper</a></li>
<li><a href="#org35bf98c">Clipit (Clipboard Manager)</a></li>
<li><a href="#org64dab5c">Nitrogen (Wallpaper manager)</a></li>
</ul>
</div>
</div>
<div id="outline-container-org4d50f78" class="outline-2">
<h2 id="org4d50f78">Font</h2>
<div class="outline-text-2" id="text-org4d50f78">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">&lt;?xml version</span>=<span class="org-string">'1.0'</span>?&gt;
&lt;!DOCTYPE fontconfig SYSTEM <span class="org-string">'fonts.dtd'</span>&gt;
&lt;fontconfig&gt;
&lt;alias&gt;
&lt;family&gt;serif&lt;/family&gt;
&lt;prefer&gt;&lt;family&gt;Linux Libertine&lt;/family&gt;&lt;/prefer&gt;
&lt;/alias&gt;
&lt;alias&gt;
&lt;family&gt;sans-serif&lt;/family&gt;
&lt;prefer&gt;&lt;family&gt;Linux Biolinum&lt;/family&gt;&lt;/prefer&gt;
&lt;/alias&gt;
&lt;alias&gt;
&lt;family&gt;sans&lt;/family&gt;
&lt;prefer&gt;&lt;family&gt;Linux Biolinum&lt;/family&gt;&lt;/prefer&gt;
&lt;/alias&gt;
&lt;alias&gt;
&lt;family&gt;monospace&lt;/family&gt;
&lt;prefer&gt;&lt;family&gt;SauceCodePro Nerd Font Mono&lt;/family&gt;&lt;/prefer&gt;
&lt;/alias&gt;
&lt;/fontconfig&gt;
</pre>
</div>
</div>
</div>
<div id="outline-container-org09a995e" class="outline-2">
<h2 id="org09a995e">Input</h2>
<div class="outline-text-2" id="text-org09a995e">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Single tab for autocompletion</span>
set show-all-if-ambiguous on
<span class="org-comment-delimiter"># </span><span class="org-comment">Ignore case for completion</span>
set completion-ignore-case on
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">VI mode (works in bash and zsh)</span>
set editing-mode vi
<span class="org-comment-delimiter"># </span><span class="org-comment">Show which mode (normal or insert)</span>
set show-mode-in-prompt on
<span class="org-comment-delimiter"># </span><span class="org-comment">Show the mode by changing the cursor</span>
set vi-ins-mode-string \<span class="org-highlight-numbers-number">1</span>\e[<span class="org-highlight-numbers-number">6</span> q\<span class="org-highlight-numbers-number">2</span>
set vi-cmd-mode-string \<span class="org-highlight-numbers-number">1</span>\e[<span class="org-highlight-numbers-number">2</span> q\<span class="org-highlight-numbers-number">2</span>
set keymap vi-command
<span class="org-comment-delimiter"># </span><span class="org-comment">these are for vi-command mode</span>
Control-l: clear-screen
Control-a: beginning-of-line
set keymap vi-insert
<span class="org-comment-delimiter"># </span><span class="org-comment">these are for vi-insert mode</span>
Control-l: clear-screen
Control-a: beginning-of-line
</pre>
</div>
</div>
</div>
<div id="outline-container-org5432d18" class="outline-2">
<h2 id="org5432d18">GnuPG</h2>
<div class="outline-text-2" id="text-org5432d18">
<div class="org-src-container">
<pre class="src src-conf">max-cache-ttl <span class="org-highlight-numbers-number">60480000</span>
default-cache-ttl <span class="org-highlight-numbers-number">60480000</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgb73fd39" class="outline-2">
<h2 id="orgb73fd39">Redshift</h2>
<div class="outline-text-2" id="text-orgb73fd39">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">redshift</span>]
<span class="org-variable-name">temp-day</span>=<span class="org-highlight-numbers-number">5700</span>
<span class="org-variable-name">temp-night</span>=<span class="org-highlight-numbers-number">3500</span>
<span class="org-variable-name">transition</span>=<span class="org-highlight-numbers-number">1</span>
<span class="org-variable-name">;brightness-day</span>=<span class="org-highlight-numbers-number">0.7</span>
<span class="org-variable-name">;brightness-night</span>=<span class="org-highlight-numbers-number">0.4</span>
<span class="org-variable-name">location-provider</span>=manual
<span class="org-variable-name">adjustment-method</span>=randr
[<span class="org-type">manual</span>]
<span class="org-variable-name">lat</span>=<span class="org-highlight-numbers-number">45.1</span>
<span class="org-variable-name">lon</span>=<span class="org-highlight-numbers-number">5.7</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org2836d2e" class="outline-2">
<h2 id="org2836d2e">dmenu</h2>
<div class="outline-text-2" id="text-org2836d2e">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">define the font for dmenu to be used</span>
<span class="org-variable-name">DMENU_FN</span>=<span class="org-string">"Hack Nerd Font 12"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">background colour for unselected menu-items</span>
<span class="org-variable-name">DMENU_NB</span>=<span class="org-string">"#222D31"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">textcolour for unselected menu-items</span>
<span class="org-variable-name">DMENU_NF</span>=<span class="org-string">"#F9FAF9"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">background colour for selected menu-items</span>
<span class="org-variable-name">DMENU_SB</span>=<span class="org-string">"#16A085"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">textcolour for selected menu-items</span>
<span class="org-variable-name">DMENU_SF</span>=<span class="org-string">"#F9FAF9"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">command for the terminal application to be used:</span>
<span class="org-variable-name">TERMINAL_CMD</span>=<span class="org-string">"terminal -e"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">export our variables</span>
<span class="org-variable-name">DMENU_OPTIONS</span>=<span class="org-string">"-fn $DMENU_FN -nb $DMENU_NB -nf $DMENU_NF -sf $DMENU_SF -sb $DMENU_SB"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org4f16229" class="outline-2">
<h2 id="org4f16229">Locale</h2>
<div class="outline-text-2" id="text-org4f16229">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">LANG</span>=en_US.UTF-8
<span class="org-variable-name">LC_CTYPE</span>=<span class="org-string">"en_US.UTF-8"</span>
<span class="org-variable-name">LC_NUMERIC</span>=fr_FR.UTF-8
<span class="org-variable-name">LC_TIME</span>=fr_FR.UTF-8
<span class="org-variable-name">LC_COLLATE</span>=<span class="org-string">"en_US.UTF-8"</span>
<span class="org-variable-name">LC_MONETARY</span>=fr_FR.UTF-8
<span class="org-variable-name">LC_MESSAGES</span>=<span class="org-string">"en_US.UTF-8"</span>
<span class="org-variable-name">LC_PAPER</span>=fr_FR.UTF-8
<span class="org-variable-name">LC_NAME</span>=fr_FR.UTF-8
<span class="org-variable-name">LC_ADDRESS</span>=fr_FR.UTF-8
<span class="org-variable-name">LC_TELEPHONE</span>=fr_FR.UTF-8
<span class="org-variable-name">LC_MEASUREMENT</span>=fr_FR.UTF-8
<span class="org-variable-name">LC_IDENTIFICATION</span>=fr_FR.UTF-8
<span class="org-variable-name">LC_ALL</span>=
</pre>
</div>
</div>
</div>
<div id="outline-container-org3de708f" class="outline-2">
<h2 id="org3de708f">Pass Git Helper</h2>
<div class="outline-text-2" id="text-org3de708f">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">github.com*</span>]
<span class="org-variable-name">target</span>=github.com/tdehaeze
</pre>
</div>
</div>
</div>
<div id="outline-container-org35bf98c" class="outline-2">
<h2 id="org35bf98c">Clipit (Clipboard Manager)</h2>
<div class="outline-text-2" id="text-org35bf98c">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">rc</span>]
<span class="org-variable-name">use_copy</span>=true
<span class="org-variable-name">use_primary</span>=false
<span class="org-variable-name">synchronize</span>=false
<span class="org-variable-name">automatic_paste</span>=false
<span class="org-variable-name">show_indexes</span>=false
<span class="org-variable-name">save_uris</span>=false
<span class="org-variable-name">use_rmb_menu</span>=false
<span class="org-variable-name">save_history</span>=false
<span class="org-variable-name">history_limit</span>=<span class="org-highlight-numbers-number">50</span>
<span class="org-variable-name">items_menu</span>=<span class="org-highlight-numbers-number">20</span>
<span class="org-variable-name">statics_show</span>=false
<span class="org-variable-name">statics_items</span>=<span class="org-highlight-numbers-number">10</span>
<span class="org-variable-name">hyperlinks_only</span>=false
<span class="org-variable-name">confirm_clear</span>=false
<span class="org-variable-name">single_line</span>=false
<span class="org-variable-name">reverse_history</span>=false
<span class="org-variable-name">item_length</span>=<span class="org-highlight-numbers-number">50</span>
<span class="org-variable-name">ellipsize</span>=<span class="org-highlight-numbers-number">2</span>
<span class="org-variable-name">history_key</span>=
<span class="org-variable-name">actions_key</span>=
<span class="org-variable-name">menu_key</span>=
<span class="org-variable-name">search_key</span>=
<span class="org-variable-name">offline_key</span>=
<span class="org-variable-name">offline_mode</span>=false
</pre>
</div>
</div>
</div>
<div id="outline-container-org64dab5c" class="outline-2">
<h2 id="org64dab5c">Nitrogen (Wallpaper manager)</h2>
<div class="outline-text-2" id="text-org64dab5c">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">geometry</span>]
<span class="org-variable-name">posx</span>=<span class="org-highlight-numbers-number">560</span>
<span class="org-variable-name">posy</span>=<span class="org-highlight-numbers-number">65</span>
<span class="org-variable-name">sizex</span>=<span class="org-highlight-numbers-number">578</span>
<span class="org-variable-name">sizey</span>=<span class="org-highlight-numbers-number">591</span>
[<span class="org-type">nitrogen</span>]
<span class="org-variable-name">view</span>=list
<span class="org-variable-name">recurse</span>=false
<span class="org-variable-name">sort</span>=alpha
<span class="org-variable-name">icon_caps</span>=false
<span class="org-variable-name">dirs</span>=/home/thomas/.wallpapers;
</pre>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 21:59</p>
</div>
</body>
</html>

328
docs/contacts.html Normal file
View File

@ -0,0 +1,328 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 21:59 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Calendar Configuration</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="../css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="../css/readtheorg.css"/>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="../js/readtheorg.js"></script>
<script type="text/javascript">
/*
@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[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</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">Calendar Configuration</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#orgaf64b1d">Khard</a></li>
</ul>
</div>
</div>
<div id="outline-container-orgaf64b1d" class="outline-2">
<h2 id="orgaf64b1d">Khard</h2>
<div class="outline-text-2" id="text-orgaf64b1d">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">example configuration file for khard version &gt;= 0.13.0</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">place it under $HOME/.config/khard/khard.conf</span>
[<span class="org-type">addressbooks</span>]
[<span class="org-type">[google]</span>]
<span class="org-variable-name">path</span> = ~/.contacts/default/
[<span class="org-type">general</span>]
<span class="org-variable-name">debug</span> = no
<span class="org-variable-name">default_action</span> = list
<span class="org-variable-name">editor</span> = vim
<span class="org-variable-name">merge_editor</span> = vimdiff
[<span class="org-type">contact table</span>]
<span class="org-comment-delimiter"># </span><span class="org-comment">display names by first or last name: first_name / last_name</span>
<span class="org-variable-name">display</span> = first_name
<span class="org-comment-delimiter"># </span><span class="org-comment">group by address book: yes / no</span>
<span class="org-variable-name">group_by_addressbook</span> = no
<span class="org-comment-delimiter"># </span><span class="org-comment">reverse table ordering: yes / no</span>
<span class="org-variable-name">reverse</span> = no
<span class="org-comment-delimiter"># </span><span class="org-comment">append nicknames to name column: yes / no</span>
<span class="org-variable-name">show_nicknames</span> = no
<span class="org-comment-delimiter"># </span><span class="org-comment">show uid table column: yes / no</span>
<span class="org-variable-name">show_uids</span> = yes
<span class="org-comment-delimiter"># </span><span class="org-comment">sort by first or last name: first_name / last_name</span>
<span class="org-variable-name">sort</span> = last_name
<span class="org-comment-delimiter"># </span><span class="org-comment">localize dates: yes / no</span>
<span class="org-variable-name">localize_dates</span> = yes
<span class="org-comment-delimiter"># </span><span class="org-comment">set a comma separated list of preferred phone number types in descending priority</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">or nothing for non-filtered alphabetical order</span>
<span class="org-variable-name">preferred_phone_number_type</span> = pref, cell, home
<span class="org-comment-delimiter"># </span><span class="org-comment">set a comma separated list of preferred email address types in descending priority</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">or nothing for non-filtered alphabetical order</span>
<span class="org-variable-name">preferred_email_address_type</span> = pref, work, home
[<span class="org-type">vcard</span>]
<span class="org-comment-delimiter"># </span><span class="org-comment">extend contacts with your own private objects</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">these objects are stored with a leading "X-" before the object name in the vcard files</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">every object label may only contain letters, digits and the - character</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">example:</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">private_objects = Jabber, Skype, Twitter</span>
<span class="org-variable-name">private_objects</span> = Jabber, Skype, Twitter
<span class="org-comment-delimiter"># </span><span class="org-comment">preferred vcard version: 3.0 / 4.0</span>
<span class="org-variable-name">preferred_version</span> = <span class="org-highlight-numbers-number">3.0</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Look into source vcf files to speed up search queries: yes / no</span>
<span class="org-variable-name">search_in_source_files</span> = no
<span class="org-comment-delimiter"># </span><span class="org-comment">skip unparsable vcard files: yes / no</span>
<span class="org-variable-name">skip_unparsable</span> = no
</pre>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 21:59</p>
</div>
</body>
</html>

4392
docs/doom/config.html Normal file

File diff suppressed because it is too large Load Diff

533
docs/git.html Normal file
View File

@ -0,0 +1,533 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 22:00 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Git Configuration</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="../css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="../css/readtheorg.css"/>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="../js/readtheorg.js"></script>
<script type="text/javascript">
/*
@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[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</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">Git Configuration</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org41626fa">Gitconfig</a>
<ul>
<li><a href="#org9dadb2d">Aliases</a></li>
<li><a href="#org9891923">Apply</a></li>
<li><a href="#org3d3c60c">Colors</a></li>
<li><a href="#org005e9ea">Default Remote</a></li>
<li><a href="#org27b5c46">Push Configuration</a></li>
<li><a href="#org8e4fe7a">User</a></li>
<li><a href="#org437daae">Core configuration</a></li>
<li><a href="#org39b3cb9">Credentials using pass</a></li>
<li><a href="#org02367c3">Diff-so-fancy</a></li>
<li><a href="#org599c398">Github</a></li>
</ul>
</li>
<li><a href="#org3e19276">Global Git Ignore</a></li>
</ul>
</div>
</div>
<div id="outline-container-org41626fa" class="outline-2">
<h2 id="org41626fa">Gitconfig</h2>
<div class="outline-text-2" id="text-org41626fa">
</div>
<div id="outline-container-org9dadb2d" class="outline-3">
<h3 id="org9dadb2d">Aliases</h3>
<div class="outline-text-3" id="text-org9dadb2d">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">alias</span>]
<span class="org-comment-delimiter"># </span><span class="org-comment">View abbreviated SHA, description, and history graph of the latest 20 commits</span>
<span class="org-variable-name">l</span> = log --pretty=oneline -n <span class="org-highlight-numbers-number">20</span> --graph --abbrev-commit
<span class="org-comment-delimiter"># </span><span class="org-comment">View the current working tree status using the short format</span>
<span class="org-variable-name">s</span> = status -s
<span class="org-comment-delimiter"># </span><span class="org-comment">Show the diff between the latest commit and the current state</span>
<span class="org-variable-name">d</span> = !<span class="org-string">"git diff-index --quiet HEAD -- || clear; git --no-pager diff --patch-with-stat"</span>
<span class="org-variable-name">di</span> = diff --cached --ignore-all-space
<span class="org-comment-delimiter"># </span><span class="org-comment">Pull in remote changes for the current repository and all its submodules</span>
<span class="org-variable-name">p</span> = !<span class="org-string">"git pull; git submodule foreach git pull origin master"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Clone a repository including all submodules</span>
<span class="org-variable-name">c</span> = clone --recursive
<span class="org-comment-delimiter"># </span><span class="org-comment">Commit all changes</span>
<span class="org-variable-name">ca</span> = !git add -A &amp;&amp; git commit -av
<span class="org-comment-delimiter"># </span><span class="org-comment">Switch to a branch, creating it if necessary</span>
<span class="org-variable-name">go</span> = <span class="org-string">"!f() { git checkout -b \"$1\" 2&gt; /dev/null || git checkout \"$1\"; }; f"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Show verbose output about tags, branches or remotes</span>
<span class="org-variable-name">tags</span> = tag -l
<span class="org-variable-name">branches</span> = branch -a
<span class="org-variable-name">remotes</span> = remote -v
<span class="org-comment-delimiter"># </span><span class="org-comment">Amend the currently staged files to the latest commit</span>
<span class="org-variable-name">amend</span> = commit --amend --reuse-message=HEAD
<span class="org-comment-delimiter"># </span><span class="org-comment">Credit an author on the latest commit</span>
<span class="org-variable-name">credit</span> = <span class="org-string">"!f() { git commit --amend --author \"$1 &lt;$2&gt;\" -C HEAD; }; f"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Interactive rebase with the given number of latest commits</span>
<span class="org-variable-name">reb</span> = <span class="org-string">"!r() { git rebase -i HEAD~$1; }; r"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Remove the old tag with this name and tag the latest commit with it.</span>
<span class="org-variable-name">retag</span> = <span class="org-string">"!r() { git tag -d $1 &amp;&amp; git push origin :refs/tags/$1 &amp;&amp; git tag $1; }; r"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Find branches containing commit</span>
<span class="org-variable-name">fb</span> = <span class="org-string">"!f() { git branch -a --contains $1; }; f"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Find tags containing commit</span>
<span class="org-variable-name">ft</span> = <span class="org-string">"!f() { git describe --always --contains $1; }; f"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Find commits by source code</span>
<span class="org-variable-name">fc</span> = <span class="org-string">"!f() { git log --pretty=format:'%C(yellow)%h %Cblue%ad %Creset%s%Cgreen [%cn] %Cred%d' --decorate --date=short -S$1; }; f"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Find commits by commit message</span>
<span class="org-variable-name">fm</span> = <span class="org-string">"!f() { git log --pretty=format:'%C(yellow)%h %Cblue%ad %Creset%s%Cgreen [%cn] %Cred%d' --decorate --date=short --grep=$1; }; f"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Remove branches that have already been merged with master</span>
<span class="org-variable-name">dm</span> = <span class="org-string">"!git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">List contributors with number of commits</span>
<span class="org-variable-name">contributors</span> = shortlog --summary --numbered
<span class="org-variable-name">ec</span> = config --global -e
<span class="org-comment-delimiter"># </span><span class="org-comment">Pretty log output</span>
<span class="org-variable-name">hist</span> = log --graph --pretty=format:<span class="org-string">'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)&lt;%an&gt;%Creset'</span> --abbrev-commit --all
<span class="org-variable-name">pp</span> = pull origin $(git_current_branch)
<span class="org-variable-name">gg</span> = push origin $(git_current_branch)
<span class="org-variable-name">rhh</span> = reset HEAD --hard
<span class="org-variable-name">unstage</span> = reset HEAD --
<span class="org-variable-name">last</span> = log -1 HEAD
</pre>
</div>
</div>
</div>
<div id="outline-container-org9891923" class="outline-3">
<h3 id="org9891923">Apply</h3>
<div class="outline-text-3" id="text-org9891923">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">apply</span>]
<span class="org-comment-delimiter"># </span><span class="org-comment">Detect whitespace errors when applying a patch</span>
<span class="org-variable-name">whitespace</span> = fix
</pre>
</div>
</div>
</div>
<div id="outline-container-org3d3c60c" class="outline-3">
<h3 id="org3d3c60c">Colors</h3>
<div class="outline-text-3" id="text-org3d3c60c">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">color</span>]
<span class="org-comment-delimiter"># </span><span class="org-comment">Use colors in Git commands that are capable of colored output when outputting to the terminal</span>
<span class="org-variable-name">ui</span> = true
[color <span class="org-string">"branch"</span>]
<span class="org-variable-name">current</span> = yellow reverse
<span class="org-variable-name">local</span> = yellow
<span class="org-variable-name">remote</span> = green
<span class="org-variable-name">HEAD</span> = red bold
[color <span class="org-string">"diff"</span>]
<span class="org-variable-name">meta</span> = yellow bold
<span class="org-variable-name">frag</span> = magenta bold <span class="org-comment-delimiter"># </span><span class="org-comment">line info</span>
<span class="org-variable-name">old</span> = red <span class="org-comment-delimiter"># </span><span class="org-comment">deletions</span>
<span class="org-variable-name">new</span> = green <span class="org-comment-delimiter"># </span><span class="org-comment">additions</span>
[color <span class="org-string">"status"</span>]
<span class="org-variable-name">added</span> = green
<span class="org-variable-name">changed</span> = yellow
<span class="org-variable-name">untracked</span> = cyan
[color <span class="org-string">"decorate"</span>]
<span class="org-variable-name">HEAD</span> = red bold
<span class="org-variable-name">branch</span> = green
<span class="org-variable-name">remoteBranch</span> = cyan
<span class="org-variable-name">tag</span> = yellow
<span class="org-variable-name">stash</span> = bold yellow
</pre>
</div>
</div>
</div>
<div id="outline-container-org005e9ea" class="outline-3">
<h3 id="org005e9ea">Default Remote</h3>
<div class="outline-text-3" id="text-org005e9ea">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Use `origin` as the default remote on the `master` branch in all cases</span>
[branch <span class="org-string">"master"</span>]
<span class="org-variable-name">remote</span> = origin
<span class="org-variable-name">merge</span> = refs/heads/master
</pre>
</div>
</div>
</div>
<div id="outline-container-org27b5c46" class="outline-3">
<h3 id="org27b5c46">Push Configuration</h3>
<div class="outline-text-3" id="text-org27b5c46">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">push</span>]
<span class="org-variable-name">default</span> = matching
<span class="org-comment-delimiter"># </span><span class="org-comment">Make `git push` push relevant annotated tags when pushing branches out.</span>
<span class="org-variable-name">followTags</span> = true
</pre>
</div>
</div>
</div>
<div id="outline-container-org8e4fe7a" class="outline-3">
<h3 id="org8e4fe7a">User</h3>
<div class="outline-text-3" id="text-org8e4fe7a">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">user</span>]
<span class="org-variable-name">name</span> = Thomas Dehaeze
<span class="org-variable-name">email</span> = dehaeze.thomas@gmail.com
</pre>
</div>
</div>
</div>
<div id="outline-container-org437daae" class="outline-3">
<h3 id="org437daae">Core configuration</h3>
<div class="outline-text-3" id="text-org437daae">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">core</span>]
<span class="org-comment-delimiter"># </span><span class="org-comment">Use custom `.gitignore` and `.gitattributes`</span>
<span class="org-variable-name">excludesfile</span> = ~/.gitignore_global
<span class="org-comment-delimiter"># </span><span class="org-comment">Treat spaces before tabs and all kinds of trailing whitespace as an error</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">[default] trailing-space: looks for spaces at the end of a line</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">[default] space-before-tab: looks for spaces before tabs at the beginning of a line</span>
<span class="org-variable-name">whitespace</span> = space-before-tab,-indent-with-non-tab,trailing-space
<span class="org-comment-delimiter"># </span><span class="org-comment">Prevent showing files whose names contain non-ASCII symbols as unversioned.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">http://michael-kuehnel.de/git/2014/11/21/git-mac-osx-and-german-umlaute.html</span>
<span class="org-variable-name">precomposeunicode</span> = false
<span class="org-variable-name">pager</span> = diff-so-fancy | less --tabs=<span class="org-highlight-numbers-number">4</span> -RFX
<span class="org-variable-name">autocrlf</span> = input
<span class="org-comment-delimiter"># </span><span class="org-comment">Open vim, start Goyo and enter insert mode on the first line</span>
<span class="org-variable-name">editor</span> = <span class="org-string">"nvim -c ':Goyo' -c 'goto 1' -c 'startinsert'"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org39b3cb9" class="outline-3">
<h3 id="org39b3cb9">Credentials using pass</h3>
<div class="outline-text-3" id="text-org39b3cb9">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">credential</span>]
<span class="org-variable-name">helper</span> = !pass-git-helper $@
[credential <span class="org-string">"https://github.com"</span>]
<span class="org-variable-name">username</span> = tdehaeze
</pre>
</div>
</div>
</div>
<div id="outline-container-org02367c3" class="outline-3">
<h3 id="org02367c3">Diff-so-fancy</h3>
<div class="outline-text-3" id="text-org02367c3">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">diff-so-fancy</span>]
<span class="org-variable-name">markEmptyLines</span> = false
</pre>
</div>
</div>
</div>
<div id="outline-container-org599c398" class="outline-3">
<h3 id="org599c398">Github</h3>
<div class="outline-text-3" id="text-org599c398">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">github</span>]
<span class="org-variable-name">user</span> = tdehaeze
<span class="org-variable-name">oauth-token</span> = 8cc5b41120f7e9a869c24fa3678667d3d8422e6f
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org3e19276" class="outline-2">
<h2 id="org3e19276">Global Git Ignore</h2>
<div class="outline-text-2" id="text-org3e19276">
<div class="org-src-container">
<pre class="src src-conf">*~
.DS_Store
Session.vim
</pre>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 22:00</p>
</div>
</body>
</html>

321
docs/gtk.html Normal file
View File

@ -0,0 +1,321 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 21:59 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>GTK Configuration</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="../css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="../css/readtheorg.css"/>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="../js/readtheorg.js"></script>
<script type="text/javascript">
/*
@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[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</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">GTK Configuration</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org52b8984">GTK-2.0</a></li>
<li><a href="#orgd55a07a">GTK-3.0</a></li>
</ul>
</div>
</div>
<div id="outline-container-org52b8984" class="outline-2">
<h2 id="org52b8984">GTK-2.0</h2>
<div class="outline-text-2" id="text-org52b8984">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">gtk-theme-name</span>=<span class="org-string">"Arc-Dark"</span>
<span class="org-variable-name">gtk-icon-theme-name</span>=<span class="org-string">"Arc"</span>
<span class="org-variable-name">gtk-font-name</span>=<span class="org-string">"Hack Nerd Font Mono 10"</span>
<span class="org-variable-name">gtk-cursor-theme-name</span>=<span class="org-string">"xcursor-breeze"</span>
<span class="org-variable-name">gtk-cursor-theme-size</span>=<span class="org-highlight-numbers-number">0</span>
<span class="org-variable-name">gtk-toolbar-style</span>=GTK_TOOLBAR_BOTH
<span class="org-variable-name">gtk-toolbar-icon-size</span>=GTK_ICON_SIZE_LARGE_TOOLBAR
<span class="org-variable-name">gtk-button-images</span>=<span class="org-highlight-numbers-number">1</span>
<span class="org-variable-name">gtk-menu-images</span>=<span class="org-highlight-numbers-number">1</span>
<span class="org-variable-name">gtk-enable-event-sounds</span>=<span class="org-highlight-numbers-number">1</span>
<span class="org-variable-name">gtk-enable-input-feedback-sounds</span>=<span class="org-highlight-numbers-number">1</span>
<span class="org-variable-name">gtk-xft-antialias</span>=<span class="org-highlight-numbers-number">1</span>
<span class="org-variable-name">gtk-xft-hinting</span>=<span class="org-highlight-numbers-number">1</span>
<span class="org-variable-name">gtk-xft-hintstyle</span>=<span class="org-string">"hintfull"</span>
<span class="org-variable-name">gtk-xft-rgba</span>=<span class="org-string">"rgb"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgd55a07a" class="outline-2">
<h2 id="orgd55a07a">GTK-3.0</h2>
<div class="outline-text-2" id="text-orgd55a07a">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Settings</span>]
<span class="org-variable-name">gtk-theme-name</span>=Arc-Dark
<span class="org-variable-name">gtk-icon-theme-name</span>=Arc
<span class="org-variable-name">gtk-font-name</span>=Hack Nerd Font Mono <span class="org-highlight-numbers-number">10</span>
<span class="org-variable-name">gtk-cursor-theme-name</span>=xcursor-breeze
<span class="org-variable-name">gtk-cursor-theme-size</span>=<span class="org-highlight-numbers-number">0</span>
<span class="org-variable-name">gtk-toolbar-style</span>=GTK_TOOLBAR_BOTH
<span class="org-variable-name">gtk-toolbar-icon-size</span>=GTK_ICON_SIZE_LARGE_TOOLBAR
<span class="org-variable-name">gtk-button-images</span>=<span class="org-highlight-numbers-number">1</span>
<span class="org-variable-name">gtk-menu-images</span>=<span class="org-highlight-numbers-number">1</span>
<span class="org-variable-name">gtk-enable-event-sounds</span>=<span class="org-highlight-numbers-number">1</span>
<span class="org-variable-name">gtk-enable-input-feedback-sounds</span>=<span class="org-highlight-numbers-number">1</span>
<span class="org-variable-name">gtk-xft-antialias</span>=<span class="org-highlight-numbers-number">1</span>
<span class="org-variable-name">gtk-xft-hinting</span>=<span class="org-highlight-numbers-number">1</span>
<span class="org-variable-name">gtk-xft-hintstyle</span>=hintfull
<span class="org-variable-name">gtk-xft-rgba</span>=rgb
</pre>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 21:59</p>
</div>
</body>
</html>

607
docs/i3.html Normal file
View File

@ -0,0 +1,607 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 21:59 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>I3 Configuration</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="../css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="../css/readtheorg.css"/>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="../js/readtheorg.js"></script>
<script type="text/javascript">
/*
@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[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</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">I3 Configuration</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org5a89310">Basic configuration</a>
<ul>
<li><a href="#org7b59438">Colors</a></li>
<li><a href="#orgfa3a84a">Mod Key</a></li>
<li><a href="#org6e4f11a">Border Style</a></li>
<li><a href="#orgb3d9c62">Font for window titles</a></li>
<li><a href="#orgeebb1d2">Color palette used for the terminal ( ~/.Xresources file )</a></li>
<li><a href="#orgec5c654">Theme colors</a></li>
<li><a href="#org92d84a9">Settings for i3-gaps</a></li>
<li><a href="#org1a7f35c">Workspace names</a></li>
<li><a href="#orgf10c4f1">Use Mouse+$mod to drag floating windows</a></li>
<li><a href="#org445b64b">Back and Forth</a></li>
<li><a href="#orgccf5527">Application Specific</a>
<ul>
<li><a href="#orgec227a1">Open applications on specific workspaces</a></li>
<li><a href="#org05defe1">Open specific applications in floating mode</a></li>
</ul>
</li>
<li><a href="#org6aa38e9">Scratchpad</a></li>
</ul>
</li>
<li><a href="#orgff12892">Run Polybar and SXHKD</a></li>
</ul>
</div>
</div>
<div id="outline-container-org5a89310" class="outline-2">
<h2 id="org5a89310">Basic configuration</h2>
<div class="outline-text-2" id="text-org5a89310">
</div>
<div id="outline-container-org7b59438" class="outline-3">
<h3 id="org7b59438">Colors</h3>
<div class="outline-text-3" id="text-org7b59438">
<div class="org-src-container">
<pre class="src src-conf">set $bg <span class="org-comment-delimiter">#</span><span class="org-comment">32302f</span>
set $bg1 <span class="org-comment-delimiter">#</span><span class="org-comment">3c3836</span>
set $bg2 <span class="org-comment-delimiter">#</span><span class="org-comment">504945</span>
set $bg3 <span class="org-comment-delimiter">#</span><span class="org-comment">665c54</span>
set $bg4 <span class="org-comment-delimiter">#</span><span class="org-comment">7c6f64</span>
set $fg <span class="org-comment-delimiter">#</span><span class="org-comment">ebdbb2</span>
set $fg1 <span class="org-comment-delimiter">#</span><span class="org-comment">ebdbb2</span>
set $fg2 <span class="org-comment-delimiter">#</span><span class="org-comment">d5c4a1</span>
set $fg3 <span class="org-comment-delimiter">#</span><span class="org-comment">bdae93</span>
set $fg4 <span class="org-comment-delimiter">#</span><span class="org-comment">a89984</span>
set $gray <span class="org-comment-delimiter">#</span><span class="org-comment">a89984</span>
set $red <span class="org-comment-delimiter">#</span><span class="org-comment">cc241d</span>
set $green <span class="org-comment-delimiter">#</span><span class="org-comment">98971a</span>
set $yellow <span class="org-comment-delimiter">#</span><span class="org-comment">d79921</span>
set $blue <span class="org-comment-delimiter">#</span><span class="org-comment">458588</span>
set $purple <span class="org-comment-delimiter">#</span><span class="org-comment">b16286</span>
set $aqua <span class="org-comment-delimiter">#</span><span class="org-comment">689d6a</span>
set $orange <span class="org-comment-delimiter">#</span><span class="org-comment">d65d0e</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgfa3a84a" class="outline-3">
<h3 id="orgfa3a84a">Mod Key</h3>
<div class="outline-text-3" id="text-orgfa3a84a">
<p>
Set mod key (Mod1=&lt;Alt&gt;, Mod4=&lt;Super&gt;)
</p>
<div class="org-src-container">
<pre class="src src-conf">set $mod Mod4
</pre>
</div>
</div>
</div>
<div id="outline-container-org6e4f11a" class="outline-3">
<h3 id="org6e4f11a">Border Style</h3>
<div class="outline-text-3" id="text-org6e4f11a">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Configure border style &lt;normal|1pixel|pixel xx|none|pixel&gt;</span>
new_window pixel <span class="org-highlight-numbers-number">1</span>
new_float normal
<span class="org-comment-delimiter"># </span><span class="org-comment">Hide borders</span>
hide_edge_borders smart
</pre>
</div>
</div>
</div>
<div id="outline-container-orgb3d9c62" class="outline-3">
<h3 id="orgb3d9c62">Font for window titles</h3>
<div class="outline-text-3" id="text-orgb3d9c62">
<div class="org-src-container">
<pre class="src src-conf">font Hack Nerd Font <span class="org-highlight-numbers-number">11</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgeebb1d2" class="outline-3">
<h3 id="orgeebb1d2">Color palette used for the terminal ( ~/.Xresources file )</h3>
<div class="outline-text-3" id="text-orgeebb1d2">
<p>
Colors are gathered based on the documentation <a href="https://i3wm.org/docs/userguide.html#xresources">https://i3wm.org/docs/userguide.html#xresources</a>.
</p>
<div class="org-src-container">
<pre class="src src-conf">set_from_resource $darkred color1 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
set_from_resource $red color9 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
set_from_resource $darkgreen color2 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
set_from_resource $green color10 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
set_from_resource $darkyellow color3 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
set_from_resource $yellow color11 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
set_from_resource $darkblue color4 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
set_from_resource $blue color12 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
set_from_resource $darkmagenta color5 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
set_from_resource $magenta color13 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
set_from_resource $darkcyan color6 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
set_from_resource $cyan color14 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
set_from_resource $darkwhite color7 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
set_from_resource $white color15 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Use custom colors for black</span>
set $black <span class="org-comment-delimiter">#</span><span class="org-comment">282828</span>
set $darkblack <span class="org-comment-delimiter">#</span><span class="org-comment">1d2021</span>
set $transparent <span class="org-comment-delimiter">#</span><span class="org-comment">00000000</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">set_from_resource $term_background background</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">set_from_resource $term_foreground foreground</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">set_from_resource $term_color0 color0</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">set_from_resource $term_color1 color1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">set_from_resource $term_color2 color2</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">set_from_resource $term_color3 color3</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">set_from_resource $term_color4 color4</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">set_from_resource $term_color5 color5</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">set_from_resource $term_color6 color6</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">set_from_resource $term_color7 color7</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">set_from_resource $term_color8 color8</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">set_from_resource $term_color9 color9</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">set_from_resource $term_color10 color10</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">set_from_resource $term_color11 color11</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">set_from_resource $term_color12 color12</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">set_from_resource $term_color13 color13</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">set_from_resource $term_color14 color14</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">set_from_resource $term_color15 color15</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgec5c654" class="outline-3">
<h3 id="orgec5c654">Theme colors</h3>
<div class="outline-text-3" id="text-orgec5c654">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">class border backgr. text indic. child_border</span>
client.focused $blue $blue $fg $blue
client.focused_inactive $bg $bg $fg $bg
client.urgent $bg $bg $fg $bg
client.unfocused $bg $bg $fg $bg
client.placeholder $bg $bg $fg $bg
client.background <span class="org-comment-delimiter">#</span><span class="org-comment">32302F</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org92d84a9" class="outline-3">
<h3 id="org92d84a9">Settings for i3-gaps</h3>
<div class="outline-text-3" id="text-org92d84a9">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Set inner/outer gaps</span>
gaps inner <span class="org-highlight-numbers-number">10</span>
gaps outer -2
<span class="org-comment-delimiter"># </span><span class="org-comment">Additionally, you can issue commands with the following syntax. This is useful to bind keys to changing the gap size.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">gaps inner|outer current|all set|plus|minus &lt;px&gt;</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">gaps inner all set 10</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">gaps outer all plus 5</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Smart gaps (gaps used if only more than one container on the workspace)</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">smart_gaps on</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Smart borders (draw borders around container only if it is not the only container on this workspace)</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">on|no_gaps (on=always activate and no_gaps=only activate if the gap size to the edge of the screen is 0)</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">smart_borders on</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Press $mod+Shift+g to enter the gap mode. Choose o or i for modifying outer/inner gaps. Press one of + / - (in-/decrement for current workspace) or 0 (remove gaps for current workspace). If you also press Shift with these keys, the change will be global for all workspaces.</span>
set $mode_gaps Gaps: (o) outer, (i) inner
set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
bindsym $mod+Shift+g mode <span class="org-string">"$mode_gaps"</span>
<span class="org-type">mode </span><span class="org-string"><span class="org-type">"$mode_gaps"</span></span> {
bindsym o mode <span class="org-string">"$mode_gaps_outer"</span>
bindsym i mode <span class="org-string">"$mode_gaps_inner"</span>
bindsym Return mode <span class="org-string">"default"</span>
bindsym Escape mode <span class="org-string">"default"</span>
}
<span class="org-type">mode </span><span class="org-string"><span class="org-type">"$mode_gaps_inner"</span></span> {
bindsym plus gaps inner current plus <span class="org-highlight-numbers-number">5</span>
bindsym minus gaps inner current minus <span class="org-highlight-numbers-number">5</span>
bindsym <span class="org-highlight-numbers-number">0</span> gaps inner current set <span class="org-highlight-numbers-number">0</span>
bindsym Shift+plus gaps inner all plus <span class="org-highlight-numbers-number">5</span>
bindsym Shift+minus gaps inner all minus <span class="org-highlight-numbers-number">5</span>
bindsym Shift+0 gaps inner all set <span class="org-highlight-numbers-number">0</span>
bindsym Return mode <span class="org-string">"default"</span>
bindsym Escape mode <span class="org-string">"default"</span>
}
<span class="org-type">mode </span><span class="org-string"><span class="org-type">"$mode_gaps_outer"</span></span> {
bindsym plus gaps outer current plus <span class="org-highlight-numbers-number">5</span>
bindsym minus gaps outer current minus <span class="org-highlight-numbers-number">5</span>
bindsym <span class="org-highlight-numbers-number">0</span> gaps outer current set <span class="org-highlight-numbers-number">0</span>
bindsym Shift+plus gaps outer all plus <span class="org-highlight-numbers-number">5</span>
bindsym Shift+minus gaps outer all minus <span class="org-highlight-numbers-number">5</span>
bindsym Shift+0 gaps outer all set <span class="org-highlight-numbers-number">0</span>
bindsym Return mode <span class="org-string">"default"</span>
bindsym Escape mode <span class="org-string">"default"</span>
}
</pre>
</div>
</div>
</div>
<div id="outline-container-org1a7f35c" class="outline-3">
<h3 id="org1a7f35c">Workspace names</h3>
<div class="outline-text-3" id="text-org1a7f35c">
<p>
To display names or symbols instead of plain workspace numbers you can use something like: <code>set $ws1 1:mail</code> and <code>set $ws2 2:</code>.
</p>
<div class="org-src-container">
<pre class="src src-conf">set $ws1 <span class="org-highlight-numbers-number">1</span>
set $ws2 <span class="org-highlight-numbers-number">2</span>
set $ws3 <span class="org-highlight-numbers-number">3</span>
set $ws4 <span class="org-highlight-numbers-number">4</span>
set $ws5 <span class="org-highlight-numbers-number">5</span>
set $ws6 <span class="org-highlight-numbers-number">6</span>
set $ws7 <span class="org-highlight-numbers-number">7</span>
set $ws8 <span class="org-highlight-numbers-number">8</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgf10c4f1" class="outline-3">
<h3 id="orgf10c4f1">Use Mouse+$mod to drag floating windows</h3>
<div class="outline-text-3" id="text-orgf10c4f1">
<div class="org-src-container">
<pre class="src src-conf">floating_modifier $mod
</pre>
</div>
</div>
</div>
<div id="outline-container-org445b64b" class="outline-3">
<h3 id="org445b64b">Back and Forth</h3>
<div class="outline-text-3" id="text-org445b64b">
<div class="org-src-container">
<pre class="src src-conf">workspace_auto_back_and_forth yes
</pre>
</div>
</div>
</div>
<div id="outline-container-orgccf5527" class="outline-3">
<h3 id="orgccf5527">Application Specific</h3>
<div class="outline-text-3" id="text-orgccf5527">
</div>
<div id="outline-container-orgec227a1" class="outline-4">
<h4 id="orgec227a1">Open applications on specific workspaces</h4>
<div class="outline-text-4" id="text-orgec227a1">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Matlab Figures</span>
<span class="org-variable-name">assign[title</span>=<span class="org-string">"^Fig"</span>] $ws6
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"^Fig"</span>] layout tabbed
<span class="org-variable-name">assign[title</span>=<span class="org-string">"^HG_Peer"</span>] $ws6 <span class="org-comment-delimiter"># </span><span class="org-comment">Name of window when export figure with matlab</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org05defe1" class="outline-4">
<h4 id="org05defe1">Open specific applications in floating mode</h4>
<div class="outline-text-4" id="text-org05defe1">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">for_window [title</span>=<span class="org-string">"File Transfer*"</span>] floating enable
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"GParted"</span>] floating enable border normal
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"i3_help"</span>] floating enable sticky enable border normal
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Lightdm-settings"</span>] floating enable
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Lxappearance"</span>] floating enable sticky enable border normal
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Manjaro Settings Manager"</span>] floating enable border normal
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Pamac-manager"</span>] floating enable
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Pavucontrol"</span>] floating enable
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"qt5ct"</span>] floating enable sticky enable border normal
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Qtconfig-qt4"</span>] floating enable sticky enable border normal
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Simple-scan"</span>] floating enable border normal
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"(?i)System-config-printer.py"</span>] floating enable border normal
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Timeset-gui"</span>] floating enable border normal
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"(?i)virtualbox"</span>] floating enable border normal
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Xfburn"</span>] floating enable
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"^Documentation -"</span>] floating enable border normal
<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">"Simulink Library Browser"</span>] floating enable
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org6aa38e9" class="outline-3">
<h3 id="org6aa38e9">Scratchpad</h3>
<div class="outline-text-3" id="text-org6aa38e9">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">move the currently focused window to the scratchpad</span>
bindsym $mod+Shift+BackSpace move scratchpad
<span class="org-comment-delimiter"># </span><span class="org-comment">Show the next scratchpad window or hide the focused scratchpad window.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">If there are multiple scratchpad windows, this command cycles through them.</span>
bindsym $mod+BackSpace scratchpad show
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-orgff12892" class="outline-2">
<h2 id="orgff12892">Run Polybar and SXHKD</h2>
<div class="outline-text-2" id="text-orgff12892">
<div class="org-src-container">
<pre class="src src-conf">exec_always --no-startup-id $HOME/.config/polybar/scripts/launch.sh
exec_always --no-startup-id sxhkd -m <span class="org-highlight-numbers-number">1</span> -c ~/.config/sxhkd/sxhkdrc.i3
</pre>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 21:59</p>
</div>
</body>
</html>

284
docs/image.html Normal file
View File

@ -0,0 +1,284 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 21:59 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>SXIV Configuration</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="../css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="../css/readtheorg.css"/>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="../js/readtheorg.js"></script>
<script type="text/javascript">
/*
@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[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</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">SXIV Configuration</h1>
<p>
Press <code>C-x</code> to activate to key handler.
</p>
<div class="org-src-container">
<pre class="src src-conf">while read file
do
case <span class="org-string">"$1"</span> in
<span class="org-string">"C-d"</span>)
mv <span class="org-string">"$file"</span> ~/.trash ;;
<span class="org-string">"C-r"</span>)
convert -rotate <span class="org-highlight-numbers-number">90</span> <span class="org-string">"$file"</span> <span class="org-string">"$file"</span> ;;
<span class="org-string">"C-c"</span>)
echo -n <span class="org-string">"$file"</span> | xclip -selection clipboard ;;
<span class="org-string">"C-w"</span>)
nitrogen --save --set-zoom-fill <span class="org-string">"$file"</span> ;;
esac
done
</pre>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 21:59</p>
</div>
</body>
</html>

6460
docs/index.html Normal file

File diff suppressed because it is too large Load Diff

2207
docs/mail.html Normal file

File diff suppressed because it is too large Load Diff

1432
docs/music.html Normal file

File diff suppressed because it is too large Load Diff

620
docs/newsboat.html Normal file
View File

@ -0,0 +1,620 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 22:00 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Newsboat Configuration</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="../css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="../css/readtheorg.css"/>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="../js/readtheorg.js"></script>
<script type="text/javascript">
/*
@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[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</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">Newsboat Configuration</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org478f10b">Config</a>
<ul>
<li><a href="#orgc984740">Reload configuration</a></li>
<li><a href="#org0ec3f69">Basic configuration</a></li>
<li><a href="#orga70d8cc">Notifications</a>
<ul>
<li><a href="#orgc06be83">Notification Script</a></li>
</ul>
</li>
<li><a href="#orgfe2fbd1">Bindings</a></li>
<li><a href="#org7887446">Macros - Starts with , key</a></li>
<li><a href="#org469467d">hide articles matching</a></li>
<li><a href="#orgbf81af1">Feedlist and Article Format</a></li>
<li><a href="#orgbf90580">Color Scheme</a></li>
</ul>
</li>
<li><a href="#org387f622">Colors</a></li>
<li><a href="#orgd487b2a">URLS</a>
<ul>
<li><a href="#orgdf15c11">NEWSFEEDS</a>
<ul>
<li><a href="#org45b67e9">Linux</a></li>
<li><a href="#orge79377c">Emacs</a></li>
<li><a href="#orgea87595">Other</a></li>
</ul>
</li>
<li><a href="#org2ae74eb">Radio</a></li>
<li><a href="#org7904544">Youtube</a></li>
</ul>
</li>
</ul>
</div>
</div>
<p>
<a href="https://wiki.archlinux.org/index.php/Newsboat">https://wiki.archlinux.org/index.php/Newsboat</a>
<a href="https://newsboat.org/releases/2.12/docs/newsboat.html">https://newsboat.org/releases/2.12/docs/newsboat.html</a>
</p>
<div id="outline-container-org478f10b" class="outline-2">
<h2 id="org478f10b">Config</h2>
<div class="outline-text-2" id="text-org478f10b">
</div>
<div id="outline-container-orgc984740" class="outline-3">
<h3 id="orgc984740">Reload configuration</h3>
<div class="outline-text-3" id="text-orgc984740">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">All feeds will be automatically reloaded after a certain time has passed</span>
auto-reload yes
<span class="org-comment-delimiter"># </span><span class="org-comment">The number of minutes between automatic reloads.</span>
reload-time <span class="org-highlight-numbers-number">180</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">The number of parallel reload threads that shall be started when all feeds are reloaded.</span>
reload-threads <span class="org-highlight-numbers-number">3</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">If set to yes, then the first automatic reload will be suppressed if auto-reload is set to yes.</span>
suppress-first-reload yes
</pre>
</div>
</div>
</div>
<div id="outline-container-org0ec3f69" class="outline-3">
<h3 id="org0ec3f69">Basic configuration</h3>
<div class="outline-text-3" id="text-org0ec3f69">
<div class="org-src-container">
<pre class="src src-conf">confirm-exit no
external-url-viewer <span class="org-string">"urlscan -dc -r 'linkhandler {}'"</span>
goto-first-unread no
goto-next-feed no
save-path <span class="org-string">"~/Saved Articles"</span>
download-path <span class="org-string">"~/Downloads"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">If set to no, then the keymap hints on the bottom of screen will not be displayed.</span>
show-keymap-hint no
feed-sort-order none
player <span class="org-string">"mpv"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orga70d8cc" class="outline-3">
<h3 id="orga70d8cc">Notifications</h3>
<div class="outline-text-3" id="text-orga70d8cc">
<div class="org-src-container">
<pre class="src src-conf">notify-format <span class="org-string">"%n unread articles"</span>
notify-program ~/scripts/newsboat-notify.sh
notify-always no
</pre>
</div>
</div>
<div id="outline-container-orgc06be83" class="outline-4">
<h4 id="orgc06be83">Notification Script</h4>
<div class="outline-text-4" id="text-orgc06be83">
<div class="org-src-container">
<pre class="src src-bash">dunstify -replace=<span class="org-highlight-numbers-number">38492</span> <span class="org-string">"Newsbeuter &#61763;"</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>
<div id="outline-container-orgfe2fbd1" class="outline-3">
<h3 id="orgfe2fbd1">Bindings</h3>
<div class="outline-text-3" id="text-orgfe2fbd1">
<div class="org-src-container">
<pre class="src src-conf">bind-key j down
bind-key k up
bind-key j next articlelist
bind-key k prev articlelist
bind-key J next-feed articlelist
bind-key K prev-feed articlelist
bind-key G end
bind-key g home
bind-key d pagedown
bind-key u pageup
bind-key l open
bind-key h quit
bind-key a toggle-article-read
bind-key n next-unread
bind-key N prev-unread
bind-key D pb-download
bind-key U show-urls
<span class="org-comment-delimiter"># </span><span class="org-comment">bind-key x pb-delete</span>
bind-key t set-tag
bind-key T clear-tag
bind-key r reload <span class="org-comment-delimiter"># </span><span class="org-comment">Reload the currently selected feed</span>
bind-key R reload-all <span class="org-comment-delimiter"># </span><span class="org-comment">Reload all feeds</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org7887446" class="outline-3">
<h3 id="org7887446">Macros - Starts with , key</h3>
<div class="outline-text-3" id="text-org7887446">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Default Browser</span>
browser <span class="org-string">"qutebrowser %u"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Open in Browser</span>
macro , open-in-browser
<span class="org-comment-delimiter"># </span><span class="org-comment">Download Video with Youtube-DL</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">TODO - Should write a script for that? Maybe open a tmux script if newsboat is in tmux pane?</span>
macro t set browser <span class="org-string">"~/scripts/download-video.sh %u"</span> ; open-in-browser ; set browser <span class="org-string">"qutebrowser %u"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Download Audio with Youtube-DL</span>
macro a set browser <span class="org-string">"~/scripts/download-audio.sh %u"</span> ; open-in-browser ; set browser <span class="org-string">"qutebrowser %u"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Open Video with MPV</span>
macro v set browser <span class="org-string">"setsid nohup mpv %u &amp;&gt; /dev/null &amp;"</span> ; open-in-browser ; set browser <span class="org-string">"qutebrowser %u"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Open With W3M</span>
macro w set browser <span class="org-string">"w3m %u"</span> ; open-in-browser ; set browser <span class="org-string">"qutebrowser %u"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Copy Address to clipboard</span>
macro c set browser <span class="org-string">"xsel -b &lt;&lt;&lt;"</span> ; open-in-browser ; set browser <span class="org-string">"qutebrowser %u"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org469467d" class="outline-3">
<h3 id="org469467d">hide articles matching</h3>
<div class="outline-text-3" id="text-org469467d">
<div class="org-src-container">
<pre class="src src-conf">ignore-article <span class="org-string">"*"</span> <span class="org-string">"title =~ \"Sponsor\""</span>
ignore-article <span class="org-string">"*"</span> <span class="org-string">"title =~ \"Advertisement\""</span>
ignore-mode <span class="org-string">"display"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgbf81af1" class="outline-3">
<h3 id="orgbf81af1">Feedlist and Article Format</h3>
<div class="outline-text-3" id="text-orgbf81af1">
<div class="org-src-container">
<pre class="src src-conf">feedlist-format <span class="org-string">"%4i %n %11u %t"</span>
feedlist-title-format <span class="org-string">"N %V - Your feeds (%u unread, %t total)%?T? - tag `%T'&amp;?"</span>
articlelist-format <span class="org-string">"%3i %f %D %?T?|%-17T| ?%t"</span>
articlelist-title-format <span class="org-string">"%N %V - Articles in feed '%T' (%u unread, %t total) - %U"</span>
itemview-title-format <span class="org-string">"Article '%T'"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgbf90580" class="outline-3">
<h3 id="orgbf90580">Color Scheme</h3>
<div class="outline-text-3" id="text-orgbf90580">
<div class="org-src-container">
<pre class="src src-conf">include <span class="org-string">"~/.config/newsboat/colors"</span>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org387f622" class="outline-2">
<h2 id="org387f622">Colors</h2>
<div class="outline-text-2" id="text-org387f622">
<div class="org-src-container">
<pre class="src src-conf">highlight feedlist <span class="org-string">"^ *[0-9]+ *N "</span> cyan cyan
highlight articlelist <span class="org-string">"^ *[0-9]+ *N "</span> cyan cyan
highlight article <span class="org-string">"(^Feed:.*|^Title:.*|^Author:.*)"</span> red default
highlight article <span class="org-string">"(^Link:.*|^Date:.*)"</span> white default
highlight article <span class="org-string">"^Podcast Download URL:.*"</span> cyan default
highlight article <span class="org-string">"^Links:"</span> magenta black underline
highlight article <span class="org-string">"https?://[^ ]+"</span> green default
highlight article <span class="org-string">"^(Title):.*$"</span> blue default
highlight article <span class="org-string">"\\[[0-9][0-9]*\\]"</span> magenta default bold
highlight article <span class="org-string">"\\[image\\ [0-9]+\\]"</span> green default bold
highlight article <span class="org-string">"\\[embedded flash: [0-9][0-9]*\\]"</span> green default bold
highlight article <span class="org-string">":.*\\(link\\)$"</span> cyan default
highlight article <span class="org-string">":.*\\(image\\)$"</span> blue default
highlight article <span class="org-string">":.*\\(embedded flash\\)$"</span> magenta default
color background default default
color listnormal default default
color listnormal_unread white default
color listfocus color255 cyan bold
color listfocus_unread color255 cyan bold
color info cyan black
color article default default
</pre>
</div>
</div>
</div>
<div id="outline-container-orgd487b2a" class="outline-2">
<h2 id="orgd487b2a">URLS</h2>
<div class="outline-text-2" id="text-orgd487b2a">
</div>
<div id="outline-container-orgdf15c11" class="outline-3">
<h3 id="orgdf15c11">NEWSFEEDS</h3>
<div class="outline-text-3" id="text-orgdf15c11">
</div>
<div id="outline-container-org45b67e9" class="outline-4">
<h4 id="org45b67e9">Linux</h4>
<div class="outline-text-4" id="text-org45b67e9">
<div class="org-src-container">
<pre class="src src-conf">https://itsfoss.com/feed/ <span class="org-string">"~NEWSFEED: It's Foss"</span> linux
https://lukesmith.xyz/rss.xml <span class="org-string">"~NEWSFEED: Lukesmith"</span> linux
https://lord.re/index.xml <span class="org-string">"~NEWSFEED: /home/lord"</span> linux
http://feeds.cyberciti.biz/Nixcraft-LinuxFreebsdSolarisTipsTricks <span class="org-string">"~NEWSFEED: nixCraft"</span> linux
<span class="org-variable-name">http://frederic.bezies.free.fr/blog/?feed</span>=rss2 <span class="org-string">"~NEWSFEED: Le Weblog de Frederic Bezies"</span> linux
https://addy-dclxvi.github.io/index.xml <span class="org-string">"~NEWSFEED: Addy's Blog"</span> linux
http://feeds.feedburner.com/linoxideblog <span class="org-string">"~NEWSFEED: LinOxide"</span> linux
</pre>
</div>
</div>
</div>
<div id="outline-container-orge79377c" class="outline-4">
<h4 id="orge79377c">Emacs</h4>
<div class="outline-text-4" id="text-orge79377c">
<div class="org-src-container">
<pre class="src src-conf">http://www.planet.emacsen.org/atom.xml <span class="org-string">"~NEWSFEED: Planet Emacs"</span> emacs
http://sachachua.com/blog/feed/ <span class="org-string">"~NEWSFEED: Sacha Chua"</span> emacs
https://scripter.co/categories/org/index.xml <span class="org-string">"~NEWSFEED: Scripter"</span> emacs
http://kitchingroup.cheme.cmu.edu/blog/feed <span class="org-string">"~NEWSFEED: The Kitchin Research Group"</span> emacs
<span class="org-variable-name">http://irreal.org/blog/?feed</span>=rss2 <span class="org-string">"~NEWSFEED: Irreal"</span> emacs
https://emacs.cafe/feed.xml <span class="org-string">"~NEWSFEED: Emacs caf&#233;"</span> emacs
http://pragmaticemacs.com/feed/ <span class="org-string">"~NEWSFEED: Pragmatic Emacs"</span> emacs
https://pinecast.com/feed/emacscast <span class="org-string">"~NEWSFEED: EmacsCast"</span> emacs
http://feeds.feedburner.com/CestLaZ <span class="org-string">"~NEWSFEED: c'est la Z"</span> emacs
https://joshrollinswrites.com/index.xml <span class="org-string">"~NEWSFEED: The Art of Not Asking Why"</span> emacs
http://howardism.org/index.xml <span class="org-string">"~NEWSFEED: Howardism"</span> emacs
</pre>
</div>
</div>
</div>
<div id="outline-container-orgea87595" class="outline-4">
<h4 id="orgea87595">Other</h4>
<div class="outline-text-4" id="text-orgea87595">
<div class="org-src-container">
<pre class="src src-conf">http://xkcd.com/rss.xml <span class="org-string">"~NEWSFEED: XKCD"</span> fun
https://undocumentedmatlab.com/feed/ <span class="org-string">"~NEWSFEED: undocumentedmatlab"</span> matlab
<span class="org-variable-name">http://feeds.feedburner.com/mathworks/pick?format</span>=xml <span class="org-string">"~NEWSFEED: Matlab Pick of the Week"</span> matlab
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org2ae74eb" class="outline-3">
<h3 id="org2ae74eb">Radio</h3>
<div class="outline-text-3" id="text-org2ae74eb">
<div class="org-src-container">
<pre class="src src-conf">http://radiofrance-podcast.net/podcast09/rss_12494.xml <span class="org-string">"~RADIO: France Inter - Journal 7h"</span> radio
http://radiofrance-podcast.net/podcast09/rss_11736.xml <span class="org-string">"~RADIO: France Inter - Journal 19h"</span> radio
http://radiofrance-podcast.net/podcast09/rss_18911.xml <span class="org-string">"~RADIO: France Inter - Journal 19h we"</span> radio
</pre>
</div>
</div>
</div>
<div id="outline-container-org7904544" class="outline-3">
<h3 id="org7904544">Youtube</h3>
<div class="outline-text-3" id="text-org7904544">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UCkK9UDm_ZNrq_rIXCz3xCGA <span class="org-string">"~YOUTUBE: Bryan Lunduke"</span> youtube unix
<span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UC2eYFnH61tmytImy1mTYvhA <span class="org-string">"~YOUTUBE: Luke Smith"</span> youtube unix
<span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UCXPHFM88IlFn68OmLwtPmZA <span class="org-string">"~YOUTUBE: Greg Hurrell"</span> youtube unix
<span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UCUR1pFG_3XoZn3JNKjulqZg <span class="org-string">"~YOUTUBE: Thoughtbot"</span> youtube unix
<span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UCOuIgj0CYCXCvjWywjDbauw <span class="org-string">"~YOUTUBE: Chat sceptique"</span> youtube science
<span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UCMFcMhePnH4onVHt2-ItPZw <span class="org-string">"~YOUTUBE: Hygi&#232;ne Mentale"</span> youtube science
<span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UCxqAWLTk1CmBvZFPzeZMd9A <span class="org-string">"~YOUTUBE: Domain of Science"</span> youtube science
<span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UC2LZO6swZ9SLUEOks3WnsfA <span class="org-string">"~YOUTUBE: 2veritasium"</span> youtube science
<span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UCaNlbnghtwlsGF-KzAFThqA <span class="org-string">"~YOUTUBE: ScienceEtonnante"</span> youtube science
<span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UCHnyfMqiRRG1u-2MsSQLbXA <span class="org-string">"~YOUTUBE: Veritasium"</span> youtube science
<span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UCEfFUaIkjbI06PhALdcXNVA <span class="org-string">"~YOUTUBE: EmacsCast"</span> youtube emacs
<span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UCkRmQ_G_NbdbCQMpALg6UPg <span class="org-string">"~YOUTUBE: Emacsrocks"</span> youtube emacs
<span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UCQp2VLAOlvq142YN3JO3y8w <span class="org-string">"~YOUTUBE: John Kitchin"</span> youtube emacs
<span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UCq0imsn84ShAe9PBOFnoIrg <span class="org-string">"~YOUTUBE: Brian Douglas"</span> youtube control
<span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UCm5mt-A4w61lknZ9lCsZtBw <span class="org-string">"~YOUTUBE: Steve Brunton"</span> youtube control
<span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UC7vVhkEfw4nOGp8TyDk7RcQ <span class="org-string">"~YOUTUBE: BostonDynamics"</span> youtube control
<span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UCmkP178NasnhR3TWQyyP4Gw <span class="org-string">"~YOUTUBE: How To Mechatronics"</span> youtube control
<span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UCSqyMHDUsc1gs6wz4sUy91w <span class="org-string">"~YOUTUBE: Jipihorn"</span> youtube acoustic
</pre>
</div>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 22:00</p>
</div>
</body>
</html>

2316
docs/notifications.html Normal file

File diff suppressed because it is too large Load Diff

324
docs/pcmanfm.html Normal file
View File

@ -0,0 +1,324 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 22:00 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>PCMANFM</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="../css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="../css/readtheorg.css"/>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="../js/readtheorg.js"></script>
<script type="text/javascript">
/*
@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[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</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">PCMANFM</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org7cb35ab">Config</a></li>
<li><a href="#org9e44fa8">Volume</a></li>
<li><a href="#orgb150f41">UI</a></li>
</ul>
</div>
</div>
<div id="outline-container-org7cb35ab" class="outline-2">
<h2 id="org7cb35ab">Config</h2>
<div class="outline-text-2" id="text-org7cb35ab">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">config</span>]
<span class="org-variable-name">bm_open_method</span>=<span class="org-highlight-numbers-number">0</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org9e44fa8" class="outline-2">
<h2 id="org9e44fa8">Volume</h2>
<div class="outline-text-2" id="text-org9e44fa8">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">volume</span>]
<span class="org-variable-name">mount_on_startup</span>=<span class="org-highlight-numbers-number">0</span>
<span class="org-variable-name">mount_removable</span>=<span class="org-highlight-numbers-number">0</span>
<span class="org-variable-name">autorun</span>=<span class="org-highlight-numbers-number">0</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgb150f41" class="outline-2">
<h2 id="orgb150f41">UI</h2>
<div class="outline-text-2" id="text-orgb150f41">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">ui</span>]
<span class="org-variable-name">always_show_tabs</span>=<span class="org-highlight-numbers-number">0</span>
<span class="org-variable-name">max_tab_chars</span>=<span class="org-highlight-numbers-number">32</span>
<span class="org-variable-name">win_width</span>=<span class="org-highlight-numbers-number">1263</span>
<span class="org-variable-name">win_height</span>=<span class="org-highlight-numbers-number">690</span>
<span class="org-variable-name">splitter_pos</span>=<span class="org-highlight-numbers-number">150</span>
<span class="org-variable-name">media_in_new_tab</span>=<span class="org-highlight-numbers-number">0</span>
<span class="org-variable-name">desktop_folder_new_win</span>=<span class="org-highlight-numbers-number">0</span>
<span class="org-variable-name">change_tab_on_drop</span>=<span class="org-highlight-numbers-number">1</span>
<span class="org-variable-name">close_on_unmount</span>=<span class="org-highlight-numbers-number">1</span>
<span class="org-variable-name">focus_previous</span>=<span class="org-highlight-numbers-number">0</span>
<span class="org-variable-name">side_pane_mode</span>=places
<span class="org-variable-name">view_mode</span>=icon
<span class="org-variable-name">show_hidden</span>=<span class="org-highlight-numbers-number">0</span>
<span class="org-variable-name">sort</span>=mtime;descending;
<span class="org-variable-name">toolbar</span>=newtab;navigation;home;
<span class="org-variable-name">show_statusbar</span>=<span class="org-highlight-numbers-number">1</span>
<span class="org-variable-name">pathbar_mode_buttons</span>=<span class="org-highlight-numbers-number">0</span>
</pre>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 22:00</p>
</div>
</body>
</html>

1253
docs/polybar.html Normal file

File diff suppressed because it is too large Load Diff

1568
docs/qutebrowser.html Normal file

File diff suppressed because it is too large Load Diff

1560
docs/ranger.html Normal file

File diff suppressed because it is too large Load Diff

516
docs/rofi.html Normal file
View File

@ -0,0 +1,516 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 21:59 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Rofi Configuration</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="../css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="../css/readtheorg.css"/>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="../js/readtheorg.js"></script>
<script type="text/javascript">
/*
@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[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</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">Rofi Configuration</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#orgf46135a">Rofi</a></li>
<li><a href="#org0c04f0a">Theme</a></li>
</ul>
</div>
</div>
<div id="outline-container-orgf46135a" class="outline-2">
<h2 id="orgf46135a">Rofi</h2>
<div class="outline-text-2" id="text-orgf46135a">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-type">configuration</span> {
modi: <span class="org-string">"window,run,ssh"</span>;
width: <span class="org-highlight-numbers-number">50</span>;
lines: <span class="org-highlight-numbers-number">15</span>;
columns: <span class="org-highlight-numbers-number">1</span>;
font: <span class="org-string">"Hack Nerd Font 12"</span>;
fixed-num-lines: true;
show-icons: false;
terminal: <span class="org-string">"rofi-sensible-terminal"</span>;
sort: false;
case-sensitive: false;
cycle: true;
sidebar-mode: false;
auto-select: false;
combi-modi: <span class="org-string">"window,run"</span>;
matching: <span class="org-string">"normal"</span>;
line-margin: <span class="org-highlight-numbers-number">2</span>;
line-padding: <span class="org-highlight-numbers-number">1</span>;
separator-style: <span class="org-string">"dash"</span>;
hide-scrollbar: true;
fullscreen: false;
dpi: -1;
show-match: true;
theme: <span class="org-string">"gruvbox-dark-soft"</span>;
kb-move-front: <span class="org-string">"Control+a"</span>;
kb-move-end: <span class="org-string">"Control+e"</span>;
kb-move-word-back: <span class="org-string">"Alt+b,Control+Left"</span>;
kb-move-word-forward: <span class="org-string">"Alt+f,Control+Right"</span>;
kb-move-char-back: <span class="org-string">"Left,Control+b"</span>;
kb-move-char-forward: <span class="org-string">"Right,Control+f"</span>;
kb-remove-char-forward: <span class="org-string">"Delete,Control+d"</span>;
kb-remove-char-back: <span class="org-string">"BackSpace,Shift+BackSpace"</span>;
kb-remove-to-eol: <span class="org-string">"Control+k"</span>;
kb-remove-to-sol: <span class="org-string">"Control+u"</span>;
kb-accept-entry: <span class="org-string">"Control+j,Return,KP_Enter"</span>;
kb-accept-custom: <span class="org-string">"Control+Return"</span>;
kb-accept-alt: <span class="org-string">"Shift+Return"</span>;
kb-delete-entry: <span class="org-string">"Shift+Delete"</span>;
kb-row-up: <span class="org-string">"Up,Control+p"</span>;
kb-row-down: <span class="org-string">"Down,Control+n"</span>;
kb-row-tab: <span class="org-string">"Tab"</span>;
kb-row-first: <span class="org-string">"Home,KP_Home"</span>;
kb-row-last: <span class="org-string">"End,KP_End"</span>;
kb-row-select: <span class="org-string">"Control+space"</span>;
kb-cancel: <span class="org-string">"Escape,Control+g"</span>;
}
</pre>
</div>
</div>
</div>
<div id="outline-container-org0c04f0a" class="outline-2">
<h2 id="org0c04f0a">Theme</h2>
<div class="outline-text-2" id="text-org0c04f0a">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-type">configuration</span> {
me-select-entry: <span class="org-string">"MouseSecondary"</span>;
me-accept-entry: <span class="org-string">"MousePrimary"</span>;
scroll-method: <span class="org-highlight-numbers-number">1</span>;
show-icons: true;
sidebar-mode: true;
kb-custom-1: <span class="org-string">""</span>;
kb-custom-2: <span class="org-string">""</span>;
kb-custom-3: <span class="org-string">""</span>;
kb-custom-4: <span class="org-string">""</span>;
kb-custom-5: <span class="org-string">""</span>;
kb-custom-6: <span class="org-string">""</span>;
kb-custom-7: <span class="org-string">""</span>;
kb-custom-8: <span class="org-string">""</span>;
kb-custom-9: <span class="org-string">""</span>;
kb-custom-10: <span class="org-string">""</span>;
kb-select-1: <span class="org-string">"Alt+1"</span>;
kb-select-2: <span class="org-string">"Alt+2"</span>;
kb-select-3: <span class="org-string">"Alt+3"</span>;
kb-select-4: <span class="org-string">"Alt+4"</span>;
kb-select-5: <span class="org-string">"Alt+5"</span>;
kb-select-6: <span class="org-string">"Alt+6"</span>;
kb-select-7: <span class="org-string">"Alt+7"</span>;
kb-select-8: <span class="org-string">"Alt+8"</span>;
kb-select-9: <span class="org-string">"Alt+9"</span>;
kb-select-10: <span class="org-string">"Alt+0"</span>;
}
<span class="org-type">*</span> {
//// COLORS ////
//// uncomment to match bspwm edition theme
background: <span class="org-comment-delimiter">#</span><span class="org-comment">292f34FF;</span>
background-color: <span class="org-comment-delimiter">#</span><span class="org-comment">292f3400;</span>
foreground: <span class="org-comment-delimiter">#</span><span class="org-comment">F6F9FFFF;</span>
selected: <span class="org-comment-delimiter">#</span><span class="org-comment">1ABB9BFF;</span>
selected-foreground: @foreground;
//// uncomment to match Adapta Nokto theme
// background: <span class="org-comment-delimiter">#</span><span class="org-comment">222D32E8;</span>
// background-color: <span class="org-comment-delimiter">#</span><span class="org-comment">00000000;</span>
// foreground: <span class="org-comment-delimiter">#</span><span class="org-comment">CFD8DCFF;</span>
// selected: <span class="org-comment-delimiter">#</span><span class="org-comment">00BCD4FF;</span>
// selected-foreground: <span class="org-comment-delimiter">#</span><span class="org-comment">FFFFFFFF;</span>
//// common - active and urgent
active-background: <span class="org-comment-delimiter">#</span><span class="org-comment">3A464BFF;</span>
urgent-background: <span class="org-comment-delimiter">#</span><span class="org-comment">800000FF;</span>
urgent-foreground: @foreground;
selected-urgent-background: @urgent-foreground;
selected-urgent-foreground: @urgent-background;
//// TEXT ////
font: <span class="org-string">"xos4 Terminus 18px"</span>;
// font: <span class="org-string">"Knack Nerd Font 16px"</span>;
text-color: @foreground;
//// PADDING ETC ////
margin: 0px;
border: 0px;
padding: 0px;
spacing: 0px;
elementpadding: 2px 0px;
elementmargin: 0px 2px;
listmargin: 0px 2px 0px 0px;
//// SIZE ////
windowwidth: 40ch;
buttonwidth: 18ch;
lines: <span class="org-highlight-numbers-number">12</span>;
fixed-height: false;
//// POSITION ////
location: northwest;
anchor: northwest;
x-offset: 0px;
y-offset: 24px;
//// LAYOUT ////
scrollbar: true;
//// uncomment to get submenu-like style
menustyle: [ sb-mainbox ];
buttonpadding: 2px 1ch;
button-bg: @background;
dynamic: true;
//// uncomment to get tabs-like style
// menustyle: [ tb-mainbox ];
// buttonpadding: 14px 1ch;
// dynamic: false;
}
//////////////////////////////////////////
<span class="org-type">window</span> {
width: @windowwidth;
children: @menustyle;
}
//submenu-style
<span class="org-type">sb-mainbox</span> {
orientation: horizontal;
children: [ sidebar, vertibox ];
}
//tabs-style
<span class="org-type">tb-mainbox</span> {
orientation: vertical;
children: [ inputbar, horibox ];
background-color: @background;
}
//desktop-submenu
<span class="org-type">dt-mainbox</span> {
orientation: vertical;
children: [ boxdummy, sb-mainbox ];
}
<span class="org-type">horibox</span> {
orientation: horizontal;
children: [ listview, sidebar ];
}
<span class="org-type">sidebar</span> {
orientation: vertical;
}
<span class="org-type">button</span> {
horizontal-align: <span class="org-highlight-numbers-number">0</span>;
padding: @buttonpadding;
width: @buttonwidth;
background-color: @button-bg;
expand: false;
}
<span class="org-type">vertibox</span> {
orientation: vertical;
children: [ inputbar, listview ];
background-color: @background;
}
<span class="org-type">prompt</span> {
enabled: false;
}
<span class="org-type">listview</span> {
margin: @listmargin;
}
<span class="org-type">scrollbar</span> {
handle-width: 0.5ch;
handle-color: @selected;
}
<span class="org-type">boxdummy</span> {
enabled: false;
orientation: vertical;
expand: false;
children: [ textboxdummy ];
}
<span class="org-type">textboxdummy</span> {
str: <span class="org-string">" "</span>;
}
<span class="org-type">element, inputbar, textboxdummy</span> {
padding: @elementpadding;
margin: @elementmargin;
width: @elementwidth;
}
element.normal.active,
<span class="org-type">element.alternate.active</span> {
background-color: @active-background;
text-color: @selected-foreground;
}
element.selected,
<span class="org-type">button.selected</span> {
background-color: @selected;
text-color: @selected-foreground;
}
element.normal.urgent,
<span class="org-type">element.alternate.urgent</span> {
background-color: @urgent-background;
text-color: @urgent-foreground;
}
<span class="org-type">element.selected.urgent</span> {
background-color: @selected-urgent-background;
text-color: @selected-urgent-foreground;
}
</pre>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 21:59</p>
</div>
</body>
</html>

829
docs/scripts.html Normal file
View File

@ -0,0 +1,829 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 22:00 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Scripts</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="../css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="../css/readtheorg.css"/>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="../js/readtheorg.js"></script>
<script type="text/javascript">
/*
@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[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</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">Scripts</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#orgfbe1cfb">Wallpapers</a></li>
<li><a href="#orgf13ea83"><span class="todo TODO">TODO</span> LockScreen</a></li>
<li><a href="#org8650271">Delete first page of PDF</a></li>
<li><a href="#org872b600">Lock / Exit / Suspend / &#x2026;</a></li>
<li><a href="#orgb22aafc"><span class="todo TODO">TODO</span> Copy Figures</a></li>
<li><a href="#org94552bb">NAS</a>
<ul>
<li><a href="#orgf17f358">Mount</a></li>
</ul>
</li>
<li><a href="#org9ec63f3">Buku Git Push</a></li>
<li><a href="#orge80ca70">Icons Unicode</a></li>
<li><a href="#org057a09a">Make GIF</a></li>
<li><a href="#org9c287ad">Org-Capture</a></li>
<li><a href="#orgf8811c6">Download-Audio</a></li>
<li><a href="#org4bf6924">Download-Video</a></li>
<li><a href="#orgfe8be19">Org-Protocol-Capture-HTML</a></li>
<li><a href="#orgc11443d">Pdf Shrink</a></li>
</ul>
</div>
</div>
<div id="outline-container-orgfbe1cfb" class="outline-2">
<h2 id="orgfbe1cfb">Wallpapers</h2>
<div class="outline-text-2" id="text-orgfbe1cfb">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">while</span> true; <span class="org-keyword">do</span>
nitrogen --set-zoom-fill --random <span class="org-string">".wallpapers"</span>
<span class="org-type">sleep</span> 10m
<span class="org-keyword">done</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgf13ea83" class="outline-2">
<h2 id="orgf13ea83"><span class="todo TODO">TODO</span> LockScreen</h2>
<div class="outline-text-2" id="text-orgf13ea83">
<ul class="org-ul">
<li class="off"><code>[&#xa0;]</code> Does not work well with multiple screen</li>
</ul>
<p>
First, turn off dunst
</p>
<div class="org-src-container">
<pre class="src src-bash">killall -SIGUSR1 dunst &amp;&amp; <span class="org-type">echo</span> <span class="org-string">"off"</span> &gt; /tmp/dunststatus;
</pre>
</div>
<p>
Turn off the music if it is playing.
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">MPC_STATE</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">mpc</span> | sed -n <span class="org-string">'2p'</span> | cut -d <span class="org-string">"["</span> -f2 | cut -d <span class="org-string">"]"</span> -f1<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-variable-name">MPC_STATE</span> == <span class="org-string">"playing"</span> <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
mpc pause
<span class="org-keyword">fi</span>
</pre>
</div>
<p>
Then take a screenshot and process it.
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">temp_file</span>=<span class="org-string">"/tmp/screen.png"</span>
<span class="org-type">rm</span> -f $<span class="org-variable-name">temp_file</span>
maim $<span class="org-variable-name">temp_file</span>
convert $<span class="org-variable-name">temp_file</span> -scale 10% -scale 1000% $<span class="org-variable-name">temp_file</span>
</pre>
</div>
<p>
Finally, lock the screen using <code>i3lock</code>.
</p>
<div class="org-src-container">
<pre class="src src-bash">i3lock -e -n -i $<span class="org-variable-name">temp_file</span> &amp;&amp; killall -SIGUSR2 dunst &amp;&amp; <span class="org-type">echo</span> <span class="org-string">"on"</span> &gt; /tmp/dunststatus
</pre>
</div>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-function-name">revert</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
xset dpms <span class="org-highlight-numbers-number">0</span> <span class="org-highlight-numbers-number">0</span> <span class="org-highlight-numbers-number">0</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-keyword">trap</span> revert HUP INT TERM
<span class="org-comment-delimiter"># </span><span class="org-comment">turn off screen after 5 seconds</span>
xset +dpms dpms <span class="org-highlight-numbers-number">5</span> <span class="org-highlight-numbers-number">5</span> <span class="org-highlight-numbers-number">5</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Parameters</span>
<span class="org-variable-name">temp_file</span>=<span class="org-string">"/tmp/screen.png"</span>
<span class="org-variable-name">icon</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">HOME</span></span><span class="org-string">/Pictures/Evil_Rick_Sprite.png"</span>
<span class="org-variable-name">width</span>=<span class="org-highlight-numbers-number">1920</span>
<span class="org-variable-name">height</span>=<span class="org-highlight-numbers-number">1080</span>
<span class="org-variable-name">blur_factor</span>=<span class="org-highlight-numbers-number">6</span>
<span class="org-variable-name">lock_blur_factor</span>=<span class="org-highlight-numbers-number">0</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Take the screen shot, blur the image and add the icon</span>
ffmpeg -f x11grab -video_size <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">x</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{height}</span></span><span class="org-string">"</span> -y -i $<span class="org-variable-name">DISPLAY</span> -i $<span class="org-variable-name">icon</span> -filter_complex <span class="org-string">"boxblur=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">blur_factor</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">blur_factor</span></span><span class="org-string">,overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2,boxblur=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">lock_blur_factor</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">lock_blur_factor</span></span><span class="org-string">"</span> -vframes <span class="org-highlight-numbers-number">1</span> $<span class="org-variable-name">temp_file</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Alternative</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">maim -d 1 $temp_file</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">convert -blur 0x8 $temp_file $temp_file</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">convert -composite $temp_file $icon -gravity South -geometry -20x1200 $temp_file</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Lock the screen with the image</span>
i3lock --no-unlock-indicator --ignore-empty-password --show-failed-attempts --nofork --image=$<span class="org-variable-name">temp_file</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Remove the screenshot</span>
<span class="org-type">rm</span> $<span class="org-variable-name">temp_file</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Don't turn off screen when back from lock</span>
revert
</pre>
</div>
</div>
</div>
<div id="outline-container-org8650271" class="outline-2">
<h2 id="org8650271">Delete first page of PDF</h2>
<div class="outline-text-2" id="text-org8650271">
<p>
The requirement is to have <code>pdftk</code> or <code>stapler</code> installed.
</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> &amp;&amp; $<span class="org-highlight-numbers-number">1</span> == *.pdf <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Argument if a file</span>
<span class="org-keyword">if </span><span class="org-builtin">type</span> stapler &gt; /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">1</span></span><span class="org-string">"</span> <span class="org-highlight-numbers-number">1</span> /tmp/pdftk_out.pdf &amp;&amp; <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">1</span></span><span class="org-string">"</span>
<span class="org-keyword">elif </span><span class="org-builtin">type</span> pdftk &gt; /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">1</span></span><span class="org-string">"</span> <span class="org-type">cat</span> 2-end output /tmp/pdftk_out.pdf &amp;&amp; <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">1</span></span><span class="org-string">"</span>
<span class="org-keyword">else</span>
<span class="org-type">echo</span> <span class="org-string">"Neither pdftk nor stapler are installed"</span>
<span class="org-keyword">fi</span>
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org872b600" class="outline-2">
<h2 id="org872b600">Lock / Exit / Suspend / &#x2026;</h2>
<div class="outline-text-2" id="text-org872b600">
<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">"Lock\nExit\nLogout\nSuspend\nHibernate\nReboot\nShutdown"</span> | rofi -i -dmenu<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-string">"Lock"</span>)
i3exit lock ;;
<span class="org-string">"Exit"</span>)
i3exit switch_user ;;
<span class="org-string">"Logout"</span>)
i3exit logout ;;
<span class="org-string">"Suspend"</span>)
i3exit suspend ;;
<span class="org-string">"Hibernate"</span>)
i3exit hibernate ;;
<span class="org-string">"Reboot"</span>)
i3exit reboot ;;
<span class="org-string">"Shutdown"</span>)
i3exit shutdown ;;
<span class="org-keyword">esac</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgb22aafc" class="outline-2">
<h2 id="orgb22aafc"><span class="todo TODO">TODO</span> Copy Figures</h2>
<div class="outline-text-2" id="text-orgb22aafc">
<p>
Things to do:
</p>
<ul class="org-ul">
<li class="off"><code>[&#xa0;]</code> Display all the figures at once and ask for confirmation to copy them all</li>
<li class="off"><code>[&#xa0;]</code> Display the not found figures</li>
</ul>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">latexpath</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">HOME</span></span><span class="org-string">/Cloud/thesis/latex/ressources/Figures"</span>;
<span class="org-variable-name">figures</span>=<span class="org-sh-quoted-exec">`awk 'match($0, /(fig.*\.(png|svg|pdf))/, a) {print a[1];}' $1 \</span>
<span class="org-sh-quoted-exec"> | awk '{ print gensub(/\s*\]\]\s*\|\s*\[\[\s*\.?\/?/, "\n", "g") }'`</span>;
<span class="org-keyword">for</span> figure<span class="org-keyword"> in</span> $<span class="org-variable-name">figures</span>
<span class="org-keyword">do</span>
<span class="org-variable-name">figurename</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"> $figure | awk 'match($0, /(fig.*\/)(.*\.(png|svg|pdf))/, a) {print a[2];}'`</span>;
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -f $<span class="org-variable-name">latexpath</span>/$<span class="org-variable-name">figurename</span> <span class="org-rainbow-delimiters-depth-1">]</span>
<span class="org-keyword">then</span>
<span class="org-variable-name">figurepath</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"> $figure | awk 'match($0, /(fig.*)\/(.*\.(png|svg|pdf))/, a) {print a[1];}'`</span>;
<span class="org-comment-delimiter"># </span><span class="org-type"><span class="org-comment">echo</span></span><span class="org-comment"> $latexpath/$figurename</span>
<span class="org-comment-delimiter"># </span><span class="org-type"><span class="org-comment">echo</span></span><span class="org-comment"> $figurepath/$figurename</span>
<span class="org-type">cp</span> $<span class="org-variable-name">latexpath</span>/$<span class="org-variable-name">figurename</span> $<span class="org-variable-name">figurepath</span>/$<span class="org-variable-name">figurename</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">read -r -p "Are You Sure? [Y/n] " input</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">case $input in</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">[yY][eE][sS]|[yY])</span>
<span class="org-comment-delimiter"># </span><span class="org-type"><span class="org-comment">cp</span></span><span class="org-comment"> $latexpath/$figurename $figurepath/$figurename</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">;;</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">[nN][oO]|[nN])</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">exit 1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">;;</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">*)</span>
<span class="org-comment-delimiter"># </span><span class="org-type"><span class="org-comment">echo</span></span><span class="org-comment"> "Invalid input..."</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">exit 1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">;;</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">esac</span>
<span class="org-keyword">fi</span>
<span class="org-keyword">done</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org94552bb" class="outline-2">
<h2 id="org94552bb">NAS</h2>
<div class="outline-text-2" id="text-org94552bb">
</div>
<div id="outline-container-orgf17f358" class="outline-3">
<h3 id="orgf17f358">Mount</h3>
<div class="outline-text-3" id="text-orgf17f358">
<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>
<span class="org-keyword">if</span> <span class="org-type">sudo</span> -A mount 192.168.1.2:/volume1/Downloads/ /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>
<span class="org-keyword">else</span>
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> <span class="org-string">'NAS'</span> <span class="org-string">'Error while mounted'</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">if</span> <span class="org-type">sudo</span> -A 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>
<span class="org-keyword">else</span>
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> <span class="org-string">'NAS'</span> <span class="org-string">'Error while unmounted'</span>
<span class="org-keyword">fi</span>
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org9ec63f3" class="outline-2">
<h2 id="org9ec63f3">Buku Git Push</h2>
<div class="outline-text-2" id="text-org9ec63f3">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-type">cd</span> ~/.local/share/buku/
<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-negation-char">!</span> -z $<span class="org-rainbow-delimiters-depth-3">(</span><span class="org-sh-quoted-exec">git</span> status -s bookmarks.db<span class="org-rainbow-delimiters-depth-3">)</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-type">git</span> add bookmarks.db
<span class="org-type">git</span> commit -m <span class="org-string">"Changed bookmarks - </span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">date</span><span class="org-string"><span class="org-sh-quoted-exec"> +%F)</span></span><span class="org-string">"</span>
<span class="org-type">git</span> push
dunstify --replace=<span class="org-highlight-numbers-number">79248</span> <span class="org-string">"Buku Git"</span> <span class="org-string">"Updated"</span>
<span class="org-keyword">exit</span>
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orge80ca70" class="outline-2">
<h2 id="orge80ca70">Icons Unicode</h2>
<div class="outline-text-2" id="text-orge80ca70">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">command</span> -v xclip &gt;/dev/null <span class="org-highlight-numbers-number">2</span>&gt;&amp;<span class="org-highlight-numbers-number">1</span> || <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-type">echo</span> &gt;&amp;<span class="org-highlight-numbers-number">2</span> <span class="org-string">"I require xclip but it's not installed. Aborting."</span>; <span class="org-keyword">exit</span> <span class="org-highlight-numbers-number">1</span>; <span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-variable-name">chosen</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">grep</span> -v <span class="org-string">"#"</span> ~/.config/emoji | dmenu -i -l <span class="org-highlight-numbers-number">20</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">chosen</span></span><span class="org-string">"</span> != <span class="org-string">""</span> <span class="org-rainbow-delimiters-depth-1">]</span> || <span class="org-keyword">exit</span>
<span class="org-variable-name">c</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">chosen</span></span><span class="org-string">"</span> | sed <span class="org-string">"s/ .*//"</span><span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-type">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">c</span></span><span class="org-string">"</span> | tr -d <span class="org-string">'\n'</span> | xclip -selection clipboard
dunstify --replace=<span class="org-highlight-numbers-number">05896</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">c</span></span><span class="org-string">' copied to clipboard."</span> &amp;
</pre>
</div>
</div>
</div>
<div id="outline-container-org057a09a" class="outline-2">
<h2 id="org057a09a">Make GIF</h2>
<div class="outline-text-2" id="text-org057a09a">
<p>
<a href="http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html">http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html</a>
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">palette</span>=<span class="org-string">"/tmp/palette.png"</span>
<span class="org-variable-name">filters</span>=<span class="org-string">"fps=15,scale=320:-1:flags=lanczos"</span>
ffmpeg -v warning -i $<span class="org-highlight-numbers-number">1</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>
ffmpeg -v warning -i $<span class="org-highlight-numbers-number">1</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-highlight-numbers-number">2</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org9c287ad" class="outline-2">
<h2 id="org9c287ad">Org-Capture</h2>
<div class="outline-text-2" id="text-org9c287ad">
<div class="org-src-container">
<pre class="src src-bash">xclip -o -selection primary | xclip -o -selection clipboard -i
emacsclient -ne <span class="org-string">'(org-capture "" "Q")'</span> &amp;&amp; dunstify <span class="org-string">"Emacs"</span> <span class="org-string">"Text Successfully Captured"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgf8811c6" class="outline-2">
<h2 id="orgf8811c6">Download-Audio</h2>
<div class="outline-text-2" id="text-orgf8811c6">
<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">cd</span></span><span class="org-string"> ~/Downloads/ &amp;&amp; youtube-dl --add-metadata -xic -f bestaudio/best </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> &amp;&amp; tmux select-pane -U
<span class="org-keyword">else</span>
<span class="org-type">cd</span> ~/Downloads/;
setsid nohup youtube-dl --add-metadata -xic -f bestaudio/best $<span class="org-highlight-numbers-number">1</span> &amp;&gt; /dev/null &amp;
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org4bf6924" class="outline-2">
<h2 id="org4bf6924">Download-Video</h2>
<div class="outline-text-2" id="text-org4bf6924">
<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">cd</span></span><span class="org-string"> ~/Downloads/ &amp;&amp; youtube-dl --add-metadata -ic </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> &amp;&amp; tmux select-pane -U
<span class="org-keyword">else</span>
<span class="org-type">cd</span> ~/Downloads/;
setsid nohup youtube-dl --add-metadata -ic $<span class="org-highlight-numbers-number">1</span> &amp;&gt; /dev/null &amp;
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgfe8be19" class="outline-2">
<h2 id="orgfe8be19">Org-Protocol-Capture-HTML</h2>
<div class="outline-text-2" id="text-orgfe8be19">
<p>
Defaults
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">heading</span>=<span class="org-string">"link"</span>
<span class="org-variable-name">template</span>=<span class="org-string">"pu"</span>
<span class="org-variable-name">url</span>=<span class="org-string">"https://google.com/"</span>
</pre>
</div>
<p>
Functions
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">function</span> <span class="org-function-name">debug</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-2">[</span><span class="org-rainbow-delimiters-depth-3">[</span> -n $<span class="org-variable-name">debug</span> <span class="org-rainbow-delimiters-depth-3">]</span><span class="org-rainbow-delimiters-depth-2">]</span>
<span class="org-keyword">then</span>
<span class="org-keyword">function</span> <span class="org-function-name">debug</span> <span class="org-rainbow-delimiters-depth-2">{</span>
<span class="org-type">echo</span> <span class="org-string">"DEBUG: </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span> &gt;&amp;<span class="org-highlight-numbers-number">2</span>
<span class="org-rainbow-delimiters-depth-2">}</span>
debug <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span>
<span class="org-keyword">else</span>
<span class="org-keyword">function</span> <span class="org-function-name">debug</span> <span class="org-rainbow-delimiters-depth-2">{</span>
true
<span class="org-rainbow-delimiters-depth-2">}</span>
<span class="org-keyword">fi</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-keyword">function</span> <span class="org-function-name">die</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-type">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span> &gt;&amp;<span class="org-highlight-numbers-number">2</span>
<span class="org-keyword">exit</span> <span class="org-highlight-numbers-number">1</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-keyword">function</span> <span class="org-function-name">urlencode</span> <span class="org-rainbow-delimiters-depth-1">{</span>
python -c <span class="org-string">"</span>
<span class="org-string">from __future__ import print_function</span>
<span class="org-string">try:</span>
<span class="org-string"> from urllib import quote # Python 2</span>
<span class="org-string">except ImportError:</span>
<span class="org-string"> from urllib.parse import quote # Python 3</span>
<span class="org-string">import sys</span>
<span class="org-string">print(quote(sys.stdin.read()[:-1], safe=''))"</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
</pre>
</div>
<p>
Documentation
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">function</span> <span class="org-function-name">usage</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-type">cat</span> &lt;&lt;EOF
<span class="org-sh-heredoc">$0 [OPTIONS] [HTML]</span>
<span class="org-sh-heredoc">html | $0 [OPTIONS]</span>
<span class="org-sh-heredoc">Send HTML to Emacs through org-protocol, passing it through Pandoc to</span>
<span class="org-sh-heredoc">convert HTML to Org-mode. HTML may be passed as an argument or</span>
<span class="org-sh-heredoc">through STDIN. If only URL is given, it will be downloaded and its</span>
<span class="org-sh-heredoc">contents used.</span>
<span class="org-sh-heredoc">Options:</span>
<span class="org-sh-heredoc"> -h, --heading HEADING Heading</span>
<span class="org-sh-heredoc"> -t, --template TEMPLATE org-capture template key (default: pu)</span>
<span class="org-sh-heredoc"> -u, --url URL URL</span>
<span class="org-sh-heredoc"> --debug Print debug info</span>
<span class="org-sh-heredoc"> --help I need somebody!</span>
<span class="org-sh-heredoc">EOF</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
</pre>
</div>
<p>
Arguments
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">args</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">getopt</span> -n <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">0</span></span><span class="org-string">"</span> -o dh:rt:u: -l debug,help,heading:,template:,url: -- <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-1">)</span> <span class="org-sh-escaped-newline">\</span>
|| die <span class="org-string">"Unable to parse args. Is getopt installed?"</span>
<span class="org-builtin">eval</span> set -- <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">args</span></span><span class="org-string">"</span>
<span class="org-keyword">while</span> true
<span class="org-keyword">do</span>
<span class="org-keyword">case</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
-d|--debug)
<span class="org-variable-name">debug</span>=true
debug <span class="org-string">"Debugging on"</span>
;;
--help)
usage
<span class="org-keyword">exit</span>
;;
-h|--heading)
<span class="org-builtin">shift</span>
<span class="org-variable-name">heading</span>=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span>
;;
-t|--template)
<span class="org-builtin">shift</span>
<span class="org-variable-name">template</span>=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span>
;;
-u|--url)
<span class="org-builtin">shift</span>
<span class="org-variable-name">url</span>=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span>
;;
--)
<span class="org-comment-delimiter"># </span><span class="org-comment">Remaining args</span>
<span class="org-builtin">shift</span>
<span class="org-variable-name">rest</span>=<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-keyword">break</span>
;;
<span class="org-keyword">esac</span>
<span class="org-builtin">shift</span>
<span class="org-keyword">done</span>
debug <span class="org-string">"ARGS: </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">args</span></span><span class="org-string">"</span>
debug <span class="org-string">"Remaining args: </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{rest[@]}</span></span><span class="org-string">"</span>
</pre>
</div>
<p>
Get HTML
</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> -n $<span class="org-variable-name">@</span> <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>
<span class="org-keyword">then</span>
debug <span class="org-string">"Text from args"</span>
<span class="org-variable-name">body</span>=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span>
<span class="org-keyword">fi</span>
</pre>
</div>
<p>
URL-encode
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">heading</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">urlencode</span> &lt;&lt;&lt;<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">heading</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-1">)</span> || die <span class="org-string">"Unable to urlencode heading."</span>
<span class="org-variable-name">url</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">urlencode</span> &lt;&lt;&lt;<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">url</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-1">)</span> || die <span class="org-string">"Unable to urlencode URL."</span>
<span class="org-variable-name">body</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">urlencode</span> &lt;&lt;&lt;<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">body</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-1">)</span> || die <span class="org-string">"Unable to urlencode text."</span>
</pre>
</div>
<p>
Send to Emacs
</p>
<div class="org-src-container">
<pre class="src src-bash">emacsclient <span class="org-string">"org-protocol://capture?template=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">template</span></span><span class="org-string">&amp;url=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">url</span></span><span class="org-string">&amp;title=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">heading</span></span><span class="org-string">&amp;body=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">body</span></span><span class="org-string">"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgc11443d" class="outline-2">
<h2 id="orgc11443d">Pdf Shrink</h2>
<div class="outline-text-2" id="text-orgc11443d">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-function-name">shrink</span> <span class="org-rainbow-delimiters-depth-1">()</span>
<span class="org-rainbow-delimiters-depth-1">{</span>
gs <span class="org-sh-escaped-newline">\</span>
-q -dNOPAUSE -dBATCH -dSAFER <span class="org-sh-escaped-newline">\</span>
-sDEVICE=pdfwrite <span class="org-sh-escaped-newline">\</span>
-dCompatibilityLevel=<span class="org-highlight-numbers-number">1.3</span> <span class="org-sh-escaped-newline">\</span>
-dPDFSETTINGS=/screen <span class="org-sh-escaped-newline">\</span>
-dEmbedAllFonts=true <span class="org-sh-escaped-newline">\</span>
-dSubsetFonts=true <span class="org-sh-escaped-newline">\</span>
-dAutoRotatePages=/None <span class="org-sh-escaped-newline">\</span>
-dColorImageDownsampleType=/Bicubic <span class="org-sh-escaped-newline">\</span>
-dColorImageResolution=$<span class="org-highlight-numbers-number">3</span> <span class="org-sh-escaped-newline">\</span>
-dGrayImageDownsampleType=/Bicubic <span class="org-sh-escaped-newline">\</span>
-dGrayImageResolution=$<span class="org-highlight-numbers-number">3</span> <span class="org-sh-escaped-newline">\</span>
-dMonoImageDownsampleType=/Subsample <span class="org-sh-escaped-newline">\</span>
-dMonoImageResolution=$<span class="org-highlight-numbers-number">3</span> <span class="org-sh-escaped-newline">\</span>
-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">2</span></span><span class="org-string">"</span> <span class="org-sh-escaped-newline">\</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-function-name">check_smaller</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">If $1 and $2 are regular files, we can compare file sizes to</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">see if we succeeded in shrinking. If not, we copy $1 over $2:</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-2">[</span> <span class="org-negation-char">!</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> -o <span class="org-negation-char">!</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">2</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">return</span> <span class="org-highlight-numbers-number">0</span>;
<span class="org-keyword">fi</span>
<span class="org-variable-name">ISIZE</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-sh-quoted-exec">wc</span><span class="org-string"><span class="org-sh-quoted-exec"> -c "</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">")</span></span><span class="org-string"> | cut -f1 -d\ )"</span>
<span class="org-variable-name">OSIZE</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-sh-quoted-exec">wc</span><span class="org-string"><span class="org-sh-quoted-exec"> -c "</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">2</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">")</span></span><span class="org-string"> | cut -f1 -d\ )"</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">ISIZE</span></span><span class="org-string">"</span> -lt <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">OSIZE</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
<span class="org-type">echo</span> <span class="org-string">"Input smaller than output, doing straight copy"</span> &gt;&amp;<span class="org-highlight-numbers-number">2</span>
<span class="org-type">cp</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">2</span></span><span class="org-string">"</span>
<span class="org-keyword">fi</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-function-name">usage</span> <span class="org-rainbow-delimiters-depth-1">()</span>
<span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-type">echo</span> <span class="org-string">"Reduces PDF filesize by lossy recompressing with Ghostscript."</span>
<span class="org-type">echo</span> <span class="org-string">"Not guaranteed to succeed, but usually works."</span>
<span class="org-type">echo</span> <span class="org-string">" Usage: </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"> infile [outfile] [resolution_in_dpi]"</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-variable-name">IFILE</span>=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Need an input file:</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">IFILE</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
usage <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">0</span></span><span class="org-string">"</span>
<span class="org-keyword">exit</span> <span class="org-highlight-numbers-number">1</span>
<span class="org-keyword">fi</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Output filename defaults to "-" (stdout) unless given:</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> <span class="org-negation-char">!</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">2</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">OFILE</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">2</span></span><span class="org-string">"</span>
<span class="org-keyword">else</span>
<span class="org-variable-name">OFILE</span>=<span class="org-string">"-"</span>
<span class="org-keyword">fi</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Output resolution defaults to 72 unless given:</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> <span class="org-negation-char">!</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">3</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">res</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">3</span></span><span class="org-string">"</span>
<span class="org-keyword">else</span>
<span class="org-variable-name">res</span>=<span class="org-string">"90"</span>
<span class="org-keyword">fi</span>
shrink <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">IFILE</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">OFILE</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">res</span></span><span class="org-string">"</span> || <span class="org-keyword">exit</span> $<span class="org-variable-name">?</span>
check_smaller <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">IFILE</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">OFILE</span></span><span class="org-string">"</span>
</pre>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 22:00</p>
</div>
</body>
</html>

3992
docs/spacemacs.html Normal file

File diff suppressed because it is too large Load Diff

848
docs/sxhkd.html Normal file
View File

@ -0,0 +1,848 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 22:00 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Simple X Hotkey Daemon</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="../css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="../css/readtheorg.css"/>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="../js/readtheorg.js"></script>
<script type="text/javascript">
/*
@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[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</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">Simple X Hotkey Daemon</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org2fb1fb3">Basic</a></li>
<li><a href="#orgbf890ea">Start Applications</a></li>
<li><a href="#orga722b3c">Multimedia keys</a>
<ul>
<li><a href="#orgd2c2b8e">Sound</a></li>
<li><a href="#orgfbf581a">Backlight</a></li>
<li><a href="#org52b748d">Change Tracks</a></li>
<li><a href="#org4be15b6">Print Screen</a></li>
<li><a href="#orga6c4085">Other</a></li>
</ul>
</li>
<li><a href="#org09132ec">Set shut down, restart and locking features</a></li>
<li><a href="#org3ba2ae2">Command Mode</a></li>
<li><a href="#org592413b">Change Keyboard Layout</a></li>
<li><a href="#org9d0a9b9">BSPWM related</a>
<ul>
<li><a href="#orgf54b891">BSPWM hotkeys</a></li>
<li><a href="#org5ed379e">Monocle Layout</a></li>
<li><a href="#org612a41e">Set the window State</a></li>
<li><a href="#org2438eb6">Sticky Window</a></li>
<li><a href="#org33a7d86">Focus and Swap</a></li>
<li><a href="#org099a275">Preselect</a></li>
<li><a href="#org222ca07">Resize</a></li>
</ul>
</li>
<li><a href="#org177f7f6">I3 related</a>
<ul>
<li><a href="#orgd880846">BSPWM hotkeys</a></li>
<li><a href="#orgdfb3f31">Monocle Layout</a></li>
<li><a href="#orgbe948ac">Set the window State</a></li>
<li><a href="#org94fb49d">Sticky Window</a></li>
<li><a href="#orgd24232d">focus/swap</a></li>
<li><a href="#orgfeeeaac">Preselect</a></li>
<li><a href="#org92b19e5">Resize</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div id="outline-container-org2fb1fb3" class="outline-2">
<h2 id="org2fb1fb3">Basic</h2>
<div class="outline-text-2" id="text-org2fb1fb3">
<div class="org-src-container">
<pre class="src src-conf">super + ctrl + x
xkill
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">make sxhkd reload its configuration files:</span>
super + Escape
pkill -USR1 -x sxhkd
<span class="org-comment-delimiter"># </span><span class="org-comment">Update Polybar</span>
super + r
$HOME/.config/polybar/scripts/launch.sh
</pre>
</div>
</div>
</div>
<div id="outline-container-orgbf890ea" class="outline-2">
<h2 id="orgbf890ea">Start Applications</h2>
<div class="outline-text-2" id="text-orgbf890ea">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Start program launcher</span>
super + d
rofi -show run
<span class="org-comment-delimiter"># </span><span class="org-comment">Launch categorized menu</span>
super + shift + d
rofi -show drun
<span class="org-comment-delimiter"># </span><span class="org-comment">Start Sound Manager</span>
super + shift + s
pavucontrol
<span class="org-comment-delimiter"># </span><span class="org-comment">Start Bluetooth Manager</span>
super + shift + b
blueman-manager
<span class="org-comment-delimiter"># </span><span class="org-comment">Windows Switch</span>
super + shift + w
rofi -show window
<span class="org-comment-delimiter"># </span><span class="org-comment">Bookmarks</span>
super + shift + f
$HOME/bin/bukurun
<span class="org-comment-delimiter"># </span><span class="org-comment">Passwords</span>
super + shift + p
rofi-pass
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Start Terminal</span>
super + Return
termite
<span class="org-comment-delimiter"># </span><span class="org-comment">Tmux Terminal</span>
super + shift + Return
termite -e <span class="org-string">'tmux'</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Start Command line Calendar</span>
super + shift + c
termite -e <span class="org-string">"khal interactive"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">File Manager</span>
super + o
urxvt -e <span class="org-string">"ranger"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Browser</span>
super + i
qutebrowser
</pre>
</div>
</div>
</div>
<div id="outline-container-orga722b3c" class="outline-2">
<h2 id="orga722b3c">Multimedia keys</h2>
<div class="outline-text-2" id="text-orga722b3c">
</div>
<div id="outline-container-orgd2c2b8e" class="outline-3">
<h3 id="orgd2c2b8e">Sound</h3>
<div class="outline-text-3" id="text-orgd2c2b8e">
<div class="org-src-container">
<pre class="src src-conf">XF86AudioMute
amixer -D pulse sset Master toggle
XF86AudioRaiseVolume
amixer -D pulse sset Master 2%+
XF86AudioLowerVolume
amixer -D pulse sset Master 2%-
</pre>
</div>
</div>
</div>
<div id="outline-container-orgfbf581a" class="outline-3">
<h3 id="orgfbf581a">Backlight</h3>
<div class="outline-text-3" id="text-orgfbf581a">
<div class="org-src-container">
<pre class="src src-conf">XF86MonBrightnessUp
xbacklight -inc <span class="org-highlight-numbers-number">10</span>
XF86MonBrightnessDown
xbacklight -dec <span class="org-highlight-numbers-number">10</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org52b748d" class="outline-3">
<h3 id="org52b748d">Change Tracks</h3>
<div class="outline-text-3" id="text-org52b748d">
<div class="org-src-container">
<pre class="src src-conf">super + period
mpc toggle
super + {greater,less}
mpc {next,prev}
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf">XF86AudioPlay
mpc toggle
XF86AudioNext
mpc next
XF86AudioPrev
mpc prev
</pre>
</div>
</div>
</div>
<div id="outline-container-org4be15b6" class="outline-3">
<h3 id="org4be15b6">Print Screen</h3>
<div class="outline-text-3" id="text-org4be15b6">
<div class="org-src-container">
<pre class="src src-conf">Print
~/bin/screenshot
XF86Display
rofi -show window
</pre>
</div>
</div>
</div>
<div id="outline-container-orga6c4085" class="outline-3">
<h3 id="orga6c4085">Other</h3>
<div class="outline-text-3" id="text-orga6c4085">
<div class="org-src-container">
<pre class="src src-conf">XF86Search
rofi -show run
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org09132ec" class="outline-2">
<h2 id="org09132ec">Set shut down, restart and locking features</h2>
<div class="outline-text-2" id="text-org09132ec">
<div class="org-src-container">
<pre class="src src-conf">XF86PowerOff
$HOME/scripts/quit.sh
super + <span class="org-highlight-numbers-number">0</span>
$HOME/scripts/quit.sh
</pre>
</div>
</div>
</div>
<div id="outline-container-org3ba2ae2" class="outline-2">
<h2 id="org3ba2ae2">Command Mode</h2>
<div class="outline-text-2" id="text-org3ba2ae2">
<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>
super + space ; c
termite -e <span class="org-string">"khal interactive"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">GUI Calendar (Google Calendar)</span>
super + space ; shift + c
qutebrowser https://calendar.google.com/
<span class="org-comment-delimiter"># </span><span class="org-comment">Ranger</span>
super + space ; r
urxvt -e <span class="org-string">"ranger"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">pcmanfm: GUI file manager</span>
super + space ; shift + r
pcmanfm;
<span class="org-comment-delimiter"># </span><span class="org-comment">Mails with neomutt</span>
super + space ; m
termite -e <span class="org-string">"tmux -L neomutt attach"</span>
super + space ; shift + m
termite -e <span class="org-string">"neomutt -R"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Weechat</span>
super + space ; w
termite -e <span class="org-string">"tmux -L weechat attach"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">News with newsboat</span>
super + space ; n
termite -e <span class="org-string">"tmux -L newsboat attach"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Music with ncmpcpp</span>
super + space ; p
termite -e <span class="org-string">"tmux -L ncmpcpp attach"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Print Screen</span>
super + space ; shift + p
~/bin/screenshot
<span class="org-comment-delimiter"># </span><span class="org-comment">Browser with qutebrowser</span>
super + space ; i
qutebrowser;
<span class="org-comment-delimiter"># </span><span class="org-comment">Browser with firefox</span>
super + space ; shift + i
firefox;
<span class="org-comment-delimiter"># </span><span class="org-comment">Emacs Client</span>
super + space ; e
<span class="org-variable-name">emacsclient -create-frame --alternate-editor</span>=<span class="org-string">""</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Full Emacs - Usefull when installing packages</span>
super + space ; shift + e
emacs;
</pre>
</div>
</div>
</div>
<div id="outline-container-org592413b" class="outline-2">
<h2 id="org592413b">Change Keyboard Layout</h2>
<div class="outline-text-2" id="text-org592413b">
<div class="org-src-container">
<pre class="src src-conf">super + ctrl + d
setxkbmap -layout us -variant intl -option caps:escape
super + shift + d
setxkbmap -layout us -option caps:escape
</pre>
</div>
</div>
</div>
<div id="outline-container-org9d0a9b9" class="outline-2">
<h2 id="org9d0a9b9">BSPWM related</h2>
<div class="outline-text-2" id="text-org9d0a9b9">
</div>
<div id="outline-container-orgf54b891" class="outline-3">
<h3 id="orgf54b891">BSPWM hotkeys</h3>
<div class="outline-text-3" id="text-orgf54b891">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">quit/restart bspwm</span>
super + alt + {q,r}
bspc {quit,wm -r}
<span class="org-comment-delimiter"># </span><span class="org-comment">close and kill</span>
super + {_,shift + }q
bspc node -{c,k}
</pre>
</div>
</div>
</div>
<div id="outline-container-org5ed379e" class="outline-3">
<h3 id="org5ed379e">Monocle Layout</h3>
<div class="outline-text-3" id="text-org5ed379e">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">alternate between the tiled and monocle layout</span>
super + m
bspc desktop -l next
<span class="org-comment-delimiter"># </span><span class="org-comment">focus the next/previous node in the current desktop</span>
super + c
bspc node -f next.local
</pre>
</div>
</div>
</div>
<div id="outline-container-org612a41e" class="outline-3">
<h3 id="org612a41e">Set the window State</h3>
<div class="outline-text-3" id="text-org612a41e">
<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>
super + t
bspc node -t tiled
<span class="org-comment-delimiter"># </span><span class="org-comment">Toggle Fullscreen State</span>
super + f
if [ -z <span class="org-string">"$(bspc query -N -n focused.fullscreen)"</span> ]; then \
bspc node focused -t fullscreen; \
else \
bspc node focused -t tiled; \
fi
<span class="org-comment-delimiter"># </span><span class="org-comment">Toggle Floating State</span>
super + s
if [ -z <span class="org-string">"$(bspc query -N -n focused.floating)"</span> ]; then \
bspc node focused -t floating; \
else \
bspc node focused -t tiled; \
fi
</pre>
</div>
</div>
</div>
<div id="outline-container-org2438eb6" class="outline-3">
<h3 id="org2438eb6">Sticky Window</h3>
<div class="outline-text-3" id="text-org2438eb6">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">set the node flags</span>
super + ctrl + y
bspc node -g sticky
</pre>
</div>
</div>
</div>
<div id="outline-container-org33a7d86" class="outline-3">
<h3 id="org33a7d86">Focus and Swap</h3>
<div class="outline-text-3" id="text-org33a7d86">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Focus/swap the node in the given direction</span>
super + {_,shift + }{h,j,k,l}
bspc node -{f,s} {west,south,north,east}
<span class="org-comment-delimiter"># </span><span class="org-comment">focus the last Node</span>
super + Tab
bspc node -f last
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Focus the next/previous desktop in the current monitor</span>
super + {p,n}
bspc desktop -f {prev,next}.local
<span class="org-comment-delimiter"># </span><span class="org-comment">focus the last Desktop</span>
super + b
bspc desktop -f last
<span class="org-comment-delimiter"># </span><span class="org-comment">focus or send to the given desktop</span>
super + {_,ctrl + }{1-9}
bspc {desktop -f,node -d} <span class="org-string">'^{1-9}'</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Send and Focus to the given desktop</span>
super + shift + {1-9}
bspc node -d <span class="org-string">'^{1-9}'</span> --follow
</pre>
</div>
</div>
</div>
<div id="outline-container-org099a275" class="outline-3">
<h3 id="org099a275">Preselect</h3>
<div class="outline-text-3" id="text-org099a275">
<div class="org-src-container">
<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}
bspc node -p {west,south,north,east}
<span class="org-comment-delimiter"># </span><span class="org-comment">preselect the ratio</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">super + ctrl + {1-9}</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">bspc node -o 0.{1-9}</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">cancel the preselection for the focused node</span>
super + ctrl + space
bspc node -p cancel
</pre>
</div>
</div>
</div>
<div id="outline-container-org222ca07" class="outline-3">
<h3 id="org222ca07">Resize</h3>
<div class="outline-text-3" id="text-org222ca07">
<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>
super + alt + {h,j,k,l}
bspc node -z {left -20 <span class="org-highlight-numbers-number">0</span>,bottom <span class="org-highlight-numbers-number">0</span> <span class="org-highlight-numbers-number">20</span>,top <span class="org-highlight-numbers-number">0</span> -20,right <span class="org-highlight-numbers-number">20</span> <span class="org-highlight-numbers-number">0</span>}
<span class="org-comment-delimiter"># </span><span class="org-comment">contract a window by moving one of its side inward</span>
super + alt + shift + {h,j,k,l}
bspc node -z {right -20 <span class="org-highlight-numbers-number">0</span>,top <span class="org-highlight-numbers-number">0</span> <span class="org-highlight-numbers-number">20</span>,bottom <span class="org-highlight-numbers-number">0</span> -20,left <span class="org-highlight-numbers-number">20</span> <span class="org-highlight-numbers-number">0</span>}
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">move a floating window</span>
super + {Left,Down,Up,Right}
bspc node -v {-20 <span class="org-highlight-numbers-number">0</span>,<span class="org-highlight-numbers-number">0</span> <span class="org-highlight-numbers-number">20</span>,<span class="org-highlight-numbers-number">0</span> -20,<span class="org-highlight-numbers-number">20</span> <span class="org-highlight-numbers-number">0</span>}
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org177f7f6" class="outline-2">
<h2 id="org177f7f6">I3 related</h2>
<div class="outline-text-2" id="text-org177f7f6">
</div>
<div id="outline-container-orgd880846" class="outline-3">
<h3 id="orgd880846">BSPWM hotkeys</h3>
<div class="outline-text-3" id="text-orgd880846">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">quit/restart bspwm</span>
super + alt + {q,r}
i3-msg {quit,restart}
<span class="org-comment-delimiter"># </span><span class="org-comment">close and kill</span>
super + {_,shift + }q
i3-msg {kill,kill}
</pre>
</div>
</div>
</div>
<div id="outline-container-orgdfb3f31" class="outline-3">
<h3 id="orgdfb3f31">Monocle Layout</h3>
<div class="outline-text-3" id="text-orgdfb3f31">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">alternate between the tiled and monocle layout</span>
super + f
i3-msg layout toggle tabbed split
<span class="org-comment-delimiter"># </span><span class="org-comment">Change focus between tiling / floating windows</span>
super + c
i3-msg focus mode_toggle
</pre>
</div>
</div>
</div>
<div id="outline-container-orgbe948ac" class="outline-3">
<h3 id="orgbe948ac">Set the window State</h3>
<div class="outline-text-3" id="text-orgbe948ac">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">set the window state</span>
super + {t,s, shift + f}
i3-msg {fullscreen disable,floating toggle,fullscreen toggle}
</pre>
</div>
</div>
</div>
<div id="outline-container-org94fb49d" class="outline-3">
<h3 id="org94fb49d">Sticky Window</h3>
<div class="outline-text-3" id="text-org94fb49d">
<div class="org-src-container">
<pre class="src src-conf">super + ctrl + y
i3-msg sticky toggle
</pre>
</div>
</div>
</div>
<div id="outline-container-orgd24232d" class="outline-3">
<h3 id="orgd24232d">focus/swap</h3>
<div class="outline-text-3" id="text-orgd24232d">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Focus/swap the node in the given direction</span>
super + {_,shift + }{h,Left}
i3-msg {focus,move} left
super + {_,shift + }{j,Down}
i3-msg {focus,move} down
super + {_,shift + }{k,Up}
i3-msg {focus,move} up
super + {_,shift + }{l,Right}
i3-msg {focus,move} right
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Focus the next/previous desktop in the current monitor</span>
super + {p,n}
i3-msg workspace {prev,next}
<span class="org-comment-delimiter"># </span><span class="org-comment">focus the last Desktop</span>
super + b
i3-msg workspace back_and_forth
<span class="org-comment-delimiter"># </span><span class="org-comment">focus or send to the given desktop</span>
super + {1-9}
i3-msg workspace <span class="org-string">'{1-9}'</span>
super + ctrl + {1-9}
i3-msg move container to workspace <span class="org-string">'{1-9}'</span>
super + shift + {1-9}
<span class="org-variable-name">WP</span>={1-9} &amp;&amp; i3-msg move container to workspace $WP &amp;&amp; i3-msg workspace $WP
</pre>
</div>
</div>
</div>
<div id="outline-container-orgfeeeaac" class="outline-3">
<h3 id="orgfeeeaac">Preselect</h3>
<div class="outline-text-3" id="text-orgfeeeaac">
<p>
Preselect the direction
</p>
<div class="org-src-container">
<pre class="src src-conf">super + ctrl + {h,l,Left,Right}
i3-msg split h
super + ctrl + {j,k,Up,Down}
i3-msg split v
</pre>
</div>
</div>
</div>
<div id="outline-container-org92b19e5" class="outline-3">
<h3 id="org92b19e5">Resize</h3>
<div class="outline-text-3" id="text-org92b19e5">
<p>
Expand/Shrink a window
</p>
<div class="org-src-container">
<pre class="src src-conf">super + alt + h
i3-msg resize shrink width <span class="org-highlight-numbers-number">10</span> px or <span class="org-highlight-numbers-number">10</span> ppt
super + alt + j
i3-msg resize grow height <span class="org-highlight-numbers-number">10</span> px or <span class="org-highlight-numbers-number">10</span> ppt
super + alt + k
i3-msg resize shrink height <span class="org-highlight-numbers-number">10</span> px or <span class="org-highlight-numbers-number">10</span> ppt
super + alt + l
i3-msg resize grow width <span class="org-highlight-numbers-number">10</span> px or <span class="org-highlight-numbers-number">10</span> ppt
</pre>
</div>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 22:00</p>
</div>
</body>
</html>

852
docs/systemd.html Normal file
View File

@ -0,0 +1,852 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 21:59 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Systemd services and timers</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="../css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="../css/readtheorg.css"/>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="../js/readtheorg.js"></script>
<script type="text/javascript">
/*
@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[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</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">Systemd services and timers</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org5b65512">Pass Git</a>
<ul>
<li><a href="#orgcc15694">Service</a></li>
<li><a href="#org042d35a">Timer</a></li>
<li><a href="#orga5dc206">Script</a></li>
</ul>
</li>
<li><a href="#org79abe94">Buku Git</a>
<ul>
<li><a href="#orga162cf1">Service</a></li>
<li><a href="#orgac0b5af">Timer</a></li>
<li><a href="#org1c98cec">Script</a></li>
</ul>
</li>
<li><a href="#org1d68bb0">Check mail</a>
<ul>
<li><a href="#orga31fc2c">Service</a></li>
<li><a href="#org7ec92ef">Timer</a></li>
<li><a href="#org0b732aa">Script</a></li>
</ul>
</li>
<li><a href="#orgefb3320">Sync mail</a>
<ul>
<li><a href="#orgc566c6e">Service</a></li>
<li><a href="#org3394e8c">Timer</a></li>
</ul>
</li>
<li><a href="#org3c328f4">Emacs</a>
<ul>
<li><a href="#orge63a782">Service</a></li>
</ul>
</li>
<li><a href="#org2ff1601">Vdirsyncer</a>
<ul>
<li><a href="#org3274cef">Service</a></li>
<li><a href="#org1588dc6">Timer</a></li>
</ul>
</li>
<li><a href="#org5e3779e">Weechat</a>
<ul>
<li><a href="#org86ed229">Service</a></li>
</ul>
</li>
<li><a href="#org8215bcc">Neomutt</a>
<ul>
<li><a href="#orge1ed052">Service</a></li>
</ul>
</li>
<li><a href="#orge82b3ac">Powertop</a>
<ul>
<li><a href="#org64643c2">Service</a></li>
</ul>
</li>
<li><a href="#org8fa8dcf">NCMPCPP</a>
<ul>
<li><a href="#org4209bd4">Service</a></li>
</ul>
</li>
<li><a href="#orgf7f570c">Newsboat</a>
<ul>
<li><a href="#orga5c50f3">Service - tmux</a></li>
</ul>
</li>
<li><a href="#orgb34591d">SSH Agent</a></li>
<li><a href="#orgd4b9d58">Mopidy</a></li>
</ul>
</div>
</div>
<p>
<a href="https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-systemd-services-and-units">https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-systemd-services-and-units</a>
</p>
<div id="outline-container-org5b65512" class="outline-2">
<h2 id="org5b65512">Pass Git</h2>
<div class="outline-text-2" id="text-org5b65512">
</div>
<div id="outline-container-orgcc15694" class="outline-3">
<h3 id="orgcc15694">Service</h3>
<div class="outline-text-3" id="text-orgcc15694">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Unit</span>]
<span class="org-variable-name">Description</span>=Sync Passwords every day
<span class="org-variable-name">RefuseManualStart</span>=no
<span class="org-variable-name">RefuseManualStop</span>=yes
[<span class="org-type">Service</span>]
<span class="org-variable-name">Type</span>=oneshot
<span class="org-variable-name">ExecStart</span>=%h/scripts/pass_git_sync.sh
</pre>
</div>
</div>
</div>
<div id="outline-container-org042d35a" class="outline-3">
<h3 id="org042d35a">Timer</h3>
<div class="outline-text-3" id="text-org042d35a">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Unit</span>]
<span class="org-variable-name">Description</span>=Sync Passwords every day
<span class="org-variable-name">RefuseManualStart</span>=no
<span class="org-variable-name">RefuseManualStop</span>=no
<span class="org-variable-name">Wants</span>=network-online.target
<span class="org-variable-name">After</span>=network.target network-online.target dbus.socket
[<span class="org-type">Timer</span>]
<span class="org-variable-name">OnCalendar</span>=*-*-* <span class="org-highlight-numbers-number">17</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>=passgit.service
[<span class="org-type">Install</span>]
<span class="org-variable-name">WantedBy</span>=default.target
</pre>
</div>
</div>
</div>
<div id="outline-container-orga5dc206" class="outline-3">
<h3 id="orga5dc206">Script</h3>
<div class="outline-text-3" id="text-orga5dc206">
<div class="org-src-container">
<pre class="src src-bash">pass <span class="org-type">git</span> pull --rebase &amp;&amp; pass <span class="org-type">git</span> push
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org79abe94" class="outline-2">
<h2 id="org79abe94">Buku Git</h2>
<div class="outline-text-2" id="text-org79abe94">
</div>
<div id="outline-container-orga162cf1" class="outline-3">
<h3 id="orga162cf1">Service</h3>
<div class="outline-text-3" id="text-orga162cf1">
<div class="org-src-container">
<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">RefuseManualStart</span>=no
<span class="org-variable-name">RefuseManualStop</span>=yes
[<span class="org-type">Service</span>]
<span class="org-variable-name">Type</span>=oneshot
<span class="org-variable-name">ExecStart</span>=%h/scripts/buku_git_push.sh
</pre>
</div>
</div>
</div>
<div id="outline-container-orgac0b5af" class="outline-3">
<h3 id="orgac0b5af">Timer</h3>
<div class="outline-text-3" id="text-orgac0b5af">
<div class="org-src-container">
<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">RefuseManualStart</span>=no
<span class="org-variable-name">RefuseManualStop</span>=no
<span class="org-variable-name">Wants</span>=network-online.target
<span class="org-variable-name">After</span>=network.target network-online.target dbus.socket
[<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>=bukugit.service
[<span class="org-type">Install</span>]
<span class="org-variable-name">WantedBy</span>=default.target
</pre>
</div>
</div>
</div>
<div id="outline-container-org1c98cec" class="outline-3">
<h3 id="org1c98cec">Script</h3>
<div class="outline-text-3" id="text-org1c98cec">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-type">cd</span> ~/.local/share/buku/
<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-negation-char">!</span> -z $<span class="org-rainbow-delimiters-depth-3">(</span><span class="org-sh-quoted-exec">git</span> status -s bookmarks.db<span class="org-rainbow-delimiters-depth-3">)</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-type">git</span> add bookmarks.db
<span class="org-type">git</span> commit -m <span class="org-string">"Changed bookmarks - </span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">date</span><span class="org-string"><span class="org-sh-quoted-exec"> +%F)</span></span><span class="org-string">"</span>
<span class="org-type">git</span> push
<span class="org-keyword">exit</span>
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org1d68bb0" class="outline-2">
<h2 id="org1d68bb0">Check mail</h2>
<div class="outline-text-2" id="text-org1d68bb0">
</div>
<div id="outline-container-orga31fc2c" class="outline-3">
<h3 id="orga31fc2c">Service</h3>
<div class="outline-text-3" id="text-orga31fc2c">
<div class="org-src-container">
<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">RefuseManualStart</span>=no
<span class="org-variable-name">RefuseManualStop</span>=yes
[<span class="org-type">Service</span>]
<span class="org-variable-name">Type</span>=oneshot
<span class="org-variable-name">ExecStart</span>=%h/scripts/checkmail.sh -q -v
</pre>
</div>
</div>
</div>
<div id="outline-container-org7ec92ef" class="outline-3">
<h3 id="org7ec92ef">Timer</h3>
<div class="outline-text-3" id="text-org7ec92ef">
<div class="org-src-container">
<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">RefuseManualStart</span>=no
<span class="org-variable-name">RefuseManualStop</span>=no
<span class="org-variable-name">Wants</span>=network-online.target
<span class="org-variable-name">After</span>=network.target network-online.target dbus.socket
<span class="org-variable-name">Requires</span>=checkmail.service
[<span class="org-type">Timer</span>]
<span class="org-variable-name">Persistent</span>=false
<span class="org-variable-name">OnBootSec</span>=2min
<span class="org-variable-name">OnUnitActiveSec</span>=5min
<span class="org-variable-name">AccuracySec</span>=10s
<span class="org-variable-name">Unit</span>=checkmail.service
[<span class="org-type">Install</span>]
<span class="org-variable-name">WantedBy</span>=default.target
</pre>
</div>
</div>
</div>
<div id="outline-container-org0b732aa" class="outline-3">
<h3 id="org0b732aa">Script</h3>
<div class="outline-text-3" id="text-org0b732aa">
<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>
<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>
-a) <span class="org-variable-name">opt_all</span>=<span class="org-string">'--all'</span> ;; <span class="org-comment-delimiter"># </span><span class="org-comment">Check All inboxes</span>
-v) <span class="org-variable-name">opt_verbose</span>=<span class="org-string">'--verbose'</span> ;; <span class="org-comment-delimiter"># </span><span class="org-comment">Verbose</span>
-q) <span class="org-variable-name">opt_quiet</span>=<span class="org-string">'--quiet'</span> ;; <span class="org-comment-delimiter"># </span><span class="org-comment">Quiet</span>
*) <span class="org-type">echo</span> <span class="org-string">"Option </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"> not recognized"</span> ;; <span class="org-comment-delimiter"># </span><span class="org-comment">In case you typed a different option</span>
<span class="org-keyword">esac</span>
<span class="org-builtin">shift</span>
<span class="org-keyword">done</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Count number of mails</span>
<span class="org-variable-name">gmail_old</span>=<span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">ls</span><span class="org-string"><span class="org-sh-quoted-exec"> ~/.mail/gmail/Inbox/new | wc -l)</span></span><span class="org-string">"</span>
<span class="org-variable-name">esrf_old</span>=<span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">ls</span><span class="org-string"><span class="org-sh-quoted-exec"> ~/.mail/esrf/Inbox/new | wc -l)</span></span><span class="org-string">"</span>
<span class="org-variable-name">ulg_old</span>=<span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">ls</span><span class="org-string"><span class="org-sh-quoted-exec"> ~/.mail/ulg/Inbox/new | wc -l)</span></span><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">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Retreive mails</span>
mbsync $<span class="org-variable-name">opt_all</span> $<span class="org-variable-name">opt_verbose</span> gmail-Home esrf-Home ulg-Home
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Count number of mails</span>
<span class="org-variable-name">gmail_new</span>=<span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">ls</span><span class="org-string"><span class="org-sh-quoted-exec"> ~/.mail/gmail/Inbox/new | wc -l)</span></span><span class="org-string">"</span>
<span class="org-variable-name">esrf_new</span>=<span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">ls</span><span class="org-string"><span class="org-sh-quoted-exec"> ~/.mail/esrf/Inbox/new | wc -l)</span></span><span class="org-string">"</span>
<span class="org-variable-name">ulg_new</span>=<span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">ls</span><span class="org-string"><span class="org-sh-quoted-exec"> ~/.mail/ulg/Inbox/new | wc -l)</span></span><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">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Total Number of new mails since last checking</span>
<span class="org-variable-name">new</span>=<span class="org-string">"</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">gmail_new</span></span></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">esrf_new</span></span></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">ulg_new</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">)</span></span><span class="org-string">)"</span>
<span class="org-variable-name">old</span>=<span class="org-string">"</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">gmail_old</span></span></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">esrf_old</span></span></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">ulg_old</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">)</span></span><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">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Notification</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">new</span></span><span class="org-string">"</span> -gt <span class="org-highlight-numbers-number">0</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
dunstify --replace=<span class="org-highlight-numbers-number">98465</span> <span class="org-string">'New mail'</span> <span class="org-string">"&#63215; </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">esrf_new</span></span><span class="org-string"> &#63402; </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">gmail_new</span></span><span class="org-string"> &#63215; </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">ulg_new</span></span><span class="org-string">"</span>
<span class="org-keyword">fi</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Indexation and Tags</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">notmuch new</span>
mu index --maildir=~/.mail $<span class="org-variable-name">opt_verbose</span> $<span class="org-variable-name">opt_quiet</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Update on Emacs</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">if [ "$(($new-$old))" -gt 0 ]; then</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">emacsclient --eval '(mu4e-update-index)';</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">fi</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-orgefb3320" class="outline-2">
<h2 id="orgefb3320">Sync mail</h2>
<div class="outline-text-2" id="text-orgefb3320">
</div>
<div id="outline-container-orgc566c6e" class="outline-3">
<h3 id="orgc566c6e">Service</h3>
<div class="outline-text-3" id="text-orgc566c6e">
<div class="org-src-container">
<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">RefuseManualStart</span>=no
<span class="org-variable-name">RefuseManualStop</span>=yes
[<span class="org-type">Service</span>]
<span class="org-variable-name">Type</span>=oneshot
<span class="org-variable-name">ExecStart</span>=%h/scripts/checkmail.sh -a -q -v
</pre>
</div>
</div>
</div>
<div id="outline-container-org3394e8c" class="outline-3">
<h3 id="org3394e8c">Timer</h3>
<div class="outline-text-3" id="text-org3394e8c">
<div class="org-src-container">
<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">RefuseManualStart</span>=no
<span class="org-variable-name">RefuseManualStop</span>=no
<span class="org-variable-name">Wants</span>=network-online.target
<span class="org-variable-name">After</span>=network.target network-online.target dbus.socket
<span class="org-variable-name">Requires</span>=syncmail.service
[<span class="org-type">Timer</span>]
<span class="org-variable-name">Persistent</span>=false
<span class="org-variable-name">OnBootSec</span>=30min
<span class="org-variable-name">OnUnitActiveSec</span>=300min
<span class="org-variable-name">AccuracySec</span>=10s
<span class="org-variable-name">Unit</span>=syncmail.service
[<span class="org-type">Install</span>]
<span class="org-variable-name">WantedBy</span>=default.target
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org3c328f4" class="outline-2">
<h2 id="org3c328f4">Emacs</h2>
<div class="outline-text-2" id="text-org3c328f4">
</div>
<div id="outline-container-orge63a782" class="outline-3">
<h3 id="orge63a782">Service</h3>
<div class="outline-text-3" id="text-orge63a782">
<div class="org-src-container">
<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">Documentation</span>=info:emacs man:emacs(<span class="org-highlight-numbers-number">1</span>) https://gnu.org/software/emacs/
[<span class="org-type">Service</span>]
<span class="org-variable-name">Type</span>=forking
<span class="org-variable-name">ExecStart</span>=/usr/bin/emacs --daemon
<span class="org-variable-name">ExecStop</span>=/usr/bin/emacsclient --eval <span class="org-string">"(kill-emacs)"</span>
<span class="org-variable-name">Environment</span>=SSH_AUTH_SOCK=%t/keyring/ssh
<span class="org-variable-name">Restart</span>=on-failure
[<span class="org-type">Install</span>]
<span class="org-variable-name">WantedBy</span>=default.target
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org2ff1601" class="outline-2">
<h2 id="org2ff1601">Vdirsyncer</h2>
<div class="outline-text-2" id="text-org2ff1601">
</div>
<div id="outline-container-org3274cef" class="outline-3">
<h3 id="org3274cef">Service</h3>
<div class="outline-text-3" id="text-org3274cef">
<div class="org-src-container">
<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">Documentation</span>=https://vdirsyncer.readthedocs.org/
<span class="org-variable-name">Wants</span>=network-online.target
<span class="org-variable-name">After</span>=network.target network-online.target
[<span class="org-type">Service</span>]
<span class="org-variable-name">ExecStart</span>=/usr/bin/vdirsyncer sync
<span class="org-variable-name">Type</span>=oneshot
</pre>
</div>
</div>
</div>
<div id="outline-container-org1588dc6" class="outline-3">
<h3 id="org1588dc6">Timer</h3>
<div class="outline-text-3" id="text-org1588dc6">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Unit</span>]
<span class="org-variable-name">Description</span>=Synchronize vdirs
[<span class="org-type">Timer</span>]
<span class="org-variable-name">OnBootSec</span>=5m
<span class="org-variable-name">OnUnitActiveSec</span>=15m
<span class="org-variable-name">AccuracySec</span>=5m
[<span class="org-type">Install</span>]
<span class="org-variable-name">WantedBy</span>=timers.target
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org5e3779e" class="outline-2">
<h2 id="org5e3779e">Weechat</h2>
<div class="outline-text-2" id="text-org5e3779e">
</div>
<div id="outline-container-org86ed229" class="outline-3">
<h3 id="org86ed229">Service</h3>
<div class="outline-text-3" id="text-org86ed229">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Unit</span>]
<span class="org-variable-name">Description</span>=A WeeChat client and relay service using Tmux
<span class="org-variable-name">Wants</span>=network-online.target
<span class="org-variable-name">After</span>=network.target network-online.target
[<span class="org-type">Service</span>]
<span class="org-variable-name">Type</span>=forking
<span class="org-variable-name">ExecStart</span>=/usr/bin/tmux -L weechat new -d -s weechat weechat
<span class="org-variable-name">ExecStop</span>=/usr/bin/tmux -L weechat kill-session -t weechat
<span class="org-variable-name">Restart</span>=always
<span class="org-variable-name">RestartSec</span>=<span class="org-highlight-numbers-number">3</span>
[<span class="org-type">Install</span>]
<span class="org-variable-name">WantedBy</span>=default.target
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org8215bcc" class="outline-2">
<h2 id="org8215bcc">Neomutt</h2>
<div class="outline-text-2" id="text-org8215bcc">
</div>
<div id="outline-container-orge1ed052" class="outline-3">
<h3 id="orge1ed052">Service</h3>
<div class="outline-text-3" id="text-orge1ed052">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Unit</span>]
<span class="org-variable-name">Description</span>=Neomutt - mail client
[<span class="org-type">Service</span>]
<span class="org-variable-name">Type</span>=forking
<span class="org-variable-name">ExecStart</span>=/usr/bin/tmux -L neomutt new -d -s neomutt neomutt
<span class="org-variable-name">ExecStop</span>=/usr/bin/tmux -L neomutt kill-session -t neomutt
<span class="org-variable-name">Restart</span>=always
<span class="org-variable-name">RestartSec</span>=<span class="org-highlight-numbers-number">3</span>
[<span class="org-type">Install</span>]
<span class="org-variable-name">WantedBy</span>=default.target
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-orge82b3ac" class="outline-2">
<h2 id="orge82b3ac">Powertop</h2>
<div class="outline-text-2" id="text-orge82b3ac">
</div>
<div id="outline-container-org64643c2" class="outline-3">
<h3 id="org64643c2">Service</h3>
<div class="outline-text-3" id="text-org64643c2">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Unit</span>]
<span class="org-variable-name">Description</span>=Powertop tunings
[<span class="org-type">Service</span>]
<span class="org-variable-name">ExecStart</span>=/usr/bin/powertop --auto-tune
<span class="org-variable-name">RemainAfterExit</span>=true
[<span class="org-type">Install</span>]
<span class="org-variable-name">WantedBy</span>=multi-user.target
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org8fa8dcf" class="outline-2">
<h2 id="org8fa8dcf">NCMPCPP</h2>
<div class="outline-text-2" id="text-org8fa8dcf">
</div>
<div id="outline-container-org4209bd4" class="outline-3">
<h3 id="org4209bd4">Service</h3>
<div class="outline-text-3" id="text-org4209bd4">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Unit</span>]
<span class="org-variable-name">Description</span>=Ncmpcpp - Music Player
[<span class="org-type">Service</span>]
<span class="org-variable-name">Type</span>=forking
<span class="org-variable-name">ExecStart</span>=/usr/bin/tmux -L ncmpcpp new -d -s ncmpcpp ncmpcpp
<span class="org-variable-name">ExecStop</span>=/usr/bin/tmux -L ncmpcpp kill-session -t ncmpcpp
<span class="org-variable-name">Restart</span>=always
<span class="org-variable-name">RestartSec</span>=<span class="org-highlight-numbers-number">3</span>
[<span class="org-type">Install</span>]
<span class="org-variable-name">WantedBy</span>=default.target
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-orgf7f570c" class="outline-2">
<h2 id="orgf7f570c">Newsboat</h2>
<div class="outline-text-2" id="text-orgf7f570c">
</div>
<div id="outline-container-orga5c50f3" class="outline-3">
<h3 id="orga5c50f3">Service - tmux</h3>
<div class="outline-text-3" id="text-orga5c50f3">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Unit</span>]
<span class="org-variable-name">Description</span>=Newsboat - RSS reader
[<span class="org-type">Service</span>]
<span class="org-variable-name">Type</span>=forking
<span class="org-variable-name">ExecStart</span>=/usr/bin/tmux -L newsboat new -d -s newsboat newsboat
<span class="org-variable-name">ExecStop</span>=/usr/bin/tmux -L newsboat kill-session -t newsboat
<span class="org-variable-name">Restart</span>=always
<span class="org-variable-name">RestartSec</span>=<span class="org-highlight-numbers-number">3</span>
[<span class="org-type">Install</span>]
<span class="org-variable-name">WantedBy</span>=default.target
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-orgb34591d" class="outline-2">
<h2 id="orgb34591d">SSH Agent</h2>
<div class="outline-text-2" id="text-orgb34591d">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Unit</span>]
<span class="org-variable-name">Description</span>=SSH key agent
[<span class="org-type">Service</span>]
<span class="org-variable-name">Type</span>=simple
<span class="org-variable-name">Environment</span>=SSH_AUTH_SOCK=%t/ssh-agent.socket
<span class="org-variable-name">ExecStart</span>=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK
[<span class="org-type">Install</span>]
<span class="org-variable-name">WantedBy</span>=default.target
</pre>
</div>
</div>
</div>
<div id="outline-container-orgd4b9d58" class="outline-2">
<h2 id="orgd4b9d58">Mopidy</h2>
<div class="outline-text-2" id="text-orgd4b9d58">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Unit</span>]
<span class="org-variable-name">Description</span>=Mopidy music server
<span class="org-variable-name">After</span>=avahi-daemon.service
<span class="org-variable-name">After</span>=dbus.service
<span class="org-variable-name">After</span>=network.target
<span class="org-variable-name">After</span>=nss-lookup.target
<span class="org-variable-name">After</span>=pulseaudio.service
<span class="org-variable-name">After</span>=remote-fs.target
<span class="org-variable-name">After</span>=sound.target
[<span class="org-type">Service</span>]
<span class="org-variable-name">ExecStart</span>=/usr/bin/mopidy
[<span class="org-type">Install</span>]
<span class="org-variable-name">WantedBy</span>=multi-user.target
</pre>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 21:59</p>
</div>
</body>
</html>

401
docs/termite.html Normal file
View File

@ -0,0 +1,401 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 22:00 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Termite Configuration</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="../css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="../css/readtheorg.css"/>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="../js/readtheorg.js"></script>
<script type="text/javascript">
/*
@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[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</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">Termite Configuration</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org5db7562">Options</a></li>
<li><a href="#org256b6c3">Hints</a></li>
<li><a href="#org0d0648a">Colors</a></li>
</ul>
</div>
</div>
<div id="outline-container-org5db7562" class="outline-2">
<h2 id="org5db7562">Options</h2>
<div class="outline-text-2" id="text-org5db7562">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">options</span>]
<span class="org-comment-delimiter">#</span><span class="org-comment">allow_bold = true</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">audible_bell = false</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">bold_is_bright = true</span>
<span class="org-variable-name">clickable_url</span> = true
<span class="org-comment-delimiter">#</span><span class="org-comment">dynamic_title = true</span>
<span class="org-variable-name">font</span> = Hack Nerd Font Mono 13px
<span class="org-comment-delimiter">#</span><span class="org-comment">fullscreen = true</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">icon_name = terminal</span>
<span class="org-variable-name">mouse_autohide</span> = true
<span class="org-comment-delimiter">#</span><span class="org-comment">scroll_on_output = false</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">scroll_on_keystroke = true</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Length of the scrollback buffer, 0 disabled the scrollback buffer</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">and setting it to a negative value means "infinite scrollback"</span>
<span class="org-variable-name">scrollback_lines</span> = <span class="org-highlight-numbers-number">10000</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">search_wrap = true</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">urgent_on_bell = true</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">hyperlinks = false</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">$BROWSER is used by default if set, with xdg-open as a fallback</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">browser = xdg-open</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Hide links that are no longer valid in url select overlay mode</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">filter_unmatched_urls = true</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Emit escape sequences for extra modified keys</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">modify_other_keys = false</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">set size hints for the window</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">size_hints = false</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">"off", "left" or "right"</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">scrollbar = off</span>
<span class="org-variable-name">highlight</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">2f2f2f</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org256b6c3" class="outline-2">
<h2 id="org256b6c3">Hints</h2>
<div class="outline-text-2" id="text-org256b6c3">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">hints</span>]
<span class="org-comment-delimiter">#</span><span class="org-comment">padding = 2</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">border = #3f3f3f</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">border_width = 0.5</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">roundness = 2.0</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org0d0648a" class="outline-2">
<h2 id="org0d0648a">Colors</h2>
<div class="outline-text-2" id="text-org0d0648a">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">colors</span>]
<span class="org-comment-delimiter"># </span><span class="org-comment">Base16 Gruvbox dark, soft</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Author: Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox)</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">fg2</span>
<span class="org-variable-name">foreground</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">d5c4a1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">fg1</span>
<span class="org-variable-name">foreground_bold</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">ebdbb2</span>
<span class="org-variable-name">cursor</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">ebdbb2</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">bg0_s</span>
<span class="org-variable-name">cursor_foreground</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">32302f</span>
<span class="org-variable-name">background</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">32302f</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">16 color space</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">bg0_s</span>
<span class="org-variable-name">color0</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">32302f</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">bg3</span>
<span class="org-variable-name">color8</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">665c54</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">fb2</span>
<span class="org-variable-name">color7</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">d5c4a1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">fg0</span>
<span class="org-variable-name">color15</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">fbf1c7</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Red</span>
<span class="org-variable-name">color1</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">fb4934</span>
<span class="org-variable-name">color9</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">fb4934</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Green</span>
<span class="org-variable-name">color2</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">b8bb26</span>
<span class="org-variable-name">color10</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">b8bb26</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Yellow</span>
<span class="org-variable-name">color3</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">fabd2f</span>
<span class="org-variable-name">color11</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">fabd2f</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Blue</span>
<span class="org-variable-name">color4</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">83a598</span>
<span class="org-variable-name">color12</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">83a598</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Purple</span>
<span class="org-variable-name">color5</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">d3869b</span>
<span class="org-variable-name">color13</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">d3869b</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Teal</span>
<span class="org-variable-name">color6</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">8ec07c</span>
<span class="org-variable-name">color14</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">8ec07c</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Extra colors</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">orange</span>
<span class="org-variable-name">color16</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">fe8019</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">orange</span>
<span class="org-variable-name">color17</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">d65d0e</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">bg1</span>
<span class="org-variable-name">color18</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">3c3836</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">bg2</span>
<span class="org-variable-name">color19</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">504945</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">fg3</span>
<span class="org-variable-name">color20</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">bdae93</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">fg</span>
<span class="org-variable-name">color21</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">ebdbb2</span>
</pre>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 22:00</p>
</div>
</body>
</html>

579
docs/tmux.html Normal file
View File

@ -0,0 +1,579 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 22:00 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Tmux Configuration</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="../css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="../css/readtheorg.css"/>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="../js/readtheorg.js"></script>
<script type="text/javascript">
/*
@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[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</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">Tmux Configuration</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org7100dc0">Line</a></li>
<li><a href="#orga883317">Bindings</a></li>
<li><a href="#orgbb430a8">Settings</a></li>
<li><a href="#org36a813b">Plugins</a>
<ul>
<li><a href="#orgf29132d">Install plugins</a></li>
<li><a href="#org281bf63">Configuration</a></li>
</ul>
</li>
<li><a href="#org0ea6f8c">Colors</a></li>
<li><a href="#orge798cb7">Initialize TMUX plugin manager</a></li>
</ul>
</div>
</div>
<div id="outline-container-org7100dc0" class="outline-2">
<h2 id="org7100dc0">Line</h2>
<div class="outline-text-2" id="text-org7100dc0">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Activate the status bar</span>
set -g status <span class="org-string">"on"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">default statusbar color</span>
<span class="org-variable-name">set-option -g status-style bg</span>=colour237,fg=colour223 <span class="org-comment-delimiter"># </span><span class="org-comment">bg=bg1, fg=fg1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">default window title colors</span>
<span class="org-variable-name">set-window-option -g window-status-style bg</span>=colour214,fg=colour237 <span class="org-comment-delimiter"># </span><span class="org-comment">bg=yellow, fg=bg1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">default window with an activity alert</span>
<span class="org-variable-name">set-window-option -g window-status-activity-style bg</span>=colour237,fg=colour248 <span class="org-comment-delimiter"># </span><span class="org-comment">bg=bg1, fg=fg3</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">active window title colors</span>
<span class="org-variable-name">set-window-option -g window-status-current-style bg</span>=red,fg=colour237 <span class="org-comment-delimiter"># </span><span class="org-comment">fg=bg1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">pane border</span>
<span class="org-variable-name">set-option -g pane-active-border-style fg</span>=colour250 <span class="org-comment-delimiter">#</span><span class="org-comment">fg2</span>
<span class="org-variable-name">set-option -g pane-border-style fg</span>=colour237 <span class="org-comment-delimiter">#</span><span class="org-comment">bg1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">message infos</span>
<span class="org-variable-name">set-option -g message-style bg</span>=colour239,fg=colour223 <span class="org-comment-delimiter"># </span><span class="org-comment">bg=bg2, fg=fg1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">writing commands inactive</span>
<span class="org-variable-name">set-option -g message-command-style bg</span>=colour239,fg=colour223 <span class="org-comment-delimiter"># </span><span class="org-comment">bg=fg3, fg=bg1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">pane number display</span>
set-option -g display-panes-active-colour colour250 <span class="org-comment-delimiter">#</span><span class="org-comment">fg2</span>
set-option -g display-panes-colour colour237 <span class="org-comment-delimiter">#</span><span class="org-comment">bg1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">clock</span>
set-window-option -g clock-mode-colour colour109 <span class="org-comment-delimiter">#</span><span class="org-comment">blue</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">bell</span>
<span class="org-variable-name">set-window-option -g window-status-bell-style bg</span>=colour167,fg=colour235 <span class="org-comment-delimiter"># </span><span class="org-comment">bg=red, fg=bg</span>
<span class="org-comment-delimiter">## </span><span class="org-comment">Theme settings mixed with colors (unfortunately, but there is no cleaner way)</span>
set-option -g status-justify <span class="org-string">"left"</span>
set-option -g status-left-style none
set-option -g status-left-length <span class="org-string">"80"</span>
set-option -g status-right-style none
set-option -g status-right-length <span class="org-string">"80"</span>
set-window-option -g window-status-separator <span class="org-string">""</span>
set-option -g status-left <span class="org-string">"#[fg=colour248, bg=colour241] #S #[fg=colour241, bg=colour237, nobold, noitalics, nounderscore]&#57520;"</span>
set-option -g status-right <span class="org-string">"#[fg=colour239, bg=colour237, nobold, nounderscore, noitalics]&#57522;#[fg=colour246,bg=colour239] %Y-%m-%d &#57523; %H:%M #[fg=colour248, bg=colour239, nobold, noitalics, nounderscore]#{?client_prefix,#[fg=colour124],}&#57522;#[fg=colour237, bg=colour248]#{?client_prefix,#[bg=colour124],} #h "</span>
set-window-option -g window-status-current-format <span class="org-string">"#[fg=colour237, bg=colour214, nobold, noitalics, nounderscore]&#57520;#[fg=colour239, bg=colour214] #I &#57521;#[fg=colour239, bg=colour214, bold] #W #[fg=colour214, bg=colour237, nobold, noitalics, nounderscore]&#57520;"</span>
set-window-option -g window-status-format <span class="org-string">"#[fg=colour237,bg=colour239,noitalics]&#57520;#[fg=colour223,bg=colour239] #I &#57521;#[fg=colour223, bg=colour239] #W #[fg=colour239, bg=colour237, noitalics]&#57520;"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orga883317" class="outline-2">
<h2 id="orga883317">Bindings</h2>
<div class="outline-text-2" id="text-orga883317">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Set prefix to 'C-Space'</span>
unbind C-b
set -g prefix C-Space
<span class="org-comment-delimiter"># </span><span class="org-comment">Reload the config using 'C-Space + r'</span>
bind r source-file ~/.tmux.conf \; display-message <span class="org-string">"Config reloaded..."</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Simulate 'C-l' to clear the terminal</span>
bind C-l send-keys C-l \; clear-history
<span class="org-comment-delimiter"># </span><span class="org-comment">Open new panes with the path of the current pane.</span>
unbind c
bind c new-window -c <span class="org-string">'#{pane_current_path}'</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Vim-like key bindings for pane navigation (default uses cursor keys).</span>
unbind h
bind h select-pane -L
unbind j
bind j select-pane -D
unbind k
bind k select-pane -U
unbind l <span class="org-comment-delimiter"># </span><span class="org-comment">normally used for last-window</span>
bind l select-pane -R
<span class="org-comment-delimiter"># </span><span class="org-comment">Move Panes</span>
unbind L
bind L swap-pane -D
unbind H
bind H swap-pane -U
<span class="org-comment-delimiter"># </span><span class="org-comment">Resizing (mouse also works).</span>
unbind Left
bind -r Left resize-pane -L <span class="org-highlight-numbers-number">5</span>
unbind Right
bind -r Right resize-pane -R <span class="org-highlight-numbers-number">5</span>
unbind Down
bind -r Down resize-pane -D <span class="org-highlight-numbers-number">5</span>
unbind Up
bind -r Up resize-pane -U <span class="org-highlight-numbers-number">5</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Fast toggle (normally prefix-l).</span>
bind ^space last-window
<span class="org-comment-delimiter"># </span><span class="org-comment">Intuitive window-splitting keys.</span>
bind / split-window -h -c <span class="org-string">'#{pane_current_path}'</span> <span class="org-comment-delimiter"># </span><span class="org-comment">normally prefix-%</span>
bind - split-window -v -c <span class="org-string">'#{pane_current_path}'</span> <span class="org-comment-delimiter"># </span><span class="org-comment">normally prefix-"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Swap windows</span>
bind-key -r <span class="org-string">"&lt;"</span> swap-window -t -1
bind-key -r <span class="org-string">"&gt;"</span> swap-window -t +1
<span class="org-comment-delimiter"># </span><span class="org-comment">Smart pane switching with awareness of Vim splits</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">See: https://github.com/christoomey/vim-tmux-navigator</span>
<span class="org-variable-name">is_vim</span>=<span class="org-string">"ps -o state= -o comm= -t '#{pane_tty}' \</span>
<span class="org-string"> | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"</span>
bind-key -n C-h if-shell <span class="org-string">"$is_vim"</span> <span class="org-string">"send-keys C-h"</span> <span class="org-string">"select-pane -L"</span>
bind-key -n C-j if-shell <span class="org-string">"$is_vim"</span> <span class="org-string">"send-keys C-j"</span> <span class="org-string">"select-pane -D"</span>
bind-key -n C-k if-shell <span class="org-string">"$is_vim"</span> <span class="org-string">"send-keys C-k"</span> <span class="org-string">"select-pane -U"</span>
bind-key -n C-l if-shell <span class="org-string">"$is_vim"</span> <span class="org-string">"send-keys C-l"</span> <span class="org-string">"select-pane -R"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Set 'C-Space + v' to enter copy-mode</span>
unbind [
bind-key v copy-mode
<span class="org-comment-delimiter"># </span><span class="org-comment">Set 'C-Space + C-v' to paste</span>
unbind ]
bind-key C-v paste-buffer
<span class="org-comment-delimiter"># </span><span class="org-comment">Setup 'v' to begin selection as in Vim and 'y' to yank</span>
bind-key -T copy-mode-vi <span class="org-string">'v'</span> send -X begin-selection
bind-key -T copy-mode-vi <span class="org-string">'y'</span> send -X copy-pipe-and-cancel <span class="org-string">"xsel -i -p &amp;&amp; xsel -o -p | xsel -i -b"</span>
bind-key -T copy-mode-vi <span class="org-string">'Escape'</span> send -X cancel
bind-key -T copy-mode-vi <span class="org-string">'C-v'</span> send-keys -X rectangle-toggle
</pre>
</div>
</div>
</div>
<div id="outline-container-orgbb430a8" class="outline-2">
<h2 id="orgbb430a8">Settings</h2>
<div class="outline-text-2" id="text-orgbb430a8">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Activity monitoring</span>
set -g visual-activity off
<span class="org-comment-delimiter"># </span><span class="org-comment">Automatically renumber window numbers on closing a pane (tmux &gt;= 1.7).</span>
set -g renumber-windows on
<span class="org-comment-delimiter"># </span><span class="org-comment">Mouse can be used to select panes, select windows (by clicking on the status bar), resize panes</span>
set -g mouse on
set -g default-terminal <span class="org-string">"screen-256color"</span>
set -ga terminal-overrides <span class="org-string">',xterm-256color:Tc'</span>
set -g history-limit <span class="org-highlight-numbers-number">262144</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Start window and pane numbering at 1, (0 is too hard to reach)</span>
set -g base-index <span class="org-highlight-numbers-number">1</span>
set -g pane-base-index <span class="org-highlight-numbers-number">1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Don't wait for an escape sequence after seeing C-a</span>
set -s escape-time <span class="org-highlight-numbers-number">0</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Dynamically update iTerm tab and window titles</span>
set -g set-titles on
<span class="org-comment-delimiter"># </span><span class="org-comment">Needed as on tmux 1.9 and up (defaults to off)</span>
set -g focus-events on
<span class="org-comment-delimiter"># </span><span class="org-comment">But don't change tmux's own window titles</span>
set-option -g allow-rename off
<span class="org-comment-delimiter"># </span><span class="org-comment">Don't wrap searches; it's super confusing given tmux's reverse-ordering of position info in copy mode</span>
set -w -g wrap-search off
<span class="org-comment-delimiter"># </span><span class="org-comment">Restore pre-2.1 behavior of scrolling with the scrollwheel in Vim, less, copy mode etc, otherwise entering copy mode if not already in it.</span>
bind-key -T root WheelUpPane \
<span class="org-variable-name">if-shell -Ft</span>= <span class="org-string">'#{?pane_in_mode,1,#{mouse_any_flag}}'</span> \
<span class="org-string">'send -Mt='</span> \
<span class="org-string">'if-shell -Ft= "#{alternate_on}" "send -t= Up" "copy-mode -et="'</span>
bind-key -T root WheelDownPane \
<span class="org-variable-name">if-shell -Ft</span> = <span class="org-string">'#{?pane_in_mode,1,#{mouse_any_flag}}'</span> \
<span class="org-string">'send -Mt='</span> \
<span class="org-string">'if-shell -Ft= "#{alternate_on}" "send -t= Down" "send -Mt="'</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Stay in copy mode on drag end, but otherwise exit for mouse up.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Requires patch from https://github.com/tmux/tmux/issues/326</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">unbind-key -t vi-copy MouseDragEnd1Pane</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">bind-key -t vi-copy MouseUp1Pane cancel</span>
<span class="org-variable-name">bind-key -n MouseDrag1Status swap-window -t</span>=
<span class="org-comment-delimiter"># </span><span class="org-comment">bind-key -n MouseDown3Status new-window -a -t=</span>
<span class="org-variable-name">bind-key -n MouseDrag1Status swap-window -t</span>=
<span class="org-comment-delimiter"># </span><span class="org-comment">bind-key -n MouseDown3Status new-window -a -t=</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">#T = standard window title (last command, see ~/.bash_profile)</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">#h = short hostname</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">#S = session name</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">#W = tmux window name</span>
set -g set-titles-string <span class="org-string">"#T : #h &gt; #S &gt; #W"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Show bells in window titles</span>
<span class="org-variable-name">set -g window-status-bell-style fg</span>=yellow,bold,underscore
<span class="org-comment-delimiter"># </span><span class="org-comment">Causes tmux to resize a window based on the smallest client actually viewing it, not on the smallest one attached to the entire session</span>
set-window-option -g aggressive-resize
</pre>
</div>
</div>
</div>
<div id="outline-container-org36a813b" class="outline-2">
<h2 id="org36a813b">Plugins</h2>
<div class="outline-text-2" id="text-org36a813b">
</div>
<div id="outline-container-orgf29132d" class="outline-3">
<h3 id="orgf29132d">Install plugins</h3>
<div class="outline-text-3" id="text-orgf29132d">
<div class="org-src-container">
<pre class="src src-conf">set -g @plugin <span class="org-string">'tmux-plugins/tpm'</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">set -g @plugin 'tmux-plugins/tmux-sessionist'</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">set -g @plugin 'tmux-plugins/tmux-resurrect'</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">set -g @plugin 'tmux-plugins/tmux-continuum'</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">set -g @plugin 'tmux-plugins/tmux-battery'</span>
set -g @plugin <span class="org-string">'nhdaly/tmux-better-mouse-mode'</span>
set -g @plugin <span class="org-string">'seebi/tmux-colors-solarized'</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org281bf63" class="outline-3">
<h3 id="org281bf63">Configuration</h3>
<div class="outline-text-3" id="text-org281bf63">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">tmux-resurrect</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">for vim</span>
set -g @resurrect-strategy-vim <span class="org-string">'session'</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">for neovim</span>
set -g @resurrect-strategy-nvim <span class="org-string">'session'</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Restoring pane contents</span>
set -g @resurrect-capture-pane-contents <span class="org-string">'on'</span>
run-shell ~/.tmux/plugins/tmux-resurrect/resurrect.tmux
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">tmux-continuum</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
set -g @continuum-boot <span class="org-string">'on'</span>
set -g @continuum-boot-options <span class="org-string">'iterm,fullscreen'</span>
set -g @continuum-save-interval <span class="org-string">'15'</span>
run-shell ~/.tmux/plugins/tmux-continuum/continuum.tmux
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">tmux-battery</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
set -g @batt_charged_icon <span class="org-string">"="</span>
set -g @batt_charging_icon <span class="org-string">"+"</span>
set -g @batt_discharging_icon <span class="org-string">"-"</span>
set -g @batt_attached_icon <span class="org-string">"o"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org0ea6f8c" class="outline-2">
<h2 id="org0ea6f8c">Colors</h2>
<div class="outline-text-2" id="text-org0ea6f8c">
<div class="org-src-container">
<pre class="src src-conf">set -g @colors-solarized <span class="org-string">'light'</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orge798cb7" class="outline-2">
<h2 id="orge798cb7">Initialize TMUX plugin manager</h2>
<div class="outline-text-2" id="text-orge798cb7">
<div class="org-src-container">
<pre class="src src-conf">run <span class="org-string">'~/.tmux/plugins/tpm/tpm'</span>
</pre>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 22:00</p>
</div>
</body>
</html>

606
docs/video.html Normal file
View File

@ -0,0 +1,606 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 21:59 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>MPV Configuration</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="../css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="../css/readtheorg.css"/>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="../js/readtheorg.js"></script>
<script type="text/javascript">
/*
@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[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</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">MPV Configuration</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#orgebdc047">MPV Configuration</a>
<ul>
<li><a href="#org57b72c4">Video settings</a></li>
<li><a href="#orgdfdb9bc">Audio settings</a></li>
<li><a href="#orgc9bdb6a">Other settings</a></li>
</ul>
</li>
<li><a href="#org20df82e">MPV Key Bindings</a></li>
</ul>
</div>
</div>
<div id="outline-container-orgebdc047" class="outline-2">
<h2 id="orgebdc047">MPV Configuration</h2>
<div class="outline-text-2" id="text-orgebdc047">
</div>
<div id="outline-container-org57b72c4" class="outline-3">
<h3 id="org57b72c4">Video settings</h3>
<div class="outline-text-3" id="text-org57b72c4">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Start in fullscreen mode by default.</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">fs=yes</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">force starting with centered window</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">geometry=50%:50%</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">don't allow a new window to have a size larger than 90% of the screen size</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">autofit-larger=90%x90%</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Do not close the window on exit.</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">keep-open=yes</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Do not wait with showing the video window until it has loaded. (This will</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">resize the window once video is loaded. Also always shows a window with</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">audio.)</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">force-window=immediate</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Disable the On Screen Controller (OSC).</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">osc=no</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Keep the player window on top of all other windows.</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">ontop=yes</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Specify high quality video rendering preset (for --vo=gpu only)</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Can cause performance problems with some drivers and GPUs.</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">profile=gpu-hq</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Force video to lock on the display's refresh rate, and change video and audio</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">speed to some degree to ensure synchronous playback - can cause problems</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">with some drivers and desktop environments.</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">video-sync=display-resample</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Enable hardware decoding if available. Often, this does not work with all</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">video outputs, but should work well with default settings on most systems.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">If performance or energy usage is an issue, forcing the vdpau or vaapi VOs</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">may or may not help.</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">hwdec=auto</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgdfdb9bc" class="outline-3">
<h3 id="orgdfdb9bc">Audio settings</h3>
<div class="outline-text-3" id="text-orgdfdb9bc">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Specify default audio device. You can list devices with: --audio-device=help</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">The option takes the device string (the stuff between the '...').</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">audio-device=alsa/default</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Do not filter audio to keep pitch when changing playback speed.</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">audio-pitch-correction=no</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Output 5.1 audio natively, and upmix/downmix audio with a different format.</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">audio-channels=5.1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Disable any automatic remix, _if_ the audio output accepts the audio format.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">of the currently played file. See caveats mentioned in the manpage.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">(The default is "auto-safe", see manpage.)</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">audio-channels=auto</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgc9bdb6a" class="outline-3">
<h3 id="orgc9bdb6a">Other settings</h3>
<div class="outline-text-3" id="text-orgc9bdb6a">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Pretend to be a web browser. Might fix playback with some streaming sites,</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">but also will break with shoutcast streams.</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">user-agent="Mozilla/5.0"</span>
<span class="org-variable-name">stop-screensaver</span> = <span class="org-string">"yes"</span>
<span class="org-variable-name">sub-auto</span>=fuzzy
<span class="org-comment-delimiter"># </span><span class="org-comment">cache settings</span>
<span class="org-comment-delimiter">#</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Use 150MB input cache by default. The cache is enabled for network streams only.</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">cache-default=153600</span>
<span class="org-comment-delimiter">#</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Use 150MB input cache for everything, even local files.</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">cache=153600</span>
<span class="org-comment-delimiter">#</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Disable the behavior that the player will pause if the cache goes below a</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">certain fill size.</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">cache-pause=no</span>
<span class="org-comment-delimiter">#</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Read ahead about 5 seconds of audio and video packets.</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">demuxer-readahead-secs=5.0</span>
<span class="org-comment-delimiter">#</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Raise readahead from demuxer-readahead-secs to this value if a cache is active.</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">cache-secs=50.0</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Display English subtitles if available.</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">slang=en</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Play Finnish audio if available, fall back to English otherwise.</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">alang=fi,en</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Change subtitle encoding. For Arabic subtitles use 'cp1256'.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">If the file seems to be valid UTF-8, prefer UTF-8.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">(You can add '+' in front of the codepage to force it.)</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">sub-codepage=cp1256</span>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org20df82e" class="outline-2">
<h2 id="org20df82e">MPV Key Bindings</h2>
<div class="outline-text-2" id="text-org20df82e">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Audio</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">WHEEL_LEFT add volume -2</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">WHEEL_RIGHT add volume 2</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">ctrl++ add audio-delay 0.100 # this changes audio/video sync</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">ctrl+- add audio-delay -0.100</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">9 add volume -2</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">/ add volume -2</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">0 add volume 2</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">* add volume 2</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">m cycle mute</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">SHARP cycle audio # switch audio streams</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Basic</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
ESC set fullscreen no
q quit
Q quit-watch-later
SPACE cycle pause <span class="org-comment-delimiter"># </span><span class="org-comment">toggle pause/playback mode</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">p cycle pause # toggle pause/playback mode</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Navigation</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
l seek <span class="org-highlight-numbers-number">5</span>
h seek -5
<span class="org-comment-delimiter"># </span><span class="org-comment">k seek 60</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">j seek -60</span>
L playlist-next <span class="org-comment-delimiter"># </span><span class="org-comment">skip to next file</span>
H playlist-prev <span class="org-comment-delimiter"># </span><span class="org-comment">skip to previous file</span>
K add chapter <span class="org-highlight-numbers-number">1</span> <span class="org-comment-delimiter"># </span><span class="org-comment">skip to next chapter</span>
J add chapter -1 <span class="org-comment-delimiter"># </span><span class="org-comment">skip to previous chapter</span>
WHEEL_UP seek <span class="org-highlight-numbers-number">10</span>
WHEEL_DOWN seek -10
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Subtitles</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
z add sub-delay -0.1 <span class="org-comment-delimiter"># </span><span class="org-comment">subtract 100 ms delay from subs</span>
Z add sub-delay +0.1 <span class="org-comment-delimiter"># </span><span class="org-comment">add</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">x add sub-delay +0.1 # same as previous binding (discouraged)</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">r add sub-pos -1 # move subtitles up</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">R add sub-pos +1 # down</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">t add sub-pos +1 # same as previous binding (discouraged)</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">v cycle sub-visibility</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">stretch SSA/ASS subtitles with anamorphic videos to match historical</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">V cycle sub-ass-vsfilter-aspect-compat</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">switch between applying no style overrides to SSA/ASS subtitles, and</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">overriding them almost completely with the normal subtitle style</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">u cycle-values sub-ass-override "force" "no"</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">j cycle sub # cycle through subtitles</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">J cycle sub down # ...backwards</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Skip to previous/next subtitle (subject to some restrictions; see manpage)</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">Ctrl+LEFT no-osd sub-seek -1</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">Ctrl+RIGHT no-osd sub-seek 1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Adjust timing to previous/next subtitle</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">Ctrl+Shift+LEFT sub-step -1</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">Ctrl+Shift+RIGHT sub-step 1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">F9 show_text ${track-list} # show list of audio/sub streams</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">? add sub-scale +0.1 # increase subtitle font size</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">? add sub-scale -0.1 # decrease subtitle font size</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Video</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Move video rectangle</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">Alt+left add video-pan-x 0.1</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">Alt+right add video-pan-x -0.1</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">Alt+up add video-pan-y 0.1</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">Alt+down add video-pan-y -0.1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Zoom/unzoom video</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">Alt++ add video-zoom 0.1</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">Alt+- add video-zoom -0.1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Reset video zoom/pan settings</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">Alt+BS set video-zoom 0 ; set video-pan-x 0 ; set video-pan-y 0</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">1 add contrast -1</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">2 add contrast 1</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">3 add brightness -1</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">4 add brightness 1</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">5 add gamma -1</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">6 add gamma 1</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">7 add saturation -1</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">8 add saturation 1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Speed</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">[ multiply speed 1/1.1 # scale playback speed</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">] multiply speed 1.1</span>
<span class="org-comment-delimiter"><span class="org-type">#</span></span><span class="org-comment">{ multiply speed 0.5</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">} multiply speed 2.0</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">BS set speed 1.0 # reset speed to normal</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment"># Informations</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">o show-progress</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">P show-progress</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">i script-binding stats/display-stats</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">I script-binding stats/display-stats-toggle</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Screenshot</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">s async screenshot # take a screenshot</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">S async screenshot video # ...without subtitles</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">Ctrl+s async screenshot window # ...with subtitles and OSD, and scaled</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">Alt+s screenshot each-frame # automatically screenshot every frame</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Media keys</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">POWER quit</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">PLAY cycle pause</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">PAUSE cycle pause</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">PLAYPAUSE cycle pause</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">STOP quit</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">FORWARD seek 60</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">REWIND seek -60</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">NEXT playlist-next</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">PREV playlist-prev</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">VOLUME_UP add volume 2</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">VOLUME_DOWN add volume -2</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">MUTE cycle mute</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">CLOSE_WIN quit</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">CLOSE_WIN {encode} quit 4</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Others</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">Shift+BS revert-seek # undo previous (or marked) seek</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">Shift+Ctrl+BS revert-seek mark # mark position for revert-seek</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">. frame-step # advance one frame and pause</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">, frame-back-step # go back by one frame and pause</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">O no-osd cycle-values osd-level 3 1 # cycle through OSD mode</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">Alt+0 set window-scale 0.5</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">Alt+1 set window-scale 1.0</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">Alt+2 set window-scale 2.0</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">toggle deinterlacer (automatically inserts or removes required filter)</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">d cycle deinterlace</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">_ cycle video</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">T cycle ontop # toggle video window ontop of other windows</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">f cycle fullscreen # toggle fullscreen</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">w add panscan -0.1 # zoom out with -panscan 0 -fs</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">W add panscan +0.1 # in</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">e add panscan +0.1 # same as previous binding (discouraged)</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">cycle video aspect ratios; "-1" is the container aspect</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">A cycle-values video-aspect "16:9" "4:3" "2.35:1" "-1"</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">E cycle edition # next edition</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">l ab-loop # Set/clear A-B loop points</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">L cycle-values loop-file "inf" "no" # toggle infinite looping</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">ctrl+c quit 4</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">DEL script-binding osc/visibility # cycle OSC display</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">ctrl+h cycle-values hwdec "auto" "no" # cycle hardware decoding</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">F8 show_text ${playlist} # show playlist</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">q {encode} quit 4</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">ESC {encode} quit 4</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
</pre>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 21:59</p>
</div>
</body>
</html>

2301
docs/vim.html Normal file

File diff suppressed because it is too large Load Diff

836
docs/xconfig.html Normal file
View File

@ -0,0 +1,836 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 21:59 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Configuration Files related to Xorg</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="../css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="../css/readtheorg.css"/>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="../js/readtheorg.js"></script>
<script type="text/javascript">
/*
@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[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</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">Configuration Files related to Xorg</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org46b88d4">Xresources</a>
<ul>
<li><a href="#org97a3062">Colors</a></li>
<li><a href="#org74b0ae0">XFT</a></li>
<li><a href="#org387956c">Xcursor</a></li>
<li><a href="#orga798e6b">URxvt</a></li>
</ul>
</li>
<li><a href="#org5283ed8">Xmodmap</a></li>
<li><a href="#org8d77773">xinit</a></li>
<li><a href="#org530c426">Xprofile</a></li>
</ul>
</div>
</div>
<div id="outline-container-org46b88d4" class="outline-2">
<h2 id="org46b88d4">Xresources</h2>
<div class="outline-text-2" id="text-org46b88d4">
</div>
<div id="outline-container-org97a3062" class="outline-3">
<h3 id="org97a3062">Colors</h3>
<div class="outline-text-3" id="text-org97a3062">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">define base00 #32302f</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">define base01 #3c3836</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">define base02 #504945</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">define base03 #665c54</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">define base04 #bdae93</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">define base05 #d5c4a1</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">define base06 #ebdbb2</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">define base07 #fbf1c7</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">define base08 #fb4934</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">define base09 #fe8019</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">define base0A #fabd2f</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">define base0B #b8bb26</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">define base0C #8ec07c</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">define base0D #83a598</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">define base0E #d3869b</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">define base0F #d65d0e</span>
*foreground: base05
<span class="org-comment-delimiter">#</span><span class="org-comment">ifdef background_opacity</span>
*background: [background_opacity]base00
<span class="org-comment-delimiter">#</span><span class="org-comment">else</span>
*background: base00
<span class="org-comment-delimiter">#</span><span class="org-comment">endif</span>
*cursorColor: base05
*color0: base00
*color1: base08
*color2: base0B
*color3: base0A
*color4: base0D
*color5: base0E
*color6: base0C
*color7: base05
*color8: base03
*color9: base08
*color10: base0B
*color11: base0A
*color12: base0D
*color13: base0E
*color14: base0C
*color15: base07
! Note: colors beyond <span class="org-highlight-numbers-number">15</span> might not be loaded (e.g., xterm, urxvt),
! use <span class="org-string">'shell'</span> template to set these if necessary
*color16: base09
*color17: base0F
*color18: base01
*color19: base02
*color20: base04
*color21: base06
</pre>
</div>
</div>
</div>
<div id="outline-container-org74b0ae0" class="outline-3">
<h3 id="org74b0ae0">XFT</h3>
<div class="outline-text-3" id="text-org74b0ae0">
<div class="org-src-container">
<pre class="src src-conf">Xft.dpi: <span class="org-highlight-numbers-number">96</span>
Xft.autohint: <span class="org-highlight-numbers-number">0</span>
Xft.lcdfilter: lcddefault
Xft.hintstyle: hintfull
Xft.hinting: <span class="org-highlight-numbers-number">1</span>
Xft.antialias: <span class="org-highlight-numbers-number">1</span>
Xft.rgba: rgb
</pre>
</div>
</div>
</div>
<div id="outline-container-org387956c" class="outline-3">
<h3 id="org387956c">Xcursor</h3>
<div class="outline-text-3" id="text-org387956c">
<div class="org-src-container">
<pre class="src src-conf">Xcursor.theme: Breeze
Xcursor.size: <span class="org-highlight-numbers-number">0</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orga798e6b" class="outline-3">
<h3 id="orga798e6b">URxvt</h3>
<div class="outline-text-3" id="text-orga798e6b">
<div class="org-src-container">
<pre class="src src-conf">! -----------------------------------------------------------------------------
! File: gruvbox-dark.xresources
! Description: Retro groove colorscheme generalized
! Author: morhetz <a href="mailto:morhetz%40gmail.com">&lt;morhetz@gmail.com&gt;</a>
! Source: https://github.com/morhetz/gruvbox-generalized
! Last Modified: <span class="org-highlight-numbers-number">6</span> Sep <span class="org-highlight-numbers-number">2014</span>
! -----------------------------------------------------------------------------
! hard contrast: *background: <span class="org-comment-delimiter">#</span><span class="org-comment">1d2021</span>
*background: <span class="org-comment-delimiter">#</span><span class="org-comment">282828</span>
! soft contrast: *background: <span class="org-comment-delimiter">#</span><span class="org-comment">32302f</span>
*foreground: <span class="org-comment-delimiter">#</span><span class="org-comment">ebdbb2</span>
! Black + DarkGrey
*color0: <span class="org-comment-delimiter">#</span><span class="org-comment">282828</span>
*color8: <span class="org-comment-delimiter">#</span><span class="org-comment">928374</span>
! DarkRed + Red
*color1: <span class="org-comment-delimiter">#</span><span class="org-comment">cc241d</span>
*color9: <span class="org-comment-delimiter">#</span><span class="org-comment">fb4934</span>
! DarkGreen + Green
*color2: <span class="org-comment-delimiter">#</span><span class="org-comment">98971a</span>
*color10: <span class="org-comment-delimiter">#</span><span class="org-comment">b8bb26</span>
! DarkYellow + Yellow
*color3: <span class="org-comment-delimiter">#</span><span class="org-comment">d79921</span>
*color11: <span class="org-comment-delimiter">#</span><span class="org-comment">fabd2f</span>
! DarkBlue + Blue
*color4: <span class="org-comment-delimiter">#</span><span class="org-comment">458588</span>
*color12: <span class="org-comment-delimiter">#</span><span class="org-comment">83a598</span>
! DarkMagenta + Magenta
*color5: <span class="org-comment-delimiter">#</span><span class="org-comment">b16286</span>
*color13: <span class="org-comment-delimiter">#</span><span class="org-comment">d3869b</span>
! DarkCyan + Cyan
*color6: <span class="org-comment-delimiter">#</span><span class="org-comment">689d6a</span>
*color14: <span class="org-comment-delimiter">#</span><span class="org-comment">8ec07c</span>
! LightGrey + White
*color7: <span class="org-comment-delimiter">#</span><span class="org-comment">a89984</span>
*color15: <span class="org-comment-delimiter">#</span><span class="org-comment">ebdbb2</span>
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf">URxvt*termName: screen-256color
URxvt*geometry: 240x84
URxvt*loginShell: true
URxvt*scrollstyle: plain
URxvt*scrollTtyKeypress: true
URxvt*scrollTtyOutput: false
URxvt*scrollWithBuffer: false
URxvt*secondaryScreen: true
URxvt*secondaryScroll: true
URxvt*skipScroll: true
URxvt*scrollBar: false
URxvt*scrollBar_right: false
URxvt*scrollBar_floating: false
URxvt*utmpInhibit: false
URxvt*urgentOnBell: false
URxvt*visualBell: true
URxvt*mapAlert: true
URxvt*mouseWheelScrollPage: true
<span class="org-variable-name">URxvt*font: xft:Hack Nerd Font Mono:size</span>=<span class="org-highlight-numbers-number">10</span>
<span class="org-variable-name">URxvt*boldFont: xft:Hack Nerd Font Mono:bold:size</span>=<span class="org-highlight-numbers-number">10</span>
URxvt.perl-ext-common: selection-to-clipboard
URxvt.keysym.C-S-c: perl:clipboard:copy
URxvt.keysym.C-S-v: perl:clipboard:paste
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org5283ed8" class="outline-2">
<h2 id="org5283ed8">Xmodmap</h2>
<div class="outline-text-2" id="text-org5283ed8">
<div class="org-src-container">
<pre class="src src-conf">keycode <span class="org-highlight-numbers-number">8</span> =
keycode <span class="org-highlight-numbers-number">9</span> = Escape NoSymbol Escape
keycode <span class="org-highlight-numbers-number">10</span> = <span class="org-highlight-numbers-number">1</span> exclam <span class="org-highlight-numbers-number">1</span> exclam
keycode <span class="org-highlight-numbers-number">11</span> = <span class="org-highlight-numbers-number">2</span> at <span class="org-highlight-numbers-number">2</span> at
keycode <span class="org-highlight-numbers-number">12</span> = <span class="org-highlight-numbers-number">3</span> numbersign <span class="org-highlight-numbers-number">3</span> numbersign
keycode <span class="org-highlight-numbers-number">13</span> = <span class="org-highlight-numbers-number">4</span> dollar <span class="org-highlight-numbers-number">4</span> dollar
keycode <span class="org-highlight-numbers-number">14</span> = <span class="org-highlight-numbers-number">5</span> percent <span class="org-highlight-numbers-number">5</span> percent
keycode <span class="org-highlight-numbers-number">15</span> = <span class="org-highlight-numbers-number">6</span> asciicircum <span class="org-highlight-numbers-number">6</span> asciicircum
keycode <span class="org-highlight-numbers-number">16</span> = <span class="org-highlight-numbers-number">7</span> ampersand <span class="org-highlight-numbers-number">7</span> ampersand
keycode <span class="org-highlight-numbers-number">17</span> = <span class="org-highlight-numbers-number">8</span> asterisk <span class="org-highlight-numbers-number">8</span> asterisk
keycode <span class="org-highlight-numbers-number">18</span> = <span class="org-highlight-numbers-number">9</span> parenleft <span class="org-highlight-numbers-number">9</span> parenleft
keycode <span class="org-highlight-numbers-number">19</span> = <span class="org-highlight-numbers-number">0</span> parenright <span class="org-highlight-numbers-number">0</span> parenright
keycode <span class="org-highlight-numbers-number">20</span> = minus underscore minus underscore
keycode <span class="org-highlight-numbers-number">21</span> = equal plus equal plus
keycode <span class="org-highlight-numbers-number">22</span> = BackSpace BackSpace BackSpace BackSpace
keycode <span class="org-highlight-numbers-number">23</span> = Tab ISO_Left_Tab Tab ISO_Left_Tab
keycode <span class="org-highlight-numbers-number">24</span> = q Q q Q
keycode <span class="org-highlight-numbers-number">25</span> = w W w W
keycode <span class="org-highlight-numbers-number">26</span> = e E e E
keycode <span class="org-highlight-numbers-number">27</span> = r R r R
keycode <span class="org-highlight-numbers-number">28</span> = t T t T
keycode <span class="org-highlight-numbers-number">29</span> = y Y y Y
keycode <span class="org-highlight-numbers-number">30</span> = u U u U
keycode <span class="org-highlight-numbers-number">31</span> = i I i I
keycode <span class="org-highlight-numbers-number">32</span> = o O o O
keycode <span class="org-highlight-numbers-number">33</span> = p P p P
keycode <span class="org-highlight-numbers-number">34</span> = bracketleft braceleft bracketleft braceleft
keycode <span class="org-highlight-numbers-number">35</span> = bracketright braceright bracketright braceright
keycode <span class="org-highlight-numbers-number">36</span> = Return NoSymbol Return
keycode <span class="org-highlight-numbers-number">37</span> = Control_L NoSymbol Control_L
keycode <span class="org-highlight-numbers-number">38</span> = a A a A
keycode <span class="org-highlight-numbers-number">39</span> = s S s S
keycode <span class="org-highlight-numbers-number">40</span> = d D d D
keycode <span class="org-highlight-numbers-number">41</span> = f F f F
keycode <span class="org-highlight-numbers-number">42</span> = g G g G
keycode <span class="org-highlight-numbers-number">43</span> = h H h H
keycode <span class="org-highlight-numbers-number">44</span> = j J j J
keycode <span class="org-highlight-numbers-number">45</span> = k K k K
keycode <span class="org-highlight-numbers-number">46</span> = l L l L
keycode <span class="org-highlight-numbers-number">47</span> = semicolon colon semicolon colon
keycode <span class="org-highlight-numbers-number">48</span> = apostrophe quotedbl apostrophe quotedbl
keycode <span class="org-highlight-numbers-number">49</span> = grave asciitilde grave asciitilde
keycode <span class="org-highlight-numbers-number">50</span> = Shift_L NoSymbol Shift_L
keycode <span class="org-highlight-numbers-number">51</span> = backslash bar backslash bar
keycode <span class="org-highlight-numbers-number">52</span> = z Z z Z
keycode <span class="org-highlight-numbers-number">53</span> = x X x X
keycode <span class="org-highlight-numbers-number">54</span> = c C c C
keycode <span class="org-highlight-numbers-number">55</span> = v V v V
keycode <span class="org-highlight-numbers-number">56</span> = b B b B
keycode <span class="org-highlight-numbers-number">57</span> = n N n N
keycode <span class="org-highlight-numbers-number">58</span> = m M m M
keycode <span class="org-highlight-numbers-number">59</span> = comma less comma less
keycode <span class="org-highlight-numbers-number">60</span> = period greater period greater
keycode <span class="org-highlight-numbers-number">61</span> = slash question slash question
keycode <span class="org-highlight-numbers-number">62</span> = Shift_R NoSymbol Shift_R
keycode <span class="org-highlight-numbers-number">63</span> = KP_Multiply KP_Multiply KP_Multiply KP_Multiply KP_Multiply KP_Multiply XF86ClearGrab
keycode <span class="org-highlight-numbers-number">64</span> = Alt_L Meta_L Alt_L Meta_L
keycode <span class="org-highlight-numbers-number">65</span> = space NoSymbol space
keycode <span class="org-highlight-numbers-number">66</span> = Caps_Lock NoSymbol Caps_Lock
keycode <span class="org-highlight-numbers-number">67</span> = F1 F1 F1 F1 F1 F1 XF86Switch_VT_1
keycode <span class="org-highlight-numbers-number">68</span> = F2 F2 F2 F2 F2 F2 XF86Switch_VT_2
keycode <span class="org-highlight-numbers-number">69</span> = F3 F3 F3 F3 F3 F3 XF86Switch_VT_3
keycode <span class="org-highlight-numbers-number">70</span> = F4 F4 F4 F4 F4 F4 XF86Switch_VT_4
keycode <span class="org-highlight-numbers-number">71</span> = F5 F5 F5 F5 F5 F5 XF86Switch_VT_5
keycode <span class="org-highlight-numbers-number">72</span> = F6 F6 F6 F6 F6 F6 XF86Switch_VT_6
keycode <span class="org-highlight-numbers-number">73</span> = F7 F7 F7 F7 F7 F7 XF86Switch_VT_7
keycode <span class="org-highlight-numbers-number">74</span> = F8 F8 F8 F8 F8 F8 XF86Switch_VT_8
keycode <span class="org-highlight-numbers-number">75</span> = F9 F9 F9 F9 F9 F9 XF86Switch_VT_9
keycode <span class="org-highlight-numbers-number">76</span> = F10 F10 F10 F10 F10 F10 XF86Switch_VT_10
keycode <span class="org-highlight-numbers-number">77</span> = Num_Lock NoSymbol Num_Lock
keycode <span class="org-highlight-numbers-number">78</span> = Scroll_Lock NoSymbol Scroll_Lock
keycode <span class="org-highlight-numbers-number">79</span> = KP_Home KP_7 KP_Home KP_7
keycode <span class="org-highlight-numbers-number">80</span> = KP_Up KP_8 KP_Up KP_8
keycode <span class="org-highlight-numbers-number">81</span> = KP_Prior KP_9 KP_Prior KP_9
keycode <span class="org-highlight-numbers-number">82</span> = KP_Subtract KP_Subtract KP_Subtract KP_Subtract KP_Subtract KP_Subtract XF86Prev_VMode
keycode <span class="org-highlight-numbers-number">83</span> = KP_Left KP_4 KP_Left KP_4
keycode <span class="org-highlight-numbers-number">84</span> = KP_Begin KP_5 KP_Begin KP_5
keycode <span class="org-highlight-numbers-number">85</span> = KP_Right KP_6 KP_Right KP_6
keycode <span class="org-highlight-numbers-number">86</span> = KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add XF86Next_VMode
keycode <span class="org-highlight-numbers-number">87</span> = KP_End KP_1 KP_End KP_1
keycode <span class="org-highlight-numbers-number">88</span> = KP_Down KP_2 KP_Down KP_2
keycode <span class="org-highlight-numbers-number">89</span> = KP_Next KP_3 KP_Next KP_3
keycode <span class="org-highlight-numbers-number">90</span> = KP_Insert KP_0 KP_Insert KP_0
keycode <span class="org-highlight-numbers-number">91</span> = KP_Delete KP_Decimal KP_Delete KP_Decimal
keycode <span class="org-highlight-numbers-number">92</span> = ISO_Level3_Shift NoSymbol ISO_Level3_Shift
keycode <span class="org-highlight-numbers-number">93</span> =
keycode <span class="org-highlight-numbers-number">94</span> = less greater less greater bar brokenbar bar
keycode <span class="org-highlight-numbers-number">95</span> = F11 F11 F11 F11 F11 F11 XF86Switch_VT_11
keycode <span class="org-highlight-numbers-number">96</span> = F12 F12 F12 F12 F12 F12 XF86Switch_VT_12
keycode <span class="org-highlight-numbers-number">97</span> =
keycode <span class="org-highlight-numbers-number">98</span> = Katakana NoSymbol Katakana
keycode <span class="org-highlight-numbers-number">99</span> = Hiragana NoSymbol Hiragana
keycode <span class="org-highlight-numbers-number">100</span> = Henkan_Mode NoSymbol Henkan_Mode
keycode <span class="org-highlight-numbers-number">101</span> = Hiragana_Katakana NoSymbol Hiragana_Katakana
keycode <span class="org-highlight-numbers-number">102</span> = Muhenkan NoSymbol Muhenkan
keycode <span class="org-highlight-numbers-number">103</span> =
keycode <span class="org-highlight-numbers-number">104</span> = KP_Enter NoSymbol KP_Enter
keycode <span class="org-highlight-numbers-number">105</span> = Control_R NoSymbol Control_R
keycode <span class="org-highlight-numbers-number">106</span> = KP_Divide KP_Divide KP_Divide KP_Divide KP_Divide KP_Divide XF86Ungrab
keycode <span class="org-highlight-numbers-number">107</span> = Print Sys_Req Print Sys_Req
keycode <span class="org-highlight-numbers-number">108</span> = Alt_R Meta_R Alt_R Meta_R
keycode <span class="org-highlight-numbers-number">109</span> = Linefeed NoSymbol Linefeed
keycode <span class="org-highlight-numbers-number">110</span> = Home NoSymbol Home
keycode <span class="org-highlight-numbers-number">111</span> = Up NoSymbol Up
keycode <span class="org-highlight-numbers-number">112</span> = Prior NoSymbol Prior
keycode <span class="org-highlight-numbers-number">113</span> = Left NoSymbol Left
keycode <span class="org-highlight-numbers-number">114</span> = Right NoSymbol Right
keycode <span class="org-highlight-numbers-number">115</span> = End NoSymbol End
keycode <span class="org-highlight-numbers-number">116</span> = Down NoSymbol Down
keycode <span class="org-highlight-numbers-number">117</span> = Next NoSymbol Next
keycode <span class="org-highlight-numbers-number">118</span> = Insert NoSymbol Insert
keycode <span class="org-highlight-numbers-number">119</span> = Delete NoSymbol Delete
keycode <span class="org-highlight-numbers-number">120</span> =
keycode <span class="org-highlight-numbers-number">121</span> = XF86AudioMute NoSymbol XF86AudioMute
keycode <span class="org-highlight-numbers-number">122</span> = XF86AudioLowerVolume NoSymbol XF86AudioLowerVolume
keycode <span class="org-highlight-numbers-number">123</span> = XF86AudioRaiseVolume NoSymbol XF86AudioRaiseVolume
keycode <span class="org-highlight-numbers-number">124</span> = XF86PowerOff NoSymbol XF86PowerOff
keycode <span class="org-highlight-numbers-number">125</span> = KP_Equal NoSymbol KP_Equal
keycode <span class="org-highlight-numbers-number">126</span> = plusminus NoSymbol plusminus
keycode <span class="org-highlight-numbers-number">127</span> = Pause Break Pause Break
keycode <span class="org-highlight-numbers-number">128</span> = XF86LaunchA NoSymbol XF86LaunchA
keycode <span class="org-highlight-numbers-number">129</span> = KP_Decimal KP_Decimal KP_Decimal KP_Decimal
keycode <span class="org-highlight-numbers-number">130</span> = Hangul NoSymbol Hangul
keycode <span class="org-highlight-numbers-number">131</span> = Hangul_Hanja NoSymbol Hangul_Hanja
keycode <span class="org-highlight-numbers-number">132</span> =
keycode <span class="org-highlight-numbers-number">133</span> =
keycode <span class="org-highlight-numbers-number">134</span> = Super_R NoSymbol Super_R
keycode <span class="org-highlight-numbers-number">135</span> = Menu NoSymbol Menu
keycode <span class="org-highlight-numbers-number">136</span> = Cancel NoSymbol Cancel
keycode <span class="org-highlight-numbers-number">137</span> = Redo NoSymbol Redo
keycode <span class="org-highlight-numbers-number">138</span> = SunProps NoSymbol SunProps
keycode <span class="org-highlight-numbers-number">139</span> = Undo NoSymbol Undo
keycode <span class="org-highlight-numbers-number">140</span> = SunFront NoSymbol SunFront
keycode <span class="org-highlight-numbers-number">141</span> = XF86Copy NoSymbol XF86Copy
keycode <span class="org-highlight-numbers-number">142</span> = XF86Open NoSymbol XF86Open
keycode <span class="org-highlight-numbers-number">143</span> = XF86Paste NoSymbol XF86Paste
keycode <span class="org-highlight-numbers-number">144</span> = Find NoSymbol Find
keycode <span class="org-highlight-numbers-number">145</span> = XF86Cut NoSymbol XF86Cut
keycode <span class="org-highlight-numbers-number">146</span> = Help NoSymbol Help
keycode <span class="org-highlight-numbers-number">147</span> = xf86menukb nosymbol xf86menukb
keycode <span class="org-highlight-numbers-number">148</span> = XF86Calculator NoSymbol XF86Calculator
keycode <span class="org-highlight-numbers-number">149</span> =
keycode <span class="org-highlight-numbers-number">150</span> = XF86Sleep NoSymbol XF86Sleep
keycode <span class="org-highlight-numbers-number">151</span> = XF86WakeUp NoSymbol XF86WakeUp
keycode <span class="org-highlight-numbers-number">152</span> = XF86Explorer NoSymbol XF86Explorer
keycode <span class="org-highlight-numbers-number">153</span> = XF86Send NoSymbol XF86Send
keycode <span class="org-highlight-numbers-number">154</span> =
keycode <span class="org-highlight-numbers-number">155</span> = XF86Xfer NoSymbol XF86Xfer
keycode <span class="org-highlight-numbers-number">156</span> = XF86Launch1 NoSymbol XF86Launch1
keycode <span class="org-highlight-numbers-number">157</span> = XF86Launch2 NoSymbol XF86Launch2
keycode <span class="org-highlight-numbers-number">158</span> = XF86WWW NoSymbol XF86WWW
keycode <span class="org-highlight-numbers-number">159</span> = XF86DOS NoSymbol XF86DOS
keycode <span class="org-highlight-numbers-number">160</span> = XF86ScreenSaver NoSymbol XF86ScreenSaver
keycode <span class="org-highlight-numbers-number">161</span> = XF86RotateWindows NoSymbol XF86RotateWindows
keycode <span class="org-highlight-numbers-number">162</span> = XF86TaskPane NoSymbol XF86TaskPane
keycode <span class="org-highlight-numbers-number">163</span> = XF86Mail NoSymbol XF86Mail
keycode <span class="org-highlight-numbers-number">164</span> = XF86Favorites NoSymbol XF86Favorites
keycode <span class="org-highlight-numbers-number">165</span> = XF86MyComputer NoSymbol XF86MyComputer
keycode <span class="org-highlight-numbers-number">166</span> = XF86Back NoSymbol XF86Back
keycode <span class="org-highlight-numbers-number">167</span> = XF86Forward NoSymbol XF86Forward
keycode <span class="org-highlight-numbers-number">168</span> =
keycode <span class="org-highlight-numbers-number">169</span> = XF86Eject NoSymbol XF86Eject
keycode <span class="org-highlight-numbers-number">170</span> = XF86Eject XF86Eject XF86Eject XF86Eject
keycode <span class="org-highlight-numbers-number">171</span> = XF86AudioNext NoSymbol XF86AudioNext
keycode <span class="org-highlight-numbers-number">172</span> = XF86AudioPlay XF86AudioPause XF86AudioPlay XF86AudioPause
keycode <span class="org-highlight-numbers-number">173</span> = XF86AudioPrev NoSymbol XF86AudioPrev
keycode <span class="org-highlight-numbers-number">174</span> = XF86AudioStop XF86Eject XF86AudioStop XF86Eject
keycode <span class="org-highlight-numbers-number">175</span> = XF86AudioRecord NoSymbol XF86AudioRecord
keycode <span class="org-highlight-numbers-number">176</span> = XF86AudioRewind NoSymbol XF86AudioRewind
keycode <span class="org-highlight-numbers-number">177</span> = XF86Phone NoSymbol XF86Phone
keycode <span class="org-highlight-numbers-number">178</span> =
keycode <span class="org-highlight-numbers-number">179</span> = XF86Tools NoSymbol XF86Tools
keycode <span class="org-highlight-numbers-number">180</span> = XF86HomePage NoSymbol XF86HomePage
keycode <span class="org-highlight-numbers-number">181</span> = XF86Reload NoSymbol XF86Reload
keycode <span class="org-highlight-numbers-number">182</span> = XF86Close NoSymbol XF86Close
keycode <span class="org-highlight-numbers-number">183</span> =
keycode <span class="org-highlight-numbers-number">184</span> =
keycode <span class="org-highlight-numbers-number">185</span> = XF86ScrollUp NoSymbol XF86ScrollUp
keycode <span class="org-highlight-numbers-number">186</span> = XF86ScrollDown NoSymbol XF86ScrollDown
keycode <span class="org-highlight-numbers-number">187</span> = parenleft NoSymbol parenleft
keycode <span class="org-highlight-numbers-number">188</span> = parenright NoSymbol parenright
keycode <span class="org-highlight-numbers-number">189</span> = XF86New NoSymbol XF86New
keycode <span class="org-highlight-numbers-number">190</span> = Redo NoSymbol Redo
keycode <span class="org-highlight-numbers-number">191</span> = XF86Tools NoSymbol XF86Tools
keycode <span class="org-highlight-numbers-number">192</span> = XF86Launch5 NoSymbol XF86Launch5
keycode <span class="org-highlight-numbers-number">193</span> = XF86Launch6 NoSymbol XF86Launch6
keycode <span class="org-highlight-numbers-number">194</span> = XF86Launch7 NoSymbol XF86Launch7
keycode <span class="org-highlight-numbers-number">195</span> = XF86Launch8 NoSymbol XF86Launch8
keycode <span class="org-highlight-numbers-number">196</span> = XF86Launch9 NoSymbol XF86Launch9
keycode <span class="org-highlight-numbers-number">197</span> =
keycode <span class="org-highlight-numbers-number">198</span> = XF86AudioMicMute NoSymbol XF86AudioMicMute
keycode <span class="org-highlight-numbers-number">199</span> = XF86TouchpadToggle NoSymbol XF86TouchpadToggle
keycode <span class="org-highlight-numbers-number">200</span> = XF86TouchpadOn NoSymbol XF86TouchpadOn
keycode <span class="org-highlight-numbers-number">201</span> = XF86TouchpadOff NoSymbol XF86TouchpadOff
keycode <span class="org-highlight-numbers-number">202</span> =
keycode <span class="org-highlight-numbers-number">203</span> = Mode_switch NoSymbol Mode_switch
keycode <span class="org-highlight-numbers-number">204</span> = NoSymbol Alt_L NoSymbol Alt_L
keycode <span class="org-highlight-numbers-number">205</span> = NoSymbol Meta_L NoSymbol Meta_L
keycode <span class="org-highlight-numbers-number">206</span> = NoSymbol Super_L NoSymbol Super_L
keycode <span class="org-highlight-numbers-number">207</span> = NoSymbol Hyper_L NoSymbol Hyper_L
keycode <span class="org-highlight-numbers-number">208</span> = XF86AudioPlay NoSymbol XF86AudioPlay
keycode <span class="org-highlight-numbers-number">209</span> = XF86AudioPause NoSymbol XF86AudioPause
keycode <span class="org-highlight-numbers-number">210</span> = XF86Launch3 NoSymbol XF86Launch3
keycode <span class="org-highlight-numbers-number">211</span> = XF86Launch4 NoSymbol XF86Launch4
keycode <span class="org-highlight-numbers-number">212</span> = XF86LaunchB NoSymbol XF86LaunchB
keycode <span class="org-highlight-numbers-number">213</span> = XF86Suspend NoSymbol XF86Suspend
keycode <span class="org-highlight-numbers-number">214</span> = XF86Close NoSymbol XF86Close
keycode <span class="org-highlight-numbers-number">215</span> = XF86AudioPlay NoSymbol XF86AudioPlay
keycode <span class="org-highlight-numbers-number">216</span> = XF86AudioForward NoSymbol XF86AudioForward
keycode <span class="org-highlight-numbers-number">217</span> =
keycode <span class="org-highlight-numbers-number">218</span> = Print NoSymbol Print
keycode <span class="org-highlight-numbers-number">219</span> =
keycode <span class="org-highlight-numbers-number">220</span> = XF86WebCam NoSymbol XF86WebCam
keycode <span class="org-highlight-numbers-number">221</span> =
keycode <span class="org-highlight-numbers-number">222</span> =
keycode <span class="org-highlight-numbers-number">223</span> = XF86Mail NoSymbol XF86Mail
keycode <span class="org-highlight-numbers-number">224</span> = XF86Messenger NoSymbol XF86Messenger
keycode <span class="org-highlight-numbers-number">225</span> = XF86Search NoSymbol XF86Search
keycode <span class="org-highlight-numbers-number">226</span> = XF86Go NoSymbol XF86Go
keycode <span class="org-highlight-numbers-number">227</span> = XF86Finance NoSymbol XF86Finance
keycode <span class="org-highlight-numbers-number">228</span> = XF86Game NoSymbol XF86Game
keycode <span class="org-highlight-numbers-number">229</span> = XF86Shop NoSymbol XF86Shop
keycode <span class="org-highlight-numbers-number">230</span> =
keycode <span class="org-highlight-numbers-number">231</span> = Cancel NoSymbol Cancel
keycode <span class="org-highlight-numbers-number">232</span> = XF86MonBrightnessDown NoSymbol XF86MonBrightnessDown
keycode <span class="org-highlight-numbers-number">233</span> = XF86MonBrightnessUp NoSymbol XF86MonBrightnessUp
keycode <span class="org-highlight-numbers-number">234</span> = XF86AudioMedia NoSymbol XF86AudioMedia
keycode <span class="org-highlight-numbers-number">235</span> = XF86Display NoSymbol XF86Display
keycode <span class="org-highlight-numbers-number">236</span> = XF86KbdLightOnOff NoSymbol XF86KbdLightOnOff
keycode <span class="org-highlight-numbers-number">237</span> = XF86KbdBrightnessDown NoSymbol XF86KbdBrightnessDown
keycode <span class="org-highlight-numbers-number">238</span> = XF86KbdBrightnessUp NoSymbol XF86KbdBrightnessUp
keycode <span class="org-highlight-numbers-number">239</span> = XF86Send NoSymbol XF86Send
keycode <span class="org-highlight-numbers-number">240</span> = XF86Reply NoSymbol XF86Reply
keycode <span class="org-highlight-numbers-number">241</span> = XF86MailForward NoSymbol XF86MailForward
keycode <span class="org-highlight-numbers-number">242</span> = XF86Save NoSymbol XF86Save
keycode <span class="org-highlight-numbers-number">243</span> = XF86Documents NoSymbol XF86Documents
keycode <span class="org-highlight-numbers-number">244</span> = XF86Battery NoSymbol XF86Battery
keycode <span class="org-highlight-numbers-number">245</span> = XF86Bluetooth NoSymbol XF86Bluetooth
keycode <span class="org-highlight-numbers-number">246</span> = XF86WLAN NoSymbol XF86WLAN
keycode <span class="org-highlight-numbers-number">247</span> =
keycode <span class="org-highlight-numbers-number">248</span> = XF86Display NoSymbol XF86Display
keycode <span class="org-highlight-numbers-number">249</span> =
keycode <span class="org-highlight-numbers-number">250</span> =
keycode <span class="org-highlight-numbers-number">251</span> =
keycode <span class="org-highlight-numbers-number">252</span> =
keycode <span class="org-highlight-numbers-number">253</span> =
keycode <span class="org-highlight-numbers-number">254</span> = XF86WWAN NoSymbol XF86WWAN
keycode <span class="org-highlight-numbers-number">255</span> = XF86RFKill NoSymbol XF86RFKill
</pre>
</div>
</div>
</div>
<div id="outline-container-org8d77773" class="outline-2">
<h2 id="org8d77773">xinit</h2>
<div class="outline-text-2" id="text-org8d77773">
<div class="org-src-container">
<pre class="src src-bash">dbus-update-activation-environment --systemd DISPLAY
</pre>
</div>
<p>
Start <code>gnome-keyring-daemon</code> in order not to be asked for password to unlock GPG key.
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">eval $(</span><span class="org-sh-quoted-exec">/usr/bin/gnome-keyring-daemon</span><span class="org-comment"> --start --components=pkcs11,secrets,ssh)</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">export SSH_AUTH_SOCK</span>
</pre>
</div>
<p>
Fix for Matlab.
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">_JAVA_AWT_WM_NONREPARENTING</span>=<span class="org-highlight-numbers-number">1</span>
</pre>
</div>
<p>
Merge in defaults and keymaps
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">userresources</span>=$<span class="org-variable-name">HOME</span>/.Xresources
<span class="org-variable-name">usermodmap</span>=$<span class="org-variable-name">HOME</span>/.Xmodmap
<span class="org-variable-name">sysresources</span>=/etc/X11/xinit/.Xresources
<span class="org-variable-name">sysmodmap</span>=/etc/X11/xinit/.Xmodmap
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -f $<span class="org-variable-name">sysresources</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
xrdb -merge $<span class="org-variable-name">sysresources</span>
<span class="org-keyword">fi</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -f $<span class="org-variable-name">sysmodmap</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
xmodmap $<span class="org-variable-name">sysmodmap</span>
<span class="org-keyword">fi</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">userresources</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
xrdb -merge <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">userresources</span></span><span class="org-string">"</span>
<span class="org-keyword">fi</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">usermodmap</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
xmodmap <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">usermodmap</span></span><span class="org-string">"</span>
<span class="org-keyword">fi</span>
</pre>
</div>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-rainbow-delimiters-depth-1">[</span> -f ~/.xprofile <span class="org-rainbow-delimiters-depth-1">]</span> &amp;&amp; <span class="org-builtin">.</span> ~/.xprofile
</pre>
</div>
</div>
</div>
<div id="outline-container-org530c426" class="outline-2">
<h2 id="org530c426">Xprofile</h2>
<div class="outline-text-2" id="text-org530c426">
<p>
Keyboard Options
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Set repetition keyboard rate</span>
xset r rate <span class="org-highlight-numbers-number">200</span> <span class="org-highlight-numbers-number">40</span> &amp;
<span class="org-comment-delimiter"># </span><span class="org-comment">Set International US keyboard layout</span>
setxkbmap -layout us -variant intl -option caps:escape &amp;
</pre>
</div>
<p>
Start programs related to display.
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Screen options</span>
xrandr --output eDP1 --mode 1920x1080 --dpi <span class="org-highlight-numbers-number">192</span> &amp;
<span class="org-comment-delimiter"># </span><span class="org-comment">Set custom wallpaper script</span>
$<span class="org-variable-name">HOME</span>/scripts/wallpapers.sh &amp;
<span class="org-comment-delimiter"># </span><span class="org-comment">Hide mouse cursor after x seconds</span>
<span class="org-type">pgrep</span> -xu <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">USER</span></span><span class="org-string">"</span> unclutter &gt;/dev/null || <span class="org-sh-escaped-newline">\</span>
unclutter --timeout <span class="org-highlight-numbers-number">5</span> &amp;
<span class="org-comment-delimiter"># </span><span class="org-comment">Autolock screen after x minutes</span>
xautolock -locker <span class="org-string">"~/scripts/lockscreen.sh"</span> -detectsleep -time <span class="org-highlight-numbers-number">30</span> -notify <span class="org-highlight-numbers-number">60</span> -notifier <span class="org-string">"dunstify --replace=31846 -u critical -t 10000 -- 'Locking Screen' '60 seconds'"</span> &amp;
<span class="org-comment-delimiter"># </span><span class="org-comment">Redshift</span>
<span class="org-type">pgrep</span> -xu <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">USER</span></span><span class="org-string">"</span> redshift &gt;/dev/null || <span class="org-sh-escaped-newline">\</span>
redshift &amp;
<span class="org-comment-delimiter"># </span><span class="org-comment">Run Compton (compositor)</span>
picom --daemon &amp;
</pre>
</div>
<p>
Start the applications related to the top bar (polybar + applet).
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Start Network Management Framework</span>
nm-applet &amp;
<span class="org-comment-delimiter"># </span><span class="org-comment">Start Power Manager</span>
xfce4-power-manager &amp;
<span class="org-comment-delimiter"># </span><span class="org-comment">Bluetooth Manager</span>
blueman-applet &amp;
<span class="org-comment-delimiter"># </span><span class="org-comment">Synology Cloud Station Drive</span>
synology-drive &amp;
<span class="org-comment-delimiter"># </span><span class="org-comment">Udiskie to automount usb keys</span>
<span class="org-type">pgrep</span> -xu <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">USER</span></span><span class="org-string">"</span> udiskie &gt;/dev/null || <span class="org-sh-escaped-newline">\</span>
udiskie --automount --notify --tray --use-udisks2 &amp;
</pre>
</div>
<p>
Finally, run SXHKD for the key bindings.
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Start sxhkd</span>
<span class="org-type">pgrep</span> -xu <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">USER</span></span><span class="org-string">"</span> sxhkd &gt;/dev/null || <span class="org-sh-escaped-newline">\</span>
sxhkd -m <span class="org-highlight-numbers-number">1</span> -c ~/.config/sxhkd/sxhkdrc &amp;
</pre>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 21:59</p>
</div>
</body>
</html>

364
docs/zathura.html Normal file
View File

@ -0,0 +1,364 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 21:59 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Zathura</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="../css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="../css/readtheorg.css"/>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="../js/readtheorg.js"></script>
<script type="text/javascript">
/*
@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[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</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">Zathura</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#orgb79ef7e">Configuration</a></li>
<li><a href="#orgf927afe">Bindings</a></li>
<li><a href="#org0ac6dba">Colors</a></li>
</ul>
</div>
</div>
<div id="outline-container-orgb79ef7e" class="outline-2">
<h2 id="orgb79ef7e">Configuration</h2>
<div class="outline-text-2" id="text-orgb79ef7e">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Use clipboard</span>
set selection-clipboard clipboard
<span class="org-comment-delimiter"># </span><span class="org-comment">Remove padding</span>
set statusbar-h-padding <span class="org-highlight-numbers-number">0</span>
set statusbar-v-padding <span class="org-highlight-numbers-number">0</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Padding between pages</span>
set page-padding <span class="org-highlight-numbers-number">1</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgf927afe" class="outline-2">
<h2 id="orgf927afe">Bindings</h2>
<div class="outline-text-2" id="text-orgf927afe">
<div class="org-src-container">
<pre class="src src-conf">map u scroll half-up
map d scroll half-down
map D toggle_page_mode
map r reload
map R rotate
map &gt; rotate
map &lt; rotate
map L zoom in
map H zoom out
map i recolor
map p print
map m toggle_statusbar
map &lt;Space&gt; scroll full-down
map &lt;BackSpace&gt; scroll full-up
</pre>
</div>
</div>
</div>
<div id="outline-container-org0ac6dba" class="outline-2">
<h2 id="org0ac6dba">Colors</h2>
<div class="outline-text-2" id="text-org0ac6dba">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Base16 Gruvbox dark, soft</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Author: Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox)</span>
set default-bg <span class="org-string">"#32302f"</span>
set default-fg <span class="org-string">"#3c3836"</span>
set statusbar-fg <span class="org-string">"#bdae93"</span>
set statusbar-bg <span class="org-string">"#504945"</span>
set inputbar-bg <span class="org-string">"#32302f"</span>
set inputbar-fg <span class="org-string">"#fbf1c7"</span>
set notification-bg <span class="org-string">"#32302f"</span>
set notification-fg <span class="org-string">"#fbf1c7"</span>
set notification-error-bg <span class="org-string">"#32302f"</span>
set notification-error-fg <span class="org-string">"#fb4934"</span>
set notification-warning-bg <span class="org-string">"#32302f"</span>
set notification-warning-fg <span class="org-string">"#fb4934"</span>
set highlight-color <span class="org-string">"#fabd2f"</span>
set highlight-active-color <span class="org-string">"#83a598"</span>
set completion-bg <span class="org-string">"#3c3836"</span>
set completion-fg <span class="org-string">"#83a598"</span>
set completion-highlight-fg <span class="org-string">"#fbf1c7"</span>
set completion-highlight-bg <span class="org-string">"#83a598"</span>
set recolor-lightcolor <span class="org-string">"#32302f"</span>
set recolor-darkcolor <span class="org-string">"#ebdbb2"</span>
set recolor <span class="org-string">"false"</span>
set recolor-keephue <span class="org-string">"false"</span>
</pre>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 21:59</p>
</div>
</body>
</html>

302
docs/zsh.html Normal file
View File

@ -0,0 +1,302 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 21:59 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>ZSH Config</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="../css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="../css/readtheorg.css"/>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="../js/readtheorg.js"></script>
<script type="text/javascript">
/*
@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[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</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">ZSH Config</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org5a86fa0">Zplug</a></li>
</ul>
</div>
</div>
<p>
<a href="https://github.com/unixorn/awesome-zsh-plugins">https://github.com/unixorn/awesome-zsh-plugins</a>
</p>
<div id="outline-container-org5a86fa0" class="outline-2">
<h2 id="org5a86fa0">Zplug</h2>
<div class="outline-text-2" id="text-org5a86fa0">
<p>
<a href="https://github.com/zplug/zplug">https://github.com/zplug/zplug</a>
</p>
<div class="org-src-container">
<pre class="src src-conf">source ~/.zplug/init.zsh
zplug mafredri/zsh-async, from:github
zplug sindresorhus/pure, use:pure.zsh, from:github, as:theme
<span class="org-comment-delimiter"># </span><span class="org-comment">Install plugins if there are plugins that have not been installed</span>
if ! zplug check --verbose; then
printf <span class="org-string">"Install? [y/N]: "</span>
if read -q; then
echo; zplug install
fi
fi
<span class="org-comment-delimiter"># </span><span class="org-comment">Then, source plugins and add commands to $PATH</span>
zplug load --verbose
</pre>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 21:59</p>
</div>
</body>
</html>

View File

@ -1,19 +0,0 @@
;;; tangle --- Tangle one or more org files
;;; Commentary:
;; This file can be used to tangle one or more files to their output
;; files.
;;; Code:
(require 'org)
(require 'ob-tangle)
(defun literate-dotfiles-tangle (&rest files)
"Tangle FILES or all files in the project."
(when (null files)
(setq files command-line-args-left))
(dolist (file files)
(with-current-buffer (find-file-noselect file)
(org-babel-tangle))))

13
publish.org Normal file
View File

@ -0,0 +1,13 @@
#+begin_src emacs-lisp
(setq org-publish-project-alist
'(("config"
:base-directory "~/.config/literate-dotfiles/dotfiles/"
:publishing-directory "~/.config/literate-dotfiles/docs/"
:recursive t
:publishing-function org-html-publish-to-html
:auto-sitemap nil
:section-numbers nil
:table-of-contents nil)))
#+end_src

File diff suppressed because it is too large Load Diff