Nicer home page

This commit is contained in:
Thomas Dehaeze 2021-01-03 22:52:53 +01:00
parent b484e4ddb1
commit a46af90e85
25 changed files with 7377 additions and 8385 deletions

View File

@ -48,6 +48,10 @@
# Line wrap on window resize # Line wrap on window resize
shopt -s checkwinsize shopt -s checkwinsize
# Enable history expansion with space
# E.g. typing !!<space> will replace the !! with your last command
bind Space:magic-space
# Expand Aliases # Expand Aliases
shopt -s expand_aliases shopt -s expand_aliases
@ -56,6 +60,9 @@
# Enable history appending instead of overwriting # Enable history appending instead of overwriting
shopt -s histappend shopt -s histappend
# Save multi-line commands as one command
shopt -s cmdhist
#+END_SRC #+END_SRC
** Prompt - =PS1= ** Prompt - =PS1=
@ -204,9 +211,20 @@ https://doronbehar.com/articles/using-kdeconnect-to-comfortably-send-sms-message
Undocumented feature which sets the size to "unlimited". http://stackoverflow.com/questions/9457233/unlimited-bash-history Undocumented feature which sets the size to "unlimited". http://stackoverflow.com/questions/9457233/unlimited-bash-history
#+BEGIN_SRC bash #+BEGIN_SRC bash
export HISTFILESIZE= # Huge history. Doesn't appear to slow things down, so why not?
export HISTSIZE= HISTSIZE=500000
export HISTTIMEFORMAT="[%F %T] " HISTFILESIZE=100000
# Avoid duplicate entries
HISTCONTROL="erasedups:ignoreboth"
# Don't record some commands
export HISTIGNORE="&:[ ]*:exit:ls:bg:fg:history:clear"
# Use standard ISO 8601 timestamp
# %F equivalent to %Y-%m-%d
# %T equivalent to %H:%M:%S (24-hours format)
HISTTIMEFORMAT='%F %T '
#+END_SRC #+END_SRC
Change the file location because certain bash sessions truncate =.bash_history= file upon close. http://superuser.com/questions/575479/bash-history-truncated-to-500-lines-on-each-login Change the file location because certain bash sessions truncate =.bash_history= file upon close. http://superuser.com/questions/575479/bash-history-truncated-to-500-lines-on-each-login
@ -312,7 +330,7 @@ This is important for termite to work when sshing in remote machines.
PATH=$HOME/appimages:$PATH PATH=$HOME/appimages:$PATH
PATH=$HOME/.gem/ruby/2.5.0/bin:$PATH PATH=$HOME/.gem/ruby/2.5.0/bin:$PATH
PATH=$GOPATH:$GOPATH/bin:$PATH PATH=$GOPATH:$GOPATH/bin:$PATH
PATH=~/.emacs.d/bin:$PATH PATH=~/.config/emacs/bin:$PATH
export PATH export PATH
#+END_SRC #+END_SRC

View File

@ -66,7 +66,7 @@
</alias> </alias>
<alias> <alias>
<family>monospace</family> <family>monospace</family>
<prefer><family>SauceCodePro Nerd Font Mono</family></prefer> <prefer><family>Hack Nerd Font Mono</family></prefer>
</alias> </alias>
</fontconfig> </fontconfig>

View File

@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head> <head>
<!-- 2021-01-01 ven. 20:09 --> <!-- 2021-01-03 dim. 22:19 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Bash Configuration</title> <title>Bash Configuration</title>
<meta name="generator" content="Org mode" /> <meta name="generator" content="Org mode" />
@ -90,7 +90,7 @@
<h3 id="orgb8018f7">If not running interactively, don&rsquo;t do anything</h3> <h3 id="orgb8018f7">If not running interactively, don&rsquo;t do anything</h3>
<div class="outline-text-3" id="text-orgb8018f7"> <div class="outline-text-3" id="text-orgb8018f7">
<div class="org-src-container"> <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 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> </pre>
</div> </div>
</div> </div>
@ -100,7 +100,7 @@
<h3 id="org16d9917">Bash Completion</h3> <h3 id="org16d9917">Bash Completion</h3>
<div class="outline-text-3" id="text-org16d9917"> <div class="outline-text-3" id="text-org16d9917">
<div class="org-src-container"> <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 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> </pre>
</div> </div>
</div> </div>
@ -110,7 +110,7 @@
<h3 id="org17408fe">FZF</h3> <h3 id="org17408fe">FZF</h3>
<div class="outline-text-3" id="text-org17408fe"> <div class="outline-text-3" id="text-org17408fe">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">source</span> /usr/share/fzf/key-bindings.bash <pre class="src src-bash"> <span class="org-builtin">source</span> /usr/share/fzf/key-bindings.bash
</pre> </pre>
</div> </div>
</div> </div>
@ -120,8 +120,8 @@
<h3 id="org46238bc">Ignore case for auto-completion</h3> <h3 id="org46238bc">Ignore case for auto-completion</h3>
<div class="outline-text-3" id="text-org46238bc"> <div class="outline-text-3" id="text-org46238bc">
<div class="org-src-container"> <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> <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> <span class="org-builtin">bind</span> <span class="org-string">"set show-all-if-ambiguous on"</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -131,7 +131,7 @@
<h3 id="org53c6a26">Use Color</h3> <h3 id="org53c6a26">Use Color</h3>
<div class="outline-text-3" id="text-org53c6a26"> <div class="outline-text-3" id="text-org53c6a26">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">use_color</span>=true <pre class="src src-bash"> <span class="org-variable-name">use_color</span>=true
</pre> </pre>
</div> </div>
</div> </div>
@ -141,26 +141,33 @@
<h3 id="org5664e96">Some config</h3> <h3 id="org5664e96">Some config</h3>
<div class="outline-text-3" id="text-org5664e96"> <div class="outline-text-3" id="text-org5664e96">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Unset some variables</span> <pre class="src src-bash"> <span class="org-comment-delimiter"># </span><span class="org-comment">Unset some variables</span>
<span class="org-builtin">unset</span> use_color safe_term match_lhs sh <span class="org-builtin">unset</span> use_color safe_term match_lhs sh
<span class="org-comment-delimiter"># </span><span class="org-comment">Allow local processes with root privileges to connect to the locally running X server</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Allow local processes with root privileges to connect to the locally running X server</span>
xhost +local:root &gt; /dev/null <span class="org-highlight-numbers-number">2</span>&gt;&amp;<span class="org-highlight-numbers-number">1</span> 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-comment-delimiter"># </span><span class="org-comment">Autocomplete </span><span class="org-type"><span class="org-comment">sudo</span></span><span class="org-comment"> commands</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Autocomplete </span><span class="org-type"><span class="org-comment">sudo</span></span><span class="org-comment"> commands</span>
<span class="org-builtin">complete</span> -cf <span class="org-type">sudo</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-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 checkwinsize
<span class="org-comment-delimiter"># </span><span class="org-comment">Expand Aliases</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Enable history expansion with space</span>
<span class="org-builtin">shopt</span> -s expand_aliases <span class="org-comment-delimiter"># </span><span class="org-comment">E.g. typing !!&lt;space&gt; will replace the !! with your last command</span>
<span class="org-builtin">bind</span> Space:magic-space
<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-comment-delimiter"># </span><span class="org-comment">Expand Aliases</span>
<span class="org-builtin">shopt</span> -s autocd <span class="org-builtin">shopt</span> -s expand_aliases
<span class="org-comment-delimiter"># </span><span class="org-comment">Enable history appending instead of overwriting</span> <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 histappend <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
<span class="org-comment-delimiter"># </span><span class="org-comment">Save multi-line commands as one command</span>
<span class="org-builtin">shopt</span> -s cmdhist
</pre> </pre>
</div> </div>
</div> </div>
@ -170,7 +177,7 @@ xhost +local:root &gt; /dev/null <span class="org-highlight-numbers-number">2</s
<h3 id="org26dcd39">Prompt - <code>PS1</code></h3> <h3 id="org26dcd39">Prompt - <code>PS1</code></h3>
<div class="outline-text-3" id="text-org26dcd39"> <div class="outline-text-3" id="text-org26dcd39">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">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 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> </pre>
</div> </div>
</div> </div>
@ -180,8 +187,8 @@ xhost +local:root &gt; /dev/null <span class="org-highlight-numbers-number">2</s
<h3 id="org7dc0b98">Rebind up and down arrow keys to search through bash history</h3> <h3 id="org7dc0b98">Rebind up and down arrow keys to search through bash history</h3>
<div class="outline-text-3" id="text-org7dc0b98"> <div class="outline-text-3" id="text-org7dc0b98">
<div class="org-src-container"> <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> <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> <span class="org-builtin">bind</span> <span class="org-string">'"\e[B": history-search-forward'</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -195,13 +202,13 @@ xhost +local:root &gt; /dev/null <span class="org-highlight-numbers-number">2</s
<h4 id="orgad8f6ac">Better defaults for some commands</h4> <h4 id="orgad8f6ac">Better defaults for some commands</h4>
<div class="outline-text-4" id="text-orgad8f6ac"> <div class="outline-text-4" id="text-orgad8f6ac">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><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> <pre class="src src-bash"> <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> <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>
<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-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">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">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">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> <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> </pre>
</div> </div>
</div> </div>
@ -211,13 +218,13 @@ xhost +local:root &gt; /dev/null <span class="org-highlight-numbers-number">2</s
<h4 id="orgd2723b6">One letter aliases</h4> <h4 id="orgd2723b6">One letter aliases</h4>
<div class="outline-text-4" id="text-orgd2723b6"> <div class="outline-text-4" id="text-orgd2723b6">
<div class="org-src-container"> <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> <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">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">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">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">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">m</span>=<span class="org-string">"neomutt"</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">o</span>=<span class="org-string">"xdg-open"</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -227,7 +234,7 @@ xhost +local:root &gt; /dev/null <span class="org-highlight-numbers-number">2</s
<h4 id="org785c2af">Neovim</h4> <h4 id="org785c2af">Neovim</h4>
<div class="outline-text-4" id="text-org785c2af"> <div class="outline-text-4" id="text-org785c2af">
<div class="org-src-container"> <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 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> </pre>
</div> </div>
</div> </div>
@ -237,8 +244,8 @@ xhost +local:root &gt; /dev/null <span class="org-highlight-numbers-number">2</s
<h4 id="org61be992">Vim-like</h4> <h4 id="org61be992">Vim-like</h4>
<div class="outline-text-4" id="text-org61be992"> <div class="outline-text-4" id="text-org61be992">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">alias</span> :<span class="org-variable-name">q</span>=exit <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 <span class="org-builtin">alias</span> :<span class="org-variable-name">e</span>=nvim
</pre> </pre>
</div> </div>
</div> </div>
@ -248,7 +255,7 @@ xhost +local:root &gt; /dev/null <span class="org-highlight-numbers-number">2</s
<h4 id="org6f5c44a">Print each PATH entry on a separate line</h4> <h4 id="org6f5c44a">Print each PATH entry on a separate line</h4>
<div class="outline-text-4" id="text-org6f5c44a"> <div class="outline-text-4" id="text-org6f5c44a">
<div class="org-src-container"> <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 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> </pre>
</div> </div>
</div> </div>
@ -263,7 +270,7 @@ xhost +local:root &gt; /dev/null <span class="org-highlight-numbers-number">2</s
<h4 id="org716962c"><code>colors</code> - Display colors</h4> <h4 id="org716962c"><code>colors</code> - Display colors</h4>
<div class="outline-text-4" id="text-org716962c"> <div class="outline-text-4" id="text-org716962c">
<div class="org-src-container"> <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> <pre class="src src-bash"> colors<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">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">"Color escapes are %s\n"</span> <span class="org-string">'\e[${value};...;${value}m'</span>
@ -288,7 +295,7 @@ xhost +local:root &gt; /dev/null <span class="org-highlight-numbers-number">2</s
<span class="org-keyword">done</span> <span class="org-keyword">done</span>
<span class="org-type">echo</span>; <span class="org-type">echo</span> <span class="org-type">echo</span>; <span class="org-type">echo</span>
<span class="org-keyword">done</span> <span class="org-keyword">done</span>
<span class="org-rainbow-delimiters-depth-1">}</span> <span class="org-rainbow-delimiters-depth-1">}</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -305,9 +312,9 @@ small enough for one screen.
</p> </p>
<div class="org-src-container"> <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> <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; 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> <span class="org-rainbow-delimiters-depth-1">}</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -317,9 +324,9 @@ small enough for one screen.
<h4 id="org7b0ff56"><code>mkd</code> - Create a new directory and enter it</h4> <h4 id="org7b0ff56"><code>mkd</code> - Create a new directory and enter it</h4>
<div class="outline-text-4" id="text-org7b0ff56"> <div class="outline-text-4" id="text-org7b0ff56">
<div class="org-src-container"> <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> <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-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> <span class="org-rainbow-delimiters-depth-1">}</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -329,7 +336,7 @@ small enough for one screen.
<h4 id="org78520b0"><code>fs</code> - Filesize of directory</h4> <h4 id="org78520b0"><code>fs</code> - Filesize of directory</h4>
<div class="outline-text-4" id="text-org78520b0"> <div class="outline-text-4" id="text-org78520b0">
<div class="org-src-container"> <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> <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-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-builtin">local</span> <span class="org-variable-name">arg</span>=-sbh;
<span class="org-keyword">else</span> <span class="org-keyword">else</span>
@ -340,7 +347,7 @@ small enough for one screen.
<span class="org-keyword">else</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>* ./*; 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-keyword">fi</span>;
<span class="org-rainbow-delimiters-depth-1">}</span> <span class="org-rainbow-delimiters-depth-1">}</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -350,9 +357,9 @@ small enough for one screen.
<h4 id="orgfc72283"><code>nullify</code> - Redirect both standard output and standard error, as well as sending to background</h4> <h4 id="orgfc72283"><code>nullify</code> - Redirect both standard output and standard error, as well as sending to background</h4>
<div class="outline-text-4" id="text-orgfc72283"> <div class="outline-text-4" id="text-orgfc72283">
<div class="org-src-container"> <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> <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-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> <span class="org-rainbow-delimiters-depth-1">}</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -366,7 +373,7 @@ small enough for one screen.
</p> </p>
<div class="org-src-container"> <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> <pre class="src src-bash"> sms<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-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">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-comment-delimiter"># </span><span class="org-comment">khard phone --parsable | sort -u | fzf | IFS=$'\t' read -r phone_number name phone_type</span>
@ -377,7 +384,7 @@ small enough for one screen.
<span class="org-keyword">else</span> <span class="org-keyword">else</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 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-keyword">fi</span> <span class="org-keyword">fi</span>
<span class="org-rainbow-delimiters-depth-1">}</span> <span class="org-rainbow-delimiters-depth-1">}</span>
</pre> </pre>
</div> </div>
@ -393,9 +400,20 @@ Undocumented feature which sets the size to &ldquo;unlimited&rdquo;. <a href="ht
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">HISTFILESIZE</span>= <pre class="src src-bash"> <span class="org-comment-delimiter"># </span><span class="org-comment">Huge history. Doesn't appear to slow things down, so why not?</span>
<span class="org-builtin">export</span> <span class="org-variable-name">HISTSIZE</span>= <span class="org-variable-name">HISTSIZE</span>=<span class="org-highlight-numbers-number">500000</span>
<span class="org-builtin">export</span> <span class="org-variable-name">HISTTIMEFORMAT</span>=<span class="org-string">"[%F %T] "</span> <span class="org-variable-name">HISTFILESIZE</span>=<span class="org-highlight-numbers-number">100000</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Avoid duplicate entries</span>
<span class="org-variable-name">HISTCONTROL</span>=<span class="org-string">"erasedups:ignoreboth"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Don't record some commands</span>
<span class="org-builtin">export</span> <span class="org-variable-name">HISTIGNORE</span>=<span class="org-string">"&amp;:[ ]*:exit:ls:bg:fg:history:clear"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Use standard ISO 8601 timestamp</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">%F equivalent to %Y-%m-%d</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">%T equivalent to %H:%M:%S (24-hours format)</span>
<span class="org-variable-name">HISTTIMEFORMAT</span>=<span class="org-string">'%F %T '</span>
</pre> </pre>
</div> </div>
@ -404,7 +422,7 @@ Change the file location because certain bash sessions truncate <code>.bash_hist
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">HISTFILE</span>=~/.bash_eternal_history <pre class="src src-bash"> <span class="org-builtin">export</span> <span class="org-variable-name">HISTFILE</span>=~/.bash_eternal_history
</pre> </pre>
</div> </div>
@ -413,7 +431,7 @@ Force prompt to write history after every command. <a href="http://superuser.com
</p> </p>
<div class="org-src-container"> <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 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> </pre>
</div> </div>
</div> </div>
@ -424,8 +442,8 @@ Force prompt to write history after every command. <a href="http://superuser.com
<h2 id="bash_profile"><code>~/.bash_profile</code></h2> <h2 id="bash_profile"><code>~/.bash_profile</code></h2>
<div class="outline-text-2" id="text-bash_profile"> <div class="outline-text-2" id="text-bash_profile">
<div class="org-src-container"> <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 <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 <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> </pre>
</div> </div>
</div> </div>
@ -440,8 +458,8 @@ Force prompt to write history after every command. <a href="http://superuser.com
<h3 id="org15952b2">QT And GTK Themes</h3> <h3 id="org15952b2">QT And GTK Themes</h3>
<div class="outline-text-3" id="text-org15952b2"> <div class="outline-text-3" id="text-org15952b2">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">QT_QPA_PLATFORMTHEME</span>=<span class="org-string">"qt5ct"</span> <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> <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> </pre>
</div> </div>
</div> </div>
@ -451,7 +469,7 @@ Force prompt to write history after every command. <a href="http://superuser.com
<h3 id="org6c38c79">Gui program to ask for sudo password</h3> <h3 id="org6c38c79">Gui program to ask for sudo password</h3>
<div class="outline-text-3" id="text-org6c38c79"> <div class="outline-text-3" id="text-org6c38c79">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">SUDO_ASKPASS</span>=~/.local/bin/askpass-rofi <pre class="src src-bash"> <span class="org-builtin">export</span> <span class="org-variable-name">SUDO_ASKPASS</span>=~/.local/bin/askpass-rofi
</pre> </pre>
</div> </div>
</div> </div>
@ -464,10 +482,10 @@ Force prompt to write history after every command. <a href="http://superuser.com
Enable the keyring for applications run through the terminal Enable the keyring for applications run through the terminal
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -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">DESKTOP_SESSION</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>;<span class="org-keyword">then</span> <pre class="src src-bash"> <span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -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">DESKTOP_SESSION</span></span><span class="org-string">"</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">gnome-keyring-daemon</span> --start<span class="org-rainbow-delimiters-depth-1">)</span> <span class="org-builtin">eval</span> $<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">gnome-keyring-daemon</span> --start<span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-builtin">export</span> SSH_AUTH_SOCK <span class="org-builtin">export</span> SSH_AUTH_SOCK
<span class="org-keyword">fi</span> <span class="org-keyword">fi</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -477,11 +495,11 @@ Enable the keyring for applications run through the terminal
<h3 id="org10b40b3">Export some default applications</h3> <h3 id="org10b40b3">Export some default applications</h3>
<div class="outline-text-3" id="text-org10b40b3"> <div class="outline-text-3" id="text-org10b40b3">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">EDITOR</span>=<span class="org-string">"nvim"</span> <pre class="src src-bash"> <span class="org-builtin">export</span> <span class="org-variable-name">EDITOR</span>=<span class="org-string">"nvim"</span>
<span class="org-builtin">export</span> <span class="org-variable-name">TERMINAL</span>=<span class="org-string">"termite"</span> <span class="org-builtin">export</span> <span class="org-variable-name">TERMINAL</span>=<span class="org-string">"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">BROWSER</span>=<span class="org-string">"qutebrowser"</span>
<span class="org-builtin">export</span> <span class="org-variable-name">READER</span>=<span class="org-string">"zathura"</span> <span class="org-builtin">export</span> <span class="org-variable-name">READER</span>=<span class="org-string">"zathura"</span>
<span class="org-builtin">export</span> <span class="org-variable-name">FILE</span>=<span class="org-string">"ranger"</span> <span class="org-builtin">export</span> <span class="org-variable-name">FILE</span>=<span class="org-string">"ranger"</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -498,7 +516,7 @@ Enable the keyring for applications run through the terminal
This is important for termite to work when sshing in remote machines. This is important for termite to work when sshing in remote machines.
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">TERM</span>=xterm-color <pre class="src src-bash"> <span class="org-builtin">export</span> <span class="org-variable-name">TERM</span>=xterm-color
</pre> </pre>
</div> </div>
</div> </div>
@ -508,7 +526,7 @@ This is important for termite to work when sshing in remote machines.
<h4 id="org0fa2d26">XDG Default</h4> <h4 id="org0fa2d26">XDG Default</h4>
<div class="outline-text-4" id="text-org0fa2d26"> <div class="outline-text-4" id="text-org0fa2d26">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">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 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> </pre>
</div> </div>
</div> </div>
@ -518,8 +536,8 @@ This is important for termite to work when sshing in remote machines.
<h4 id="org51055fb">Use Ripgrep for FZF</h4> <h4 id="org51055fb">Use Ripgrep for FZF</h4>
<div class="outline-text-4" id="text-org51055fb"> <div class="outline-text-4" id="text-org51055fb">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">FZF_DEFAULT_COMMAND</span>=<span class="org-string">'rg --files --no-ignore --hidden --follow --glob "!.git/*"'</span> <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> <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> </pre>
</div> </div>
</div> </div>
@ -529,7 +547,7 @@ This is important for termite to work when sshing in remote machines.
<h4 id="org08d14fc">Goland</h4> <h4 id="org08d14fc">Goland</h4>
<div class="outline-text-4" id="text-org08d14fc"> <div class="outline-text-4" id="text-org08d14fc">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">GOPATH</span>=$<span class="org-variable-name">HOME</span>/go <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> </pre>
</div> </div>
</div> </div>
@ -539,7 +557,7 @@ This is important for termite to work when sshing in remote machines.
<h4 id="org18f49cf">Latex Path</h4> <h4 id="org18f49cf">Latex Path</h4>
<div class="outline-text-4" id="text-org18f49cf"> <div class="outline-text-4" id="text-org18f49cf">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">TEXMFHOME</span>=$<span class="org-variable-name">HOME</span>/.local/share/texmf <pre class="src src-bash"> <span class="org-builtin">export</span> <span class="org-variable-name">TEXMFHOME</span>=$<span class="org-variable-name">HOME</span>/.local/share/texmf
</pre> </pre>
</div> </div>
</div> </div>
@ -549,7 +567,7 @@ This is important for termite to work when sshing in remote machines.
<h4 id="org992e4cf">Bitwarden Session</h4> <h4 id="org992e4cf">Bitwarden Session</h4>
<div class="outline-text-4" id="text-org992e4cf"> <div class="outline-text-4" id="text-org992e4cf">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">BW_SESSION</span>=<span class="org-string">"HH0yycfocRSuGtq/iW1e6v13PQ1sShMXbMhdb/En94S6OcIXFnJlLEyU+dySsmf2YShY4CImoB5FrxgdPsY9Qw=="</span> <pre class="src src-bash"> <span class="org-builtin">export</span> <span class="org-variable-name">BW_SESSION</span>=<span class="org-string">"HH0yycfocRSuGtq/iW1e6v13PQ1sShMXbMhdb/En94S6OcIXFnJlLEyU+dySsmf2YShY4CImoB5FrxgdPsY9Qw=="</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -559,7 +577,7 @@ This is important for termite to work when sshing in remote machines.
<h4 id="org6bdbd18">Python Path</h4> <h4 id="org6bdbd18">Python Path</h4>
<div class="outline-text-4" id="text-org6bdbd18"> <div class="outline-text-4" id="text-org6bdbd18">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">PYTHONPATH</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">{PYTHONPATH}</span></span><span class="org-string">:/usr/lib/python3.9/site-packages/configobj"</span> <pre class="src src-bash"> <span class="org-builtin">export</span> <span class="org-variable-name">PYTHONPATH</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">{PYTHONPATH}</span></span><span class="org-string">:/usr/lib/python3.9/site-packages/configobj"</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -570,11 +588,11 @@ This is important for termite to work when sshing in remote machines.
<h3 id="org8a10d32">Path</h3> <h3 id="org8a10d32">Path</h3>
<div class="outline-text-3" id="text-org8a10d32"> <div class="outline-text-3" id="text-org8a10d32">
<div class="org-src-container"> <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> <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">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>=$<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>=~/.emacs.d/bin:$<span class="org-variable-name">PATH</span> <span class="org-variable-name">PATH</span>=~/.config/emacs/bin:$<span class="org-variable-name">PATH</span>
<span class="org-builtin">export</span> PATH <span class="org-builtin">export</span> PATH
</pre> </pre>
</div> </div>
</div> </div>
@ -584,9 +602,9 @@ This is important for termite to work when sshing in remote machines.
<h3 id="orgda5e48a">Automatically run <code>startx</code></h3> <h3 id="orgda5e48a">Automatically run <code>startx</code></h3>
<div class="outline-text-3" id="text-orgda5e48a"> <div class="outline-text-3" id="text-orgda5e48a">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -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">{DISPLAY}</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span> &amp;&amp; <span class="org-rainbow-delimiters-depth-1">[</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{XDG_VTNR}</span></span><span class="org-string">"</span> -eq <span class="org-highlight-numbers-number">1</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span> <pre class="src src-bash"> <span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -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">{DISPLAY}</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span> &amp;&amp; <span class="org-rainbow-delimiters-depth-1">[</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{XDG_VTNR}</span></span><span class="org-string">"</span> -eq <span class="org-highlight-numbers-number">1</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-keyword">exec</span> startx <span class="org-keyword">exec</span> startx
<span class="org-keyword">fi</span> <span class="org-keyword">fi</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -600,11 +618,11 @@ This is important for termite to work when sshing in remote machines.
Completion: Completion:
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Single tab for autocompletion</span> <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 set show-all-if-ambiguous on
<span class="org-comment-delimiter"># </span><span class="org-comment">Ignore case for completion</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Ignore case for completion</span>
set completion-ignore-case on set completion-ignore-case on
</pre> </pre>
</div> </div>
@ -612,15 +630,15 @@ set completion-ignore-case on
vi mode: vi mode:
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">VI mode (works in bash and zsh)</span> <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 set editing-mode vi
<span class="org-comment-delimiter"># </span><span class="org-comment">Show which mode (normal or insert)</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Show which mode (normal or insert)</span>
set show-mode-in-prompt on set show-mode-in-prompt on
<span class="org-comment-delimiter"># </span><span class="org-comment">Show the mode by changing the cursor</span> <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-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 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>
</pre> </pre>
</div> </div>
@ -628,19 +646,19 @@ set vi-cmd-mode-string \<span class="org-highlight-numbers-number">1</span>\e[<s
Key-bindings for vi-mode: Key-bindings for vi-mode:
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">set keymap vi-command <pre class="src src-conf"> set keymap vi-command
<span class="org-comment-delimiter"># </span><span class="org-comment">these are for vi-command mode</span> <span class="org-comment-delimiter"># </span><span class="org-comment">these are for vi-command mode</span>
Control-l: clear-screen Control-l: clear-screen
Control-a: beginning-of-line Control-a: beginning-of-line
Control-e: end-of-line Control-e: end-of-line
Control-w: <span class="org-string">"\C-aisudo \C-e"</span> Control-w: <span class="org-string">"\C-aisudo \C-e"</span>
set keymap vi-insert set keymap vi-insert
<span class="org-comment-delimiter"># </span><span class="org-comment">these are for vi-insert mode</span> <span class="org-comment-delimiter"># </span><span class="org-comment">these are for vi-insert mode</span>
Control-l: clear-screen Control-l: clear-screen
Control-a: beginning-of-line Control-a: beginning-of-line
Control-e: end-of-line Control-e: end-of-line
Control-w: <span class="org-string">"\C-asudo \C-e"</span> Control-w: <span class="org-string">"\C-asudo \C-e"</span>
</pre> </pre>
</div> </div>
@ -648,16 +666,16 @@ Control-w: <span class="org-string">"\C-asudo \C-e"</span>
Colorized completion Colorized completion
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Color files by types</span> <pre class="src src-conf"> <span class="org-comment-delimiter"># </span><span class="org-comment">Color files by types</span>
set colored-stats On set colored-stats On
<span class="org-comment-delimiter"># </span><span class="org-comment">Append char to indicate type</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Append char to indicate type</span>
set visible-stats On set visible-stats On
<span class="org-comment-delimiter"># </span><span class="org-comment">Mark symlinked directories</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Mark symlinked directories</span>
set mark-symlinked-directories On set mark-symlinked-directories On
<span class="org-comment-delimiter"># </span><span class="org-comment">Color the common prefix</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Color the common prefix</span>
set colored-completion-prefix On set colored-completion-prefix On
<span class="org-comment-delimiter"># </span><span class="org-comment">Color the common prefix in menu-complete</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Color the common prefix in menu-complete</span>
set menu-complete-display-prefix On set menu-complete-display-prefix On
</pre> </pre>
</div> </div>
@ -665,7 +683,7 @@ set menu-complete-display-prefix On
Don&rsquo;t echo <code>^C</code> after <code>Ctrl+C</code> is pressed. Don&rsquo;t echo <code>^C</code> after <code>Ctrl+C</code> is pressed.
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">set echo-control-characters off <pre class="src src-conf"> set echo-control-characters off
</pre> </pre>
</div> </div>
</div> </div>
@ -673,7 +691,7 @@ Don&rsquo;t echo <code>^C</code> after <code>Ctrl+C</code> is pressed.
</div> </div>
<div id="postamble" class="status"> <div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p> <p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2021-01-01 ven. 20:09</p> <p class="date">Created: 2021-01-03 dim. 22:19</p>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head> <head>
<!-- 2021-01-01 ven. 20:09 --> <!-- 2021-01-03 dim. 22:25 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Configuration Files</title> <title>Configuration Files</title>
<meta name="generator" content="Org mode" /> <meta name="generator" content="Org mode" />
@ -37,33 +37,33 @@
<h2 id="org3f17b04">SSH</h2> <h2 id="org3f17b04">SSH</h2>
<div class="outline-text-2" id="text-org3f17b04"> <div class="outline-text-2" id="text-org3f17b04">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">AddKeysToAgent yes <pre class="src src-conf"> AddKeysToAgent yes
Host grenoble Host grenoble
hostname 82.64.103.2 hostname 82.64.103.2
Port <span class="org-highlight-numbers-number">10022</span> Port <span class="org-highlight-numbers-number">10022</span>
user tdehaeze user tdehaeze
IdentityFile ~/.ssh/id_rsa IdentityFile ~/.ssh/id_rsa
Host wingaudio Host wingaudio
hostname 207.154.251.241 hostname 207.154.251.241
Port <span class="org-highlight-numbers-number">22</span> Port <span class="org-highlight-numbers-number">22</span>
user tdehaeze user tdehaeze
IdentityFile ~/.ssh/id_rsa IdentityFile ~/.ssh/id_rsa
Host octoprint Host octoprint
hostname 192.168.1.56 hostname 192.168.1.56
Port <span class="org-highlight-numbers-number">22</span> Port <span class="org-highlight-numbers-number">22</span>
user pi user pi
IdentityFile ~/.ssh/id_rsa IdentityFile ~/.ssh/id_rsa
Host hassio Host hassio
hostname 192.168.1.101 hostname 192.168.1.101
Port <span class="org-highlight-numbers-number">10022</span> Port <span class="org-highlight-numbers-number">10022</span>
user root user root
IdentityFile ~/.ssh/id_rsa IdentityFile ~/.ssh/id_rsa
Host nas Host nas
hostname 192.168.1.50 hostname 192.168.1.50
Port <span class="org-highlight-numbers-number">10022</span> Port <span class="org-highlight-numbers-number">10022</span>
user tdehaeze user tdehaeze
@ -77,11 +77,11 @@ Host nas
<h2 id="org10b81df">Font</h2> <h2 id="org10b81df">Font</h2>
<div class="outline-text-2" id="text-org10b81df"> <div class="outline-text-2" id="text-org10b81df">
<div class="org-src-container"> <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; <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;!DOCTYPE fontconfig SYSTEM <span class="org-string">'fonts.dtd'</span>&gt;
&lt;fontconfig&gt; &lt;fontconfig&gt;
&lt;alias&gt; &lt;alias&gt;
&lt;family&gt;serif&lt;/family&gt; &lt;family&gt;serif&lt;/family&gt;
&lt;prefer&gt;&lt;family&gt;Linux Libertine&lt;/family&gt;&lt;/prefer&gt; &lt;prefer&gt;&lt;family&gt;Linux Libertine&lt;/family&gt;&lt;/prefer&gt;
&lt;/alias&gt; &lt;/alias&gt;
@ -95,10 +95,10 @@ Host nas
&lt;/alias&gt; &lt;/alias&gt;
&lt;alias&gt; &lt;alias&gt;
&lt;family&gt;monospace&lt;/family&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;prefer&gt;&lt;family&gt;Hack Nerd Font Mono&lt;/family&gt;&lt;/prefer&gt;
&lt;/alias&gt; &lt;/alias&gt;
&lt;/fontconfig&gt; &lt;/fontconfig&gt;
</pre> </pre>
</div> </div>
</div> </div>
@ -108,8 +108,8 @@ Host nas
<h2 id="orge8ba5b4">GnuPG</h2> <h2 id="orge8ba5b4">GnuPG</h2>
<div class="outline-text-2" id="text-orge8ba5b4"> <div class="outline-text-2" id="text-orge8ba5b4">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">default-cache-ttl <span class="org-highlight-numbers-number">60480000</span> <pre class="src src-conf"> default-cache-ttl <span class="org-highlight-numbers-number">60480000</span>
max-cache-ttl <span class="org-highlight-numbers-number">60480000</span> max-cache-ttl <span class="org-highlight-numbers-number">60480000</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -119,22 +119,22 @@ max-cache-ttl <span class="org-highlight-numbers-number">60480000</span>
<h2 id="org3a8118a">Redshift</h2> <h2 id="org3a8118a">Redshift</h2>
<div class="outline-text-2" id="text-org3a8118a"> <div class="outline-text-2" id="text-org3a8118a">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">redshift</span>] <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-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">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">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-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">;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">location-provider</span>=manual
<span class="org-variable-name">adjustment-method</span>=randr <span class="org-variable-name">adjustment-method</span>=randr
[<span class="org-type">manual</span>] [<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">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> <span class="org-variable-name">lon</span>=<span class="org-highlight-numbers-number">5.7</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -144,26 +144,26 @@ max-cache-ttl <span class="org-highlight-numbers-number">60480000</span>
<h2 id="org91a7258">dmenu</h2> <h2 id="org91a7258">dmenu</h2>
<div class="outline-text-2" id="text-org91a7258"> <div class="outline-text-2" id="text-org91a7258">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">define the font for dmenu to be used</span> <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-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-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-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-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-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-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-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-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-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-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-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-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> <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> </pre>
</div> </div>
</div> </div>
@ -173,20 +173,20 @@ max-cache-ttl <span class="org-highlight-numbers-number">60480000</span>
<h2 id="orge5eb33f">Locale</h2> <h2 id="orge5eb33f">Locale</h2>
<div class="outline-text-2" id="text-orge5eb33f"> <div class="outline-text-2" id="text-orge5eb33f">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">LANG</span>=en_US.UTF-8 <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_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_NUMERIC</span>=fr_FR.UTF-8
<span class="org-variable-name">LC_TIME</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_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_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_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_PAPER</span>=fr_FR.UTF-8
<span class="org-variable-name">LC_NAME</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_ADDRESS</span>=fr_FR.UTF-8
<span class="org-variable-name">LC_TELEPHONE</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_MEASUREMENT</span>=fr_FR.UTF-8
<span class="org-variable-name">LC_IDENTIFICATION</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>= <span class="org-variable-name">LC_ALL</span>=
</pre> </pre>
</div> </div>
</div> </div>
@ -196,9 +196,9 @@ max-cache-ttl <span class="org-highlight-numbers-number">60480000</span>
<h2 id="orgd31ca2a"><code>bukurun</code> Rofi Frontend for Buku (Bookmark Manager)</h2> <h2 id="orgd31ca2a"><code>bukurun</code> Rofi Frontend for Buku (Bookmark Manager)</h2>
<div class="outline-text-2" id="text-orgd31ca2a"> <div class="outline-text-2" id="text-orgd31ca2a">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf"><span class="org-type">_rofi ()</span> { <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> rofi -dmenu -i -no-levenshtein-sort -width <span class="org-highlight-numbers-number">1000</span> <span class="org-string">"$@"</span>
} }
</pre> </pre>
</div> </div>
@ -206,8 +206,8 @@ max-cache-ttl <span class="org-highlight-numbers-number">60480000</span>
Display settings Display settings
</p> </p>
<div class="org-src-container"> <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> <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> <span class="org-variable-name">max_str_width</span>=<span class="org-highlight-numbers-number">80</span>
</pre> </pre>
</div> </div>
@ -215,11 +215,11 @@ Display settings
Keybindings Keybindings
</p> </p>
<div class="org-src-container"> <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> <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">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">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">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-variable-name">delete</span>=<span class="org-string">"Alt+d"</span>
</pre> </pre>
</div> </div>
@ -227,7 +227,7 @@ Keybindings
Colors Colors
</p> </p>
<div class="org-src-container"> <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 class="src src-conf"> <span class="org-variable-name">help_color</span>=<span class="org-string">"#2d7ed8"</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -235,7 +235,7 @@ Colors
</div> </div>
<div id="postamble" class="status"> <div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p> <p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2021-01-01 ven. 20:09</p> <p class="date">Created: 2021-01-03 dim. 22:25</p>
</div> </div>
</body> </body>
</html> </html>

2
docs/dist/style.css vendored

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -3,13 +3,14 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head> <head>
<!-- 2021-01-01 ven. 21:59 --> <!-- 2021-01-03 dim. 22:51 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Dotfiles - Manjaro Linux</title> <title>Dotfiles - Manjaro Linux</title>
<meta name="generator" content="Org mode" /> <meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" /> <meta name="author" content="Dehaeze Thomas" />
<link rel="stylesheet" type="text/css" href="./dist/style.css"/> <link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script> <script type="text/javascript" src="./dist/script.js"></script>
<style> #content {margin: auto;} </style>
</head> </head>
<body> <body>
<div id="org-div-home-and-up"> <div id="org-div-home-and-up">
@ -18,29 +19,13 @@
<a accesskey="H" href="./index.html"> HOME </a> <a accesskey="H" href="./index.html"> HOME </a>
</div><div id="content"> </div><div id="content">
<h1 class="title">Dotfiles - Manjaro Linux</h1> <h1 class="title">Dotfiles - Manjaro Linux</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#orgd79ce2e">Desktop Configuration</a></li>
<li><a href="#org462d26f">Editors</a></li>
<li><a href="#org18da288">Command Line</a></li>
<li><a href="#org44757cd">Multimedia</a></li>
<li><a href="#org4d5c16c">Internet Related</a></li>
<li><a href="#org573d686">PDF Reader</a></li>
<li><a href="#org868e93b">File Managers</a></li>
<li><a href="#org63ac801">Organization</a></li>
<li><a href="#orgd2e1086">Others</a></li>
</ul>
</div>
</div>
<p> <p>
The general installation process is described <a href="install.html">here</a>. The general installation procedure is described <a href="install.html">here</a>.
</p> </p>
<div id="outline-container-orgd79ce2e" class="outline-2"> <p>
<h2 id="orgd79ce2e">Desktop Configuration</h2> There are Specific configuration files for:
<div class="outline-text-2" id="text-orgd79ce2e"> </p>
<ul class="org-ul"> <ul class="org-ul">
<li><b>Windows Manager</b>: <a href="bspwm.html">BSPWM</a> and <a href="i3.html">I3</a></li> <li><b>Windows Manager</b>: <a href="bspwm.html">BSPWM</a> and <a href="i3.html">I3</a></li>
<li><b>Hotkey Manager</b>: <a href="sxhkd.html">SXHKD</a></li> <li><b>Hotkey Manager</b>: <a href="sxhkd.html">SXHKD</a></li>
@ -49,101 +34,29 @@ The general installation process is described <a href="install.html">here</a>.
<li><b>Compositor</b>: <a href="compositor.html">Picom</a></li> <li><b>Compositor</b>: <a href="compositor.html">Picom</a></li>
<li><b>Notification Manager</b>: <a href="notifications.html">Dunst</a></li> <li><b>Notification Manager</b>: <a href="notifications.html">Dunst</a></li>
<li><b>Service Manager</b>: <a href="systemd.html">Systemd</a></li> <li><b>Service Manager</b>: <a href="systemd.html">Systemd</a></li>
<li><a href="xconfig.html">X configuration</a></li> <li><b>Display Server</b>: <a href="xconfig.html">Xorg</a></li>
</ul> <li><b>Editors</b>: <a href="vim.html">Neovim</a> and <a href="./doom.html">Emacs (Doom)</a> (<a href="emacs-library-babel.html">library of babel</a>, <a href="emacs-snippets.html">snippets</a>)</li>
</div> <li><b>Shell</b>: <a href="bash.html">Bash</a></li>
</div> <li><b>Terminal Emulator</b>: <a href="termite.html">Termite</a></li>
<li><b>Terminal Multiplexer</b> <a href="tmux.html">TMUX</a></li>
<div id="outline-container-org462d26f" class="outline-2"> <li><b>Image Setup</b>: <a href="image.html">SXIV</a></li>
<h2 id="org462d26f">Editors</h2> <li><b>Music Setup</b>: <a href="music.html">NCMPCPP, Mopidy and Beets</a></li>
<div class="outline-text-2" id="text-org462d26f"> <li><b>Video Setup</b>: <a href="video.html">MPV</a></li>
<ul class="org-ul"> <li><b>Web Browser</b>: <a href="qutebrowser.html">Qutebrowser</a></li>
<li><a href="vim.html">Vim</a></li> <li><b>PDF Reader</b>: <a href="zathura.html">Zathura</a></li>
<li><a href="./doom.html">Doom Emacs</a> (<a href="emacs-library-babel.html">library of babel</a>, <a href="emacs-snippets.html">snippets</a>)</li> <li><b>GUI File Manager</b>: <a href="pcmanfm.html">Pcmanfm</a></li>
</ul> <li><b>Terminal File Manager</b>: <a href="ranger.html">Ranger</a></li>
</div> <li><b>Calendar</b>: <a href="calendar.html">Vdirsyncer and Khal</a></li>
</div> <li><b>Mails</b>: <a href="mail.html">Mbsync, Msmtp, Mu and Neomutt</a></li>
<li><b>Contacts</b>: <a href="contacts.html">Khard</a></li>
<div id="outline-container-org18da288" class="outline-2"> <li><b>RSS-Reader</b>: <a href="newsboat.html">Newsboat</a></li>
<h2 id="org18da288">Command Line</h2> <li><b>Version Control</b>: <a href="git.html">Git</a></li>
<div class="outline-text-2" id="text-org18da288"> <li><b>Scripts</b>: <a href="binaries.html">Scripts</a></li>
<ul class="org-ul"> <li><b>Desktop Applications</b>: <a href="applications.html">.desktop files</a></li>
<li><a href="bash.html">Bash</a> and <a href="zsh.html">ZSH</a></li> <li><b>Computation</b>: <a href="matlab.html">Matlab</a></li>
<li>Terminal: <a href="termite.html">Termite</a></li> <li><b>GUI Toolkit</b>: <a href="gtk.html">GTK</a></li>
<li>Terminal Multiplexer <a href="tmux.html">TMUX</a></li>
</ul>
</div>
</div>
<div id="outline-container-org44757cd" class="outline-2">
<h2 id="org44757cd">Multimedia</h2>
<div class="outline-text-2" id="text-org44757cd">
<ul class="org-ul">
<li><a href="image.html">Image</a></li>
<li><a href="music.html">Music</a></li>
<li><a href="video.html">Video</a></li>
</ul>
</div>
</div>
<div id="outline-container-org4d5c16c" class="outline-2">
<h2 id="org4d5c16c">Internet Related</h2>
<div class="outline-text-2" id="text-org4d5c16c">
<ul class="org-ul">
<li>Web Browser: <a href="qutebrowser.html">Qutebrowser</a></li>
<li>Bookmark Manager: <a href="bookmarks.html">Buku</a></li>
</ul>
</div>
</div>
<div id="outline-container-org573d686" class="outline-2">
<h2 id="org573d686">PDF Reader</h2>
<div class="outline-text-2" id="text-org573d686">
<ul class="org-ul">
<li><a href="zathura.html">Zathura</a></li>
</ul>
</div>
</div>
<div id="outline-container-org868e93b" class="outline-2">
<h2 id="org868e93b">File Managers</h2>
<div class="outline-text-2" id="text-org868e93b">
<ul class="org-ul">
<li>GUI: <a href="pcmanfm.html">Pcmanfm</a></li>
<li>Terminal based: <a href="ranger.html">Ranger</a></li>
</ul>
</div>
</div>
<div id="outline-container-org63ac801" class="outline-2">
<h2 id="org63ac801">Organization</h2>
<div class="outline-text-2" id="text-org63ac801">
<ul class="org-ul">
<li><a href="calendar.html">Calendar</a></li>
<li><a href="mail.html">Mail</a></li>
<li><a href="contacts.html">Contacts</a></li>
<li>RSS-Reader: <a href="newsboat.html">Newsboat</a></li>
</ul>
</div>
</div>
<div id="outline-container-orgd2e1086" class="outline-2">
<h2 id="orgd2e1086">Others</h2>
<div class="outline-text-2" id="text-orgd2e1086">
<ul class="org-ul">
<li><a href="applications.html">Desktop Applications</a></li>
<li><a href="matlab.html">Matlab</a></li>
<li>Some useful <a href="binaries.html">Binaries</a></li>
<li><a href="git.html">Git</a> Configuration</li>
<li><a href="gtk.html">GTK</a></li>
<li><a href="config.html">Other Config</a></li> <li><a href="config.html">Other Config</a></li>
</ul> </ul>
</div> </div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2021-01-01 ven. 21:59</p>
</div>
</body> </body>
</html> </html>

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head> <head>
<!-- 2021-01-01 ven. 20:09 --> <!-- 2021-01-03 dim. 22:25 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Music/Sound Configuration</title> <title>Music/Sound Configuration</title>
<meta name="generator" content="Org mode" /> <meta name="generator" content="Org mode" />
@ -40,14 +40,14 @@
<h2 id="pavucontrol"><code>pavucontrol</code> - Volume Control</h2> <h2 id="pavucontrol"><code>pavucontrol</code> - Volume Control</h2>
<div class="outline-text-2" id="text-pavucontrol"> <div class="outline-text-2" id="text-pavucontrol">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">window</span>] <pre class="src src-conf"> [<span class="org-type">window</span>]
<span class="org-variable-name">width</span>=<span class="org-highlight-numbers-number">500</span> <span class="org-variable-name">width</span>=<span class="org-highlight-numbers-number">500</span>
<span class="org-variable-name">height</span>=<span class="org-highlight-numbers-number">400</span> <span class="org-variable-name">height</span>=<span class="org-highlight-numbers-number">400</span>
<span class="org-variable-name">sinkInputType</span>=<span class="org-highlight-numbers-number">1</span> <span class="org-variable-name">sinkInputType</span>=<span class="org-highlight-numbers-number">1</span>
<span class="org-variable-name">sourceOutputType</span>=<span class="org-highlight-numbers-number">1</span> <span class="org-variable-name">sourceOutputType</span>=<span class="org-highlight-numbers-number">1</span>
<span class="org-variable-name">sinkType</span>=<span class="org-highlight-numbers-number">0</span> <span class="org-variable-name">sinkType</span>=<span class="org-highlight-numbers-number">0</span>
<span class="org-variable-name">sourceType</span>=<span class="org-highlight-numbers-number">1</span> <span class="org-variable-name">sourceType</span>=<span class="org-highlight-numbers-number">1</span>
<span class="org-variable-name">showVolumeMeters</span>=<span class="org-highlight-numbers-number">1</span> <span class="org-variable-name">showVolumeMeters</span>=<span class="org-highlight-numbers-number">1</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -57,36 +57,36 @@
<h2 id="mopidy"><code>mopidy</code> - Music Server</h2> <h2 id="mopidy"><code>mopidy</code> - Music Server</h2>
<div class="outline-text-2" id="text-mopidy"> <div class="outline-text-2" id="text-mopidy">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">spotify</span>] <pre class="src src-conf"> [<span class="org-type">spotify</span>]
<span class="org-variable-name">username</span> = dehaeze.thomas@gmail.com <span class="org-variable-name">username</span> = dehaeze.thomas@gmail.com
<span class="org-variable-name">password</span> = &lt;&lt;get-password(passname=<span class="org-string">"spotify.com/dehaeze.thomas@gmail.com"</span>)&gt;&gt; <span class="org-variable-name">password</span> = &lt;&lt;get-password(passname=<span class="org-string">"spotify.com/dehaeze.thomas@gmail.com"</span>)&gt;&gt;
<span class="org-variable-name">client_id</span> = 9dd02534-f038-46d8-946e-bfe72498204e <span class="org-variable-name">client_id</span> = 9dd02534-f038-46d8-946e-bfe72498204e
<span class="org-variable-name">client_secret</span> = &lt;&lt;get-password(passname=<span class="org-string">"spotify/client_secret"</span>)&gt;&gt; <span class="org-variable-name">client_secret</span> = &lt;&lt;get-password(passname=<span class="org-string">"spotify/client_secret"</span>)&gt;&gt;
<span class="org-variable-name">bitrate</span> = <span class="org-highlight-numbers-number">320</span> <span class="org-variable-name">bitrate</span> = <span class="org-highlight-numbers-number">320</span>
[<span class="org-type">mpd</span>] [<span class="org-type">mpd</span>]
<span class="org-variable-name">enabled</span> = true <span class="org-variable-name">enabled</span> = true
<span class="org-variable-name">hostname</span> = 127.0.0.1 <span class="org-variable-name">hostname</span> = 127.0.0.1
<span class="org-variable-name">port</span> = <span class="org-highlight-numbers-number">6600</span> <span class="org-variable-name">port</span> = <span class="org-highlight-numbers-number">6600</span>
<span class="org-variable-name">password</span> = <span class="org-variable-name">password</span> =
<span class="org-variable-name">max_connections</span> = <span class="org-highlight-numbers-number">20</span> <span class="org-variable-name">max_connections</span> = <span class="org-highlight-numbers-number">20</span>
<span class="org-variable-name">connection_timeout</span> = <span class="org-highlight-numbers-number">60</span> <span class="org-variable-name">connection_timeout</span> = <span class="org-highlight-numbers-number">60</span>
<span class="org-variable-name">zeroconf</span> = Mopidy MPD server on $hostname <span class="org-variable-name">zeroconf</span> = Mopidy MPD server on $hostname
<span class="org-variable-name">command_blacklist</span> = listall,listallinfo <span class="org-variable-name">command_blacklist</span> = listall,listallinfo
<span class="org-variable-name">default_playlist_scheme</span> = m3u <span class="org-variable-name">default_playlist_scheme</span> = m3u
[<span class="org-type">jellyfin</span>] [<span class="org-type">jellyfin</span>]
<span class="org-variable-name">hostname</span> = https://jellyfin.tdehaeze.xyz/ <span class="org-variable-name">hostname</span> = https://jellyfin.tdehaeze.xyz/
<span class="org-variable-name">username</span> = tdehaeze <span class="org-variable-name">username</span> = tdehaeze
<span class="org-variable-name">password</span> = &lt;&lt;get-password(passname=<span class="org-string">"music.tdehaeze.xyz/tdehaeze"</span>)&gt;&gt; <span class="org-variable-name">password</span> = &lt;&lt;get-password(passname=<span class="org-string">"music.tdehaeze.xyz/tdehaeze"</span>)&gt;&gt;
<span class="org-variable-name">libraries</span> = Music <span class="org-variable-name">libraries</span> = Music
<span class="org-variable-name">albumartistsort</span> = True <span class="org-variable-name">albumartistsort</span> = True
<span class="org-variable-name">album_format</span> = {ProductionYear} - {Name} <span class="org-variable-name">album_format</span> = {ProductionYear} - {Name}
[<span class="org-type">file</span>] [<span class="org-type">file</span>]
<span class="org-variable-name">enabled</span> = true <span class="org-variable-name">enabled</span> = true
<span class="org-variable-name">media_dirs</span> = /home/thomas/Music <span class="org-variable-name">media_dirs</span> = /home/thomas/Music
<span class="org-variable-name">excluded_file_extensions</span> = <span class="org-variable-name">excluded_file_extensions</span> =
.db .db
.directory .directory
.html .html
@ -119,7 +119,7 @@ Cheatsheet: <a href="https://pkgbuild.com/~jelle/ncmpcpp/">https://pkgbuild.com/
Configuration directory. Configuration directory.
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">ncmpcpp_directory</span> = ~/.config/ncmpcpp <pre class="src src-conf"> <span class="org-variable-name">ncmpcpp_directory</span> = ~/.config/ncmpcpp
</pre> </pre>
</div> </div>
@ -127,9 +127,9 @@ Configuration directory.
MPD Configuration. MPD Configuration.
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">mpd_host</span> = localhost <pre class="src src-conf"> <span class="org-variable-name">mpd_host</span> = localhost
<span class="org-variable-name">mpd_port</span> = <span class="org-highlight-numbers-number">6600</span> <span class="org-variable-name">mpd_port</span> = <span class="org-highlight-numbers-number">6600</span>
<span class="org-variable-name">mpd_music_dir</span> = ~/Music <span class="org-variable-name">mpd_music_dir</span> = ~/Music
</pre> </pre>
</div> </div>
@ -137,7 +137,7 @@ MPD Configuration.
Notification of song change. Notification of song change.
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">execute_on_song_change</span> = dunstify --replace=<span class="org-highlight-numbers-number">19845</span> <span class="org-string">"Now Playing &#9835;"</span> <span class="org-string">"$(mpc current)"</span> <pre class="src src-conf"> <span class="org-variable-name">execute_on_song_change</span> = dunstify --replace=<span class="org-highlight-numbers-number">19845</span> <span class="org-string">"Now Playing &#9835;"</span> <span class="org-string">"$(mpc current)"</span>
</pre> </pre>
</div> </div>
@ -145,11 +145,11 @@ Notification of song change.
Better user interface Better user interface
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">user_interface</span> = <span class="org-string">"alternative"</span> <pre class="src src-conf"> <span class="org-variable-name">user_interface</span> = <span class="org-string">"alternative"</span>
<span class="org-variable-name">playlist_editor_display_mode</span> = <span class="org-string">"columns"</span> <span class="org-variable-name">playlist_editor_display_mode</span> = <span class="org-string">"columns"</span>
<span class="org-variable-name">search_engine_display_mode</span> = <span class="org-string">"columns"</span> <span class="org-variable-name">search_engine_display_mode</span> = <span class="org-string">"columns"</span>
<span class="org-variable-name">browser_display_mode</span> = <span class="org-string">"columns"</span> <span class="org-variable-name">browser_display_mode</span> = <span class="org-string">"columns"</span>
<span class="org-variable-name">playlist_display_mode</span> = <span class="org-string">"columns"</span> <span class="org-variable-name">playlist_display_mode</span> = <span class="org-string">"columns"</span>
</pre> </pre>
</div> </div>
@ -157,13 +157,13 @@ Better user interface
Sorting by tracking number and then title Sorting by tracking number and then title
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">browser_sort_mode</span> = <span class="org-string">"format"</span> <pre class="src src-conf"> <span class="org-variable-name">browser_sort_mode</span> = <span class="org-string">"format"</span>
<span class="org-variable-name">browser_sort_format</span> = <span class="org-string">'{%n - %t}|{%t}'</span> <span class="org-variable-name">browser_sort_format</span> = <span class="org-string">'{%n - %t}|{%t}'</span>
</pre> </pre>
</div> </div>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">ask_before_clearing_playlists</span> = <span class="org-string">"no"</span> <pre class="src src-conf"> <span class="org-variable-name">ask_before_clearing_playlists</span> = <span class="org-string">"no"</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -173,41 +173,41 @@ Sorting by tracking number and then title
<h3 id="orga43b7ae">Bindings</h3> <h3 id="orga43b7ae">Bindings</h3>
<div class="outline-text-3" id="text-orga43b7ae"> <div class="outline-text-3" id="text-orga43b7ae">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">def_key <span class="org-string">"q"</span> <pre class="src src-conf"> def_key <span class="org-string">"q"</span>
run_external_command <span class="org-string">"if [ $TMUX ]; then tmux detach; fi"</span> run_external_command <span class="org-string">"sh -c 'if [ $TMUX ] ; then tmux detach; fi'"</span>
def_key <span class="org-string">"Q"</span> def_key <span class="org-string">"Q"</span>
quit quit
def_key <span class="org-string">"g"</span> def_key <span class="org-string">"g"</span>
move_home move_home
def_key <span class="org-string">"G"</span> def_key <span class="org-string">"G"</span>
move_end move_end
def_key <span class="org-string">"j"</span> def_key <span class="org-string">"j"</span>
scroll_down scroll_down
def_key <span class="org-string">"k"</span> def_key <span class="org-string">"k"</span>
scroll_up scroll_up
def_key <span class="org-string">"ctrl-u"</span> def_key <span class="org-string">"ctrl-u"</span>
page_up page_up
def_key <span class="org-string">"ctrl-d"</span> def_key <span class="org-string">"ctrl-d"</span>
page_down page_down
def_key <span class="org-string">"l"</span> def_key <span class="org-string">"l"</span>
enter_directory enter_directory
def_key <span class="org-string">"h"</span> def_key <span class="org-string">"h"</span>
jump_to_parent_directory jump_to_parent_directory
def_key <span class="org-string">"."</span> def_key <span class="org-string">"."</span>
show_lyrics show_lyrics
def_key <span class="org-string">"n"</span> def_key <span class="org-string">"n"</span>
next_found_item next_found_item
def_key <span class="org-string">"N"</span> def_key <span class="org-string">"N"</span>
previous_found_item previous_found_item
def_key <span class="org-string">"J"</span> def_key <span class="org-string">"J"</span>
move_sort_order_down move_sort_order_down
def_key <span class="org-string">"K"</span> def_key <span class="org-string">"K"</span>
move_sort_order_up move_sort_order_up
def_key <span class="org-string">"d"</span> def_key <span class="org-string">"d"</span>
delete_playlist_items delete_playlist_items
def_key <span class="org-string">"+"</span> def_key <span class="org-string">"+"</span>
volume_up volume_up
def_key <span class="org-string">"-"</span> def_key <span class="org-string">"-"</span>
volume_down volume_down
</pre> </pre>
@ -224,14 +224,14 @@ def_key <span class="org-string">"-"</span>
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">directory: ~/Music <pre class="src src-conf"> directory: ~/Music
library: ~/Music/musiclibrary.db library: ~/Music/musiclibrary.db
art_filename: cover art_filename: cover
import: import:
move: yes move: yes
plugins: fromfilename discogs plugins: fromfilename discogs
</pre> </pre>
</div> </div>
</div> </div>
@ -241,26 +241,26 @@ plugins: fromfilename discogs
<h2 id="curseradio"><code>curseradio</code> - Radio with curseradio</h2> <h2 id="curseradio"><code>curseradio</code> - Radio with curseradio</h2>
<div class="outline-text-2" id="text-curseradio"> <div class="outline-text-2" id="text-curseradio">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">opml</span>] <pre class="src src-conf"> [<span class="org-type">opml</span>]
<span class="org-variable-name">root</span> = http://opml.radiotime.com/ <span class="org-variable-name">root</span> = http://opml.radiotime.com/
[<span class="org-type">playback</span>] [<span class="org-type">playback</span>]
<span class="org-variable-name">command</span> = /usr/bin/mpv <span class="org-variable-name">command</span> = /usr/bin/mpv
[<span class="org-type">interface</span>] [<span class="org-type">interface</span>]
<span class="org-variable-name">keymap</span> = vi <span class="org-variable-name">keymap</span> = vi
[<span class="org-type">keymap.vi</span>] [<span class="org-type">keymap.vi</span>]
<span class="org-variable-name">up</span> = k <span class="org-variable-name">up</span> = k
<span class="org-variable-name">down</span> = j <span class="org-variable-name">down</span> = j
<span class="org-variable-name">start</span> = <span class="org-highlight-numbers-number">0</span> <span class="org-variable-name">start</span> = <span class="org-highlight-numbers-number">0</span>
<span class="org-variable-name">end</span> = $ <span class="org-variable-name">end</span> = $
<span class="org-variable-name">pageup</span> = u <span class="org-variable-name">pageup</span> = u
<span class="org-variable-name">pagedown</span> = d <span class="org-variable-name">pagedown</span> = d
<span class="org-variable-name">enter</span> = l <span class="org-variable-name">enter</span> = l
<span class="org-variable-name">stop</span> = p <span class="org-variable-name">stop</span> = p
<span class="org-variable-name">exit</span> = q <span class="org-variable-name">exit</span> = q
<span class="org-variable-name">favourite</span> = f <span class="org-variable-name">favourite</span> = f
</pre> </pre>
</div> </div>
</div> </div>
@ -268,7 +268,7 @@ plugins: fromfilename discogs
</div> </div>
<div id="postamble" class="status"> <div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p> <p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2021-01-01 ven. 20:09</p> <p class="date">Created: 2021-01-03 dim. 22:25</p>
</div> </div>
</body> </body>
</html> </html>

File diff suppressed because it is too large Load Diff

View File

@ -3,9 +3,9 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head> <head>
<!-- 2021-01-01 ven. 20:09 --> <!-- 2021-01-03 dim. 22:51 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>PCMANFM</title> <title>PCManFM</title>
<meta name="generator" content="Org mode" /> <meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" /> <meta name="author" content="Dehaeze Thomas" />
<link rel="stylesheet" type="text/css" href="./dist/style.css"/> <link rel="stylesheet" type="text/css" href="./dist/style.css"/>
@ -17,7 +17,7 @@
| |
<a accesskey="H" href="./index.html"> HOME </a> <a accesskey="H" href="./index.html"> HOME </a>
</div><div id="content"> </div><div id="content">
<h1 class="title">PCMANFM</h1> <h1 class="title">PCManFM</h1>
<div id="table-of-contents"> <div id="table-of-contents">
<h2>Table of Contents</h2> <h2>Table of Contents</h2>
<div id="text-table-of-contents"> <div id="text-table-of-contents">
@ -33,8 +33,8 @@
<h2 id="org0ad1961">Config</h2> <h2 id="org0ad1961">Config</h2>
<div class="outline-text-2" id="text-org0ad1961"> <div class="outline-text-2" id="text-org0ad1961">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">config</span>] <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> <span class="org-variable-name">bm_open_method</span>=<span class="org-highlight-numbers-number">0</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -44,10 +44,10 @@
<h2 id="org9ed27d2">Volume</h2> <h2 id="org9ed27d2">Volume</h2>
<div class="outline-text-2" id="text-org9ed27d2"> <div class="outline-text-2" id="text-org9ed27d2">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">volume</span>] <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_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">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> <span class="org-variable-name">autorun</span>=<span class="org-highlight-numbers-number">0</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -57,24 +57,24 @@
<h2 id="org8c3fa60">UI</h2> <h2 id="org8c3fa60">UI</h2>
<div class="outline-text-2" id="text-org8c3fa60"> <div class="outline-text-2" id="text-org8c3fa60">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">ui</span>] <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">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">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_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">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">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">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">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">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">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">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">side_pane_mode</span>=places
<span class="org-variable-name">view_mode</span>=icon <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">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">sort</span>=mtime;descending;
<span class="org-variable-name">toolbar</span>=newtab;navigation;home; <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">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> <span class="org-variable-name">pathbar_mode_buttons</span>=<span class="org-highlight-numbers-number">0</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -82,7 +82,7 @@
</div> </div>
<div id="postamble" class="status"> <div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p> <p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2021-01-01 ven. 20:09</p> <p class="date">Created: 2021-01-03 dim. 22:51</p>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head> <head>
<!-- 2021-01-01 ven. 20:09 --> <!-- 2021-01-03 dim. 22:19 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Qutebrowser Configuration</title> <title>Qutebrowser Configuration</title>
<meta name="generator" content="Org mode" /> <meta name="generator" content="Org mode" />
@ -61,10 +61,10 @@
<h2 id="orgbf1db67">Import</h2> <h2 id="orgbf1db67">Import</h2>
<div class="outline-text-2" id="text-orgbf1db67"> <div class="outline-text-2" id="text-orgbf1db67">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python"><span class="org-keyword">from</span> qutebrowser.config.configfiles <span class="org-keyword">import</span> ConfigAPI <pre class="src src-python"> <span class="org-keyword">from</span> qutebrowser.config.configfiles <span class="org-keyword">import</span> ConfigAPI
<span class="org-keyword">from</span> qutebrowser.config.config <span class="org-keyword">import</span> ConfigContainer <span class="org-keyword">from</span> qutebrowser.config.config <span class="org-keyword">import</span> ConfigContainer
<span class="org-keyword">import</span> sys, os <span class="org-keyword">import</span> sys, os
</pre> </pre>
</div> </div>
</div> </div>
@ -74,10 +74,10 @@
<h2 id="org5c0c4c4">General config</h2> <h2 id="org5c0c4c4">General config</h2>
<div class="outline-text-2" id="text-org5c0c4c4"> <div class="outline-text-2" id="text-org5c0c4c4">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python"><span class="org-variable-name">c.aliases</span> = {<span class="org-string">'w'</span>: <span class="org-string">'session-save'</span>, <span class="org-string">'q'</span>: <span class="org-string">'quit'</span>, <span class="org-string">'wq'</span>: <span class="org-string">'quit --save'</span>} <pre class="src src-python"> <span class="org-variable-name">c.aliases</span> = {<span class="org-string">'w'</span>: <span class="org-string">'session-save'</span>, <span class="org-string">'q'</span>: <span class="org-string">'quit'</span>, <span class="org-string">'wq'</span>: <span class="org-string">'quit --save'</span>}
<span class="org-variable-name">c.auto_save.session</span> = <span class="org-constant">False</span> <span class="org-variable-name">c.auto_save.session</span> = <span class="org-constant">False</span>
<span class="org-variable-name">c.backend</span> = <span class="org-string">'webengine'</span> <span class="org-variable-name">c.backend</span> = <span class="org-string">'webengine'</span>
<span class="org-variable-name">c.confirm_quit</span> = [<span class="org-string">'downloads'</span>] <span class="org-variable-name">c.confirm_quit</span> = [<span class="org-string">'downloads'</span>]
</pre> </pre>
</div> </div>
</div> </div>
@ -87,13 +87,13 @@
<h2 id="org0471984">Content</h2> <h2 id="org0471984">Content</h2>
<div class="outline-text-2" id="text-org0471984"> <div class="outline-text-2" id="text-org0471984">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python"><span class="org-variable-name">c.content.autoplay</span> = <span class="org-constant">False</span> <pre class="src src-python"> <span class="org-variable-name">c.content.autoplay</span> = <span class="org-constant">False</span>
<span class="org-variable-name">c.content.notifications</span> = <span class="org-constant">False</span> <span class="org-variable-name">c.content.notifications</span> = <span class="org-constant">False</span>
<span class="org-variable-name">c.content.geolocation</span> = <span class="org-string">'ask'</span> <span class="org-variable-name">c.content.geolocation</span> = <span class="org-string">'ask'</span>
<span class="org-variable-name">c.content.javascript.alert</span> = <span class="org-constant">True</span> <span class="org-variable-name">c.content.javascript.alert</span> = <span class="org-constant">True</span>
<span class="org-variable-name">c.content.javascript.can_access_clipboard</span> = <span class="org-constant">True</span> <span class="org-variable-name">c.content.javascript.can_access_clipboard</span> = <span class="org-constant">True</span>
<span class="org-variable-name">c.content.pdfjs</span> = <span class="org-constant">False</span> <span class="org-variable-name">c.content.pdfjs</span> = <span class="org-constant">False</span>
<span class="org-variable-name">c.content.proxy</span> = <span class="org-string">'system'</span> <span class="org-variable-name">c.content.proxy</span> = <span class="org-string">'system'</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -103,7 +103,7 @@
<h2 id="org9d328f1">Editor</h2> <h2 id="org9d328f1">Editor</h2>
<div class="outline-text-2" id="text-org9d328f1"> <div class="outline-text-2" id="text-org9d328f1">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python"><span class="org-variable-name">c.editor.command</span> = [<span class="org-string">'/usr/bin/termite'</span>, <span class="org-string">'--class="Floating"'</span>, <span class="org-string">'-e'</span>, <span class="org-string">'nvim {}'</span>] <pre class="src src-python"> <span class="org-variable-name">c.editor.command</span> = [<span class="org-string">'/usr/bin/termite'</span>, <span class="org-string">'--class="Floating"'</span>, <span class="org-string">'-e'</span>, <span class="org-string">'nvim {}'</span>]
</pre> </pre>
</div> </div>
</div> </div>
@ -113,12 +113,12 @@
<h2 id="org2f9fab8">Downloads</h2> <h2 id="org2f9fab8">Downloads</h2>
<div class="outline-text-2" id="text-org2f9fab8"> <div class="outline-text-2" id="text-org2f9fab8">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python"><span class="org-variable-name">c.downloads.location.directory</span> = <span class="org-string">'$HOME/Downloads/'</span> <pre class="src src-python"> <span class="org-variable-name">c.downloads.location.directory</span> = <span class="org-string">'$HOME/Downloads/'</span>
<span class="org-variable-name">c.downloads.location.prompt</span> = <span class="org-constant">True</span> <span class="org-variable-name">c.downloads.location.prompt</span> = <span class="org-constant">True</span>
<span class="org-variable-name">c.downloads.location.remember</span> = <span class="org-constant">True</span> <span class="org-variable-name">c.downloads.location.remember</span> = <span class="org-constant">True</span>
<span class="org-variable-name">c.downloads.location.suggestion</span> = <span class="org-string">'path'</span> <span class="org-variable-name">c.downloads.location.suggestion</span> = <span class="org-string">'path'</span>
<span class="org-variable-name">c.downloads.position</span> = <span class="org-string">'bottom'</span> <span class="org-variable-name">c.downloads.position</span> = <span class="org-string">'bottom'</span>
<span class="org-variable-name">c.downloads.remove_finished</span> = <span class="org-highlight-numbers-number">10000</span> <span class="org-variable-name">c.downloads.remove_finished</span> = <span class="org-highlight-numbers-number">10000</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -128,7 +128,7 @@
<h2 id="org8e4c9d3">Colors</h2> <h2 id="org8e4c9d3">Colors</h2>
<div class="outline-text-2" id="text-org8e4c9d3"> <div class="outline-text-2" id="text-org8e4c9d3">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python"><span class="org-comment-delimiter"># </span><span class="org-comment">c.colors.webpage.darkmode.enabled = True</span> <pre class="src src-python"> <span class="org-comment-delimiter"># </span><span class="org-comment">c.colors.webpage.darkmode.enabled = True</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -138,9 +138,9 @@
<h2 id="org945a9d5">Fonts</h2> <h2 id="org945a9d5">Fonts</h2>
<div class="outline-text-2" id="text-org945a9d5"> <div class="outline-text-2" id="text-org945a9d5">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python"><span class="org-variable-name">c.fonts.default_family</span> = [<span class="org-string">"Hack Nerd Font Mono"</span>, <span class="org-string">"DejaVu Sans Mono"</span>, <span class="org-string">"Monaco"</span>] <pre class="src src-python"> <span class="org-variable-name">c.fonts.default_family</span> = [<span class="org-string">"Hack Nerd Font Mono"</span>, <span class="org-string">"DejaVu Sans Mono"</span>, <span class="org-string">"Monaco"</span>]
<span class="org-variable-name">c.fonts.prompts</span> = <span class="org-string">'10pt monospace'</span> <span class="org-variable-name">c.fonts.prompts</span> = <span class="org-string">'10pt monospace'</span>
<span class="org-variable-name">c.fonts.statusbar</span> = <span class="org-string">'10pt monospace'</span> <span class="org-variable-name">c.fonts.statusbar</span> = <span class="org-string">'10pt monospace'</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -150,10 +150,10 @@
<h2 id="org9d6e7d9">Input</h2> <h2 id="org9d6e7d9">Input</h2>
<div class="outline-text-2" id="text-org9d6e7d9"> <div class="outline-text-2" id="text-org9d6e7d9">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python">c.<span class="org-builtin">input</span>.insert_mode.auto_enter = <span class="org-constant">True</span> <pre class="src src-python"> c.<span class="org-builtin">input</span>.insert_mode.auto_enter = <span class="org-constant">True</span>
c.<span class="org-builtin">input</span>.insert_mode.auto_leave = <span class="org-constant">True</span> c.<span class="org-builtin">input</span>.insert_mode.auto_leave = <span class="org-constant">True</span>
c.<span class="org-builtin">input</span>.insert_mode.auto_load = <span class="org-constant">False</span> c.<span class="org-builtin">input</span>.insert_mode.auto_load = <span class="org-constant">False</span>
c.<span class="org-builtin">input</span>.insert_mode.plugins = <span class="org-constant">True</span> c.<span class="org-builtin">input</span>.insert_mode.plugins = <span class="org-constant">True</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -163,8 +163,8 @@ c.<span class="org-builtin">input</span>.insert_mode.plugins = <span class="org-
<h2 id="orgf8a9f79">New Instance Options</h2> <h2 id="orgf8a9f79">New Instance Options</h2>
<div class="outline-text-2" id="text-orgf8a9f79"> <div class="outline-text-2" id="text-orgf8a9f79">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python"><span class="org-variable-name">c.new_instance_open_target</span> = <span class="org-string">'tab'</span> <pre class="src src-python"> <span class="org-variable-name">c.new_instance_open_target</span> = <span class="org-string">'tab'</span>
<span class="org-variable-name">c.new_instance_open_target_window</span> = <span class="org-string">'last-focused'</span> <span class="org-variable-name">c.new_instance_open_target_window</span> = <span class="org-string">'last-focused'</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -174,7 +174,7 @@ c.<span class="org-builtin">input</span>.insert_mode.plugins = <span class="org-
<h2 id="org843b551">Spell Check</h2> <h2 id="org843b551">Spell Check</h2>
<div class="outline-text-2" id="text-org843b551"> <div class="outline-text-2" id="text-org843b551">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python"><span class="org-variable-name">c.spellcheck.languages</span> = [<span class="org-string">'en-US'</span>, <span class="org-string">'fr-FR'</span>] <pre class="src src-python"> <span class="org-variable-name">c.spellcheck.languages</span> = [<span class="org-string">'en-US'</span>, <span class="org-string">'fr-FR'</span>]
</pre> </pre>
</div> </div>
</div> </div>
@ -184,19 +184,19 @@ c.<span class="org-builtin">input</span>.insert_mode.plugins = <span class="org-
<h2 id="orgab02456">Status Bar</h2> <h2 id="orgab02456">Status Bar</h2>
<div class="outline-text-2" id="text-orgab02456"> <div class="outline-text-2" id="text-orgab02456">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python"><span class="org-comment-delimiter"># </span><span class="org-comment">Hide the statusbar unless a message is shown.</span> <pre class="src src-python"> <span class="org-comment-delimiter"># </span><span class="org-comment">Hide the statusbar unless a message is shown.</span>
<span class="org-variable-name">c.statusbar.position</span> = <span class="org-string">'bottom'</span> <span class="org-variable-name">c.statusbar.position</span> = <span class="org-string">'bottom'</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">List of widgets displayed in the statusbar.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">List of widgets displayed in the statusbar.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Valid values:</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Valid values:</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">- url: Current page URL.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">- url: Current page URL.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">- scroll: Percentage of the current page position like `10%`.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">- scroll: Percentage of the current page position like `10%`.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">- scroll_raw: Raw percentage of the current page position like `10`.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">- scroll_raw: Raw percentage of the current page position like `10`.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">- history: Display an arrow when possible to go back/forward in history.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">- history: Display an arrow when possible to go back/forward in history.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">- tabs: Current active tab, e.g. `2`.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">- tabs: Current active tab, e.g. `2`.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">- keypress: Display pressed keys when composing a vi command.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">- keypress: Display pressed keys when composing a vi command.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">- progress: Progress bar for the current page loading.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">- progress: Progress bar for the current page loading.</span>
<span class="org-variable-name">c.statusbar.widgets</span> = [<span class="org-string">'keypress'</span>, <span class="org-string">'url'</span>, <span class="org-string">'scroll'</span>, <span class="org-string">'history'</span>, <span class="org-string">'progress'</span>] <span class="org-variable-name">c.statusbar.widgets</span> = [<span class="org-string">'keypress'</span>, <span class="org-string">'url'</span>, <span class="org-string">'scroll'</span>, <span class="org-string">'history'</span>, <span class="org-string">'progress'</span>]
</pre> </pre>
</div> </div>
</div> </div>
@ -206,45 +206,45 @@ c.<span class="org-builtin">input</span>.insert_mode.plugins = <span class="org-
<h2 id="org5603d6f">Tabs</h2> <h2 id="org5603d6f">Tabs</h2>
<div class="outline-text-2" id="text-org5603d6f"> <div class="outline-text-2" id="text-org5603d6f">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python"><span class="org-comment-delimiter"># </span><span class="org-comment">Open new tabs (middleclick/ctrl+click) in the background.</span> <pre class="src src-python"> <span class="org-comment-delimiter"># </span><span class="org-comment">Open new tabs (middleclick/ctrl+click) in the background.</span>
<span class="org-variable-name">c.tabs.background</span> = <span class="org-constant">True</span> <span class="org-variable-name">c.tabs.background</span> = <span class="org-constant">True</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Mouse button with which to close tabs.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Mouse button with which to close tabs.</span>
<span class="org-variable-name">c.tabs.close_mouse_button</span> = <span class="org-string">'right'</span> <span class="org-variable-name">c.tabs.close_mouse_button</span> = <span class="org-string">'right'</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">How to behave when the last tab is closed.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">How to behave when the last tab is closed.</span>
<span class="org-variable-name">c.tabs.last_close</span> = <span class="org-string">'close'</span> <span class="org-variable-name">c.tabs.last_close</span> = <span class="org-string">'close'</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Switch between tabs using the mouse wheel.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Switch between tabs using the mouse wheel.</span>
<span class="org-variable-name">c.tabs.mousewheel_switching</span> = <span class="org-constant">False</span> <span class="org-variable-name">c.tabs.mousewheel_switching</span> = <span class="org-constant">False</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Position of new tabs opened from another tab.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Position of new tabs opened from another tab.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Valid values:</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Valid values:</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">- prev: Before the current tab.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">- prev: Before the current tab.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">- next: After the current tab.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">- next: After the current tab.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">- first: At the beginning.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">- first: At the beginning.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">- last: At the end.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">- last: At the end.</span>
<span class="org-variable-name">c.tabs.new_position.related</span> = <span class="org-string">'next'</span> <span class="org-variable-name">c.tabs.new_position.related</span> = <span class="org-string">'next'</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Position of new tabs which aren't opened from another tab.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Position of new tabs which aren't opened from another tab.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Valid values:</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Valid values:</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">- prev: Before the current tab.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">- prev: Before the current tab.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">- next: After the current tab.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">- next: After the current tab.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">- first: At the beginning.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">- first: At the beginning.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">- last: At the end.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">- last: At the end.</span>
<span class="org-variable-name">c.tabs.new_position.unrelated</span> = <span class="org-string">'last'</span> <span class="org-variable-name">c.tabs.new_position.unrelated</span> = <span class="org-string">'last'</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Position of the tab bar.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Position of the tab bar.</span>
<span class="org-variable-name">c.tabs.position</span> = <span class="org-string">'left'</span> <span class="org-variable-name">c.tabs.position</span> = <span class="org-string">'left'</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Which tab to select when the focused tab is removed.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Which tab to select when the focused tab is removed.</span>
<span class="org-variable-name">c.tabs.select_on_remove</span> = <span class="org-string">'next'</span> <span class="org-variable-name">c.tabs.select_on_remove</span> = <span class="org-string">'next'</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Width (in pixels or as percentage of the window) of the tab bar if it's vertical.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Width (in pixels or as percentage of the window) of the tab bar if it's vertical.</span>
<span class="org-variable-name">c.tabs.width</span> = <span class="org-highlight-numbers-number">30</span> <span class="org-variable-name">c.tabs.width</span> = <span class="org-highlight-numbers-number">30</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Wrap when changing tabs.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Wrap when changing tabs.</span>
<span class="org-variable-name">c.tabs.wrap</span> = <span class="org-constant">False</span> <span class="org-variable-name">c.tabs.wrap</span> = <span class="org-constant">False</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -254,7 +254,7 @@ c.<span class="org-builtin">input</span>.insert_mode.plugins = <span class="org-
<h2 id="orgc00c6db">Urls and Search Engines</h2> <h2 id="orgc00c6db">Urls and Search Engines</h2>
<div class="outline-text-2" id="text-orgc00c6db"> <div class="outline-text-2" id="text-orgc00c6db">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python"><span class="org-variable-name">c.url.searchengines</span> = { <pre class="src src-python"> <span class="org-variable-name">c.url.searchengines</span> = {
<span class="org-string">'DEFAULT'</span>: <span class="org-string">'https://www.duckduckgo.org/?q={}'</span>, <span class="org-string">'DEFAULT'</span>: <span class="org-string">'https://www.duckduckgo.org/?q={}'</span>,
<span class="org-string">'aw'</span>: <span class="org-string">'https://wiki.archlinux.org/?search={}'</span>, <span class="org-string">'aw'</span>: <span class="org-string">'https://wiki.archlinux.org/?search={}'</span>,
<span class="org-string">'wi'</span>: <span class="org-string">'https://en.wikipedia.org/wiki/Special:Search?search={}'</span>, <span class="org-string">'wi'</span>: <span class="org-string">'https://en.wikipedia.org/wiki/Special:Search?search={}'</span>,
@ -272,13 +272,13 @@ c.<span class="org-builtin">input</span>.insert_mode.plugins = <span class="org-
<span class="org-string">'js'</span>: <span class="org-string">'https://developer.mozilla.org/en-US/search?q={}'</span>, <span class="org-string">'js'</span>: <span class="org-string">'https://developer.mozilla.org/en-US/search?q={}'</span>,
<span class="org-string">'tf'</span>: <span class="org-string">'https://translate.google.com/#view=home&amp;op=translate&amp;sl=en&amp;tl=fr&amp;text={}'</span>, <span class="org-string">'tf'</span>: <span class="org-string">'https://translate.google.com/#view=home&amp;op=translate&amp;sl=en&amp;tl=fr&amp;text={}'</span>,
<span class="org-string">'te'</span>: <span class="org-string">'https://translate.google.com/#view=home&amp;op=translate&amp;sl=fr&amp;tl=en&amp;text={}'</span>, <span class="org-string">'te'</span>: <span class="org-string">'https://translate.google.com/#view=home&amp;op=translate&amp;sl=fr&amp;tl=en&amp;text={}'</span>,
} }
</pre> </pre>
</div> </div>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python"><span class="org-variable-name">c.url.start_pages</span> = [<span class="org-string">'https://homer.tdehaeze.xyz/'</span>] <pre class="src src-python"> <span class="org-variable-name">c.url.start_pages</span> = [<span class="org-string">'https://homer.tdehaeze.xyz/'</span>]
<span class="org-variable-name">c.url.default_page</span> = <span class="org-string">'https://homer.tdehaeze.xyz/'</span> <span class="org-variable-name">c.url.default_page</span> = <span class="org-string">'https://homer.tdehaeze.xyz/'</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -291,9 +291,9 @@ c.<span class="org-builtin">input</span>.insert_mode.plugins = <span class="org-
Zooming Zooming
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python">config.bind(<span class="org-string">'+'</span>, <span class="org-string">'zoom-in'</span>) <pre class="src src-python"> config.bind(<span class="org-string">'+'</span>, <span class="org-string">'zoom-in'</span>)
config.bind(<span class="org-string">'-'</span>, <span class="org-string">'zoom-out'</span>) config.bind(<span class="org-string">'-'</span>, <span class="org-string">'zoom-out'</span>)
config.bind(<span class="org-string">'='</span>, <span class="org-string">'zoom'</span>) config.bind(<span class="org-string">'='</span>, <span class="org-string">'zoom'</span>)
</pre> </pre>
</div> </div>
@ -301,8 +301,8 @@ config.bind(<span class="org-string">'='</span>, <span class="org-string">'zoom'
Inputs blocks Inputs blocks
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python">config.bind(<span class="org-string">';t'</span>, <span class="org-string">'hint inputs'</span>) <pre class="src src-python"> config.bind(<span class="org-string">';t'</span>, <span class="org-string">'hint inputs'</span>)
config.bind(<span class="org-string">'gi'</span>, <span class="org-string">'hint inputs --first'</span>) config.bind(<span class="org-string">'gi'</span>, <span class="org-string">'hint inputs --first'</span>)
</pre> </pre>
</div> </div>
@ -310,7 +310,7 @@ config.bind(<span class="org-string">'gi'</span>, <span class="org-string">'hint
Opening New Window Opening New Window
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python">config.bind(<span class="org-string">'&lt;Ctrl-N&gt;'</span>, <span class="org-string">'open -w'</span>) <pre class="src src-python"> config.bind(<span class="org-string">'&lt;Ctrl-N&gt;'</span>, <span class="org-string">'open -w'</span>)
</pre> </pre>
</div> </div>
@ -318,8 +318,8 @@ Opening New Window
History History
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python">config.bind(<span class="org-string">'H'</span>, <span class="org-string">'back'</span>) <pre class="src src-python"> config.bind(<span class="org-string">'H'</span>, <span class="org-string">'back'</span>)
config.bind(<span class="org-string">'L'</span>, <span class="org-string">'forward'</span>) config.bind(<span class="org-string">'L'</span>, <span class="org-string">'forward'</span>)
</pre> </pre>
</div> </div>
@ -327,12 +327,12 @@ config.bind(<span class="org-string">'L'</span>, <span class="org-string">'forwa
Move tabs around Move tabs around
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python">config.bind(<span class="org-string">'d'</span>, <span class="org-string">'tab-close'</span>) <pre class="src src-python"> config.bind(<span class="org-string">'d'</span>, <span class="org-string">'tab-close'</span>)
config.bind(<span class="org-string">'&lt;'</span>, <span class="org-string">'tab-move -'</span>) config.bind(<span class="org-string">'&lt;'</span>, <span class="org-string">'tab-move -'</span>)
config.bind(<span class="org-string">'&gt;'</span>, <span class="org-string">'tab-move +'</span>) config.bind(<span class="org-string">'&gt;'</span>, <span class="org-string">'tab-move +'</span>)
config.bind(<span class="org-string">'gO'</span>, <span class="org-string">'tab-give'</span>) <span class="org-comment-delimiter"># </span><span class="org-comment">Open current tab in a new window</span> config.bind(<span class="org-string">'gO'</span>, <span class="org-string">'tab-give'</span>) <span class="org-comment-delimiter"># </span><span class="org-comment">Open current tab in a new window</span>
config.bind(<span class="org-string">'J'</span>, <span class="org-string">'tab-next'</span>) config.bind(<span class="org-string">'J'</span>, <span class="org-string">'tab-next'</span>)
config.bind(<span class="org-string">'K'</span>, <span class="org-string">'tab-prev'</span>) config.bind(<span class="org-string">'K'</span>, <span class="org-string">'tab-prev'</span>)
</pre> </pre>
</div> </div>
@ -340,8 +340,8 @@ config.bind(<span class="org-string">'K'</span>, <span class="org-string">'tab-p
Bookmarks and Quickmark Bookmarks and Quickmark
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python">config.bind(<span class="org-string">'M'</span>, <span class="org-string">'bookmark-add'</span>) <pre class="src src-python"> config.bind(<span class="org-string">'M'</span>, <span class="org-string">'bookmark-add'</span>)
config.bind(<span class="org-string">'m'</span>, <span class="org-string">'quickmark-save'</span>) config.bind(<span class="org-string">'m'</span>, <span class="org-string">'quickmark-save'</span>)
</pre> </pre>
</div> </div>
@ -349,8 +349,8 @@ config.bind(<span class="org-string">'m'</span>, <span class="org-string">'quick
Open New Pages/Tabs Open New Pages/Tabs
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python">config.bind(<span class="org-string">'o'</span>, <span class="org-string">'set-cmd-text -s :open'</span>) <pre class="src src-python"> config.bind(<span class="org-string">'o'</span>, <span class="org-string">'set-cmd-text -s :open'</span>)
config.bind(<span class="org-string">'O'</span>, <span class="org-string">'set-cmd-text -s :open -t'</span>) config.bind(<span class="org-string">'O'</span>, <span class="org-string">'set-cmd-text -s :open -t'</span>)
</pre> </pre>
</div> </div>
@ -358,8 +358,8 @@ config.bind(<span class="org-string">'O'</span>, <span class="org-string">'set-c
Open new page/tab with clipboard content Open new page/tab with clipboard content
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python">config.bind(<span class="org-string">'pp'</span>, <span class="org-string">'open -- {clipboard}'</span>) <pre class="src src-python"> config.bind(<span class="org-string">'pp'</span>, <span class="org-string">'open -- {clipboard}'</span>)
config.bind(<span class="org-string">'pP'</span>, <span class="org-string">'open -t -- {clipboard}'</span>) config.bind(<span class="org-string">'pP'</span>, <span class="org-string">'open -t -- {clipboard}'</span>)
</pre> </pre>
</div> </div>
@ -367,8 +367,8 @@ config.bind(<span class="org-string">'pP'</span>, <span class="org-string">'open
Link Hinting Link Hinting
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python">config.bind(<span class="org-string">'f'</span>, <span class="org-string">'hint'</span>) <pre class="src src-python"> config.bind(<span class="org-string">'f'</span>, <span class="org-string">'hint'</span>)
config.bind(<span class="org-string">'F'</span>, <span class="org-string">'hint all tab'</span>) config.bind(<span class="org-string">'F'</span>, <span class="org-string">'hint all tab'</span>)
</pre> </pre>
</div> </div>
@ -376,7 +376,7 @@ config.bind(<span class="org-string">'F'</span>, <span class="org-string">'hint
Yanking url Yanking url
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python">config.bind(<span class="org-string">'yy'</span>, <span class="org-string">'yank'</span>) <pre class="src src-python"> config.bind(<span class="org-string">'yy'</span>, <span class="org-string">'yank'</span>)
</pre> </pre>
</div> </div>
@ -384,15 +384,15 @@ Yanking url
Go to specific websites Go to specific websites
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python">config.bind(<span class="org-string">'gy'</span>, <span class="org-string">'open -t https://www.youtube.com/feed/subscriptions'</span>) <pre class="src src-python"> config.bind(<span class="org-string">'gy'</span>, <span class="org-string">'open -t https://www.youtube.com/feed/subscriptions'</span>)
config.bind(<span class="org-string">'gf'</span>, <span class="org-string">'open -t https://rss.tdehaeze.xyz/'</span>) config.bind(<span class="org-string">'gf'</span>, <span class="org-string">'open -t https://rss.tdehaeze.xyz/'</span>)
config.bind(<span class="org-string">'gr'</span>, <span class="org-string">'open -t https://www.reddit.com/'</span>) config.bind(<span class="org-string">'gr'</span>, <span class="org-string">'open -t https://www.reddit.com/'</span>)
config.bind(<span class="org-string">'gh'</span>, <span class="org-string">'open -t https://homer.tdehaeze.xyz/'</span>) config.bind(<span class="org-string">'gh'</span>, <span class="org-string">'open -t https://homer.tdehaeze.xyz/'</span>)
config.bind(<span class="org-string">'gb'</span>, <span class="org-string">'open -t qute://bookmarks'</span>) config.bind(<span class="org-string">'gb'</span>, <span class="org-string">'open -t qute://bookmarks'</span>)
config.bind(<span class="org-string">'gH'</span>, <span class="org-string">'open -t qute://history'</span>) config.bind(<span class="org-string">'gH'</span>, <span class="org-string">'open -t qute://history'</span>)
config.bind(<span class="org-string">'gs'</span>, <span class="org-string">'open -t qute://settings'</span>) config.bind(<span class="org-string">'gs'</span>, <span class="org-string">'open -t qute://settings'</span>)
</pre> </pre>
</div> </div>
</div> </div>
@ -405,7 +405,7 @@ config.bind(<span class="org-string">'gs'</span>, <span class="org-string">'open
Create a Password for the current website Create a Password for the current website
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python">config.bind(<span class="org-string">',P'</span>, <span class="org-string">'spawn --userscript ~/.config/qutebrowser/userscripts/add-passowrd.sh'</span>) <pre class="src src-python"> config.bind(<span class="org-string">',P'</span>, <span class="org-string">'spawn --userscript ~/.config/qutebrowser/userscripts/add-passowrd.sh'</span>)
</pre> </pre>
</div> </div>
@ -413,7 +413,7 @@ Create a Password for the current website
Use Pass to fill password and username (configuration is done in <code>~/.config/qutebrowser/password_fill_rc</code>) Use Pass to fill password and username (configuration is done in <code>~/.config/qutebrowser/password_fill_rc</code>)
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python">config.bind(<span class="org-string">',p'</span>, <span class="org-string">'spawn --userscript password_fill'</span>) <pre class="src src-python"> config.bind(<span class="org-string">',p'</span>, <span class="org-string">'spawn --userscript password_fill'</span>)
</pre> </pre>
</div> </div>
@ -421,8 +421,8 @@ Use Pass to fill password and username (configuration is done in <code>~/.config
Open Youtube video using <code>mpv</code> Open Youtube video using <code>mpv</code>
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python">config.bind(<span class="org-string">',m'</span>, <span class="org-string">'spawn --detach mpv --force-window yes {url}'</span>) <pre class="src src-python"> config.bind(<span class="org-string">',m'</span>, <span class="org-string">'spawn --detach mpv --force-window yes {url}'</span>)
config.bind(<span class="org-string">',M'</span>, <span class="org-string">'hint links spawn --detach mpv --force-window yes {hint-url}'</span>) config.bind(<span class="org-string">',M'</span>, <span class="org-string">'hint links spawn --detach mpv --force-window yes {hint-url}'</span>)
</pre> </pre>
</div> </div>
@ -430,8 +430,8 @@ config.bind(<span class="org-string">',M'</span>, <span class="org-string">'hint
Download Youtube video / entire playlist Download Youtube video / entire playlist
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python">config.bind(<span class="org-string">',v'</span>, <span class="org-string">'spawn --userscript ~/.config/qutebrowser/userscripts/yt-download.sh {url}'</span>) <pre class="src src-python"> config.bind(<span class="org-string">',v'</span>, <span class="org-string">'spawn --userscript ~/.config/qutebrowser/userscripts/yt-download.sh {url}'</span>)
config.bind(<span class="org-string">',V'</span>, <span class="org-string">'hint links spawn --userscript ~/.config/qutebrowser/userscripts/yt-download.sh {hint-url}'</span>) config.bind(<span class="org-string">',V'</span>, <span class="org-string">'hint links spawn --userscript ~/.config/qutebrowser/userscripts/yt-download.sh {hint-url}'</span>)
</pre> </pre>
</div> </div>
@ -439,8 +439,8 @@ config.bind(<span class="org-string">',V'</span>, <span class="org-string">'hint
Add page to Bookmarks using <code>buku</code> Add page to Bookmarks using <code>buku</code>
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python">config.bind(<span class="org-string">',b'</span>, <span class="org-string">'spawn --userscript ~/.config/qutebrowser/userscripts/buku-add.sh'</span>) <pre class="src src-python"> config.bind(<span class="org-string">',b'</span>, <span class="org-string">'spawn --userscript ~/.config/qutebrowser/userscripts/buku-add.sh'</span>)
config.bind(<span class="org-string">',B'</span>, <span class="org-string">'spawn --userscript ~/.config/qutebrowser/userscripts/buku-rofi.sh'</span>) config.bind(<span class="org-string">',B'</span>, <span class="org-string">'spawn --userscript ~/.config/qutebrowser/userscripts/buku-rofi.sh'</span>)
</pre> </pre>
</div> </div>
@ -448,8 +448,8 @@ config.bind(<span class="org-string">',B'</span>, <span class="org-string">'spaw
Download with <code>aria2c</code> Download with <code>aria2c</code>
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python">config.bind(<span class="org-string">',d'</span>, <span class="org-string">'hint links spawn --userscript ~/.config/qutebrowser/userscripts/aria2c-add.sh {hint-url}'</span>) <pre class="src src-python"> config.bind(<span class="org-string">',d'</span>, <span class="org-string">'hint links spawn --userscript ~/.config/qutebrowser/userscripts/aria2c-add.sh {hint-url}'</span>)
config.bind(<span class="org-string">',D'</span>, <span class="org-string">'hint links spawn --userscript ~/.config/qutebrowser/userscripts/aria2c-add-homelab.sh {hint-url}'</span>) config.bind(<span class="org-string">',D'</span>, <span class="org-string">'hint links spawn --userscript ~/.config/qutebrowser/userscripts/aria2c-add-homelab.sh {hint-url}'</span>)
</pre> </pre>
</div> </div>
@ -457,7 +457,7 @@ config.bind(<span class="org-string">',D'</span>, <span class="org-string">'hint
Open bookmark using <code>buku</code> Open bookmark using <code>buku</code>
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python">config.bind(<span class="org-string">',o'</span>, <span class="org-string">'spawn ~/.local/bin/bukurun'</span>) <pre class="src src-python"> config.bind(<span class="org-string">',o'</span>, <span class="org-string">'spawn ~/.local/bin/bukurun'</span>)
</pre> </pre>
</div> </div>
@ -465,8 +465,8 @@ Open bookmark using <code>buku</code>
Org Capture Org Capture
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python">config.bind(<span class="org-string">',r'</span>, <span class="org-string">'spawn --userscript ~/.config/qutebrowser/userscripts/org-capture.sh'</span>) <pre class="src src-python"> config.bind(<span class="org-string">',r'</span>, <span class="org-string">'spawn --userscript ~/.config/qutebrowser/userscripts/org-capture.sh'</span>)
config.bind(<span class="org-string">',R'</span>, <span class="org-string">'hint links userscript ~/.config/qutebrowser/userscripts/org-capture.sh'</span>) config.bind(<span class="org-string">',R'</span>, <span class="org-string">'hint links userscript ~/.config/qutebrowser/userscripts/org-capture.sh'</span>)
</pre> </pre>
</div> </div>
@ -474,8 +474,8 @@ config.bind(<span class="org-string">',R'</span>, <span class="org-string">'hint
Screenshot of webpage to png Screenshot of webpage to png
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python">config.bind(<span class="org-string">',s'</span>, <span class="org-string">'spawn --userscript ~/.config/qutebrowser/userscripts/html-to-pdf.sh'</span>) <pre class="src src-python"> config.bind(<span class="org-string">',s'</span>, <span class="org-string">'spawn --userscript ~/.config/qutebrowser/userscripts/html-to-pdf.sh'</span>)
config.bind(<span class="org-string">',S'</span>, <span class="org-string">'spawn --userscript ~/.config/qutebrowser/userscripts/html-to-png.sh'</span>) config.bind(<span class="org-string">',S'</span>, <span class="org-string">'spawn --userscript ~/.config/qutebrowser/userscripts/html-to-png.sh'</span>)
</pre> </pre>
</div> </div>
@ -483,7 +483,7 @@ config.bind(<span class="org-string">',S'</span>, <span class="org-string">'spaw
Download AES video Download AES video
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python">config.bind(<span class="org-string">',E'</span>, <span class="org-string">'spawn --userscript ~/.config/qutebrowser/userscripts/aes-download.sh'</span>) <pre class="src src-python"> config.bind(<span class="org-string">',E'</span>, <span class="org-string">'spawn --userscript ~/.config/qutebrowser/userscripts/aes-download.sh'</span>)
</pre> </pre>
</div> </div>
@ -491,7 +491,7 @@ Download AES video
Download a torrent Download a torrent
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python">config.bind(<span class="org-string">',t'</span>, <span class="org-string">'hint links spawn torrent-add {hint-url}'</span>) <pre class="src src-python"> config.bind(<span class="org-string">',t'</span>, <span class="org-string">'hint links spawn torrent-add {hint-url}'</span>)
</pre> </pre>
</div> </div>
@ -499,7 +499,7 @@ Download a torrent
Annotate with Hypothesis Annotate with Hypothesis
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python">config.bind(<span class="org-string">',a'</span>, <span class="org-string">"jseval javascript:(function(){window.hypothesisConfig=function(){return{showHighlights:true,appType:'bookmarklet'};};var d=document,s=d.createElement('script');s.setAttribute('src','https://hypothes.is/embed.js');d.body.appendChild(s)})();"</span>) <pre class="src src-python"> config.bind(<span class="org-string">',a'</span>, <span class="org-string">"jseval javascript:(function(){window.hypothesisConfig=function(){return{showHighlights:true,appType:'bookmarklet'};};var d=document,s=d.createElement('script');s.setAttribute('src','https://hypothes.is/embed.js');d.body.appendChild(s)})();"</span>)
</pre> </pre>
</div> </div>
@ -507,7 +507,7 @@ Annotate with Hypothesis
See Amazon price history using CamelCamelCamel See Amazon price history using CamelCamelCamel
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python">config.bind(<span class="org-string">',A'</span>, <span class="org-string">":open -t https://fr.camelcamelcamel.com/search?sq={url}"</span>) <pre class="src src-python"> config.bind(<span class="org-string">',A'</span>, <span class="org-string">":open -t https://fr.camelcamelcamel.com/search?sq={url}"</span>)
</pre> </pre>
</div> </div>
@ -515,7 +515,7 @@ See Amazon price history using CamelCamelCamel
Org Roam Entry for the current page Org Roam Entry for the current page
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python">config.bind(<span class="org-string">',R'</span>, <span class="org-string">"open javascript:void(location.href='org-protocol://roam-ref?template=r&amp;ref='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title))"</span>) <pre class="src src-python"> config.bind(<span class="org-string">',R'</span>, <span class="org-string">"open javascript:void(location.href='org-protocol://roam-ref?template=r&amp;ref='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title))"</span>)
</pre> </pre>
</div> </div>
</div> </div>
@ -530,18 +530,18 @@ Org Roam Entry for the current page
<h3 id="org1453ee9">Create a new password</h3> <h3 id="org1453ee9">Create a new password</h3>
<div class="outline-text-3" id="text-org1453ee9"> <div class="outline-text-3" id="text-org1453ee9">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">url</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_URL</span></span><span class="org-string">"</span> | awk -F<span class="org-rainbow-delimiters-depth-2">[</span>/:<span class="org-rainbow-delimiters-depth-2">]</span> <span class="org-string">'{print $4}'</span> | rofi -p <span class="org-string">"URL"</span> -dmenu -lines <span class="org-highlight-numbers-number">1</span><span class="org-rainbow-delimiters-depth-1">)</span> <pre class="src src-bash"> <span class="org-variable-name">url</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_URL</span></span><span class="org-string">"</span> | awk -F<span class="org-rainbow-delimiters-depth-2">[</span>/:<span class="org-rainbow-delimiters-depth-2">]</span> <span class="org-string">'{print $4}'</span> | rofi -p <span class="org-string">"URL"</span> -dmenu -lines <span class="org-highlight-numbers-number">1</span><span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-variable-name">username</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"dehaeze.thomas@gmail.com\nthomas.dehaeze@esrf.fr\ntdehaeze"</span> | rofi -p <span class="org-string">"Username"</span> -dmenu -lines <span class="org-highlight-numbers-number">5</span><span class="org-rainbow-delimiters-depth-1">)</span> <span class="org-variable-name">username</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"dehaeze.thomas@gmail.com\nthomas.dehaeze@esrf.fr\ntdehaeze"</span> | rofi -p <span class="org-string">"Username"</span> -dmenu -lines <span class="org-highlight-numbers-number">5</span><span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-variable-name">password</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">rofi</span> -p <span class="org-string">"Password"</span> -dmenu -password -lines <span class="org-highlight-numbers-number">1</span><span class="org-rainbow-delimiters-depth-1">)</span> <span class="org-variable-name">password</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">rofi</span> -p <span class="org-string">"Password"</span> -dmenu -password -lines <span class="org-highlight-numbers-number">1</span><span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">url</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span> || <span class="org-rainbow-delimiters-depth-1">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">username</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span> || <span class="org-rainbow-delimiters-depth-1">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">password</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span> <span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">url</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span> || <span class="org-rainbow-delimiters-depth-1">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">username</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span> || <span class="org-rainbow-delimiters-depth-1">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">password</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
dunstify --urgency=critical <span class="org-string">"Pass"</span> <span class="org-string">"Failed to Add Password"</span> dunstify --urgency=critical <span class="org-string">"Pass"</span> <span class="org-string">"Failed to Add Password"</span>
<span class="org-keyword">else</span> <span class="org-keyword">else</span>
<span class="org-type">echo</span> -e <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">password</span></span><span class="org-string">\nlogin: </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">username</span></span><span class="org-string">\nurl: </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_URL</span></span><span class="org-string">"</span> &gt; /tmp/add-password.txt <span class="org-type">echo</span> -e <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">password</span></span><span class="org-string">\nlogin: </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">username</span></span><span class="org-string">\nurl: </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_URL</span></span><span class="org-string">"</span> &gt; /tmp/add-password.txt
pass insert --multiline <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">url</span></span><span class="org-string">/</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">username</span></span><span class="org-string">"</span> &lt; /tmp/add-password.txt; pass insert --multiline <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">url</span></span><span class="org-string">/</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">username</span></span><span class="org-string">"</span> &lt; /tmp/add-password.txt;
<span class="org-type">rm</span> /tmp/add-password.txt <span class="org-type">rm</span> /tmp/add-password.txt
dunstify <span class="org-string">"Pass &#62525;"</span> <span class="org-string">"Password Added"</span> dunstify <span class="org-string">"Pass &#62525;"</span> <span class="org-string">"Password Added"</span>
<span class="org-keyword">fi</span> <span class="org-keyword">fi</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -551,23 +551,23 @@ Org Roam Entry for the current page
<h3 id="orgeb0ef66">Download Youtube Video</h3> <h3 id="orgeb0ef66">Download Youtube Video</h3>
<div class="outline-text-3" id="text-orgeb0ef66"> <div class="outline-text-3" id="text-orgeb0ef66">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-type">cd</span> ~/Documents/to-watch/ || <span class="org-keyword">exit</span>; <pre class="src src-bash"> <span class="org-type">cd</span> ~/Documents/to-watch/ || <span class="org-keyword">exit</span>;
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> == *<span class="org-string">"list"</span>* <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span> <span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> == *<span class="org-string">"list"</span>* <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-variable-name">choice</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"Video\nPlaylist"</span> | rofi -dmenu -only-match -i<span class="org-rainbow-delimiters-depth-1">)</span> <span class="org-variable-name">choice</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"Video\nPlaylist"</span> | rofi -dmenu -only-match -i<span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-keyword">fi</span> <span class="org-keyword">fi</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -n <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">choice</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span> &amp;&amp; <span class="org-rainbow-delimiters-depth-1">[</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">choice</span></span><span class="org-string">"</span> = <span class="org-string">"Playlist"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span> <span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -n <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">choice</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span> &amp;&amp; <span class="org-rainbow-delimiters-depth-1">[</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">choice</span></span><span class="org-string">"</span> = <span class="org-string">"Playlist"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
dunstify --replace=<span class="org-highlight-numbers-number">19243</span> <span class="org-string">"Youtube &#61798;"</span> <span class="org-string">"Downloading Playlist..."</span>; dunstify --replace=<span class="org-highlight-numbers-number">19243</span> <span class="org-string">"Youtube &#61798;"</span> <span class="org-string">"Downloading Playlist..."</span>;
youtube-dl -i -f <span class="org-string">'bestvideo[height&lt;=720]+bestaudio/best[height&lt;=720]'</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> -o <span class="org-string">"%(playlist_title)s/%(playlist_index)s-%(title)s.%(ext)s"</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span> youtube-dl -i -f <span class="org-string">'bestvideo[height&lt;=720]+bestaudio/best[height&lt;=720]'</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> -o <span class="org-string">"%(playlist_title)s/%(playlist_index)s-%(title)s.%(ext)s"</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
dunstify --replace=<span class="org-highlight-numbers-number">19243</span> <span class="org-string">"Youtube &#61798;"</span> <span class="org-string">"Downloaded"</span> || <span class="org-sh-escaped-newline">\</span> dunstify --replace=<span class="org-highlight-numbers-number">19243</span> <span class="org-string">"Youtube &#61798;"</span> <span class="org-string">"Downloaded"</span> || <span class="org-sh-escaped-newline">\</span>
dunstify --replace=<span class="org-highlight-numbers-number">19243</span> --urgency=critical <span class="org-string">"Youtube &#61798;"</span> <span class="org-string">"Failed to download"</span> dunstify --replace=<span class="org-highlight-numbers-number">19243</span> --urgency=critical <span class="org-string">"Youtube &#61798;"</span> <span class="org-string">"Failed to download"</span>
<span class="org-keyword">else</span> <span class="org-keyword">else</span>
dunstify --replace=<span class="org-highlight-numbers-number">19243</span> <span class="org-string">"Youtube &#61798;"</span> <span class="org-string">"Downloading Video..."</span>; dunstify --replace=<span class="org-highlight-numbers-number">19243</span> <span class="org-string">"Youtube &#61798;"</span> <span class="org-string">"Downloading Video..."</span>;
youtube-dl --no-playlist -f <span class="org-string">'bestvideo[height&lt;=720]+bestaudio/best[height&lt;=720]'</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span> youtube-dl --no-playlist -f <span class="org-string">'bestvideo[height&lt;=720]+bestaudio/best[height&lt;=720]'</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
dunstify --replace=<span class="org-highlight-numbers-number">19243</span> <span class="org-string">"Youtube &#61798;"</span> <span class="org-string">"Downloaded"</span> || <span class="org-sh-escaped-newline">\</span> dunstify --replace=<span class="org-highlight-numbers-number">19243</span> <span class="org-string">"Youtube &#61798;"</span> <span class="org-string">"Downloaded"</span> || <span class="org-sh-escaped-newline">\</span>
dunstify --replace=<span class="org-highlight-numbers-number">19243</span> --urgency=critical <span class="org-string">"Youtube &#61798;"</span> <span class="org-string">"Failed to download"</span> dunstify --replace=<span class="org-highlight-numbers-number">19243</span> --urgency=critical <span class="org-string">"Youtube &#61798;"</span> <span class="org-string">"Failed to download"</span>
<span class="org-keyword">fi</span> <span class="org-keyword">fi</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -577,17 +577,17 @@ Org Roam Entry for the current page
<h3 id="org38a2899">Password_fill_rc</h3> <h3 id="org38a2899">Password_fill_rc</h3>
<div class="outline-text-3" id="text-org38a2899"> <div class="outline-text-3" id="text-org38a2899">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Show all password fields in the menu</span> <pre class="src src-bash"> <span class="org-comment-delimiter"># </span><span class="org-comment">Show all password fields in the menu</span>
<span class="org-function-name">query_entries</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> query_entries<span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">safe queried url for choose_entry</span> <span class="org-comment-delimiter"># </span><span class="org-comment">safe queried url for choose_entry</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">the subdomains are removed</span> <span class="org-comment-delimiter"># </span><span class="org-comment">the subdomains are removed</span>
<span class="org-builtin">export</span> <span class="org-variable-name">queried_url</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">expr</span> match <span class="org-string">".</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> <span class="org-string">'.*\.\(.*\..*\)'</span><span class="org-rainbow-delimiters-depth-2">)</span> <span class="org-builtin">export</span> <span class="org-variable-name">queried_url</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">expr</span> match <span class="org-string">".</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> <span class="org-string">'.*\.\(.*\..*\)'</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-builtin">mapfile</span> -t files &lt; &lt;<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-type">find</span> -L <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">PREFIX</span></span><span class="org-string">"</span> -iname <span class="org-string">'*.gpg'</span> -printf <span class="org-string">'%P\n'</span> |sed <span class="org-string">'s,\.gpg$,,'</span><span class="org-rainbow-delimiters-depth-2">)</span> <span class="org-builtin">mapfile</span> -t files &lt; &lt;<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-type">find</span> -L <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">PREFIX</span></span><span class="org-string">"</span> -iname <span class="org-string">'*.gpg'</span> -printf <span class="org-string">'%P\n'</span> |sed <span class="org-string">'s,\.gpg$,,'</span><span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-rainbow-delimiters-depth-1">}</span> <span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Even if there is only one entry, always show a menu</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Even if there is only one entry, always show a menu</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">for user confirmation.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">for user confirmation.</span>
<span class="org-function-name">choose_entry</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> choose_entry<span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-variable-name">MENU_COMMAND</span>=<span class="org-rainbow-delimiters-depth-2">(</span> <span class="org-variable-name">MENU_COMMAND</span>=<span class="org-rainbow-delimiters-depth-2">(</span>
rofi -dmenu rofi -dmenu
-p <span class="org-string">"qutebrowser&gt; "</span> -p <span class="org-string">"qutebrowser&gt; "</span>
@ -595,7 +595,7 @@ Org Roam Entry for the current page
-mesg $<span class="org-string">'Pick a password entry for &lt;b&gt;'"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{QUTE_URL//&amp;/&amp;amp;}</span></span><span class="org-string">"'&lt;/b&gt;'</span> -mesg $<span class="org-string">'Pick a password entry for &lt;b&gt;'"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{QUTE_URL//&amp;/&amp;amp;}</span></span><span class="org-string">"'&lt;/b&gt;'</span>
<span class="org-rainbow-delimiters-depth-2">)</span> <span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-variable-name">file</span>=$<span class="org-rainbow-delimiters-depth-2">(</span> <span class="org-builtin">printf</span> <span class="org-string">"%s\n"</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{files[@]}</span></span><span class="org-string">"</span> | <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{MENU_COMMAND[@]}</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-2">)</span> <span class="org-variable-name">file</span>=$<span class="org-rainbow-delimiters-depth-2">(</span> <span class="org-builtin">printf</span> <span class="org-string">"%s\n"</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{files[@]}</span></span><span class="org-string">"</span> | <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{MENU_COMMAND[@]}</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-2">)</span>
<span class="org-rainbow-delimiters-depth-1">}</span> <span class="org-rainbow-delimiters-depth-1">}</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -605,18 +605,18 @@ Org Roam Entry for the current page
<h3 id="org5b8c3ce">Org-Capture</h3> <h3 id="org5b8c3ce">Org-Capture</h3>
<div class="outline-text-3" id="text-org5b8c3ce"> <div class="outline-text-3" id="text-org5b8c3ce">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">readonly</span> <span class="org-variable-name">CAPTURE_SCRIPT</span>=~/.config/qutebrowser/userscripts/org-protocol-capture-html.sh <pre class="src src-bash"> <span class="org-builtin">readonly</span> <span class="org-variable-name">CAPTURE_SCRIPT</span>=~/.config/qutebrowser/userscripts/org-protocol-capture-html.sh
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_MODE</span></span><span class="org-string">"</span> = <span class="org-string">"hints"</span> <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span> <span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_MODE</span></span><span class="org-string">"</span> = <span class="org-string">"hints"</span> <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">if we start with hints, we juste want to capture the URL</span> <span class="org-comment-delimiter"># </span><span class="org-comment">if we start with hints, we juste want to capture the URL</span>
$<span class="org-variable-name">CAPTURE_SCRIPT</span> --template <span class="org-string">"pu"</span> --url <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{QUTE_URL}</span></span><span class="org-string">"</span> $<span class="org-variable-name">CAPTURE_SCRIPT</span> --template <span class="org-string">"pu"</span> --url <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{QUTE_URL}</span></span><span class="org-string">"</span>
<span class="org-keyword">elif</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> -n <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_SELECTED_TEXT</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span> <span class="org-keyword">elif</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> -n <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_SELECTED_TEXT</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">if text is selected, we want to capture the text</span> <span class="org-comment-delimiter"># </span><span class="org-comment">if text is selected, we want to capture the text</span>
$<span class="org-variable-name">CAPTURE_SCRIPT</span> --template <span class="org-string">"pt"</span> --heading <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{QUTE_TITLE}</span></span><span class="org-string">"</span> --url <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{QUTE_URL}</span></span><span class="org-string">"</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{QUTE_SELECTED_TEXT}</span></span><span class="org-string">"</span> $<span class="org-variable-name">CAPTURE_SCRIPT</span> --template <span class="org-string">"pt"</span> --heading <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{QUTE_TITLE}</span></span><span class="org-string">"</span> --url <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{QUTE_URL}</span></span><span class="org-string">"</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{QUTE_SELECTED_TEXT}</span></span><span class="org-string">"</span>
<span class="org-keyword">else</span> <span class="org-keyword">else</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">if no text is selected, we want to capture the url</span> <span class="org-comment-delimiter"># </span><span class="org-comment">if no text is selected, we want to capture the url</span>
$<span class="org-variable-name">CAPTURE_SCRIPT</span> --template <span class="org-string">"pu"</span> --heading <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{QUTE_TITLE}</span></span><span class="org-string">"</span> --url <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{QUTE_URL}</span></span><span class="org-string">"</span> $<span class="org-variable-name">CAPTURE_SCRIPT</span> --template <span class="org-string">"pu"</span> --heading <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{QUTE_TITLE}</span></span><span class="org-string">"</span> --url <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{QUTE_URL}</span></span><span class="org-string">"</span>
<span class="org-keyword">fi</span> <span class="org-keyword">fi</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -629,9 +629,9 @@ Org Roam Entry for the current page
Defaults Defaults
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">heading</span>=<span class="org-string">"link"</span> <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">template</span>=<span class="org-string">"pu"</span>
<span class="org-variable-name">url</span>=<span class="org-string">"https://google.com/"</span> <span class="org-variable-name">url</span>=<span class="org-string">"https://google.com/"</span>
</pre> </pre>
</div> </div>
@ -639,7 +639,7 @@ Defaults
Functions Functions
</p> </p>
<div class="org-src-container"> <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> <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">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">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-keyword">function</span> <span class="org-function-name">debug</span> <span class="org-rainbow-delimiters-depth-2">{</span>
@ -651,21 +651,21 @@ Functions
true true
<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-keyword">fi</span>
<span class="org-rainbow-delimiters-depth-1">}</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-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-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-keyword">exit</span> <span class="org-highlight-numbers-number">1</span>
<span class="org-rainbow-delimiters-depth-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> <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> python -c <span class="org-string">"</span>
<span class="org-string">from __future__ import print_function</span> <span class="org-string"> from __future__ import print_function</span>
<span class="org-string">try:</span> <span class="org-string"> try:</span>
<span class="org-string"> from urllib import quote # Python 2</span> <span class="org-string"> from urllib import quote # Python 2</span>
<span class="org-string">except ImportError:</span> <span class="org-string"> except ImportError:</span>
<span class="org-string"> from urllib.parse import quote # Python 3</span> <span class="org-string"> from urllib.parse import quote # Python 3</span>
<span class="org-string">import sys</span> <span class="org-string"> import sys</span>
<span class="org-string">print(quote(sys.stdin.read()[:-1], safe=''))"</span> <span class="org-string"> print(quote(sys.stdin.read()[:-1], safe=''))"</span>
<span class="org-rainbow-delimiters-depth-1">}</span> <span class="org-rainbow-delimiters-depth-1">}</span>
</pre> </pre>
</div> </div>
@ -673,22 +673,22 @@ Functions
Documentation Documentation
</p> </p>
<div class="org-src-container"> <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> <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-type">cat</span> &lt;&lt;EOF
<span class="org-sh-heredoc">$0 [OPTIONS] [HTML]</span> <span class="org-sh-heredoc"> $0 [OPTIONS] [HTML]</span>
<span class="org-sh-heredoc">html | $0 [OPTIONS]</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"> 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"> 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"> 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"> contents used.</span>
<span class="org-sh-heredoc">Options:</span> <span class="org-sh-heredoc"> Options:</span>
<span class="org-sh-heredoc"> -h, --heading HEADING Heading</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"> -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"> -u, --url URL URL</span>
<span class="org-sh-heredoc"> --debug Print debug info</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"> --help I need somebody!</span>
<span class="org-sh-heredoc">EOF</span> <span class="org-sh-heredoc"> EOF</span>
<span class="org-rainbow-delimiters-depth-1">}</span> <span class="org-rainbow-delimiters-depth-1">}</span>
</pre> </pre>
</div> </div>
@ -696,12 +696,12 @@ Documentation
Arguments Arguments
</p> </p>
<div class="org-src-container"> <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> <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> || 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-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">while</span> true
<span class="org-keyword">do</span> <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> <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) -d|--debug)
<span class="org-variable-name">debug</span>=true <span class="org-variable-name">debug</span>=true
@ -732,10 +732,10 @@ Arguments
<span class="org-keyword">esac</span> <span class="org-keyword">esac</span>
<span class="org-builtin">shift</span> <span class="org-builtin">shift</span>
<span class="org-keyword">done</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">"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> 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> </pre>
</div> </div>
@ -743,12 +743,12 @@ debug <span class="org-string">"Remaining args: </span><span class="org-string">
Get HTML Get HTML
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-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> <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> <span class="org-keyword">then</span>
debug <span class="org-string">"Text from args"</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-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> <span class="org-keyword">fi</span>
</pre> </pre>
</div> </div>
@ -756,9 +756,9 @@ Get HTML
URL-encode URL-encode
</p> </p>
<div class="org-src-container"> <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> <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">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> <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> </pre>
</div> </div>
@ -766,7 +766,7 @@ URL-encode
Send to Emacs Send to Emacs
</p> </p>
<div class="org-src-container"> <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 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> </pre>
</div> </div>
</div> </div>
@ -776,10 +776,10 @@ Send to Emacs
<h3 id="org153f69f">Add Url to Buku using Rofi</h3> <h3 id="org153f69f">Add Url to Buku using Rofi</h3>
<div class="outline-text-3" id="text-org153f69f"> <div class="outline-text-3" id="text-org153f69f">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">title</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_TITLE</span></span><span class="org-string">"</span> | rofi -p <span class="org-string">"Title"</span> -dmenu -lines <span class="org-highlight-numbers-number">1</span><span class="org-rainbow-delimiters-depth-1">)</span> <pre class="src src-bash"> <span class="org-variable-name">title</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_TITLE</span></span><span class="org-string">"</span> | rofi -p <span class="org-string">"Title"</span> -dmenu -lines <span class="org-highlight-numbers-number">1</span><span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-variable-name">tags</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">buku</span> -t --nc --np | sed -e <span class="org-string">'s/\s*[[:digit:]]*\.\s*\(.*\)\s*([[:digit:]]*)\s*/\1/'</span> -e <span class="org-string">'/^\s*$/d'</span> | sort | uniq | rofi -multi-select -p <span class="org-string">"Tags"</span> -dmenu | tr <span class="org-string">"\n"</span> <span class="org-string">","</span> | sed <span class="org-string">'s/\s*,\s*$//'</span><span class="org-rainbow-delimiters-depth-1">)</span> <span class="org-variable-name">tags</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">buku</span> -t --nc --np | sed -e <span class="org-string">'s/\s*[[:digit:]]*\.\s*\(.*\)\s*([[:digit:]]*)\s*/\1/'</span> -e <span class="org-string">'/^\s*$/d'</span> | sort | uniq | rofi -multi-select -p <span class="org-string">"Tags"</span> -dmenu | tr <span class="org-string">"\n"</span> <span class="org-string">","</span> | sed <span class="org-string">'s/\s*,\s*$//'</span><span class="org-rainbow-delimiters-depth-1">)</span>
buku --add <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_URL</span></span><span class="org-string">"</span> --tag <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">tags</span></span><span class="org-string">"</span> --title <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">title</span></span><span class="org-string">"</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span> buku --add <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_URL</span></span><span class="org-string">"</span> --tag <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">tags</span></span><span class="org-string">"</span> --title <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">title</span></span><span class="org-string">"</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
dunstify <span class="org-string">"Buku"</span> <span class="org-string">"Bookmark Added"</span> || <span class="org-sh-escaped-newline">\</span> dunstify <span class="org-string">"Buku"</span> <span class="org-string">"Bookmark Added"</span> || <span class="org-sh-escaped-newline">\</span>
dunstify --urgency=critical <span class="org-string">"Buku"</span> <span class="org-string">"&#62561; Bookmark Added"</span> dunstify --urgency=critical <span class="org-string">"Buku"</span> <span class="org-string">"&#62561; Bookmark Added"</span>
</pre> </pre>
@ -791,7 +791,7 @@ buku --add <span class="org-string">"</span><span class="org-string"><span class
<h3 id="orgfe64fed">Add Url to Buku without asking for information</h3> <h3 id="orgfe64fed">Add Url to Buku without asking for information</h3>
<div class="outline-text-3" id="text-orgfe64fed"> <div class="outline-text-3" id="text-orgfe64fed">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash">buku --add $<span class="org-variable-name">QUTE_URL</span> --title <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_TITLE</span></span><span class="org-string">"</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span> <pre class="src src-bash"> buku --add $<span class="org-variable-name">QUTE_URL</span> --title <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_TITLE</span></span><span class="org-string">"</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
dunstify <span class="org-string">"Buku"</span> <span class="org-string">"&#128209; Bookmark Added"</span> dunstify <span class="org-string">"Buku"</span> <span class="org-string">"&#128209; Bookmark Added"</span>
</pre> </pre>
</div> </div>
@ -802,7 +802,7 @@ buku --add <span class="org-string">"</span><span class="org-string"><span class
<h3 id="orgf02d7da">Download with aria2c</h3> <h3 id="orgf02d7da">Download with aria2c</h3>
<div class="outline-text-3" id="text-orgf02d7da"> <div class="outline-text-3" id="text-orgf02d7da">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash">aria2p add <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span> <pre class="src src-bash"> aria2p add <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
dunstify <span class="org-string">"Aria2"</span> <span class="org-string">"Download Started"</span> || <span class="org-sh-escaped-newline">\</span> dunstify <span class="org-string">"Aria2"</span> <span class="org-string">"Download Started"</span> || <span class="org-sh-escaped-newline">\</span>
dunstify <span class="org-string">"Aria2"</span> <span class="org-string">"Error"</span> dunstify <span class="org-string">"Aria2"</span> <span class="org-string">"Error"</span>
</pre> </pre>
@ -814,7 +814,7 @@ buku --add <span class="org-string">"</span><span class="org-string"><span class
<h3 id="orgfcd3553">Download with aria2c on the Homelab</h3> <h3 id="orgfcd3553">Download with aria2c on the Homelab</h3>
<div class="outline-text-3" id="text-orgfcd3553"> <div class="outline-text-3" id="text-orgfcd3553">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash">dl-add $<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> | sed <span class="org-string">'s/\&amp;af=.*$//g'</span><span class="org-rainbow-delimiters-depth-1">)</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span> <pre class="src src-bash"> dl-add $<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> | sed <span class="org-string">'s/\&amp;af=.*$//g'</span><span class="org-rainbow-delimiters-depth-1">)</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
dunstify <span class="org-string">"Aria2"</span> <span class="org-string">"Download Started"</span> || <span class="org-sh-escaped-newline">\</span> dunstify <span class="org-string">"Aria2"</span> <span class="org-string">"Download Started"</span> || <span class="org-sh-escaped-newline">\</span>
dunstify <span class="org-string">"Aria2"</span> <span class="org-string">"Error"</span> dunstify <span class="org-string">"Aria2"</span> <span class="org-string">"Error"</span>
</pre> </pre>
@ -826,13 +826,13 @@ buku --add <span class="org-string">"</span><span class="org-string"><span class
<h3 id="orgcd649c5">Screenshot</h3> <h3 id="orgcd649c5">Screenshot</h3>
<div class="outline-text-3" id="text-orgcd649c5"> <div class="outline-text-3" id="text-orgcd649c5">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">filename</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">rofi</span> -p <span class="org-string">"filename"</span> -dmenu -lines <span class="org-highlight-numbers-number">1</span><span class="org-rainbow-delimiters-depth-1">)</span> <pre class="src src-bash"> <span class="org-variable-name">filename</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">rofi</span> -p <span class="org-string">"filename"</span> -dmenu -lines <span class="org-highlight-numbers-number">1</span><span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -n <span class="org-string">"filename"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span> <span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -n <span class="org-string">"filename"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-type">cd</span> ~/Pictures/ &amp;&amp; <span class="org-sh-escaped-newline">\</span> <span class="org-type">cd</span> ~/Pictures/ &amp;&amp; <span class="org-sh-escaped-newline">\</span>
firefox-developer-edition -P default -headless --screenshot <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">filename</span></span><span class="org-string">.png"</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_URL</span></span><span class="org-string">"</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span> firefox-developer-edition -P default -headless --screenshot <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">filename</span></span><span class="org-string">.png"</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_URL</span></span><span class="org-string">"</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
dunstify <span class="org-string">"Screenshot"</span> <span class="org-string">"Taken successfully"</span> dunstify <span class="org-string">"Screenshot"</span> <span class="org-string">"Taken successfully"</span>
<span class="org-keyword">fi</span> <span class="org-keyword">fi</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -842,13 +842,13 @@ buku --add <span class="org-string">"</span><span class="org-string"><span class
<h3 id="org13f7ed3">Save to PDF</h3> <h3 id="org13f7ed3">Save to PDF</h3>
<div class="outline-text-3" id="text-org13f7ed3"> <div class="outline-text-3" id="text-org13f7ed3">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">filename</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">rofi</span> -p <span class="org-string">"filename"</span> -dmenu -lines <span class="org-highlight-numbers-number">1</span><span class="org-rainbow-delimiters-depth-1">)</span> <pre class="src src-bash"> <span class="org-variable-name">filename</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">rofi</span> -p <span class="org-string">"filename"</span> -dmenu -lines <span class="org-highlight-numbers-number">1</span><span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -n <span class="org-string">"filename"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span> <span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -n <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">filename</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-type">cd</span> ~/Pictures/ &amp;&amp; <span class="org-sh-escaped-newline">\</span> <span class="org-type">cd</span> ~/Pictures/ &amp;&amp; <span class="org-sh-escaped-newline">\</span>
percollate pdf --css <span class="org-string">"@page { size: A4 portrait }"</span> --output <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">filename</span></span><span class="org-string">.pdf"</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_URL</span></span><span class="org-string">"</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span> percollate pdf --css <span class="org-string">"@page { size: A4 portrait }"</span> --output <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">filename</span></span><span class="org-string">.pdf"</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_URL</span></span><span class="org-string">"</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
dunstify <span class="org-string">"Percollate"</span> <span class="org-string">"Successfully saved to pdf"</span> dunstify <span class="org-string">"Percollate"</span> <span class="org-string">"Successfully saved to pdf"</span>
<span class="org-keyword">fi</span> <span class="org-keyword">fi</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -858,16 +858,16 @@ buku --add <span class="org-string">"</span><span class="org-string"><span class
<h3 id="org0d058a3">Download AES video</h3> <h3 id="org0d058a3">Download AES video</h3>
<div class="outline-text-3" id="text-org0d058a3"> <div class="outline-text-3" id="text-org0d058a3">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">m3u8_path</span>=<span class="org-sh-quoted-exec">`</span><span class="org-type"><span class="org-sh-quoted-exec">curl</span></span><span class="org-sh-quoted-exec"> -L -s "$QUTE_URL" | pcregrep -o1 "file = \"\/(.*aes.*mp4)\""`</span> <pre class="src src-bash"> <span class="org-variable-name">m3u8_path</span>=<span class="org-sh-quoted-exec">`</span><span class="org-type"><span class="org-sh-quoted-exec">curl</span></span><span class="org-sh-quoted-exec"> -L -s "$QUTE_URL" | pcregrep -o1 "file = \"\/(.*aes.*mp4)\""`</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">m3u8_path</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span> <span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">m3u8_path</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
dunstify --urgency=critical <span class="org-string">"Qutebrowser"</span> <span class="org-string">"No m3u8 playlist found"</span> dunstify --urgency=critical <span class="org-string">"Qutebrowser"</span> <span class="org-string">"No m3u8 playlist found"</span>
<span class="org-keyword">else</span> <span class="org-keyword">else</span>
dunstify <span class="org-string">"Qutebrowser"</span> <span class="org-string">"Downloads..."</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span> dunstify <span class="org-string">"Qutebrowser"</span> <span class="org-string">"Downloads..."</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
<span class="org-type">cd</span> ~/Downloads/ &amp;&amp; <span class="org-sh-escaped-newline">\</span> <span class="org-type">cd</span> ~/Downloads/ &amp;&amp; <span class="org-sh-escaped-newline">\</span>
ffmpeg -user_agent <span class="org-string">"Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0"</span> -referer <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_URL</span></span><span class="org-string">"</span> -i <span class="org-string">"https://cdn2.digitellinc.com/play/_definst_/mp4:</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">m3u8_path</span></span><span class="org-string">/playlist.m3u8"</span> -c copy <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_TITLE</span></span><span class="org-string">.mp4"</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span> ffmpeg -user_agent <span class="org-string">"Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0"</span> -referer <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_URL</span></span><span class="org-string">"</span> -i <span class="org-string">"https://cdn2.digitellinc.com/play/_definst_/mp4:</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">m3u8_path</span></span><span class="org-string">/playlist.m3u8"</span> -c copy <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_TITLE</span></span><span class="org-string">.mp4"</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
dunstify <span class="org-string">"Qutebrowser"</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_TITLE</span></span><span class="org-string"> Downloaded"</span> dunstify <span class="org-string">"Qutebrowser"</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_TITLE</span></span><span class="org-string"> Downloaded"</span>
<span class="org-keyword">fi</span> <span class="org-keyword">fi</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -876,7 +876,7 @@ buku --add <span class="org-string">"</span><span class="org-string"><span class
</div> </div>
<div id="postamble" class="status"> <div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p> <p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2021-01-01 ven. 20:09</p> <p class="date">Created: 2021-01-03 dim. 22:19</p>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,9 +3,9 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head> <head>
<!-- 2021-01-01 ven. 20:09 --> <!-- 2021-01-03 dim. 22:51 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Ranger Configuration</title> <title>Ranger</title>
<meta name="generator" content="Org mode" /> <meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" /> <meta name="author" content="Dehaeze Thomas" />
<link rel="stylesheet" type="text/css" href="./dist/style.css"/> <link rel="stylesheet" type="text/css" href="./dist/style.css"/>
@ -17,7 +17,7 @@
| |
<a accesskey="H" href="./index.html"> HOME </a> <a accesskey="H" href="./index.html"> HOME </a>
</div><div id="content"> </div><div id="content">
<h1 class="title">Ranger Configuration</h1> <h1 class="title">Ranger</h1>
<div id="table-of-contents"> <div id="table-of-contents">
<h2>Table of Contents</h2> <h2>Table of Contents</h2>
<div id="text-table-of-contents"> <div id="text-table-of-contents">
@ -38,7 +38,7 @@
</li> </li>
<li><a href="#orgd57ea4e">Define keys for the browser</a> <li><a href="#orgd57ea4e">Define keys for the browser</a>
<ul> <ul>
<li><a href="#orgb8bf91c">Basic</a></li> <li><a href="#org5ba4b89">Basic</a></li>
<li><a href="#org1c6f91a">Open Shell in current directory</a></li> <li><a href="#org1c6f91a">Open Shell in current directory</a></li>
<li><a href="#orgdf72b75">Open With</a></li> <li><a href="#orgdf72b75">Open With</a></li>
<li><a href="#org8e148cf">Filter</a></li> <li><a href="#org8e148cf">Filter</a></li>
@ -62,7 +62,7 @@
</li> </li>
<li><a href="#org7e7a4ec">Define keys for the console</a> <li><a href="#org7e7a4ec">Define keys for the console</a>
<ul> <ul>
<li><a href="#org5ba4b89">Basic</a></li> <li><a href="#org49c5be5">Basic</a></li>
<li><a href="#orga9f3972">Move around</a></li> <li><a href="#orga9f3972">Move around</a></li>
<li><a href="#org6265874">Line Editing</a></li> <li><a href="#org6265874">Line Editing</a></li>
</ul> </ul>
@ -280,7 +280,7 @@ alias travel scout -aefiklst
Extract Extract
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map ,x shell ~/.config/ranger/scripts/extract.sh %f <pre class="src src-conf"> map ,x shell ~/.config/ranger/scripts/extract.sh %f
</pre> </pre>
</div> </div>
@ -288,7 +288,7 @@ Extract
Compress Compress
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map ,z shell ~/.config/ranger/scripts/compress.sh %f <pre class="src src-conf"> map ,z shell ~/.config/ranger/scripts/compress.sh %f
</pre> </pre>
</div> </div>
@ -296,7 +296,7 @@ Compress
Get Bibtex from PDF Get Bibtex from PDF
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map ,b shell pdf2bib %f <pre class="src src-conf"> map ,b shell pdf2bib %f
</pre> </pre>
</div> </div>
@ -304,7 +304,7 @@ Get Bibtex from PDF
Delete first page of pdf Delete first page of pdf
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map ,d shell pdf-delete-first-page %f <pre class="src src-conf"> map ,d shell pdf-delete-first-page %f
</pre> </pre>
</div> </div>
@ -312,8 +312,8 @@ Delete first page of pdf
Convert images/pdf/&#x2026; Convert images/pdf/&#x2026;
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map ,cp shell pdf2png %f <pre class="src src-conf"> map ,cp shell pdf2png %f
map ,cc shell convert-file %f map ,cc shell convert-file %f
</pre> </pre>
</div> </div>
@ -321,7 +321,7 @@ map ,cc shell convert-file %f
Magit Status Magit Status
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">map ,gs shell emacsclient -create-frame --alternate-editor</span>=<span class="org-string">""</span> -n --eval <span class="org-string">'(magit-status)'</span> <pre class="src src-conf"> <span class="org-variable-name">map ,gs shell emacsclient -create-frame --alternate-editor</span>=<span class="org-string">""</span> -n --eval <span class="org-string">'(magit-status)'</span>
</pre> </pre>
</div> </div>
@ -329,7 +329,7 @@ Magit Status
Open SXIV on current directory Open SXIV on current directory
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map ,s shell nohup sxiv -t %d &amp; <pre class="src src-conf"> map ,s shell nohup sxiv -t %d &amp;
</pre> </pre>
</div> </div>
@ -337,8 +337,8 @@ Open SXIV on current directory
Upload with 0x0 / self hosted Tansfer.sh Upload with 0x0 / self hosted Tansfer.sh
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map ,t shell upload %f <pre class="src src-conf"> map ,t shell upload %f
map ,T shell share %f map ,T shell share %f
</pre> </pre>
</div> </div>
@ -346,7 +346,7 @@ map ,T shell share %f
Open current folder with PCManFM Open current folder with PCManFM
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map ,o shell nohup pcmanfm %d &amp; <pre class="src src-conf"> map ,o shell nohup pcmanfm %d &amp;
</pre> </pre>
</div> </div>
@ -354,7 +354,7 @@ Open current folder with PCManFM
Open with Emacs Open with Emacs
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">map ,e shell emacsclient -create-frame --alternate-editor</span>=<span class="org-string">""</span> -n %f <pre class="src src-conf"> <span class="org-variable-name">map ,e shell emacsclient -create-frame --alternate-editor</span>=<span class="org-string">""</span> -n %f
</pre> </pre>
</div> </div>
@ -362,7 +362,7 @@ Open with Emacs
Print on Rnice Print on Rnice
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map ,p shell print-rnice %f &amp; <pre class="src src-conf"> map ,p shell print-rnice %f &amp;
</pre> </pre>
</div> </div>
@ -370,7 +370,7 @@ Print on Rnice
Backup to NAS Backup to NAS
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map ,B shell ~/.config/ranger/scripts/backup-to-nas.sh %s &amp; <pre class="src src-conf"> map ,B shell ~/.config/ranger/scripts/backup-to-nas.sh %s &amp;
</pre> </pre>
</div> </div>
</div> </div>
@ -384,11 +384,11 @@ Backup to NAS
<h4 id="org7681c16">Extract Script</h4> <h4 id="org7681c16">Extract Script</h4>
<div class="outline-text-4" id="text-org7681c16"> <div class="outline-text-4" id="text-org7681c16">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-variable-name">TMUX</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span> <pre class="src src-bash"> <span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-variable-name">TMUX</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
tmux split -v -l <span class="org-highlight-numbers-number">2</span> atool -x $<span class="org-highlight-numbers-number">1</span> &amp;&amp; tmux select-pane -U tmux split -v -l <span class="org-highlight-numbers-number">2</span> atool -x $<span class="org-highlight-numbers-number">1</span> &amp;&amp; tmux select-pane -U
<span class="org-keyword">else</span> <span class="org-keyword">else</span>
atool -x $<span class="org-highlight-numbers-number">1</span> atool -x $<span class="org-highlight-numbers-number">1</span>
<span class="org-keyword">fi</span> <span class="org-keyword">fi</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -398,11 +398,11 @@ Backup to NAS
<h4 id="orgd110a48">Compress Script</h4> <h4 id="orgd110a48">Compress Script</h4>
<div class="outline-text-4" id="text-orgd110a48"> <div class="outline-text-4" id="text-orgd110a48">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-variable-name">TMUX</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span> <pre class="src src-bash"> <span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-variable-name">TMUX</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
tmux split -v -l <span class="org-highlight-numbers-number">2</span> apack $<span class="org-rainbow-delimiters-depth-1">{</span><span class="org-variable-name">1</span>%.*<span class="org-rainbow-delimiters-depth-1">}</span>.zip $<span class="org-highlight-numbers-number">1</span> &amp;&amp; tmux select-pane -U tmux split -v -l <span class="org-highlight-numbers-number">2</span> apack $<span class="org-rainbow-delimiters-depth-1">{</span><span class="org-variable-name">1</span>%.*<span class="org-rainbow-delimiters-depth-1">}</span>.zip $<span class="org-highlight-numbers-number">1</span> &amp;&amp; tmux select-pane -U
<span class="org-keyword">else</span> <span class="org-keyword">else</span>
apack $<span class="org-rainbow-delimiters-depth-1">{</span><span class="org-variable-name">1</span>%.*<span class="org-rainbow-delimiters-depth-1">}</span>.zip $<span class="org-highlight-numbers-number">1</span> apack $<span class="org-rainbow-delimiters-depth-1">{</span><span class="org-variable-name">1</span>%.*<span class="org-rainbow-delimiters-depth-1">}</span>.zip $<span class="org-highlight-numbers-number">1</span>
<span class="org-keyword">fi</span> <span class="org-keyword">fi</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -417,11 +417,11 @@ Backup to NAS
</ul> </ul>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-variable-name">TMUX</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span> <pre class="src src-bash"> <span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-variable-name">TMUX</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
tmux split -v -l <span class="org-highlight-numbers-number">2</span> rsync -a --inplace --info=progress2 --rsh=<span class="org-string">'ssh -p10022'</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span> nas:/volume1/Data/Downloads/Backup/ &amp;&amp; tmux select-pane -U tmux split -v -l <span class="org-highlight-numbers-number">2</span> rsync -a --inplace --info=progress2 --rsh=<span class="org-string">'ssh -p10022'</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span> nas:/volume1/Data/Downloads/Backup/ &amp;&amp; tmux select-pane -U
<span class="org-keyword">else</span> <span class="org-keyword">else</span>
rsync -a --info=progress2 --inplace --rsh=<span class="org-string">'ssh -p10022'</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span> nas:/volume1/Data/Downloads/Backup/ rsync -a --info=progress2 --inplace --rsh=<span class="org-string">'ssh -p10022'</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span> nas:/volume1/Data/Downloads/Backup/
<span class="org-keyword">fi</span> <span class="org-keyword">fi</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -436,11 +436,11 @@ Backup to NAS
</ul> </ul>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-variable-name">TMUX</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span> <pre class="src src-bash"> <span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-variable-name">TMUX</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
tmux split -v -l <span class="org-highlight-numbers-number">1</span> rsync -a --info=progress2 <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">1</span></span><span class="org-string">"</span> &amp;&amp; tmux select-pane -U tmux split -v -l <span class="org-highlight-numbers-number">1</span> rsync -a --info=progress2 <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">1</span></span><span class="org-string">"</span> &amp;&amp; tmux select-pane -U
<span class="org-keyword">else</span> <span class="org-keyword">else</span>
rsync -a --info=progress2 <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">1</span></span><span class="org-string">"</span> rsync -a --info=progress2 <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">1</span></span><span class="org-string">"</span>
<span class="org-keyword">fi</span> <span class="org-keyword">fi</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -452,40 +452,40 @@ Backup to NAS
<h3 id="orgd57ea4e">Define keys for the browser</h3> <h3 id="orgd57ea4e">Define keys for the browser</h3>
<div class="outline-text-3" id="text-orgd57ea4e"> <div class="outline-text-3" id="text-orgd57ea4e">
</div> </div>
<div id="outline-container-orgb8bf91c" class="outline-4"> <div id="outline-container-org5ba4b89" class="outline-4">
<h4 id="orgb8bf91c">Basic</h4> <h4 id="org5ba4b89">Basic</h4>
<div class="outline-text-4" id="text-orgb8bf91c"> <div class="outline-text-4" id="text-org5ba4b89">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map Q quit! <pre class="src src-conf"> map Q quit!
map q eval fm.execute_console(<span class="org-string">"shell tmux detach"</span>) if <span class="org-string">'TMUX'</span> in os.environ.keys() else fm.execute_console(<span class="org-string">"quit"</span>) map q eval fm.execute_console(<span class="org-string">"shell tmux detach"</span>) if <span class="org-string">'TMUX'</span> in os.environ.keys() else fm.execute_console(<span class="org-string">"quit"</span>)
</pre> </pre>
</div> </div>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map &lt;C-c&gt; abort <pre class="src src-conf"> map &lt;C-c&gt; abort
map &lt;esc&gt; change_mode normal map &lt;esc&gt; change_mode normal
map ~ set viewmode! map ~ set viewmode!
</pre> </pre>
</div> </div>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map ? help <pre class="src src-conf"> map ? help
</pre> </pre>
</div> </div>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map : console <pre class="src src-conf"> map : console
map ; console map ; console
</pre> </pre>
</div> </div>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map ! console shell%space <pre class="src src-conf"> map ! console shell%space
</pre> </pre>
</div> </div>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map @ console -p6 shell %%s <pre class="src src-conf"> map @ console -p6 shell %%s
</pre> </pre>
</div> </div>
</div> </div>
@ -495,8 +495,8 @@ map ; console
<h4 id="org1c6f91a">Open Shell in current directory</h4> <h4 id="org1c6f91a">Open Shell in current directory</h4>
<div class="outline-text-4" id="text-org1c6f91a"> <div class="outline-text-4" id="text-org1c6f91a">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map s shell $SHELL <pre class="src src-conf"> map s shell $SHELL
map S shell nohup $TERMINAL &amp; map S shell nohup $TERMINAL &amp;
</pre> </pre>
</div> </div>
</div> </div>
@ -506,7 +506,7 @@ map S shell nohup $TERMINAL &amp;
<h4 id="orgdf72b75">Open With</h4> <h4 id="orgdf72b75">Open With</h4>
<div class="outline-text-4" id="text-orgdf72b75"> <div class="outline-text-4" id="text-orgdf72b75">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map O chain draw_possible_programs; console open_with%space <pre class="src src-conf"> map O chain draw_possible_programs; console open_with%space
</pre> </pre>
</div> </div>
</div> </div>
@ -516,9 +516,9 @@ map S shell nohup $TERMINAL &amp;
<h4 id="org8e148cf">Filter</h4> <h4 id="org8e148cf">Filter</h4>
<div class="outline-text-4" id="text-org8e148cf"> <div class="outline-text-4" id="text-org8e148cf">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map f console filter%space <pre class="src src-conf"> map f console filter%space
<span class="org-comment-delimiter"># </span><span class="org-comment">Reset filter</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Reset filter</span>
map F filter map F filter
</pre> </pre>
</div> </div>
</div> </div>
@ -528,8 +528,8 @@ map F filter
<h4 id="org29cf3e5">Tagging / Marking</h4> <h4 id="org29cf3e5">Tagging / Marking</h4>
<div class="outline-text-4" id="text-org29cf3e5"> <div class="outline-text-4" id="text-org29cf3e5">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">map &lt;Space&gt; mark_files toggle</span>=True <pre class="src src-conf"> <span class="org-variable-name">map &lt;Space&gt; mark_files toggle</span>=True
<span class="org-variable-name">map v mark_files all</span>=True toggle=True <span class="org-variable-name">map v mark_files all</span>=True toggle=True
</pre> </pre>
</div> </div>
</div> </div>
@ -539,12 +539,12 @@ map F filter
<h4 id="org8818767">VIM-like</h4> <h4 id="org8818767">VIM-like</h4>
<div class="outline-text-4" id="text-org8818767"> <div class="outline-text-4" id="text-org8818767">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">copymap &lt;UP&gt; k <pre class="src src-conf"> copymap &lt;UP&gt; k
copymap &lt;DOWN&gt; j copymap &lt;DOWN&gt; j
copymap &lt;LEFT&gt; h copymap &lt;LEFT&gt; h
copymap &lt;RIGHT&gt; l copymap &lt;RIGHT&gt; l
copymap &lt;HOME&gt; gg copymap &lt;HOME&gt; gg
copymap &lt;END&gt; G copymap &lt;END&gt; G
</pre> </pre>
</div> </div>
</div> </div>
@ -554,24 +554,24 @@ copymap &lt;END&gt; G
<h4 id="org093bc04">Jumping around</h4> <h4 id="org093bc04">Jumping around</h4>
<div class="outline-text-4" id="text-org093bc04"> <div class="outline-text-4" id="text-org093bc04">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map H history_go -1 <pre class="src src-conf"> map H history_go -1
map L history_go <span class="org-highlight-numbers-number">1</span> map L history_go <span class="org-highlight-numbers-number">1</span>
</pre> </pre>
</div> </div>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map ] move_parent <span class="org-highlight-numbers-number">1</span> <pre class="src src-conf"> map ] move_parent <span class="org-highlight-numbers-number">1</span>
map [ move_parent -1 map [ move_parent -1
</pre> </pre>
</div> </div>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map } traverse <pre class="src src-conf"> map } traverse
</pre> </pre>
</div> </div>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map cd console cd%space <pre class="src src-conf"> map cd console cd%space
</pre> </pre>
</div> </div>
</div> </div>
@ -581,15 +581,15 @@ map [ move_parent -1
<h4 id="org20acc37">Go to special folders</h4> <h4 id="org20acc37">Go to special folders</h4>
<div class="outline-text-4" id="text-org20acc37"> <div class="outline-text-4" id="text-org20acc37">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map gh cd ~/ <pre class="src src-conf"> map gh cd ~/
map gb cd ~/Cloud/brain map gb cd ~/Cloud/brain
map gm cd ~/Cloud/thesis map gm cd ~/Cloud/thesis
map gp cd ~/Pictures map gp cd ~/Pictures
map gP cd ~/Cloud/personal map gP cd ~/Cloud/personal
map gT cd ~/.local/share/Trash/files map gT cd ~/.local/share/Trash/files
map gd cd ~/Downloads map gd cd ~/Downloads
map gc cd ~/Cloud map gc cd ~/Cloud
map gV cd ~/.config/literate-dotfiles map gV cd ~/.config/literate-dotfiles
</pre> </pre>
</div> </div>
</div> </div>
@ -599,10 +599,10 @@ map gV cd ~/.config/literate-dotfiles
<h4 id="orga3a9ba6">Get size of folders</h4> <h4 id="orga3a9ba6">Get size of folders</h4>
<div class="outline-text-4" id="text-orga3a9ba6"> <div class="outline-text-4" id="text-orga3a9ba6">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Get size of all folders</span> <pre class="src src-conf"> <span class="org-comment-delimiter"># </span><span class="org-comment">Get size of all folders</span>
<span class="org-variable-name">map du shell -p du --max-depth</span>=<span class="org-highlight-numbers-number">1</span> -h --apparent-size <span class="org-variable-name">map du shell -p du --max-depth</span>=<span class="org-highlight-numbers-number">1</span> -h --apparent-size
<span class="org-comment-delimiter"># </span><span class="org-comment">Get size of all folders and sort them</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Get size of all folders and sort them</span>
<span class="org-variable-name">map dU shell -p du --max-depth</span>=<span class="org-highlight-numbers-number">1</span> -h --apparent-size | sort -rh <span class="org-variable-name">map dU shell -p du --max-depth</span>=<span class="org-highlight-numbers-number">1</span> -h --apparent-size | sort -rh
</pre> </pre>
</div> </div>
</div> </div>
@ -612,12 +612,12 @@ map gV cd ~/.config/literate-dotfiles
<h4 id="org8fee5b5">Yank path of directory/file</h4> <h4 id="org8fee5b5">Yank path of directory/file</h4>
<div class="outline-text-4" id="text-org8fee5b5"> <div class="outline-text-4" id="text-org8fee5b5">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Yank path of current directory/file</span> <pre class="src src-conf"> <span class="org-comment-delimiter"># </span><span class="org-comment">Yank path of current directory/file</span>
map yp shell -f echo -n %d/%f | xsel -i; xsel -o | xsel -i -b map yp shell -f echo -n %d/%f | xsel -i; xsel -o | xsel -i -b
<span class="org-comment-delimiter"># </span><span class="org-comment">Yank path of directory</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Yank path of directory</span>
map yd shell -f echo -n %d | xsel -i; xsel -o | xsel -i -b map yd shell -f echo -n %d | xsel -i; xsel -o | xsel -i -b
<span class="org-comment-delimiter"># </span><span class="org-comment">Yank filename</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Yank filename</span>
map yn shell -f echo -n %f | xsel -i; xsel -o | xsel -i -b map yn shell -f echo -n %f | xsel -i; xsel -o | xsel -i -b
</pre> </pre>
</div> </div>
</div> </div>
@ -627,7 +627,7 @@ map yn shell -f echo -n %f | xsel -i; xsel -o | xsel -i -b
<h4 id="orgf653bf2">Drag and Drop</h4> <h4 id="orgf653bf2">Drag and Drop</h4>
<div class="outline-text-4" id="text-orgf653bf2"> <div class="outline-text-4" id="text-orgf653bf2">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map D shell dragon-drag-and-drop -a -x %p <pre class="src src-conf"> map D shell dragon-drag-and-drop -a -x %p
</pre> </pre>
</div> </div>
</div> </div>
@ -637,10 +637,10 @@ map yn shell -f echo -n %f | xsel -i; xsel -o | xsel -i -b
<h4 id="orgf520032">Rename files</h4> <h4 id="orgf520032">Rename files</h4>
<div class="outline-text-4" id="text-orgf520032"> <div class="outline-text-4" id="text-orgf520032">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map a rename_append <pre class="src src-conf"> map a rename_append
map C eval fm.execute_console(<span class="org-string">"bulkrename"</span>) if fm.thisdir.marked_items else fm.open_console(<span class="org-string">"rename "</span>) map C eval fm.execute_console(<span class="org-string">"bulkrename"</span>) if fm.thisdir.marked_items else fm.open_console(<span class="org-string">"rename "</span>)
map A eval fm.open_console(<span class="org-string">'rename '</span> + fm.thisfile.relative_path.replace(<span class="org-string">"%"</span>, <span class="org-string">"%%"</span>)) map A eval fm.open_console(<span class="org-string">'rename '</span> + fm.thisfile.relative_path.replace(<span class="org-string">"%"</span>, <span class="org-string">"%%"</span>))
map I eval fm.open_console(<span class="org-string">'rename '</span> + fm.thisfile.relative_path.replace(<span class="org-string">"%"</span>, <span class="org-string">"%%"</span>), position=<span class="org-highlight-numbers-number">7</span>) map I eval fm.open_console(<span class="org-string">'rename '</span> + fm.thisfile.relative_path.replace(<span class="org-string">"%"</span>, <span class="org-string">"%%"</span>), position=<span class="org-highlight-numbers-number">7</span>)
</pre> </pre>
</div> </div>
</div> </div>
@ -650,14 +650,14 @@ map I eval fm.open_console(<span class="org-string">'rename '</span> + fm.thisf
<h4 id="org402e074">Paste files</h4> <h4 id="org402e074">Paste files</h4>
<div class="outline-text-4" id="text-org402e074"> <div class="outline-text-4" id="text-org402e074">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map pp paste <pre class="src src-conf"> map pp paste
<span class="org-variable-name">map po paste overwrite</span>=True <span class="org-variable-name">map po paste overwrite</span>=True
<span class="org-variable-name">map pP paste append</span>=True <span class="org-variable-name">map pP paste append</span>=True
<span class="org-variable-name">map pO paste overwrite</span>=True append=True <span class="org-variable-name">map pO paste overwrite</span>=True append=True
<span class="org-variable-name">map pl paste_symlink relative</span>=False <span class="org-variable-name">map pl paste_symlink relative</span>=False
<span class="org-variable-name">map pL paste_symlink relative</span>=True <span class="org-variable-name">map pL paste_symlink relative</span>=True
map phl paste_hardlink map phl paste_hardlink
map pht paste_hardlinked_subtree map pht paste_hardlinked_subtree
</pre> </pre>
</div> </div>
@ -665,7 +665,7 @@ map pht paste_hardlinked_subtree
Paste with Rsync Paste with Rsync
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map pr shell ~/.config/ranger/scripts/paste-rsync.sh %d %c <pre class="src src-conf"> map pr shell ~/.config/ranger/scripts/paste-rsync.sh %d %c
</pre> </pre>
</div> </div>
</div> </div>
@ -675,9 +675,9 @@ Paste with Rsync
<h4 id="org5c2f844">Delete and move files</h4> <h4 id="org5c2f844">Delete and move files</h4>
<div class="outline-text-4" id="text-org5c2f844"> <div class="outline-text-4" id="text-org5c2f844">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map dD shell -s trash-put %s <pre class="src src-conf"> map dD shell -s trash-put %s
map dd cut map dd cut
map du uncut map du uncut
</pre> </pre>
</div> </div>
</div> </div>
@ -687,8 +687,8 @@ map du uncut
<h4 id="org8c6e09d">Copy files</h4> <h4 id="org8c6e09d">Copy files</h4>
<div class="outline-text-4" id="text-org8c6e09d"> <div class="outline-text-4" id="text-org8c6e09d">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map yy copy <pre class="src src-conf"> map yy copy
map yu uncut map yu uncut
</pre> </pre>
</div> </div>
</div> </div>
@ -698,9 +698,9 @@ map yu uncut
<h4 id="org9bae784">Searching</h4> <h4 id="org9bae784">Searching</h4>
<div class="outline-text-4" id="text-org9bae784"> <div class="outline-text-4" id="text-org9bae784">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map / console search%space <pre class="src src-conf"> map / console search%space
map n search_next map n search_next
<span class="org-variable-name">map N search_next forward</span>=False <span class="org-variable-name">map N search_next forward</span>=False
</pre> </pre>
</div> </div>
</div> </div>
@ -710,14 +710,14 @@ map n search_next
<h4 id="org179497a">Tabs</h4> <h4 id="org179497a">Tabs</h4>
<div class="outline-text-4" id="text-org179497a"> <div class="outline-text-4" id="text-org179497a">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map &lt;C-n&gt; tab_new ~ <pre class="src src-conf"> map &lt;C-n&gt; tab_new ~
map &lt;C-w&gt; tab_close map &lt;C-w&gt; tab_close
map &lt;TAB&gt; tab_move <span class="org-highlight-numbers-number">1</span> map &lt;TAB&gt; tab_move <span class="org-highlight-numbers-number">1</span>
map &lt;S-TAB&gt; tab_move -1 map &lt;S-TAB&gt; tab_move -1
map gn tab_new ~ map gn tab_new ~
map gt tab_move <span class="org-highlight-numbers-number">1</span> map gt tab_move <span class="org-highlight-numbers-number">1</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -727,10 +727,10 @@ map gt tab_move <span class="org-highlight-numbers-number">1</span>
<h4 id="org9362376">Settings</h4> <h4 id="org9362376">Settings</h4>
<div class="outline-text-4" id="text-org9362376"> <div class="outline-text-4" id="text-org9362376">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map zh set show_hidden! <pre class="src src-conf"> map zh set show_hidden!
map zi set preview_images! map zi set preview_images!
map zv set use_preview_script! map zv set use_preview_script!
</pre> </pre>
</div> </div>
</div> </div>
@ -740,13 +740,13 @@ map zv set use_preview_script!
<h4 id="org3d82580">Bookmarks</h4> <h4 id="org3d82580">Bookmarks</h4>
<div class="outline-text-4" id="text-org3d82580"> <div class="outline-text-4" id="text-org3d82580">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map `&lt;any&gt; enter_bookmark %any <pre class="src src-conf"> map `&lt;any&gt; enter_bookmark %any
map <span class="org-string">'&lt;any&gt; enter_bookmark %any</span> map <span class="org-string">'&lt;any&gt; enter_bookmark %any</span>
<span class="org-string">map m&lt;any&gt; set_bookmark %any</span> <span class="org-string"> map m&lt;any&gt; set_bookmark %any</span>
<span class="org-string">map um&lt;any&gt; unset_bookmark %any</span> <span class="org-string"> map um&lt;any&gt; unset_bookmark %any</span>
<span class="org-string">map m&lt;bg&gt; draw_bookmarks</span> <span class="org-string"> map m&lt;bg&gt; draw_bookmarks</span>
<span class="org-string">copymap m&lt;bg&gt; um&lt;bg&gt; `&lt;bg&gt; '</span>&lt;bg&gt; <span class="org-string"> copymap m&lt;bg&gt; um&lt;bg&gt; `&lt;bg&gt; '</span>&lt;bg&gt;
</pre> </pre>
</div> </div>
</div> </div>
@ -756,7 +756,7 @@ map <span class="org-string">'&lt;any&gt; enter_bookmark %any</span>
<h4 id="orgc3db4a0">FZF</h4> <h4 id="orgc3db4a0">FZF</h4>
<div class="outline-text-4" id="text-orgc3db4a0"> <div class="outline-text-4" id="text-orgc3db4a0">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">map &lt;C-f&gt; fzf_select <pre class="src src-conf"> map &lt;C-f&gt; fzf_select
</pre> </pre>
</div> </div>
</div> </div>
@ -767,9 +767,9 @@ map <span class="org-string">'&lt;any&gt; enter_bookmark %any</span>
<h3 id="org7e7a4ec">Define keys for the console</h3> <h3 id="org7e7a4ec">Define keys for the console</h3>
<div class="outline-text-3" id="text-org7e7a4ec"> <div class="outline-text-3" id="text-org7e7a4ec">
</div> </div>
<div id="outline-container-org5ba4b89" class="outline-4"> <div id="outline-container-org49c5be5" class="outline-4">
<h4 id="org5ba4b89">Basic</h4> <h4 id="org49c5be5">Basic</h4>
<div class="outline-text-4" id="text-org5ba4b89"> <div class="outline-text-4" id="text-org49c5be5">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf">cmap &lt;tab&gt; eval fm.ui.console.tab() <pre class="src src-conf">cmap &lt;tab&gt; eval fm.ui.console.tab()
cmap &lt;s-tab&gt; eval fm.ui.console.tab(-1) cmap &lt;s-tab&gt; eval fm.ui.console.tab(-1)
@ -820,209 +820,209 @@ copycmap &lt;end&gt; &lt;C-e&gt;
<h2 id="org9007d23">Rifle</h2> <h2 id="org9007d23">Rifle</h2>
<div class="outline-text-2" id="text-org9007d23"> <div class="outline-text-2" id="text-org9007d23">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">This is the configuration file of "rifle", ranger's file executor/opener.</span> <pre class="src src-conf"> <span class="org-comment-delimiter"># </span><span class="org-comment">This is the configuration file of "rifle", ranger's file executor/opener.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Each line consists of conditions and a command. For each line the conditions</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Each line consists of conditions and a command. For each line the conditions</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">are checked and if they are met, the respective command is run.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">are checked and if they are met, the respective command is run.</span>
<span class="org-comment-delimiter">#</span> <span class="org-comment-delimiter">#</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Syntax:</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Syntax:</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">&lt;condition1&gt; , &lt;condition2&gt; , ... = command</span> <span class="org-comment-delimiter"># </span><span class="org-comment">&lt;condition1&gt; , &lt;condition2&gt; , ... = command</span>
<span class="org-comment-delimiter">#</span> <span class="org-comment-delimiter">#</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">The command can contain these environment variables:</span> <span class="org-comment-delimiter"># </span><span class="org-comment">The command can contain these environment variables:</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">$1-$9 | The n-th selected file</span> <span class="org-comment-delimiter"># </span><span class="org-comment">$1-$9 | The n-th selected file</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">$@ | All selected files</span> <span class="org-comment-delimiter"># </span><span class="org-comment">$@ | All selected files</span>
<span class="org-comment-delimiter">#</span> <span class="org-comment-delimiter">#</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">If you use the special command "ask", rifle will ask you what program to run.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">If you use the special command "ask", rifle will ask you what program to run.</span>
<span class="org-comment-delimiter">#</span> <span class="org-comment-delimiter">#</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Prefixing a condition with "!" will negate its result.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Prefixing a condition with "!" will negate its result.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">These conditions are currently supported:</span> <span class="org-comment-delimiter"># </span><span class="org-comment">These conditions are currently supported:</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">match &lt;regexp&gt; | The regexp matches $1</span> <span class="org-comment-delimiter"># </span><span class="org-comment">match &lt;regexp&gt; | The regexp matches $1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">ext &lt;regexp&gt; | The regexp matches the extension of $1</span> <span class="org-comment-delimiter"># </span><span class="org-comment">ext &lt;regexp&gt; | The regexp matches the extension of $1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">mime &lt;regexp&gt; | The regexp matches the mime type of $1</span> <span class="org-comment-delimiter"># </span><span class="org-comment">mime &lt;regexp&gt; | The regexp matches the mime type of $1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">name &lt;regexp&gt; | The regexp matches the basename of $1</span> <span class="org-comment-delimiter"># </span><span class="org-comment">name &lt;regexp&gt; | The regexp matches the basename of $1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">path &lt;regexp&gt; | The regexp matches the absolute path of $1</span> <span class="org-comment-delimiter"># </span><span class="org-comment">path &lt;regexp&gt; | The regexp matches the absolute path of $1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">has &lt;program&gt; | The program is installed (i.e. located in $PATH)</span> <span class="org-comment-delimiter"># </span><span class="org-comment">has &lt;program&gt; | The program is installed (i.e. located in $PATH)</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">env &lt;variable&gt; | The environment variable "variable" is non-empty</span> <span class="org-comment-delimiter"># </span><span class="org-comment">env &lt;variable&gt; | The environment variable "variable" is non-empty</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">file | $1 is a file</span> <span class="org-comment-delimiter"># </span><span class="org-comment">file | $1 is a file</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">directory | $1 is a directory</span> <span class="org-comment-delimiter"># </span><span class="org-comment">directory | $1 is a directory</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">number &lt;n&gt; | change the number of this command to n</span> <span class="org-comment-delimiter"># </span><span class="org-comment">number &lt;n&gt; | change the number of this command to n</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">terminal | stdin, stderr and stdout are connected to a terminal</span> <span class="org-comment-delimiter"># </span><span class="org-comment">terminal | stdin, stderr and stdout are connected to a terminal</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">X | $DISPLAY is not empty (i.e. Xorg runs)</span> <span class="org-comment-delimiter"># </span><span class="org-comment">X | $DISPLAY is not empty (i.e. Xorg runs)</span>
<span class="org-comment-delimiter">#</span> <span class="org-comment-delimiter">#</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">There are also pseudo-conditions which have a "side effect":</span> <span class="org-comment-delimiter"># </span><span class="org-comment">There are also pseudo-conditions which have a "side effect":</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">flag &lt;flags&gt; | Change how the program is run. See below.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">flag &lt;flags&gt; | Change how the program is run. See below.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">label &lt;label&gt; | Assign a label or name to the command so it can</span> <span class="org-comment-delimiter"># </span><span class="org-comment">label &lt;label&gt; | Assign a label or name to the command so it can</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">| be started with :open_with &lt;label&gt; in ranger</span> <span class="org-comment-delimiter"># </span><span class="org-comment">| be started with :open_with &lt;label&gt; in ranger</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">| or `rifle -p &lt;label&gt;` in the standalone executable.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">| or `rifle -p &lt;label&gt;` in the standalone executable.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">else | Always true.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">else | Always true.</span>
<span class="org-comment-delimiter">#</span> <span class="org-comment-delimiter">#</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Flags are single characters which slightly transform the command:</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Flags are single characters which slightly transform the command:</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">f | Fork the program, make it run in the background.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">f | Fork the program, make it run in the background.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">| New command = setsid $command &gt;&amp; /dev/null &amp;</span> <span class="org-comment-delimiter"># </span><span class="org-comment">| New command = setsid $command &gt;&amp; /dev/null &amp;</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">r | Execute the command with root permissions</span> <span class="org-comment-delimiter"># </span><span class="org-comment">r | Execute the command with root permissions</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">| New command = sudo $command</span> <span class="org-comment-delimiter"># </span><span class="org-comment">| New command = sudo $command</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">t | Run the program in a new terminal. If $TERMCMD is not defined,</span> <span class="org-comment-delimiter"># </span><span class="org-comment">t | Run the program in a new terminal. If $TERMCMD is not defined,</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">| rifle will attempt to extract it from $TERM.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">| rifle will attempt to extract it from $TERM.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">| New command = $TERMCMD -e $command</span> <span class="org-comment-delimiter"># </span><span class="org-comment">| New command = $TERMCMD -e $command</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Note: The "New command" serves only as an illustration, the exact</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Note: The "New command" serves only as an illustration, the exact</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">implementation may differ.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">implementation may differ.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Note: When using rifle in ranger, there is an additional flag "c" for</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Note: When using rifle in ranger, there is an additional flag "c" for</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">only running the current file even if you have marked multiple files.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">only running the current file even if you have marked multiple files.</span>
<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">Websites</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Websites</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">Rarely installed browsers get higher priority; It is assumed that if you</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Rarely installed browsers get higher priority; It is assumed that if you</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">install a rare browser, you probably use it. Firefox/konqueror/w3m on the</span> <span class="org-comment-delimiter"># </span><span class="org-comment">install a rare browser, you probably use it. Firefox/konqueror/w3m on the</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">other hand are often only installed as fallback browsers.</span> <span class="org-comment-delimiter"># </span><span class="org-comment">other hand are often only installed as fallback browsers.</span>
<span class="org-variable-name">ext x?html?, has qutebrowser, X, flag f</span> = qutebrowser -- <span class="org-string">"$@"</span> <span class="org-variable-name">ext x?html?, has qutebrowser, X, flag f</span> = qutebrowser -- <span class="org-string">"$@"</span>
<span class="org-variable-name">ext x?html?, has firefox, X, flag f</span> = firefox -- <span class="org-string">"$@"</span> <span class="org-variable-name">ext x?html?, has firefox, X, flag f</span> = firefox -- <span class="org-string">"$@"</span>
<span class="org-variable-name">ext x?html?, has elinks, terminal</span> = elinks <span class="org-string">"$@"</span> <span class="org-variable-name">ext x?html?, has elinks, terminal</span> = elinks <span class="org-string">"$@"</span>
<span class="org-variable-name">ext x?html?, has links2, terminal</span> = links2 <span class="org-string">"$@"</span> <span class="org-variable-name">ext x?html?, has links2, terminal</span> = links2 <span class="org-string">"$@"</span>
<span class="org-variable-name">ext x?html?, has links, terminal</span> = links <span class="org-string">"$@"</span> <span class="org-variable-name">ext x?html?, has links, terminal</span> = links <span class="org-string">"$@"</span>
<span class="org-variable-name">ext x?html?, has lynx, terminal</span> = lynx -- <span class="org-string">"$@"</span> <span class="org-variable-name">ext x?html?, has lynx, terminal</span> = lynx -- <span class="org-string">"$@"</span>
<span class="org-variable-name">ext x?html?, has w3m, terminal</span> = w3m <span class="org-string">"$@"</span> <span class="org-variable-name">ext x?html?, has w3m, terminal</span> = w3m <span class="org-string">"$@"</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">Spreadsheets for scim</span> <span class="org-comment-delimiter">#</span><span class="org-comment">Spreadsheets for scim</span>
<span class="org-variable-name">ext sc|csv|sxc|xlsx?|xlt|xlw|gnm|gnumeric,</span> = sc-im -- <span class="org-string">"$@"</span> <span class="org-variable-name">ext sc|csv|sxc|xlsx?|xlt|xlw|gnm|gnumeric,</span> = sc-im -- <span class="org-string">"$@"</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">-------------------------------------------</span> <span class="org-comment-delimiter">#</span><span class="org-comment">-------------------------------------------</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Misc</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Misc</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">-------------------------------------------</span> <span class="org-comment-delimiter">#</span><span class="org-comment">-------------------------------------------</span>
<span class="org-variable-name">ext org</span> = emacsclient -c <span class="org-string">"$1"</span> <span class="org-variable-name">ext org</span> = emacsclient -c <span class="org-string">"$1"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Define the "editor" for text files as first action</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Define the "editor" for text files as first action</span>
<span class="org-variable-name">mime ^text, label editor</span> = $EDITOR -- <span class="org-string">"$@"</span> <span class="org-variable-name">mime ^text, label editor</span> = $EDITOR -- <span class="org-string">"$@"</span>
<span class="org-variable-name">mime ^text, label pager</span> = <span class="org-string">"$PAGER"</span> -- <span class="org-string">"$@"</span> <span class="org-variable-name">mime ^text, label pager</span> = <span class="org-string">"$PAGER"</span> -- <span class="org-string">"$@"</span>
<span class="org-variable-name">!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php</span> = $EDITOR -- <span class="org-string">"$@"</span> <span class="org-variable-name">!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php</span> = $EDITOR -- <span class="org-string">"$@"</span>
<span class="org-variable-name">!mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php</span> = <span class="org-string">"$PAGER"</span> -- <span class="org-string">"$@"</span> <span class="org-variable-name">!mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php</span> = <span class="org-string">"$PAGER"</span> -- <span class="org-string">"$@"</span>
ext <span class="org-highlight-numbers-number">1</span> = man <span class="org-string">"$1"</span> ext <span class="org-highlight-numbers-number">1</span> = man <span class="org-string">"$1"</span>
<span class="org-variable-name">ext s[wmf]c, has zsnes, X</span> = zsnes <span class="org-string">"$1"</span> <span class="org-variable-name">ext s[wmf]c, has zsnes, X</span> = zsnes <span class="org-string">"$1"</span>
<span class="org-variable-name">ext s[wmf]c, has snes9x-gtk,X</span> = snes9x-gtk <span class="org-string">"$1"</span> <span class="org-variable-name">ext s[wmf]c, has snes9x-gtk,X</span> = snes9x-gtk <span class="org-string">"$1"</span>
<span class="org-variable-name">ext nes, has fceux, X</span> = fceux <span class="org-string">"$1"</span> <span class="org-variable-name">ext nes, has fceux, X</span> = fceux <span class="org-string">"$1"</span>
<span class="org-variable-name">ext exe</span> = wine <span class="org-string">"$1"</span> <span class="org-variable-name">ext exe</span> = wine <span class="org-string">"$1"</span>
<span class="org-variable-name">name ^[mM]akefile$</span> = make <span class="org-variable-name">name ^[mM]akefile$</span> = make
<span class="org-comment-delimiter">#</span><span class="org-comment">--------------------------------------------</span> <span class="org-comment-delimiter">#</span><span class="org-comment">--------------------------------------------</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Code</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Code</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">-------------------------------------------</span> <span class="org-comment-delimiter">#</span><span class="org-comment">-------------------------------------------</span>
<span class="org-variable-name">ext py</span> = python -- <span class="org-string">"$1"</span> <span class="org-variable-name">ext py</span> = python -- <span class="org-string">"$1"</span>
<span class="org-variable-name">ext pl</span> = perl -- <span class="org-string">"$1"</span> <span class="org-variable-name">ext pl</span> = perl -- <span class="org-string">"$1"</span>
<span class="org-variable-name">ext rb</span> = ruby -- <span class="org-string">"$1"</span> <span class="org-variable-name">ext rb</span> = ruby -- <span class="org-string">"$1"</span>
<span class="org-variable-name">ext js</span> = node -- <span class="org-string">"$1"</span> <span class="org-variable-name">ext js</span> = node -- <span class="org-string">"$1"</span>
<span class="org-variable-name">ext sh</span> = sh -- <span class="org-string">"$1"</span> <span class="org-variable-name">ext sh</span> = sh -- <span class="org-string">"$1"</span>
<span class="org-variable-name">ext php</span> = php -- <span class="org-string">"$1"</span> <span class="org-variable-name">ext php</span> = php -- <span class="org-string">"$1"</span>
<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/Audio with a GUI</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Video/Audio with a GUI</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-variable-name">mime ^video, has mpv, X, flag f</span> = mpv -- <span class="org-string">"$@"</span> <span class="org-variable-name">mime ^video, has mpv, X, flag f</span> = mpv -- <span class="org-string">"$@"</span>
<span class="org-variable-name">mime ^video, has mpv, X, flag f</span> = mpv --fs -- <span class="org-string">"$@"</span> <span class="org-variable-name">mime ^video, has mpv, X, flag f</span> = mpv --fs -- <span class="org-string">"$@"</span>
<span class="org-variable-name">mime ^video, has mpv, X, flag f</span> = mpv --loop -- <span class="org-string">"$@"</span> <span class="org-variable-name">mime ^video, has mpv, X, flag f</span> = mpv --loop -- <span class="org-string">"$@"</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">--------------------------------------------</span> <span class="org-comment-delimiter">#</span><span class="org-comment">--------------------------------------------</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Audio without X</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Audio without X</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-variable-name">mime ^audio|ogg$, terminal, has mpv</span> = mpv --no-audio-display -- <span class="org-string">"$@"</span> <span class="org-variable-name">mime ^audio|ogg$, terminal, has mpv</span> = mpv --no-audio-display -- <span class="org-string">"$@"</span>
<span class="org-variable-name">mime ^audio|ogg$</span> = tag <span class="org-string">"$@"</span> <span class="org-variable-name">mime ^audio|ogg$</span> = tag <span class="org-string">"$@"</span>
<span class="org-variable-name">mime ^audio|ogg$, terminal, has mpv</span> = mpv -- <span class="org-string">"$@"</span> <span class="org-variable-name">mime ^audio|ogg$, terminal, has mpv</span> = mpv -- <span class="org-string">"$@"</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">--------------------------------------------</span> <span class="org-comment-delimiter">#</span><span class="org-comment">--------------------------------------------</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Video without X:</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Video without X:</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-variable-name">mime ^video, terminal, !X, has mpv</span> = mpv -- <span class="org-string">"$@"</span> <span class="org-variable-name">mime ^video, terminal, !X, has mpv</span> = mpv -- <span class="org-string">"$@"</span>
<span class="org-variable-name">mime ^video, terminal, !X, has mplayer2</span> = mplayer2 -- <span class="org-string">"$@"</span> <span class="org-variable-name">mime ^video, terminal, !X, has mplayer2</span> = mplayer2 -- <span class="org-string">"$@"</span>
<span class="org-variable-name">mime ^video, terminal, !X, has mplayer</span> = mplayer -- <span class="org-string">"$@"</span> <span class="org-variable-name">mime ^video, terminal, !X, has mplayer</span> = mplayer -- <span class="org-string">"$@"</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">-------------------------------------------</span> <span class="org-comment-delimiter">#</span><span class="org-comment">-------------------------------------------</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Documents</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Documents</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">-------------------------------------------</span> <span class="org-comment-delimiter">#</span><span class="org-comment">-------------------------------------------</span>
<span class="org-variable-name">ext pdf, has zathura, X, flag f</span> = zathura -- <span class="org-string">"$@"</span> <span class="org-variable-name">ext pdf, has zathura, X, flag f</span> = zathura -- <span class="org-string">"$@"</span>
<span class="org-variable-name">ext pdf, has llpp, X, flag f</span> = llpp <span class="org-string">"$@"</span> <span class="org-variable-name">ext pdf, has llpp, X, flag f</span> = llpp <span class="org-string">"$@"</span>
<span class="org-variable-name">ext pdf, has mupdf, X, flag f</span> = mupdf <span class="org-string">"$@"</span> <span class="org-variable-name">ext pdf, has mupdf, X, flag f</span> = mupdf <span class="org-string">"$@"</span>
<span class="org-variable-name">ext pdf, has mupdf, X, flag f</span> = mupdf -I <span class="org-string">"$@"</span> <span class="org-variable-name">ext pdf, has mupdf, X, flag f</span> = mupdf -I <span class="org-string">"$@"</span>
<span class="org-variable-name">ext pdf, has mupdf-x11,X, flag f</span> = mupdf-x11 <span class="org-string">"$@"</span> <span class="org-variable-name">ext pdf, has mupdf-x11,X, flag f</span> = mupdf-x11 <span class="org-string">"$@"</span>
<span class="org-variable-name">ext pdf, has apvlv, X, flag f</span> = apvlv -- <span class="org-string">"$@"</span> <span class="org-variable-name">ext pdf, has apvlv, X, flag f</span> = apvlv -- <span class="org-string">"$@"</span>
<span class="org-variable-name">ext pdf, has xpdf, X, flag f</span> = xpdf -- <span class="org-string">"$@"</span> <span class="org-variable-name">ext pdf, has xpdf, X, flag f</span> = xpdf -- <span class="org-string">"$@"</span>
<span class="org-variable-name">ext pdf, has evince, X, flag f</span> = evince -- <span class="org-string">"$@"</span> <span class="org-variable-name">ext pdf, has evince, X, flag f</span> = evince -- <span class="org-string">"$@"</span>
<span class="org-variable-name">ext pdf, has atril, X, flag f</span> = atril -- <span class="org-string">"$@"</span> <span class="org-variable-name">ext pdf, has atril, X, flag f</span> = atril -- <span class="org-string">"$@"</span>
<span class="org-variable-name">ext pdf, has okular, X, flag f</span> = okular -- <span class="org-string">"$@"</span> <span class="org-variable-name">ext pdf, has okular, X, flag f</span> = okular -- <span class="org-string">"$@"</span>
<span class="org-variable-name">ext pdf, has epdfview, X, flag f</span> = epdfview -- <span class="org-string">"$@"</span> <span class="org-variable-name">ext pdf, has epdfview, X, flag f</span> = epdfview -- <span class="org-string">"$@"</span>
<span class="org-variable-name">ext pdf, has qpdfview, X, flag f</span> = qpdfview <span class="org-string">"$@"</span> <span class="org-variable-name">ext pdf, has qpdfview, X, flag f</span> = qpdfview <span class="org-string">"$@"</span>
<span class="org-variable-name">ext epub, has zathura, X, flag f</span> = zathura -- <span class="org-string">"$@"</span> <span class="org-variable-name">ext epub, has zathura, X, flag f</span> = zathura -- <span class="org-string">"$@"</span>
<span class="org-variable-name">ext epub, has mupdf, X, flag f</span> = mupdf <span class="org-string">"$@"</span> <span class="org-variable-name">ext epub, has mupdf, X, flag f</span> = mupdf <span class="org-string">"$@"</span>
<span class="org-variable-name">ext docx?, has wps, X, flag f</span> = wps <span class="org-string">"$@"</span> <span class="org-variable-name">ext docx?, has wps, X, flag f</span> = wps <span class="org-string">"$@"</span>
<span class="org-variable-name">ext docx?, has catdoc, terminal</span> = catdoc -- <span class="org-string">"$@"</span> | <span class="org-string">"$PAGER"</span> <span class="org-variable-name">ext docx?, has catdoc, terminal</span> = catdoc -- <span class="org-string">"$@"</span> | <span class="org-string">"$PAGER"</span>
<span class="org-variable-name">ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has wpp, X, flag f</span> = wpp <span class="org-string">"$@"</span> <span class="org-variable-name">ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has wpp, X, flag f</span> = wpp <span class="org-string">"$@"</span>
<span class="org-variable-name">ext sxc|xlsx?|xlt|xlw|gnm|gnumeric, has gnumeric, X, flag f</span> = gnumeric -- <span class="org-string">"$@"</span> <span class="org-variable-name">ext sxc|xlsx?|xlt|xlw|gnm|gnumeric, has gnumeric, X, flag f</span> = gnumeric -- <span class="org-string">"$@"</span>
<span class="org-variable-name">ext sxc|xlsx?|xlt|xlw|gnm|gnumeric, has kspread, X, flag f</span> = kspread -- <span class="org-string">"$@"</span> <span class="org-variable-name">ext sxc|xlsx?|xlt|xlw|gnm|gnumeric, has kspread, X, flag f</span> = kspread -- <span class="org-string">"$@"</span>
<span class="org-variable-name">ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has libreoffice, X, flag f</span> = libreoffice <span class="org-string">"$@"</span> <span class="org-variable-name">ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has libreoffice, X, flag f</span> = libreoffice <span class="org-string">"$@"</span>
<span class="org-variable-name">ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has soffice, X, flag f</span> = soffice <span class="org-string">"$@"</span> <span class="org-variable-name">ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has soffice, X, flag f</span> = soffice <span class="org-string">"$@"</span>
<span class="org-variable-name">ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has ooffice, X, flag f</span> = ooffice <span class="org-string">"$@"</span> <span class="org-variable-name">ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has ooffice, X, flag f</span> = ooffice <span class="org-string">"$@"</span>
<span class="org-variable-name">ext djvu, has zathura,X, flag f</span> = zathura -- <span class="org-string">"$@"</span> <span class="org-variable-name">ext djvu, has zathura,X, flag f</span> = zathura -- <span class="org-string">"$@"</span>
<span class="org-variable-name">ext djvu, has evince, X, flag f</span> = evince -- <span class="org-string">"$@"</span> <span class="org-variable-name">ext djvu, has evince, X, flag f</span> = evince -- <span class="org-string">"$@"</span>
<span class="org-variable-name">ext djvu, has atril, X, flag f</span> = atril -- <span class="org-string">"$@"</span> <span class="org-variable-name">ext djvu, has atril, X, flag f</span> = atril -- <span class="org-string">"$@"</span>
<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">Image Viewing:</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Image Viewing:</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-variable-name">mime ^image/svg, has inkscape, X, flag f</span> = inkscape -- <span class="org-string">"$@"</span> <span class="org-variable-name">mime ^image/svg, has inkscape, X, flag f</span> = inkscape -- <span class="org-string">"$@"</span>
<span class="org-variable-name">mime ^image/svg, has display, X, flag f</span> = display -- <span class="org-string">"$@"</span> <span class="org-variable-name">mime ^image/svg, has display, X, flag f</span> = display -- <span class="org-string">"$@"</span>
<span class="org-variable-name">mime ^image/gif, has mpv, X, flag f</span> = mpv --loop -- <span class="org-string">"$@"</span> <span class="org-variable-name">mime ^image/gif, has mpv, X, flag f</span> = mpv --loop -- <span class="org-string">"$@"</span>
<span class="org-variable-name">mime ^image/gif, has viewnior, X, flag f</span> = viewnior -- <span class="org-string">"$@"</span> <span class="org-variable-name">mime ^image/gif, has viewnior, X, flag f</span> = viewnior -- <span class="org-string">"$@"</span>
<span class="org-variable-name">mime ^image/gif, has qutebrowser, X, flag f</span> = qutebrowser -- <span class="org-string">"$@"</span> <span class="org-variable-name">mime ^image/gif, has qutebrowser, X, flag f</span> = qutebrowser -- <span class="org-string">"$@"</span>
<span class="org-variable-name">ext xcf, X, flag f</span> = gimp -- <span class="org-string">"$@"</span> <span class="org-variable-name">ext xcf, X, flag f</span> = gimp -- <span class="org-string">"$@"</span>
<span class="org-variable-name">mime ^image, has sxiv, X, flag f</span> = sxiv -- <span class="org-string">"$@"</span> <span class="org-variable-name">mime ^image, has sxiv, X, flag f</span> = sxiv -- <span class="org-string">"$@"</span>
<span class="org-variable-name">mime ^image, has feh, X, flag f</span> = feh --scale-down --auto-zoom --image-bg black -- <span class="org-string">"$@"</span> <span class="org-variable-name">mime ^image, has feh, X, flag f</span> = feh --scale-down --auto-zoom --image-bg black -- <span class="org-string">"$@"</span>
<span class="org-variable-name">mime ^image, has feh, X, flag f</span> = feh --scale-down --auto-zoom -- <span class="org-string">"$@"</span> <span class="org-variable-name">mime ^image, has feh, X, flag f</span> = feh --scale-down --auto-zoom -- <span class="org-string">"$@"</span>
<span class="org-variable-name">mime ^image, has mirage, X, flag f</span> = mirage -- <span class="org-string">"$@"</span> <span class="org-variable-name">mime ^image, has mirage, X, flag f</span> = mirage -- <span class="org-string">"$@"</span>
<span class="org-variable-name">mime ^image, has ristretto, X, flag f</span> = ristretto <span class="org-string">"$@"</span> <span class="org-variable-name">mime ^image, has ristretto, X, flag f</span> = ristretto <span class="org-string">"$@"</span>
<span class="org-variable-name">mime ^image, has eog, X, flag f</span> = eog -- <span class="org-string">"$@"</span> <span class="org-variable-name">mime ^image, has eog, X, flag f</span> = eog -- <span class="org-string">"$@"</span>
<span class="org-variable-name">mime ^image, has eom, X, flag f</span> = eom -- <span class="org-string">"$@"</span> <span class="org-variable-name">mime ^image, has eom, X, flag f</span> = eom -- <span class="org-string">"$@"</span>
<span class="org-variable-name">mime ^image, has gimp, X, flag f</span> = gimp -- <span class="org-string">"$@"</span> <span class="org-variable-name">mime ^image, has gimp, X, flag f</span> = gimp -- <span class="org-string">"$@"</span>
<span class="org-variable-name">mime ^image, has pinta, X, flag f</span> = pinta -- <span class="org-string">"$@"</span> <span class="org-variable-name">mime ^image, has pinta, X, flag f</span> = pinta -- <span class="org-string">"$@"</span>
<span class="org-variable-name">mime ^image, has mypaint, X, flag f</span> = mypaint -- <span class="org-string">"$@"</span> <span class="org-variable-name">mime ^image, has mypaint, X, flag f</span> = mypaint -- <span class="org-string">"$@"</span>
<span class="org-variable-name">mime ^image, has kolourpaint, X, flag f</span> = kolourpaint -- <span class="org-string">"$@"</span> <span class="org-variable-name">mime ^image, has kolourpaint, X, flag f</span> = kolourpaint -- <span class="org-string">"$@"</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">-------------------------------------------</span> <span class="org-comment-delimiter">#</span><span class="org-comment">-------------------------------------------</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Archives</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Archives</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">-------------------------------------------</span> <span class="org-comment-delimiter">#</span><span class="org-comment">-------------------------------------------</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">This requires atool</span> <span class="org-comment-delimiter"># </span><span class="org-comment">This requires atool</span>
<span class="org-variable-name">ext jar</span> = java -jar <span class="org-string">"$@"</span> <span class="org-variable-name">ext jar</span> = java -jar <span class="org-string">"$@"</span>
<span class="org-variable-name">ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has als</span> = als -- <span class="org-string">"$@"</span> | <span class="org-string">"$PAGER"</span> <span class="org-variable-name">ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has als</span> = als -- <span class="org-string">"$@"</span> | <span class="org-string">"$PAGER"</span>
<span class="org-variable-name">ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has als</span> = als -- <span class="org-string">"$@"</span> | <span class="org-string">"$PAGER"</span> <span class="org-variable-name">ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has als</span> = als -- <span class="org-string">"$@"</span> | <span class="org-string">"$PAGER"</span>
<span class="org-variable-name">ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has aunpack</span> = aunpack -- <span class="org-string">"$@"</span> <span class="org-variable-name">ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has aunpack</span> = aunpack -- <span class="org-string">"$@"</span>
<span class="org-variable-name">ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has aunpack</span> = aunpack -- <span class="org-string">"$@"</span> <span class="org-variable-name">ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has aunpack</span> = aunpack -- <span class="org-string">"$@"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Fallback:</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Fallback:</span>
<span class="org-variable-name">ext tar|gz, has tar</span> = tar vvtf <span class="org-string">"$@"</span> | <span class="org-string">"$PAGER"</span> <span class="org-variable-name">ext tar|gz, has tar</span> = tar vvtf <span class="org-string">"$@"</span> | <span class="org-string">"$PAGER"</span>
<span class="org-variable-name">ext tar|gz, has tar</span> = tar vvxf <span class="org-string">"$@"</span> <span class="org-variable-name">ext tar|gz, has tar</span> = tar vvxf <span class="org-string">"$@"</span>
<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">Misc</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Misc</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">-------------------------------------------</span> <span class="org-comment-delimiter">#</span><span class="org-comment">-------------------------------------------</span>
label wallpaper, number <span class="org-highlight-numbers-number">11</span>, mime ^image, has feh, X = feh --bg-scale <span class="org-string">"$1"</span> label wallpaper, number <span class="org-highlight-numbers-number">11</span>, mime ^image, has feh, X = feh --bg-scale <span class="org-string">"$1"</span>
label wallpaper, number <span class="org-highlight-numbers-number">12</span>, mime ^image, has feh, X = feh --bg-tile <span class="org-string">"$1"</span> label wallpaper, number <span class="org-highlight-numbers-number">12</span>, mime ^image, has feh, X = feh --bg-tile <span class="org-string">"$1"</span>
label wallpaper, number <span class="org-highlight-numbers-number">13</span>, mime ^image, has feh, X = feh --bg-center <span class="org-string">"$1"</span> label wallpaper, number <span class="org-highlight-numbers-number">13</span>, mime ^image, has feh, X = feh --bg-center <span class="org-string">"$1"</span>
label wallpaper, number <span class="org-highlight-numbers-number">14</span>, mime ^image, has feh, X = feh --bg-fill <span class="org-string">"$1"</span> label wallpaper, number <span class="org-highlight-numbers-number">14</span>, mime ^image, has feh, X = feh --bg-fill <span class="org-string">"$1"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Define the editor for non-text files + pager as last action</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Define the editor for non-text files + pager as last action</span>
<span class="org-variable-name">!mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php</span> = ask <span class="org-variable-name">!mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php</span> = ask
<span class="org-variable-name">label editor, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php</span> = $EDITOR -- <span class="org-string">"$@"</span> <span class="org-variable-name">label editor, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php</span> = $EDITOR -- <span class="org-string">"$@"</span>
<span class="org-variable-name">label pager, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php</span> = <span class="org-string">"$PAGER"</span> -- <span class="org-string">"$@"</span> <span class="org-variable-name">label pager, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php</span> = <span class="org-string">"$PAGER"</span> -- <span class="org-string">"$@"</span>
<span class="org-variable-name">ext blend, has blender, X, flag f</span> = blender -- <span class="org-string">"$@"</span> <span class="org-variable-name">ext blend, has blender, X, flag f</span> = blender -- <span class="org-string">"$@"</span>
<span class="org-variable-name">has dragon-drag-and-drop, X, flag f</span> = dragon-drag-and-drop -a -x <span class="org-string">"$@"</span> <span class="org-variable-name">has dragon-drag-and-drop, X, flag f</span> = dragon-drag-and-drop -a -x <span class="org-string">"$@"</span>
</pre> </pre>
</div> </div>
</div> </div>
@ -1036,9 +1036,9 @@ label wallpaper, number <span class="org-highlight-numbers-number">14</span>, mi
<h3 id="org58a0d43">Import</h3> <h3 id="org58a0d43">Import</h3>
<div class="outline-text-3" id="text-org58a0d43"> <div class="outline-text-3" id="text-org58a0d43">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python"><span class="org-keyword">from</span> ranger.api.commands <span class="org-keyword">import</span> * <pre class="src src-python"> <span class="org-keyword">from</span> ranger.api.commands <span class="org-keyword">import</span> *
<span class="org-keyword">import</span> os <span class="org-keyword">import</span> os
</pre> </pre>
</div> </div>
</div> </div>
@ -1048,7 +1048,7 @@ label wallpaper, number <span class="org-highlight-numbers-number">14</span>, mi
<h3 id="orgb79cde7">fzf_select</h3> <h3 id="orgb79cde7">fzf_select</h3>
<div class="outline-text-3" id="text-orgb79cde7"> <div class="outline-text-3" id="text-orgb79cde7">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-python"><span class="org-keyword">class</span> <span class="org-type">fzf_select</span>(Command): <pre class="src src-python"> <span class="org-keyword">class</span> <span class="org-type">fzf_select</span>(Command):
<span class="org-doc">"""</span> <span class="org-doc">"""</span>
<span class="org-doc"> :fzf_select</span> <span class="org-doc"> :fzf_select</span>
@ -1085,7 +1085,7 @@ label wallpaper, number <span class="org-highlight-numbers-number">14</span>, mi
</div> </div>
<div id="postamble" class="status"> <div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p> <p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2021-01-01 ven. 20:09</p> <p class="date">Created: 2021-01-03 dim. 22:51</p>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head> <head>
<!-- 2021-01-01 ven. 20:09 --> <!-- 2021-01-03 dim. 22:25 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Rofi Configuration</title> <title>Rofi Configuration</title>
<meta name="generator" content="Org mode" /> <meta name="generator" content="Org mode" />
@ -32,52 +32,52 @@
<h2 id="orgcda15fb">Rofi</h2> <h2 id="orgcda15fb">Rofi</h2>
<div class="outline-text-2" id="text-orgcda15fb"> <div class="outline-text-2" id="text-orgcda15fb">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf"><span class="org-type">configuration</span> { <pre class="src src-conf"> <span class="org-type">configuration</span> {
modi: <span class="org-string">"window,run,ssh"</span>; modi: <span class="org-string">"window,run,ssh"</span>;
width: <span class="org-highlight-numbers-number">50</span>; width: <span class="org-highlight-numbers-number">50</span>;
lines: <span class="org-highlight-numbers-number">15</span>; lines: <span class="org-highlight-numbers-number">15</span>;
columns: <span class="org-highlight-numbers-number">1</span>; columns: <span class="org-highlight-numbers-number">1</span>;
font: <span class="org-string">"Hack Nerd Font 12"</span>; font: <span class="org-string">"Hack Nerd Font 12"</span>;
fixed-num-lines: true; fixed-num-lines: true;
show-icons: false; show-icons: false;
terminal: <span class="org-string">"rofi-sensible-terminal"</span>; terminal: <span class="org-string">"rofi-sensible-terminal"</span>;
sort: false; sort: false;
case-sensitive: false; case-sensitive: false;
cycle: true; cycle: true;
sidebar-mode: false; sidebar-mode: false;
auto-select: false; auto-select: false;
combi-modi: <span class="org-string">"window,run"</span>; combi-modi: <span class="org-string">"window,run"</span>;
matching: <span class="org-string">"normal"</span>; matching: <span class="org-string">"normal"</span>;
line-margin: <span class="org-highlight-numbers-number">2</span>; line-margin: <span class="org-highlight-numbers-number">2</span>;
line-padding: <span class="org-highlight-numbers-number">1</span>; line-padding: <span class="org-highlight-numbers-number">1</span>;
separator-style: <span class="org-string">"dash"</span>; separator-style: <span class="org-string">"dash"</span>;
hide-scrollbar: true; hide-scrollbar: true;
fullscreen: false; fullscreen: false;
dpi: -1; dpi: -1;
show-match: true; show-match: true;
theme: <span class="org-string">"gruvbox-dark-soft"</span>; theme: <span class="org-string">"gruvbox-dark-soft"</span>;
kb-move-front: <span class="org-string">"Control+a"</span>; kb-move-front: <span class="org-string">"Control+a"</span>;
kb-move-end: <span class="org-string">"Control+e"</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-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-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-back: <span class="org-string">"Left,Control+b"</span>;
kb-move-char-forward: <span class="org-string">"Right,Control+f"</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-forward: <span class="org-string">"Delete,Control+d"</span>;
kb-remove-char-back: <span class="org-string">"BackSpace,Shift+BackSpace"</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-eol: <span class="org-string">"Control+k"</span>;
kb-remove-to-sol: <span class="org-string">"Control+u"</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-entry: <span class="org-string">"Control+j,Return,KP_Enter"</span>;
kb-accept-custom: <span class="org-string">"Control+Return"</span>; kb-accept-custom: <span class="org-string">"Control+Return"</span>;
kb-accept-alt: <span class="org-string">"Shift+Return"</span>; kb-accept-alt: <span class="org-string">"Shift+Return"</span>;
kb-delete-entry: <span class="org-string">"Shift+Delete"</span>; kb-delete-entry: <span class="org-string">"Shift+Delete"</span>;
kb-row-up: <span class="org-string">"Up,Control+p"</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-down: <span class="org-string">"Down,Control+n"</span>;
kb-row-tab: <span class="org-string">"Tab"</span>; kb-row-tab: <span class="org-string">"Tab"</span>;
kb-row-first: <span class="org-string">"Home,KP_Home"</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-last: <span class="org-string">"End,KP_End"</span>;
kb-row-select: <span class="org-string">"Control+space"</span>; kb-row-select: <span class="org-string">"Control+space"</span>;
kb-cancel: <span class="org-string">"Escape,Control+g"</span>; kb-cancel: <span class="org-string">"Escape,Control+g"</span>;
} }
</pre> </pre>
</div> </div>
</div> </div>
@ -87,7 +87,7 @@ kb-cancel: <span class="org-string">"Escape,Control+g"</span>;
<h2 id="orged85414">Theme</h2> <h2 id="orged85414">Theme</h2>
<div class="outline-text-2" id="text-orged85414"> <div class="outline-text-2" id="text-orged85414">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-conf"><span class="org-type">configuration</span> { <pre class="src src-conf"> <span class="org-type">configuration</span> {
me-select-entry: <span class="org-string">"MouseSecondary"</span>; me-select-entry: <span class="org-string">"MouseSecondary"</span>;
me-accept-entry: <span class="org-string">"MousePrimary"</span>; me-accept-entry: <span class="org-string">"MousePrimary"</span>;
scroll-method: <span class="org-highlight-numbers-number">1</span>; scroll-method: <span class="org-highlight-numbers-number">1</span>;
@ -113,39 +113,38 @@ kb-cancel: <span class="org-string">"Escape,Control+g"</span>;
kb-select-8: <span class="org-string">"Alt+8"</span>; kb-select-8: <span class="org-string">"Alt+8"</span>;
kb-select-9: <span class="org-string">"Alt+9"</span>; kb-select-9: <span class="org-string">"Alt+9"</span>;
kb-select-10: <span class="org-string">"Alt+0"</span>; kb-select-10: <span class="org-string">"Alt+0"</span>;
} }
<span class="org-type">*</span> { <span class="org-type">*</span> {
//// COLORS //// //// COLORS ////
//// uncomment to match bspwm edition theme //// uncomment to match bspwm edition theme
background: <span class="org-comment-delimiter">#</span><span class="org-comment">292f34FF;</span> 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> 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> 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: <span class="org-comment-delimiter">#</span><span class="org-comment">1ABB9BFF;</span>
selected-foreground: @foreground; selected-foreground: @foreground;
//// uncomment to match Adapta Nokto theme //// uncomment to match Adapta Nokto theme
// background: <span class="org-comment-delimiter">#</span><span class="org-comment">222D32E8;</span> // 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> // 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> // 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: <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> // selected-foreground: <span class="org-comment-delimiter">#</span><span class="org-comment">FFFFFFFF;</span>
//// common - active and urgent //// common - active and urgent
active-background: <span class="org-comment-delimiter">#</span><span class="org-comment">3A464BFF;</span> 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-background: <span class="org-comment-delimiter">#</span><span class="org-comment">800000FF;</span>
urgent-foreground: @foreground; urgent-foreground: @foreground;
selected-urgent-background: @urgent-foreground; selected-urgent-background: @urgent-foreground;
selected-urgent-foreground: @urgent-background; selected-urgent-foreground: @urgent-background;
//// TEXT //// //// TEXT ////
font: <span class="org-string">"xos4 Terminus 18px"</span>; font: <span class="org-string">"xos4 Terminus 18px"</span>;
// font: <span class="org-string">"Knack Nerd Font 16px"</span>;
text-color: @foreground; text-color: @foreground;
//// PADDING ETC //// //// PADDING ETC ////
margin: 0px; margin: 0px;
border: 0px; border: 0px;
@ -155,118 +154,118 @@ kb-cancel: <span class="org-string">"Escape,Control+g"</span>;
elementmargin: 0px 2px; elementmargin: 0px 2px;
listmargin: 0px 2px 0px 0px; listmargin: 0px 2px 0px 0px;
//// SIZE //// //// SIZE ////
windowwidth: 40ch; windowwidth: 40ch;
buttonwidth: 18ch; buttonwidth: 18ch;
lines: <span class="org-highlight-numbers-number">12</span>; lines: <span class="org-highlight-numbers-number">12</span>;
fixed-height: false; fixed-height: false;
//// POSITION //// //// POSITION ////
location: northwest; location: northwest;
anchor: northwest; anchor: northwest;
x-offset: 0px; x-offset: 0px;
y-offset: 24px; y-offset: 24px;
//// LAYOUT //// //// LAYOUT ////
scrollbar: true; scrollbar: true;
//// uncomment to get submenu-like style //// uncomment to get submenu-like style
menustyle: [ sb-mainbox ]; menustyle: [ sb-mainbox ];
buttonpadding: 2px 1ch; buttonpadding: 2px 1ch;
button-bg: @background; button-bg: @background;
dynamic: true; dynamic: true;
//// uncomment to get tabs-like style //// uncomment to get tabs-like style
// menustyle: [ tb-mainbox ]; // menustyle: [ tb-mainbox ];
// buttonpadding: 14px 1ch; // buttonpadding: 14px 1ch;
// dynamic: false; // dynamic: false;
} }
////////////////////////////////////////// //////////////////////////////////////////
<span class="org-type">window</span> { <span class="org-type">window</span> {
width: @windowwidth; width: @windowwidth;
children: @menustyle; children: @menustyle;
} }
//submenu-style //submenu-style
<span class="org-type">sb-mainbox</span> { <span class="org-type">sb-mainbox</span> {
orientation: horizontal; orientation: horizontal;
children: [ sidebar, vertibox ]; children: [ sidebar, vertibox ];
} }
//tabs-style //tabs-style
<span class="org-type">tb-mainbox</span> { <span class="org-type">tb-mainbox</span> {
orientation: vertical; orientation: vertical;
children: [ inputbar, horibox ]; children: [ inputbar, horibox ];
background-color: @background; background-color: @background;
} }
//desktop-submenu //desktop-submenu
<span class="org-type">dt-mainbox</span> { <span class="org-type">dt-mainbox</span> {
orientation: vertical; orientation: vertical;
children: [ boxdummy, sb-mainbox ]; children: [ boxdummy, sb-mainbox ];
} }
<span class="org-type">horibox</span> { <span class="org-type">horibox</span> {
orientation: horizontal; orientation: horizontal;
children: [ listview, sidebar ]; children: [ listview, sidebar ];
} }
<span class="org-type">sidebar</span> { <span class="org-type">sidebar</span> {
orientation: vertical; orientation: vertical;
} }
<span class="org-type">button</span> { <span class="org-type">button</span> {
horizontal-align: <span class="org-highlight-numbers-number">0</span>; horizontal-align: <span class="org-highlight-numbers-number">0</span>;
padding: @buttonpadding; padding: @buttonpadding;
width: @buttonwidth; width: @buttonwidth;
background-color: @button-bg; background-color: @button-bg;
expand: false; expand: false;
} }
<span class="org-type">vertibox</span> { <span class="org-type">vertibox</span> {
orientation: vertical; orientation: vertical;
children: [ inputbar, listview ]; children: [ inputbar, listview ];
background-color: @background; background-color: @background;
} }
<span class="org-type">prompt</span> { <span class="org-type">prompt</span> {
enabled: false; enabled: false;
} }
<span class="org-type">listview</span> { <span class="org-type">listview</span> {
margin: @listmargin; margin: @listmargin;
} }
<span class="org-type">scrollbar</span> { <span class="org-type">scrollbar</span> {
handle-width: 0.5ch; handle-width: 0.5ch;
handle-color: @selected; handle-color: @selected;
} }
<span class="org-type">boxdummy</span> { <span class="org-type">boxdummy</span> {
enabled: false; enabled: false;
orientation: vertical; orientation: vertical;
expand: false; expand: false;
children: [ textboxdummy ]; children: [ textboxdummy ];
} }
<span class="org-type">textboxdummy</span> { <span class="org-type">textboxdummy</span> {
str: <span class="org-string">" "</span>; str: <span class="org-string">" "</span>;
} }
<span class="org-type">element, inputbar, textboxdummy</span> { <span class="org-type">element, inputbar, textboxdummy</span> {
padding: @elementpadding; padding: @elementpadding;
margin: @elementmargin; margin: @elementmargin;
width: @elementwidth; width: @elementwidth;
} }
element.normal.active, element.normal.active,
<span class="org-type">element.alternate.active</span> { <span class="org-type">element.alternate.active</span> {
background-color: @active-background; background-color: @active-background;
text-color: @selected-foreground; text-color: @selected-foreground;
} }
element.selected, element.selected,
<span class="org-type">button.selected</span> { <span class="org-type">button.selected</span> {
background-color: @selected; background-color: @selected;
text-color: @selected-foreground; text-color: @selected-foreground;
} }
element.normal.urgent, element.normal.urgent,
<span class="org-type">element.alternate.urgent</span> { <span class="org-type">element.alternate.urgent</span> {
background-color: @urgent-background; background-color: @urgent-background;
text-color: @urgent-foreground; text-color: @urgent-foreground;
} }
<span class="org-type">element.selected.urgent</span> { <span class="org-type">element.selected.urgent</span> {
background-color: @selected-urgent-background; background-color: @selected-urgent-background;
text-color: @selected-urgent-foreground; text-color: @selected-urgent-foreground;
} }
</pre> </pre>
</div> </div>
</div> </div>
@ -274,7 +273,7 @@ element.normal.urgent,
</div> </div>
<div id="postamble" class="status"> <div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p> <p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2021-01-01 ven. 20:09</p> <p class="date">Created: 2021-01-03 dim. 22:25</p>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head> <head>
<!-- 2021-01-01 ven. 20:09 --> <!-- 2021-01-03 dim. 22:25 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Windows Config and Install</title> <title>Windows Config and Install</title>
<meta name="generator" content="Org mode" /> <meta name="generator" content="Org mode" />
@ -26,6 +26,12 @@
<li><a href="#org0143940">Install Windows10 PRO</a></li> <li><a href="#org0143940">Install Windows10 PRO</a></li>
<li><a href="#org0cc05f7">Install Software using Chocolatey</a></li> <li><a href="#org0cc05f7">Install Software using Chocolatey</a></li>
<li><a href="#org0a94edb">Debloat windows10</a></li> <li><a href="#org0a94edb">Debloat windows10</a></li>
<li><a href="#orgb2e9259">SSHFS</a>
<ul>
<li><a href="#org46e6091">SSH Setup</a></li>
<li><a href="#org07e3d19">SSHFS</a></li>
</ul>
</li>
<li><a href="#orgb8446e0">Software Setup</a> <li><a href="#orgb8446e0">Software Setup</a>
<ul> <ul>
<li><a href="#orge44d00a">Syncthing</a></li> <li><a href="#orge44d00a">Syncthing</a></li>
@ -44,12 +50,12 @@
<li>Create bootable USB key using the woeusb utility (<a href="https://computingforgeeks.com/create-windows-10-bootable-usb-on-linux/">https://computingforgeeks.com/create-windows-10-bootable-usb-on-linux/</a>)</li> <li>Create bootable USB key using the woeusb utility (<a href="https://computingforgeeks.com/create-windows-10-bootable-usb-on-linux/">https://computingforgeeks.com/create-windows-10-bootable-usb-on-linux/</a>)</li>
</ul> </ul>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash">yay -S woeusb <pre class="src src-bash"> yay -S woeusb
</pre> </pre>
</div> </div>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-type">sudo</span> woeusb --device file.iso /dev/sdb --target-filesystem ntfs <pre class="src src-bash"> <span class="org-type">sudo</span> woeusb --device file.iso /dev/sdb --target-filesystem ntfs
</pre> </pre>
</div> </div>
</div> </div>
@ -66,7 +72,7 @@
First install Chocolatey using a PowerShell as administrator: First install Chocolatey using a PowerShell as administrator:
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash">Set-ExecutionPolicy Bypass -Scope Process -Force; <span class="org-rainbow-delimiters-depth-1">[</span>System.Net.ServicePointManager<span class="org-rainbow-delimiters-depth-1">]</span>::SecurityProtocol = <span class="org-rainbow-delimiters-depth-1">[</span>System.Net.ServicePointManager<span class="org-rainbow-delimiters-depth-1">]</span>::SecurityProtocol -bor <span class="org-highlight-numbers-number">3072</span>; iex <span class="org-rainbow-delimiters-depth-1">(</span><span class="org-rainbow-delimiters-depth-2">(</span>New-Object System.Net.WebClient<span class="org-rainbow-delimiters-depth-2">)</span>.DownloadString<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-string">'https://chocolatey.org/install.ps1'</span><span class="org-rainbow-delimiters-depth-2">)</span><span class="org-rainbow-delimiters-depth-1">)</span> <pre class="src src-bash"> Set-ExecutionPolicy Bypass -Scope Process -Force; <span class="org-rainbow-delimiters-depth-1">[</span>System.Net.ServicePointManager<span class="org-rainbow-delimiters-depth-1">]</span>::SecurityProtocol = <span class="org-rainbow-delimiters-depth-1">[</span>System.Net.ServicePointManager<span class="org-rainbow-delimiters-depth-1">]</span>::SecurityProtocol -bor <span class="org-highlight-numbers-number">3072</span>; iex <span class="org-rainbow-delimiters-depth-1">(</span><span class="org-rainbow-delimiters-depth-2">(</span>New-Object System.Net.WebClient<span class="org-rainbow-delimiters-depth-2">)</span>.DownloadString<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-string">'https://chocolatey.org/install.ps1'</span><span class="org-rainbow-delimiters-depth-2">)</span><span class="org-rainbow-delimiters-depth-1">)</span>
</pre> </pre>
</div> </div>
@ -74,7 +80,7 @@ First install Chocolatey using a PowerShell as administrator:
Then, install all required software using one command: Then, install all required software using one command:
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash">choco install firefox 7zip.install vlc git.install malwarebytes sumatrapdf.install steam anydesk discord f.lux cmder syncthing cura ccleaner <pre class="src src-bash"> choco install -y firefox 7zip.install vlc git.install malwarebytes sumatrapdf.install steam anydesk discord f.lux cmder cura ccleaner neovim
</pre> </pre>
</div> </div>
</div> </div>
@ -91,12 +97,102 @@ Then, install all required software using one command:
Run a PowerShell with administrative rights and run: Run a PowerShell with administrative rights and run:
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-bash"><span class="org-function-name">iex</span> <span class="org-rainbow-delimiters-depth-1">(</span><span class="org-rainbow-delimiters-depth-2">(</span>New-Object System.Net.WebClient<span class="org-rainbow-delimiters-depth-2">)</span>.DownloadString<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-string">'https://git.io/debloat'</span><span class="org-rainbow-delimiters-depth-2">)</span><span class="org-rainbow-delimiters-depth-1">)</span> <pre class="src src-bash"> iex <span class="org-rainbow-delimiters-depth-1">(</span><span class="org-rainbow-delimiters-depth-2">(</span>New-Object System.Net.WebClient<span class="org-rainbow-delimiters-depth-2">)</span>.DownloadString<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-string">'https://git.io/debloat'</span><span class="org-rainbow-delimiters-depth-2">)</span><span class="org-rainbow-delimiters-depth-1">)</span>
</pre> </pre>
</div> </div>
</div> </div>
</div> </div>
<div id="outline-container-orgb2e9259" class="outline-2">
<h2 id="orgb2e9259">SSHFS</h2>
<div class="outline-text-2" id="text-orgb2e9259">
</div>
<div id="outline-container-org46e6091" class="outline-3">
<h3 id="org46e6091">SSH Setup</h3>
<div class="outline-text-3" id="text-org46e6091">
<p>
Install OpenSSH from <code>chocolatey</code> as the one packed with Windows is quite old (<a href="https://blog.frankfu.com.au/2019/03/21/moving-from-windows-1809s-openssh-to-openssh-portable/">link</a>):
</p>
<div class="org-src-container">
<pre class="src src-bash"> choco install openssh --package-parameters=<span class="org-string">"/SSHAgentFeature"</span>
</pre>
</div>
<p>
Then generate the keys:
</p>
<div class="org-src-container">
<pre class="src src-bash"> ssh-keygen
</pre>
</div>
<p>
Start the SSH-Agent to automatically unlock the keys:
</p>
<div class="org-src-container">
<pre class="src src-bash"> <span class="org-comment-delimiter"># </span><span class="org-comment">Start the service</span>
Start-Service ssh-agent
<span class="org-comment-delimiter"># </span><span class="org-comment">This should return a status of Running</span>
Get-Service ssh-agent
<span class="org-comment-delimiter"># </span><span class="org-comment">Now load your key files into ssh-agent</span>
ssh-add
</pre>
</div>
<p>
Copy the public key with:
</p>
<div class="org-src-container">
<pre class="src src-bash"> Get-Content -Path $<span class="org-variable-name">HOME</span><span class="org-string">\.</span>ssh\id_rsa.pub | Set-Clipboard
</pre>
</div>
<p>
And add it to <code>~/.ssh/authorized_keys</code> on the server side.
</p>
<p>
Finally, it should be possible to ssh to the server.
</p>
</div>
</div>
<div id="outline-container-org07e3d19" class="outline-3">
<h3 id="org07e3d19">SSHFS</h3>
<div class="outline-text-3" id="text-org07e3d19">
<p>
Install <a href="https://github.com/billziss-gh/sshfs-win">sshfs-win</a>.
</p>
<p>
Run the <code>Registry Editor</code>, and find <code>Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\WinFsp\Services\sshfs.kr</code>, then edit <code>CommandLine</code>:
</p>
<div class="org-src-container">
<pre class="src src-conf"> <span class="org-variable-name">svc %1 %2 %U -o create_dir_umask</span>=<span class="org-highlight-numbers-number">000</span> -o create_file_umask=<span class="org-highlight-numbers-number">111</span> -o umask=<span class="org-highlight-numbers-number">000</span>
</pre>
</div>
<p>
Then, to mount the network drive using <code>sshfs</code>:
</p>
<div class="org-src-container">
<pre class="src src-bash"> net use X: <span class="org-string">\\</span>sshfs.kr\thomas@192.168.1.150\srv\storage /persistent:yes
</pre>
</div>
<p>
To un-mount it:
</p>
<div class="org-src-container">
<pre class="src src-bash"> net use X: /delete
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-orgb8446e0" class="outline-2"> <div id="outline-container-orgb8446e0" class="outline-2">
<h2 id="orgb8446e0">Software Setup</h2> <h2 id="orgb8446e0">Software Setup</h2>
<div class="outline-text-2" id="text-orgb8446e0"> <div class="outline-text-2" id="text-orgb8446e0">
@ -130,7 +226,7 @@ Then, Syncthing can be accessed with: <a href="http://localhost:8384/">http://lo
</div> </div>
<div id="postamble" class="status"> <div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p> <p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2021-01-01 ven. 20:09</p> <p class="date">Created: 2021-01-03 dim. 22:25</p>
</div> </div>
</body> </body>
</html> </html>

View File

@ -1,5 +1,15 @@
#+TITLE: Doom Emacs Configuration #+TITLE: Doom Emacs Configuration
#+SETUPFILE: ./setup/org-setup-file.org #+STARTUP: overview
#+LANGUAGE: en
#+EMAIL: dehaeze.thomas@gmail.com
#+AUTHOR: Dehaeze Thomas
#+HTML_LINK_HOME: ./index.html
#+HTML_LINK_UP: ./index.html
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./dist/style.css"/>
#+HTML_HEAD: <script type="text/javascript" src="./dist/script.js"></script>
#+PROPERTY: header-args :tangle ~/.config/doom/config.el :results none :padline no #+PROPERTY: header-args :tangle ~/.config/doom/config.el :results none :padline no
* Introduction and Resources :ignore: * Introduction and Resources :ignore:
@ -2586,16 +2596,16 @@ Create Org-Roam file from heading ([[https://ag91.github.io/blog/2020/11/12/writ
:init :init
:config :config
;; Bibliography file ;; Bibliography file
(setq bibtex-completion-bibliography "~/Cloud/brain/biblio/references.bib") (setq bibtex-completion-bibliography '("~/Cloud/brain/biblio/references.bib"
"~/Cloud/acoustic/resources/acoustics.bib"))
;; Directory with all the pdfs ;; Directory with all the pdfs
(setq bibtex-completion-library-path "~/Cloud/pdfs/") (setq bibtex-completion-library-path '("~/Cloud/pdfs/"
"~/Cloud/acoustic/resources/pdfs/"))
;; Directory with notes files ;; Directory with notes files
(setq bibtex-completion-notes-path "~/Cloud/brain/") (setq bibtex-completion-notes-path "~/Cloud/brain/")
(setq bibtex-completion-notes-extension ".org") (setq bibtex-completion-notes-extension ".org")
(setq bibtex-completion-pdf-extension '(".pdf" ".djvu")) (setq bibtex-completion-pdf-extension '(".pdf" ".djvu"))
(setq bibtex-completion-additional-search-fields '(keywords)) (setq bibtex-completion-additional-search-fields '(keywords))

View File

@ -1,9 +1,12 @@
#+TITLE: Dotfiles - Manjaro Linux #+TITLE: Dotfiles - Manjaro Linux
#+OPTIONS: toc:nil
#+OPTIONS: html-postamble:nil
#+SETUPFILE: ./setup/org-setup-file.org #+SETUPFILE: ./setup/org-setup-file.org
#+HTML_HEAD: <style> #content {margin: auto;} </style>
The general installation process is described [[file:install.org][here]]. The general installation procedure is described [[file:install.org][here]].
* Desktop Configuration There are Specific configuration files for:
- *Windows Manager*: [[file:bspwm.org][BSPWM]] and [[file:i3.org][I3]] - *Windows Manager*: [[file:bspwm.org][BSPWM]] and [[file:i3.org][I3]]
- *Hotkey Manager*: [[file:sxhkd.org][SXHKD]] - *Hotkey Manager*: [[file:sxhkd.org][SXHKD]]
- *Status Bar*: [[file:polybar.org][Polybar]] - *Status Bar*: [[file:polybar.org][Polybar]]
@ -11,44 +14,26 @@ The general installation process is described [[file:install.org][here]].
- *Compositor*: [[file:compositor.org][Picom]] - *Compositor*: [[file:compositor.org][Picom]]
- *Notification Manager*: [[file:notifications.org][Dunst]] - *Notification Manager*: [[file:notifications.org][Dunst]]
- *Service Manager*: [[file:systemd.org][Systemd]] - *Service Manager*: [[file:systemd.org][Systemd]]
- [[file:xconfig.org][X configuration]] - *Display Server*: [[file:xconfig.org][Xorg]]
- *Editors*: [[file:vim.org][Neovim]] and [[./doom.org][Emacs (Doom)]] ([[file:emacs-library-babel.org][library of babel]], [[file:emacs-snippets.org][snippets]])
* Editors - *Shell*: [[file:bash.org][Bash]]
- [[file:vim.org][Vim]] - *Terminal Emulator*: [[file:termite.org][Termite]]
- [[./doom.org][Doom Emacs]] ([[file:emacs-library-babel.org][library of babel]], [[file:emacs-snippets.org][snippets]]) - *Terminal Multiplexer* [[file:tmux.org][TMUX]]
- *Image Setup*: [[file:image.org][SXIV]]
* Command Line - *Music Setup*: [[file:music.org][NCMPCPP, Mopidy and Beets]]
- [[file:bash.org][Bash]] and [[file:zsh.org][ZSH]] - *Video Setup*: [[file:video.org][MPV]]
- Terminal: [[file:termite.org][Termite]] - *Web Browser*: [[file:qutebrowser.org][Qutebrowser]]
- Terminal Multiplexer [[file:tmux.org][TMUX]] - *PDF Reader*: [[file:zathura.org][Zathura]]
- *GUI File Manager*: [[file:pcmanfm.org][Pcmanfm]]
* Multimedia - *Terminal File Manager*: [[file:ranger.org][Ranger]]
- [[file:image.org][Image]] - *Calendar*: [[file:calendar.org][Vdirsyncer and Khal]]
- [[file:music.org][Music]] - *Mails*: [[file:mail.org][Mbsync, Msmtp, Mu and Neomutt]]
- [[file:video.org][Video]] - *Contacts*: [[file:contacts.org][Khard]]
- *RSS-Reader*: [[file:newsboat.org][Newsboat]]
* Internet Related - *Version Control*: [[file:git.org][Git]]
- Web Browser: [[file:qutebrowser.org][Qutebrowser]] - *Scripts*: [[file:binaries.org][Scripts]]
- Bookmark Manager: [[file:bookmarks.org][Buku]] - *Desktop Applications*: [[file:applications.org][.desktop files]]
- *Computation*: [[file:matlab.org][Matlab]]
* PDF Reader - *GUI Toolkit*: [[file:gtk.org][GTK]]
- [[file:zathura.org][Zathura]]
* File Managers
- GUI: [[file:pcmanfm.org][Pcmanfm]]
- Terminal based: [[file:ranger.org][Ranger]]
* Organization
- [[file:calendar.org][Calendar]]
- [[file:mail.org][Mail]]
- [[file:contacts.org][Contacts]]
- RSS-Reader: [[file:newsboat.org][Newsboat]]
* Others
- [[file:applications.org][Desktop Applications]]
- [[file:matlab.org][Matlab]]
- Some useful [[file:binaries.org][Binaries]]
- [[file:git.org][Git]] Configuration
- [[file:gtk.org][GTK]]
- [[file:config.org][Other Config]] - [[file:config.org][Other Config]]

File diff suppressed because it is too large Load Diff

View File

@ -128,7 +128,7 @@ Sorting by tracking number and then title
#+begin_src conf #+begin_src conf
def_key "q" def_key "q"
run_external_command "if [ $TMUX ]; then tmux detach; fi" run_external_command "sh -c 'if [ $TMUX ] ; then tmux detach; fi'"
def_key "Q" def_key "Q"
quit quit
def_key "g" def_key "g"

View File

@ -7,6 +7,7 @@
#+begin_src conf #+begin_src conf
[global] [global]
#+end_src #+end_src
** Display ** Display
#+begin_src conf #+begin_src conf
# Which monitor should the notifications be displayed on. # Which monitor should the notifications be displayed on.

View File

@ -1,4 +1,4 @@
#+TITLE: PCMANFM #+TITLE: PCManFM
#+SETUPFILE: ./setup/org-setup-file.org #+SETUPFILE: ./setup/org-setup-file.org
#+PROPERTY: header-args:bash :comments both #+PROPERTY: header-args:bash :comments both
#+PROPERTY: header-args:bash+ :mkdirp yes #+PROPERTY: header-args:bash+ :mkdirp yes

View File

@ -577,7 +577,7 @@ Send to Emacs
#+begin_src bash :tangle ~/.config/qutebrowser/userscripts/html-to-pdf.sh #+begin_src bash :tangle ~/.config/qutebrowser/userscripts/html-to-pdf.sh
filename=$(rofi -p "filename" -dmenu -lines 1) filename=$(rofi -p "filename" -dmenu -lines 1)
if [ -n "filename" ]; then if [ -n "$filename" ]; then
cd ~/Pictures/ && \ cd ~/Pictures/ && \
percollate pdf --css "@page { size: A4 portrait }" --output "$filename.pdf" "$QUTE_URL" && \ percollate pdf --css "@page { size: A4 portrait }" --output "$filename.pdf" "$QUTE_URL" && \
dunstify "Percollate" "Successfully saved to pdf" dunstify "Percollate" "Successfully saved to pdf"

View File

@ -1,4 +1,4 @@
#+TITLE: Ranger Configuration #+TITLE: Ranger
#+SETUPFILE: ./setup/org-setup-file.org #+SETUPFILE: ./setup/org-setup-file.org
* Documentation * Documentation

View File

@ -57,10 +57,10 @@
#+END_SRC #+END_SRC
* Theme * Theme
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.config/rofimenu/rofimenu.rasi :header-args: :tangle ~/.config/rofimenu/rofimenu.rasi
:header-args+: :comments none :mkdirp yes :header-args+: :comments none :mkdirp yes
:END: :END:
#+BEGIN_SRC conf #+BEGIN_SRC conf
configuration { configuration {
@ -91,7 +91,7 @@
kb-select-10: "Alt+0"; kb-select-10: "Alt+0";
} }
* { ,* {
//// COLORS //// //// COLORS ////
//// uncomment to match bspwm edition theme //// uncomment to match bspwm edition theme
@ -118,7 +118,6 @@
//// TEXT //// //// TEXT ////
font: "xos4 Terminus 18px"; font: "xos4 Terminus 18px";
// font: "Knack Nerd Font 16px";
text-color: @foreground; text-color: @foreground;
//// PADDING ETC //// //// PADDING ETC ////

View File

@ -23,7 +23,7 @@ First install Chocolatey using a PowerShell as administrator:
Then, install all required software using one command: Then, install all required software using one command:
#+begin_src bash #+begin_src bash
choco install firefox 7zip.install vlc git.install malwarebytes sumatrapdf.install steam anydesk discord f.lux cmder syncthing cura ccleaner choco install -y firefox 7zip.install vlc git.install malwarebytes sumatrapdf.install steam anydesk discord f.lux cmder cura ccleaner neovim
#+end_src #+end_src
* Debloat windows10 * Debloat windows10
@ -34,6 +34,57 @@ Run a PowerShell with administrative rights and run:
iex ((New-Object System.Net.WebClient).DownloadString('https://git.io/debloat')) iex ((New-Object System.Net.WebClient).DownloadString('https://git.io/debloat'))
#+end_src #+end_src
* SSHFS
** SSH Setup
Install OpenSSH from =chocolatey= as the one packed with Windows is quite old ([[https://blog.frankfu.com.au/2019/03/21/moving-from-windows-1809s-openssh-to-openssh-portable/][link]]):
#+begin_src bash
choco install openssh --package-parameters="/SSHAgentFeature"
#+end_src
Then generate the keys:
#+begin_src bash
ssh-keygen
#+end_src
Start the SSH-Agent to automatically unlock the keys:
#+begin_src bash
# Start the service
Start-Service ssh-agent
# This should return a status of Running
Get-Service ssh-agent
# Now load your key files into ssh-agent
ssh-add
#+end_src
Copy the public key with:
#+begin_src bash
Get-Content -Path $HOME\.ssh\id_rsa.pub | Set-Clipboard
#+end_src
And add it to =~/.ssh/authorized_keys= on the server side.
Finally, it should be possible to ssh to the server.
** SSHFS
Install [[https://github.com/billziss-gh/sshfs-win][sshfs-win]].
Run the =Registry Editor=, and find =Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\WinFsp\Services\sshfs.kr=, then edit =CommandLine=:
#+begin_src conf
svc %1 %2 %U -o create_dir_umask=000 -o create_file_umask=111 -o umask=000
#+end_src
Then, to mount the network drive using =sshfs=:
#+begin_src bash
net use X: \\sshfs.kr\thomas@192.168.1.150\srv\storage /persistent:yes
#+end_src
To un-mount it:
#+begin_src bash
net use X: /delete
#+end_src
* Software Setup * Software Setup
** Syncthing ** Syncthing
https://docs.syncthing.net/users/autostart.html#autostart-windows-startup https://docs.syncthing.net/users/autostart.html#autostart-windows-startup