Nicer home page
This commit is contained in:
parent
b484e4ddb1
commit
a46af90e85
26
bash.org
26
bash.org
@ -48,6 +48,10 @@
|
||||
# Line wrap on window resize
|
||||
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
|
||||
shopt -s expand_aliases
|
||||
|
||||
@ -56,6 +60,9 @@
|
||||
|
||||
# Enable history appending instead of overwriting
|
||||
shopt -s histappend
|
||||
|
||||
# Save multi-line commands as one command
|
||||
shopt -s cmdhist
|
||||
#+END_SRC
|
||||
|
||||
** 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
|
||||
|
||||
#+BEGIN_SRC bash
|
||||
export HISTFILESIZE=
|
||||
export HISTSIZE=
|
||||
export HISTTIMEFORMAT="[%F %T] "
|
||||
# Huge history. Doesn't appear to slow things down, so why not?
|
||||
HISTSIZE=500000
|
||||
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
|
||||
|
||||
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/.gem/ruby/2.5.0/bin:$PATH
|
||||
PATH=$GOPATH:$GOPATH/bin:$PATH
|
||||
PATH=~/.emacs.d/bin:$PATH
|
||||
PATH=~/.config/emacs/bin:$PATH
|
||||
export PATH
|
||||
#+END_SRC
|
||||
|
||||
|
@ -66,7 +66,7 @@
|
||||
</alias>
|
||||
<alias>
|
||||
<family>monospace</family>
|
||||
<prefer><family>SauceCodePro Nerd Font Mono</family></prefer>
|
||||
<prefer><family>Hack Nerd Font Mono</family></prefer>
|
||||
</alias>
|
||||
|
||||
</fontconfig>
|
||||
|
352
docs/bash.html
352
docs/bash.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<!-- 2021-01-03 dim. 22:19 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Bash Configuration</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
@ -90,7 +90,7 @@
|
||||
<h3 id="orgb8018f7">If not running interactively, don’t do anything</h3>
|
||||
<div class="outline-text-3" id="text-orgb8018f7">
|
||||
<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> && <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> && <span class="org-keyword">return</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -100,7 +100,7 @@
|
||||
<h3 id="org16d9917">Bash Completion</h3>
|
||||
<div class="outline-text-3" id="text-org16d9917">
|
||||
<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> && <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> && <span class="org-builtin">.</span> /usr/share/bash-completion/bash_completion
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -110,7 +110,7 @@
|
||||
<h3 id="org17408fe">FZF</h3>
|
||||
<div class="outline-text-3" id="text-org17408fe">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
@ -120,8 +120,8 @@
|
||||
<h3 id="org46238bc">Ignore case for auto-completion</h3>
|
||||
<div class="outline-text-3" id="text-org46238bc">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">bind</span> <span class="org-string">"set completion-ignore-case on"</span>
|
||||
<span class="org-builtin">bind</span> <span class="org-string">"set show-all-if-ambiguous on"</span>
|
||||
<pre class="src src-bash"> <span class="org-builtin">bind</span> <span class="org-string">"set completion-ignore-case on"</span>
|
||||
<span class="org-builtin">bind</span> <span class="org-string">"set show-all-if-ambiguous on"</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -131,7 +131,7 @@
|
||||
<h3 id="org53c6a26">Use Color</h3>
|
||||
<div class="outline-text-3" id="text-org53c6a26">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
@ -141,26 +141,33 @@
|
||||
<h3 id="org5664e96">Some config</h3>
|
||||
<div class="outline-text-3" id="text-org5664e96">
|
||||
<div class="org-src-container">
|
||||
<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
|
||||
<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-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 > /dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</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 > /dev/null <span class="org-highlight-numbers-number">2</span>>&<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-builtin">complete</span> -cf <span class="org-type">sudo</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-comment-delimiter"># </span><span class="org-comment">Line wrap on window resize</span>
|
||||
<span class="org-builtin">shopt</span> -s checkwinsize
|
||||
<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-comment-delimiter"># </span><span class="org-comment">Expand Aliases</span>
|
||||
<span class="org-builtin">shopt</span> -s expand_aliases
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Enable history expansion with space</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">E.g. typing !!<space> 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-builtin">shopt</span> -s autocd
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Expand Aliases</span>
|
||||
<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-builtin">shopt</span> -s histappend
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Auto "</span><span class="org-type"><span class="org-comment">cd</span></span><span class="org-comment">" when entering just a path</span>
|
||||
<span class="org-builtin">shopt</span> -s autocd
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Enable history appending instead of overwriting</span>
|
||||
<span class="org-builtin">shopt</span> -s histappend
|
||||
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
@ -170,7 +177,7 @@ xhost +local:root > /dev/null <span class="org-highlight-numbers-number">2</s
|
||||
<h3 id="org26dcd39">Prompt - <code>PS1</code></h3>
|
||||
<div class="outline-text-3" id="text-org26dcd39">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
@ -180,8 +187,8 @@ xhost +local:root > /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>
|
||||
<div class="outline-text-3" id="text-org7dc0b98">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">bind</span> <span class="org-string">'"\e[A": history-search-backward'</span>
|
||||
<span class="org-builtin">bind</span> <span class="org-string">'"\e[B": history-search-forward'</span>
|
||||
<pre class="src src-bash"> <span class="org-builtin">bind</span> <span class="org-string">'"\e[A": history-search-backward'</span>
|
||||
<span class="org-builtin">bind</span> <span class="org-string">'"\e[B": history-search-forward'</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -195,13 +202,13 @@ xhost +local:root > /dev/null <span class="org-highlight-numbers-number">2</s
|
||||
<h4 id="orgad8f6ac">Better defaults for some commands</h4>
|
||||
<div class="outline-text-4" id="text-orgad8f6ac">
|
||||
<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>
|
||||
<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-variable-name">df</span>=<span class="org-string">'df -h'</span> <span class="org-comment-delimiter"># </span><span class="org-comment">human-readable sizes</span>
|
||||
<span class="org-builtin">alias</span> <span class="org-variable-name">free</span>=<span class="org-string">'free -m'</span> <span class="org-comment-delimiter"># </span><span class="org-comment">show sizes in MB</span>
|
||||
<span class="org-builtin">alias</span> <span class="org-variable-name">mutt</span>=<span class="org-string">"neomutt"</span>
|
||||
<span class="org-builtin">alias</span> <span class="org-variable-name">tmux</span>=<span class="org-string">'tmux -f $XDG_CONFIG_HOME/tmux/tmux.conf'</span>
|
||||
<pre 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">cp</span>=<span class="org-string">"</span><span class="org-type"><span class="org-string">cp</span></span><span class="org-string"> -i"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">confirm before overwriting something</span>
|
||||
<span class="org-builtin">alias</span> <span class="org-variable-name">df</span>=<span class="org-string">'df -h'</span> <span class="org-comment-delimiter"># </span><span class="org-comment">human-readable sizes</span>
|
||||
<span class="org-builtin">alias</span> <span class="org-variable-name">free</span>=<span class="org-string">'free -m'</span> <span class="org-comment-delimiter"># </span><span class="org-comment">show sizes in MB</span>
|
||||
<span class="org-builtin">alias</span> <span class="org-variable-name">mutt</span>=<span class="org-string">"neomutt"</span>
|
||||
<span class="org-builtin">alias</span> <span class="org-variable-name">tmux</span>=<span class="org-string">'tmux -f $XDG_CONFIG_HOME/tmux/tmux.conf'</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -211,13 +218,13 @@ xhost +local:root > /dev/null <span class="org-highlight-numbers-number">2</s
|
||||
<h4 id="orgd2723b6">One letter aliases</h4>
|
||||
<div class="outline-text-4" id="text-orgd2723b6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">alias</span> <span class="org-variable-name">r</span>=<span class="org-string">"ranger"</span>
|
||||
<span class="org-builtin">alias</span> <span class="org-variable-name">t</span>=<span class="org-string">"tmux"</span>
|
||||
<span class="org-builtin">alias</span> <span class="org-variable-name">v</span>=<span class="org-string">"nvim"</span>
|
||||
<span class="org-builtin">alias</span> <span class="org-variable-name">sv</span>=<span class="org-string">'</span><span class="org-type"><span class="org-string">sudo</span></span><span class="org-string"> -E nvim'</span>
|
||||
<span class="org-builtin">alias</span> <span class="org-variable-name">g</span>=<span class="org-string">"</span><span class="org-type"><span class="org-string">git</span></span><span class="org-string">"</span>
|
||||
<span class="org-builtin">alias</span> <span class="org-variable-name">m</span>=<span class="org-string">"neomutt"</span>
|
||||
<span class="org-builtin">alias</span> <span class="org-variable-name">o</span>=<span class="org-string">"xdg-open"</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">v</span>=<span class="org-string">"nvim"</span>
|
||||
<span class="org-builtin">alias</span> <span class="org-variable-name">sv</span>=<span class="org-string">'</span><span class="org-type"><span class="org-string">sudo</span></span><span class="org-string"> -E nvim'</span>
|
||||
<span class="org-builtin">alias</span> <span class="org-variable-name">g</span>=<span class="org-string">"</span><span class="org-type"><span class="org-string">git</span></span><span class="org-string">"</span>
|
||||
<span class="org-builtin">alias</span> <span class="org-variable-name">m</span>=<span class="org-string">"neomutt"</span>
|
||||
<span class="org-builtin">alias</span> <span class="org-variable-name">o</span>=<span class="org-string">"xdg-open"</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -227,7 +234,7 @@ xhost +local:root > /dev/null <span class="org-highlight-numbers-number">2</s
|
||||
<h4 id="org785c2af">Neovim</h4>
|
||||
<div class="outline-text-4" id="text-org785c2af">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">command</span> -v nvim >/dev/null && <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 >/dev/null && <span class="org-builtin">alias</span> <span class="org-variable-name">vim</span>=<span class="org-string">"nvim"</span> <span class="org-variable-name">vimdiff</span>=<span class="org-string">"nvim -d"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Use neovim for vim if present.</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -237,8 +244,8 @@ xhost +local:root > /dev/null <span class="org-highlight-numbers-number">2</s
|
||||
<h4 id="org61be992">Vim-like</h4>
|
||||
<div class="outline-text-4" id="text-org61be992">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">alias</span> :<span class="org-variable-name">q</span>=exit
|
||||
<span class="org-builtin">alias</span> :<span class="org-variable-name">e</span>=nvim
|
||||
<pre class="src src-bash"> <span class="org-builtin">alias</span> :<span class="org-variable-name">q</span>=exit
|
||||
<span class="org-builtin">alias</span> :<span class="org-variable-name">e</span>=nvim
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -248,7 +255,7 @@ xhost +local:root > /dev/null <span class="org-highlight-numbers-number">2</s
|
||||
<h4 id="org6f5c44a">Print each PATH entry on a separate line</h4>
|
||||
<div class="outline-text-4" id="text-org6f5c44a">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
@ -263,32 +270,32 @@ xhost +local:root > /dev/null <span class="org-highlight-numbers-number">2</s
|
||||
<h4 id="org716962c"><code>colors</code> - Display colors</h4>
|
||||
<div class="outline-text-4" id="text-org716962c">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-function-name">colors</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
|
||||
<span class="org-builtin">local</span> fgc bgc vals seq0
|
||||
<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">printf</span> <span class="org-string">"Color escapes are %s\n"</span> <span class="org-string">'\e[${value};...;${value}m'</span>
|
||||
<span class="org-builtin">printf</span> <span class="org-string">"Values 30..37 are \e[33mforeground colors\e[m\n"</span>
|
||||
<span class="org-builtin">printf</span> <span class="org-string">"Values 40..47 are \e[43mbackground colors\e[m\n"</span>
|
||||
<span class="org-builtin">printf</span> <span class="org-string">"Value 1 gives a \e[1mbold-faced look\e[m\n\n"</span>
|
||||
<span class="org-builtin">printf</span> <span class="org-string">"Color escapes are %s\n"</span> <span class="org-string">'\e[${value};...;${value}m'</span>
|
||||
<span class="org-builtin">printf</span> <span class="org-string">"Values 30..37 are \e[33mforeground colors\e[m\n"</span>
|
||||
<span class="org-builtin">printf</span> <span class="org-string">"Values 40..47 are \e[43mbackground colors\e[m\n"</span>
|
||||
<span class="org-builtin">printf</span> <span class="org-string">"Value 1 gives a \e[1mbold-faced look\e[m\n\n"</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">foreground colors</span>
|
||||
<span class="org-keyword">for</span> fgc<span class="org-keyword"> in</span> <span class="org-rainbow-delimiters-depth-2">{</span>30..37<span class="org-rainbow-delimiters-depth-2">}</span>; <span class="org-keyword">do</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">background colors</span>
|
||||
<span class="org-keyword">for</span> bgc<span class="org-keyword"> in</span> <span class="org-rainbow-delimiters-depth-2">{</span>40..47<span class="org-rainbow-delimiters-depth-2">}</span>; <span class="org-keyword">do</span>
|
||||
<span class="org-variable-name">fgc</span>=$<span class="org-rainbow-delimiters-depth-2">{</span><span class="org-variable-name">fgc</span>#37<span class="org-rainbow-delimiters-depth-2">}</span> <span class="org-comment-delimiter"># </span><span class="org-comment">white</span>
|
||||
<span class="org-variable-name">bgc</span>=$<span class="org-rainbow-delimiters-depth-2">{</span><span class="org-variable-name">bgc</span>#40<span class="org-rainbow-delimiters-depth-2">}</span> <span class="org-comment-delimiter"># </span><span class="org-comment">black</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">foreground colors</span>
|
||||
<span class="org-keyword">for</span> fgc<span class="org-keyword"> in</span> <span class="org-rainbow-delimiters-depth-2">{</span>30..37<span class="org-rainbow-delimiters-depth-2">}</span>; <span class="org-keyword">do</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">background colors</span>
|
||||
<span class="org-keyword">for</span> bgc<span class="org-keyword"> in</span> <span class="org-rainbow-delimiters-depth-2">{</span>40..47<span class="org-rainbow-delimiters-depth-2">}</span>; <span class="org-keyword">do</span>
|
||||
<span class="org-variable-name">fgc</span>=$<span class="org-rainbow-delimiters-depth-2">{</span><span class="org-variable-name">fgc</span>#37<span class="org-rainbow-delimiters-depth-2">}</span> <span class="org-comment-delimiter"># </span><span class="org-comment">white</span>
|
||||
<span class="org-variable-name">bgc</span>=$<span class="org-rainbow-delimiters-depth-2">{</span><span class="org-variable-name">bgc</span>#40<span class="org-rainbow-delimiters-depth-2">}</span> <span class="org-comment-delimiter"># </span><span class="org-comment">black</span>
|
||||
|
||||
<span class="org-variable-name">vals</span>=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{fgc:+$fgc;}</span></span><span class="org-string">${bgc}"</span>
|
||||
<span class="org-variable-name">vals</span>=$<span class="org-rainbow-delimiters-depth-2">{</span><span class="org-variable-name">vals</span>%%;<span class="org-rainbow-delimiters-depth-2">}</span>
|
||||
<span class="org-variable-name">vals</span>=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{fgc:+$fgc;}</span></span><span class="org-string">${bgc}"</span>
|
||||
<span class="org-variable-name">vals</span>=$<span class="org-rainbow-delimiters-depth-2">{</span><span class="org-variable-name">vals</span>%%;<span class="org-rainbow-delimiters-depth-2">}</span>
|
||||
|
||||
<span class="org-variable-name">seq0</span>=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{vals:+\e[${vals}</span></span><span class="org-string">m}"</span>
|
||||
<span class="org-builtin">printf</span> <span class="org-string">" %-9s"</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{seq0:-(default)}</span></span><span class="org-string">"</span>
|
||||
<span class="org-builtin">printf</span> <span class="org-string">" </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{seq0}</span></span><span class="org-string">TEXT\e[m"</span>
|
||||
<span class="org-builtin">printf</span> <span class="org-string">" \e[</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{vals:+${vals+$vals;}</span></span><span class="org-string">}1mBOLD\e[m"</span>
|
||||
<span class="org-keyword">done</span>
|
||||
<span class="org-type">echo</span>; <span class="org-type">echo</span>
|
||||
<span class="org-keyword">done</span>
|
||||
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||
<span class="org-variable-name">seq0</span>=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{vals:+\e[${vals}</span></span><span class="org-string">m}"</span>
|
||||
<span class="org-builtin">printf</span> <span class="org-string">" %-9s"</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{seq0:-(default)}</span></span><span class="org-string">"</span>
|
||||
<span class="org-builtin">printf</span> <span class="org-string">" </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{seq0}</span></span><span class="org-string">TEXT\e[m"</span>
|
||||
<span class="org-builtin">printf</span> <span class="org-string">" \e[</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{vals:+${vals+$vals;}</span></span><span class="org-string">}1mBOLD\e[m"</span>
|
||||
<span class="org-keyword">done</span>
|
||||
<span class="org-type">echo</span>; <span class="org-type">echo</span>
|
||||
<span class="org-keyword">done</span>
|
||||
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -305,9 +312,9 @@ small enough for one screen.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-keyword">function</span> <span class="org-function-name">tre</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
|
||||
tree -aC -I <span class="org-string">'.git|node_modules|bower_components'</span> --dirsfirst <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span> | <span class="org-type">less</span> -FRNX;
|
||||
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||
<pre class="src src-bash"> <span class="org-keyword">function</span> <span class="org-function-name">tre</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
|
||||
tree -aC -I <span class="org-string">'.git|node_modules|bower_components'</span> --dirsfirst <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span> | <span class="org-type">less</span> -FRNX;
|
||||
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -317,9 +324,9 @@ small enough for one screen.
|
||||
<h4 id="org7b0ff56"><code>mkd</code> - Create a new directory and enter it</h4>
|
||||
<div class="outline-text-4" id="text-org7b0ff56">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-keyword">function</span> <span class="org-function-name">mkd</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
|
||||
<span class="org-type">mkdir</span> -p <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span> && <span class="org-type">cd</span> <span class="org-string">"$_"</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> && <span class="org-type">cd</span> <span class="org-string">"$_"</span>;
|
||||
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -329,18 +336,18 @@ small enough for one screen.
|
||||
<h4 id="org78520b0"><code>fs</code> - Filesize of directory</h4>
|
||||
<div class="outline-text-4" id="text-org78520b0">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-keyword">function</span> <span class="org-function-name">fs</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
|
||||
<span class="org-keyword">if</span> du -b /dev/null > /dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span>; <span class="org-keyword">then</span>
|
||||
<span class="org-builtin">local</span> <span class="org-variable-name">arg</span>=-sbh;
|
||||
<span class="org-keyword">else</span>
|
||||
<span class="org-builtin">local</span> <span class="org-variable-name">arg</span>=-sh;
|
||||
<span class="org-keyword">fi</span>
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-2">[</span><span class="org-rainbow-delimiters-depth-3">[</span> -n <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-3">]</span><span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
|
||||
du $<span class="org-variable-name">arg</span> -- <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span>;
|
||||
<span class="org-keyword">else</span>
|
||||
du $<span class="org-variable-name">arg</span> .<span class="org-rainbow-delimiters-depth-2">[</span>^.<span class="org-rainbow-delimiters-depth-2">]</span>* ./*;
|
||||
<span class="org-keyword">fi</span>;
|
||||
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||
<pre 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 > /dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span>; <span class="org-keyword">then</span>
|
||||
<span class="org-builtin">local</span> <span class="org-variable-name">arg</span>=-sbh;
|
||||
<span class="org-keyword">else</span>
|
||||
<span class="org-builtin">local</span> <span class="org-variable-name">arg</span>=-sh;
|
||||
<span class="org-keyword">fi</span>
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-2">[</span><span class="org-rainbow-delimiters-depth-3">[</span> -n <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-3">]</span><span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
|
||||
du $<span class="org-variable-name">arg</span> -- <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span>;
|
||||
<span class="org-keyword">else</span>
|
||||
du $<span class="org-variable-name">arg</span> .<span class="org-rainbow-delimiters-depth-2">[</span>^.<span class="org-rainbow-delimiters-depth-2">]</span>* ./*;
|
||||
<span class="org-keyword">fi</span>;
|
||||
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -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>
|
||||
<div class="outline-text-4" id="text-orgfc72283">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-keyword">function</span> <span class="org-function-name">nullify</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
|
||||
<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span> >/dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">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> >/dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span>
|
||||
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -366,18 +373,18 @@ small enough for one screen.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-function-name">sms</span><span class="org-rainbow-delimiters-depth-1">(){</span>
|
||||
<span class="org-builtin">local</span> <span class="org-variable-name">args</span>=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">local phone_number name phone_type</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">khard phone --parsable | sort -u | fzf | IFS=$'\t' read -r phone_number name phone_type</span>
|
||||
<span class="org-builtin">local</span> <span class="org-variable-name">phone_number</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">khard</span> phone --parsable | sort -u | fzf | cut -f1 -d$<span class="org-string">'\t'</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-2">[</span><span class="org-rainbow-delimiters-depth-3">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{phone_number}</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-3">]</span><span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
|
||||
<span class="org-type">echo</span> No recipient was chosen >&<span class="org-highlight-numbers-number">2</span>
|
||||
<span class="org-keyword">return</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
|
||||
<span class="org-keyword">fi</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-comment-delimiter"># </span><span class="org-comment">local phone_number name phone_type</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">khard phone --parsable | sort -u | fzf | IFS=$'\t' read -r phone_number name phone_type</span>
|
||||
<span class="org-builtin">local</span> <span class="org-variable-name">phone_number</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">khard</span> phone --parsable | sort -u | fzf | cut -f1 -d$<span class="org-string">'\t'</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-2">[</span><span class="org-rainbow-delimiters-depth-3">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{phone_number}</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-3">]</span><span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
|
||||
<span class="org-type">echo</span> No recipient was chosen >&<span class="org-highlight-numbers-number">2</span>
|
||||
<span class="org-keyword">return</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
|
||||
<span class="org-keyword">fi</span>
|
||||
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||
|
||||
</pre>
|
||||
</div>
|
||||
@ -393,9 +400,20 @@ Undocumented feature which sets the size to “unlimited”. <a href="ht
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">HISTFILESIZE</span>=
|
||||
<span class="org-builtin">export</span> <span class="org-variable-name">HISTSIZE</span>=
|
||||
<span class="org-builtin">export</span> <span class="org-variable-name">HISTTIMEFORMAT</span>=<span class="org-string">"[%F %T] "</span>
|
||||
<pre 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-variable-name">HISTSIZE</span>=<span class="org-highlight-numbers-number">500000</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">"&:[ ]*: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>
|
||||
</div>
|
||||
|
||||
@ -404,7 +422,7 @@ Change the file location because certain bash sessions truncate <code>.bash_hist
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">HISTFILE</span>=~/.bash_eternal_history
|
||||
<pre class="src src-bash"> <span class="org-builtin">export</span> <span class="org-variable-name">HISTFILE</span>=~/.bash_eternal_history
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@ -413,7 +431,7 @@ Force prompt to write history after every command. <a href="http://superuser.com
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">PROMPT_COMMAND</span>=<span class="org-string">"history -a; </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">PROMPT_COMMAND</span></span><span class="org-string">"</span>
|
||||
<pre class="src src-bash"> <span class="org-variable-name">PROMPT_COMMAND</span>=<span class="org-string">"history -a; </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">PROMPT_COMMAND</span></span><span class="org-string">"</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -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>
|
||||
<div class="outline-text-2" id="text-bash_profile">
|
||||
<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> && <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> && <span class="org-builtin">.</span> ~/.bashrc
|
||||
<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> && <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> && <span class="org-builtin">.</span> ~/.bashrc
|
||||
</pre>
|
||||
</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>
|
||||
<div class="outline-text-3" id="text-org15952b2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">QT_QPA_PLATFORMTHEME</span>=<span class="org-string">"qt5ct"</span>
|
||||
<span class="org-builtin">export</span> <span class="org-variable-name">GTK2_RC_FILES</span>=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">HOME</span></span><span class="org-string">/.gtkrc-2.0"</span>
|
||||
<pre class="src src-bash"> <span class="org-builtin">export</span> <span class="org-variable-name">QT_QPA_PLATFORMTHEME</span>=<span class="org-string">"qt5ct"</span>
|
||||
<span class="org-builtin">export</span> <span class="org-variable-name">GTK2_RC_FILES</span>=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">HOME</span></span><span class="org-string">/.gtkrc-2.0"</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -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>
|
||||
<div class="outline-text-3" id="text-org6c38c79">
|
||||
<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>
|
||||
</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
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -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">export</span> SSH_AUTH_SOCK
|
||||
<span class="org-keyword">fi</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">export</span> SSH_AUTH_SOCK
|
||||
<span class="org-keyword">fi</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -477,11 +495,11 @@ Enable the keyring for applications run through the terminal
|
||||
<h3 id="org10b40b3">Export some default applications</h3>
|
||||
<div class="outline-text-3" id="text-org10b40b3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">EDITOR</span>=<span class="org-string">"nvim"</span>
|
||||
<span class="org-builtin">export</span> <span class="org-variable-name">TERMINAL</span>=<span class="org-string">"termite"</span>
|
||||
<span class="org-builtin">export</span> <span class="org-variable-name">BROWSER</span>=<span class="org-string">"qutebrowser"</span>
|
||||
<span class="org-builtin">export</span> <span class="org-variable-name">READER</span>=<span class="org-string">"zathura"</span>
|
||||
<span class="org-builtin">export</span> <span class="org-variable-name">FILE</span>=<span class="org-string">"ranger"</span>
|
||||
<pre class="src src-bash"> <span class="org-builtin">export</span> <span class="org-variable-name">EDITOR</span>=<span class="org-string">"nvim"</span>
|
||||
<span class="org-builtin">export</span> <span class="org-variable-name">TERMINAL</span>=<span class="org-string">"termite"</span>
|
||||
<span class="org-builtin">export</span> <span class="org-variable-name">BROWSER</span>=<span class="org-string">"qutebrowser"</span>
|
||||
<span class="org-builtin">export</span> <span class="org-variable-name">READER</span>=<span class="org-string">"zathura"</span>
|
||||
<span class="org-builtin">export</span> <span class="org-variable-name">FILE</span>=<span class="org-string">"ranger"</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -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.
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">TERM</span>=xterm-color
|
||||
<pre class="src src-bash"> <span class="org-builtin">export</span> <span class="org-variable-name">TERM</span>=xterm-color
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -508,7 +526,7 @@ This is important for termite to work when sshing in remote machines.
|
||||
<h4 id="org0fa2d26">XDG Default</h4>
|
||||
<div class="outline-text-4" id="text-org0fa2d26">
|
||||
<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>
|
||||
</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>
|
||||
<div class="outline-text-4" id="text-org51055fb">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">FZF_DEFAULT_COMMAND</span>=<span class="org-string">'rg --files --no-ignore --hidden --follow --glob "!.git/*"'</span>
|
||||
<span class="org-builtin">export</span> <span class="org-variable-name">FZF_DEFAULT_OPTS</span>=<span class="org-string">'--layout=reverse --height=20'</span>
|
||||
<pre class="src src-bash"> <span class="org-builtin">export</span> <span class="org-variable-name">FZF_DEFAULT_COMMAND</span>=<span class="org-string">'rg --files --no-ignore --hidden --follow --glob "!.git/*"'</span>
|
||||
<span class="org-builtin">export</span> <span class="org-variable-name">FZF_DEFAULT_OPTS</span>=<span class="org-string">'--layout=reverse --height=20'</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -529,7 +547,7 @@ This is important for termite to work when sshing in remote machines.
|
||||
<h4 id="org08d14fc">Goland</h4>
|
||||
<div class="outline-text-4" id="text-org08d14fc">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
@ -539,7 +557,7 @@ This is important for termite to work when sshing in remote machines.
|
||||
<h4 id="org18f49cf">Latex Path</h4>
|
||||
<div class="outline-text-4" id="text-org18f49cf">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
@ -549,7 +567,7 @@ This is important for termite to work when sshing in remote machines.
|
||||
<h4 id="org992e4cf">Bitwarden Session</h4>
|
||||
<div class="outline-text-4" id="text-org992e4cf">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">BW_SESSION</span>=<span class="org-string">"HH0yycfocRSuGtq/iW1e6v13PQ1sShMXbMhdb/En94S6OcIXFnJlLEyU+dySsmf2YShY4CImoB5FrxgdPsY9Qw=="</span>
|
||||
<pre class="src src-bash"> <span class="org-builtin">export</span> <span class="org-variable-name">BW_SESSION</span>=<span class="org-string">"HH0yycfocRSuGtq/iW1e6v13PQ1sShMXbMhdb/En94S6OcIXFnJlLEyU+dySsmf2YShY4CImoB5FrxgdPsY9Qw=="</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -559,7 +577,7 @@ This is important for termite to work when sshing in remote machines.
|
||||
<h4 id="org6bdbd18">Python Path</h4>
|
||||
<div class="outline-text-4" id="text-org6bdbd18">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
@ -570,11 +588,11 @@ This is important for termite to work when sshing in remote machines.
|
||||
<h3 id="org8a10d32">Path</h3>
|
||||
<div class="outline-text-3" id="text-org8a10d32">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">PATH</span>=$<span class="org-variable-name">HOME</span>/appimages:$<span class="org-variable-name">PATH</span>
|
||||
<span class="org-variable-name">PATH</span>=$<span class="org-variable-name">HOME</span>/.gem/ruby/2.5.0/bin:$<span class="org-variable-name">PATH</span>
|
||||
<span class="org-variable-name">PATH</span>=$<span class="org-variable-name">GOPATH</span>:$<span class="org-variable-name">GOPATH</span>/bin:$<span class="org-variable-name">PATH</span>
|
||||
<span class="org-variable-name">PATH</span>=~/.emacs.d/bin:$<span class="org-variable-name">PATH</span>
|
||||
<span class="org-builtin">export</span> PATH
|
||||
<pre class="src src-bash"> <span class="org-variable-name">PATH</span>=$<span class="org-variable-name">HOME</span>/appimages:$<span class="org-variable-name">PATH</span>
|
||||
<span class="org-variable-name">PATH</span>=$<span class="org-variable-name">HOME</span>/.gem/ruby/2.5.0/bin:$<span class="org-variable-name">PATH</span>
|
||||
<span class="org-variable-name">PATH</span>=$<span class="org-variable-name">GOPATH</span>:$<span class="org-variable-name">GOPATH</span>/bin:$<span class="org-variable-name">PATH</span>
|
||||
<span class="org-variable-name">PATH</span>=~/.config/emacs/bin:$<span class="org-variable-name">PATH</span>
|
||||
<span class="org-builtin">export</span> PATH
|
||||
</pre>
|
||||
</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>
|
||||
<div class="outline-text-3" id="text-orgda5e48a">
|
||||
<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> && <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">fi</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> && <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">fi</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -600,11 +618,11 @@ This is important for termite to work when sshing in remote machines.
|
||||
Completion:
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Single tab for autocompletion</span>
|
||||
set show-all-if-ambiguous on
|
||||
<pre class="src src-conf"> <span class="org-comment-delimiter"># </span><span class="org-comment">Single tab for autocompletion</span>
|
||||
set show-all-if-ambiguous on
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Ignore case for completion</span>
|
||||
set completion-ignore-case on
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Ignore case for completion</span>
|
||||
set completion-ignore-case on
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@ -612,15 +630,15 @@ set completion-ignore-case on
|
||||
vi mode:
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">VI mode (works in bash and zsh)</span>
|
||||
set editing-mode vi
|
||||
<pre class="src src-conf"> <span class="org-comment-delimiter"># </span><span class="org-comment">VI mode (works in bash and zsh)</span>
|
||||
set editing-mode vi
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Show which mode (normal or insert)</span>
|
||||
set show-mode-in-prompt on
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Show which mode (normal or insert)</span>
|
||||
set show-mode-in-prompt on
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Show the mode by changing the cursor</span>
|
||||
set vi-ins-mode-string \<span class="org-highlight-numbers-number">1</span>\e[<span class="org-highlight-numbers-number">6</span> q\<span class="org-highlight-numbers-number">2</span>
|
||||
set vi-cmd-mode-string \<span class="org-highlight-numbers-number">1</span>\e[<span class="org-highlight-numbers-number">2</span> q\<span class="org-highlight-numbers-number">2</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Show the mode by changing the cursor</span>
|
||||
set vi-ins-mode-string \<span class="org-highlight-numbers-number">1</span>\e[<span class="org-highlight-numbers-number">6</span> q\<span class="org-highlight-numbers-number">2</span>
|
||||
set vi-cmd-mode-string \<span class="org-highlight-numbers-number">1</span>\e[<span class="org-highlight-numbers-number">2</span> q\<span class="org-highlight-numbers-number">2</span>
|
||||
</pre>
|
||||
</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:
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<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>
|
||||
Control-l: clear-screen
|
||||
Control-a: beginning-of-line
|
||||
Control-e: end-of-line
|
||||
Control-w: <span class="org-string">"\C-aisudo \C-e"</span>
|
||||
<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>
|
||||
Control-l: clear-screen
|
||||
Control-a: beginning-of-line
|
||||
Control-e: end-of-line
|
||||
Control-w: <span class="org-string">"\C-aisudo \C-e"</span>
|
||||
|
||||
set keymap vi-insert
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">these are for vi-insert mode</span>
|
||||
Control-l: clear-screen
|
||||
Control-a: beginning-of-line
|
||||
Control-e: end-of-line
|
||||
Control-w: <span class="org-string">"\C-asudo \C-e"</span>
|
||||
set keymap vi-insert
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">these are for vi-insert mode</span>
|
||||
Control-l: clear-screen
|
||||
Control-a: beginning-of-line
|
||||
Control-e: end-of-line
|
||||
Control-w: <span class="org-string">"\C-asudo \C-e"</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@ -648,16 +666,16 @@ Control-w: <span class="org-string">"\C-asudo \C-e"</span>
|
||||
Colorized completion
|
||||
</p>
|
||||
<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>
|
||||
set colored-stats On
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Append char to indicate type</span>
|
||||
set visible-stats On
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Mark symlinked directories</span>
|
||||
set mark-symlinked-directories On
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Color the common prefix</span>
|
||||
set colored-completion-prefix On
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Color the common prefix in menu-complete</span>
|
||||
set menu-complete-display-prefix On
|
||||
<pre class="src src-conf"> <span class="org-comment-delimiter"># </span><span class="org-comment">Color files by types</span>
|
||||
set colored-stats On
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Append char to indicate type</span>
|
||||
set visible-stats On
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Mark symlinked directories</span>
|
||||
set mark-symlinked-directories On
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Color the common prefix</span>
|
||||
set colored-completion-prefix On
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Color the common prefix in menu-complete</span>
|
||||
set menu-complete-display-prefix On
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@ -665,7 +683,7 @@ set menu-complete-display-prefix On
|
||||
Don’t echo <code>^C</code> after <code>Ctrl+C</code> is pressed.
|
||||
</p>
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
@ -673,7 +691,7 @@ Don’t echo <code>^C</code> after <code>Ctrl+C</code> is pressed.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<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>
|
||||
</body>
|
||||
</html>
|
||||
|
198
docs/config.html
198
docs/config.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<!-- 2021-01-03 dim. 22:25 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Configuration Files</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
@ -37,37 +37,37 @@
|
||||
<h2 id="org3f17b04">SSH</h2>
|
||||
<div class="outline-text-2" id="text-org3f17b04">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">AddKeysToAgent yes
|
||||
<pre class="src src-conf"> AddKeysToAgent yes
|
||||
|
||||
Host grenoble
|
||||
hostname 82.64.103.2
|
||||
Port <span class="org-highlight-numbers-number">10022</span>
|
||||
user tdehaeze
|
||||
IdentityFile ~/.ssh/id_rsa
|
||||
Host grenoble
|
||||
hostname 82.64.103.2
|
||||
Port <span class="org-highlight-numbers-number">10022</span>
|
||||
user tdehaeze
|
||||
IdentityFile ~/.ssh/id_rsa
|
||||
|
||||
Host wingaudio
|
||||
hostname 207.154.251.241
|
||||
Port <span class="org-highlight-numbers-number">22</span>
|
||||
user tdehaeze
|
||||
IdentityFile ~/.ssh/id_rsa
|
||||
Host wingaudio
|
||||
hostname 207.154.251.241
|
||||
Port <span class="org-highlight-numbers-number">22</span>
|
||||
user tdehaeze
|
||||
IdentityFile ~/.ssh/id_rsa
|
||||
|
||||
Host octoprint
|
||||
hostname 192.168.1.56
|
||||
Port <span class="org-highlight-numbers-number">22</span>
|
||||
user pi
|
||||
IdentityFile ~/.ssh/id_rsa
|
||||
Host octoprint
|
||||
hostname 192.168.1.56
|
||||
Port <span class="org-highlight-numbers-number">22</span>
|
||||
user pi
|
||||
IdentityFile ~/.ssh/id_rsa
|
||||
|
||||
Host hassio
|
||||
hostname 192.168.1.101
|
||||
Port <span class="org-highlight-numbers-number">10022</span>
|
||||
user root
|
||||
IdentityFile ~/.ssh/id_rsa
|
||||
Host hassio
|
||||
hostname 192.168.1.101
|
||||
Port <span class="org-highlight-numbers-number">10022</span>
|
||||
user root
|
||||
IdentityFile ~/.ssh/id_rsa
|
||||
|
||||
Host nas
|
||||
hostname 192.168.1.50
|
||||
Port <span class="org-highlight-numbers-number">10022</span>
|
||||
user tdehaeze
|
||||
IdentityFile ~/.ssh/id_rsa
|
||||
Host nas
|
||||
hostname 192.168.1.50
|
||||
Port <span class="org-highlight-numbers-number">10022</span>
|
||||
user tdehaeze
|
||||
IdentityFile ~/.ssh/id_rsa
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -77,28 +77,28 @@ Host nas
|
||||
<h2 id="org10b81df">Font</h2>
|
||||
<div class="outline-text-2" id="text-org10b81df">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-variable-name"><?xml version</span>=<span class="org-string">'1.0'</span>?>
|
||||
<!DOCTYPE fontconfig SYSTEM <span class="org-string">'fonts.dtd'</span>>
|
||||
<fontconfig>
|
||||
<pre class="src src-conf"> <span class="org-variable-name"><?xml version</span>=<span class="org-string">'1.0'</span>?>
|
||||
<!DOCTYPE fontconfig SYSTEM <span class="org-string">'fonts.dtd'</span>>
|
||||
<fontconfig>
|
||||
|
||||
<alias>
|
||||
<family>serif</family>
|
||||
<prefer><family>Linux Libertine</family></prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>sans-serif</family>
|
||||
<prefer><family>Linux Biolinum</family></prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>sans</family>
|
||||
<prefer><family>Linux Biolinum</family></prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>monospace</family>
|
||||
<prefer><family>SauceCodePro Nerd Font Mono</family></prefer>
|
||||
</alias>
|
||||
<family>serif</family>
|
||||
<prefer><family>Linux Libertine</family></prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>sans-serif</family>
|
||||
<prefer><family>Linux Biolinum</family></prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>sans</family>
|
||||
<prefer><family>Linux Biolinum</family></prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>monospace</family>
|
||||
<prefer><family>Hack Nerd Font Mono</family></prefer>
|
||||
</alias>
|
||||
|
||||
</fontconfig>
|
||||
</fontconfig>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -108,8 +108,8 @@ Host nas
|
||||
<h2 id="orge8ba5b4">GnuPG</h2>
|
||||
<div class="outline-text-2" id="text-orge8ba5b4">
|
||||
<div class="org-src-container">
|
||||
<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>
|
||||
<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>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -119,22 +119,22 @@ max-cache-ttl <span class="org-highlight-numbers-number">60480000</span>
|
||||
<h2 id="org3a8118a">Redshift</h2>
|
||||
<div class="outline-text-2" id="text-org3a8118a">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">redshift</span>]
|
||||
<span class="org-variable-name">temp-day</span>=<span class="org-highlight-numbers-number">5700</span>
|
||||
<span class="org-variable-name">temp-night</span>=<span class="org-highlight-numbers-number">3500</span>
|
||||
<pre class="src src-conf"> [<span class="org-type">redshift</span>]
|
||||
<span class="org-variable-name">temp-day</span>=<span class="org-highlight-numbers-number">5700</span>
|
||||
<span class="org-variable-name">temp-night</span>=<span class="org-highlight-numbers-number">3500</span>
|
||||
|
||||
<span class="org-variable-name">transition</span>=<span class="org-highlight-numbers-number">1</span>
|
||||
<span class="org-variable-name">transition</span>=<span class="org-highlight-numbers-number">1</span>
|
||||
|
||||
<span class="org-variable-name">;brightness-day</span>=<span class="org-highlight-numbers-number">0.7</span>
|
||||
<span class="org-variable-name">;brightness-night</span>=<span class="org-highlight-numbers-number">0.4</span>
|
||||
<span class="org-variable-name">;brightness-day</span>=<span class="org-highlight-numbers-number">0.7</span>
|
||||
<span class="org-variable-name">;brightness-night</span>=<span class="org-highlight-numbers-number">0.4</span>
|
||||
|
||||
<span class="org-variable-name">location-provider</span>=manual
|
||||
<span class="org-variable-name">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-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-type">manual</span>]
|
||||
<span class="org-variable-name">lat</span>=<span class="org-highlight-numbers-number">45.1</span>
|
||||
<span class="org-variable-name">lon</span>=<span class="org-highlight-numbers-number">5.7</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -144,26 +144,26 @@ max-cache-ttl <span class="org-highlight-numbers-number">60480000</span>
|
||||
<h2 id="org91a7258">dmenu</h2>
|
||||
<div class="outline-text-2" id="text-org91a7258">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">define the font for dmenu to be used</span>
|
||||
<span class="org-variable-name">DMENU_FN</span>=<span class="org-string">"Hack Nerd Font 12"</span>
|
||||
<pre class="src src-conf"> <span class="org-comment-delimiter"># </span><span class="org-comment">define the font for dmenu to be used</span>
|
||||
<span class="org-variable-name">DMENU_FN</span>=<span class="org-string">"Hack Nerd Font 12"</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">background colour for unselected menu-items</span>
|
||||
<span class="org-variable-name">DMENU_NB</span>=<span class="org-string">"#222D31"</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">background colour for unselected menu-items</span>
|
||||
<span class="org-variable-name">DMENU_NB</span>=<span class="org-string">"#222D31"</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">textcolour for unselected menu-items</span>
|
||||
<span class="org-variable-name">DMENU_NF</span>=<span class="org-string">"#F9FAF9"</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">textcolour for unselected menu-items</span>
|
||||
<span class="org-variable-name">DMENU_NF</span>=<span class="org-string">"#F9FAF9"</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">background colour for selected menu-items</span>
|
||||
<span class="org-variable-name">DMENU_SB</span>=<span class="org-string">"#16A085"</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">background colour for selected menu-items</span>
|
||||
<span class="org-variable-name">DMENU_SB</span>=<span class="org-string">"#16A085"</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">textcolour for selected menu-items</span>
|
||||
<span class="org-variable-name">DMENU_SF</span>=<span class="org-string">"#F9FAF9"</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">textcolour for selected menu-items</span>
|
||||
<span class="org-variable-name">DMENU_SF</span>=<span class="org-string">"#F9FAF9"</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">command for the terminal application to be used:</span>
|
||||
<span class="org-variable-name">TERMINAL_CMD</span>=<span class="org-string">"terminal -e"</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">command for the terminal application to be used:</span>
|
||||
<span class="org-variable-name">TERMINAL_CMD</span>=<span class="org-string">"terminal -e"</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">export our variables</span>
|
||||
<span class="org-variable-name">DMENU_OPTIONS</span>=<span class="org-string">"-fn $DMENU_FN -nb $DMENU_NB -nf $DMENU_NF -sf $DMENU_SF -sb $DMENU_SB"</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">export our variables</span>
|
||||
<span class="org-variable-name">DMENU_OPTIONS</span>=<span class="org-string">"-fn $DMENU_FN -nb $DMENU_NB -nf $DMENU_NF -sf $DMENU_SF -sb $DMENU_SB"</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -173,20 +173,20 @@ max-cache-ttl <span class="org-highlight-numbers-number">60480000</span>
|
||||
<h2 id="orge5eb33f">Locale</h2>
|
||||
<div class="outline-text-2" id="text-orge5eb33f">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-variable-name">LANG</span>=en_US.UTF-8
|
||||
<span class="org-variable-name">LC_CTYPE</span>=<span class="org-string">"en_US.UTF-8"</span>
|
||||
<span class="org-variable-name">LC_NUMERIC</span>=fr_FR.UTF-8
|
||||
<span class="org-variable-name">LC_TIME</span>=fr_FR.UTF-8
|
||||
<span class="org-variable-name">LC_COLLATE</span>=<span class="org-string">"en_US.UTF-8"</span>
|
||||
<span class="org-variable-name">LC_MONETARY</span>=fr_FR.UTF-8
|
||||
<span class="org-variable-name">LC_MESSAGES</span>=<span class="org-string">"en_US.UTF-8"</span>
|
||||
<span class="org-variable-name">LC_PAPER</span>=fr_FR.UTF-8
|
||||
<span class="org-variable-name">LC_NAME</span>=fr_FR.UTF-8
|
||||
<span class="org-variable-name">LC_ADDRESS</span>=fr_FR.UTF-8
|
||||
<span class="org-variable-name">LC_TELEPHONE</span>=fr_FR.UTF-8
|
||||
<span class="org-variable-name">LC_MEASUREMENT</span>=fr_FR.UTF-8
|
||||
<span class="org-variable-name">LC_IDENTIFICATION</span>=fr_FR.UTF-8
|
||||
<span class="org-variable-name">LC_ALL</span>=
|
||||
<pre class="src src-conf"> <span class="org-variable-name">LANG</span>=en_US.UTF-8
|
||||
<span class="org-variable-name">LC_CTYPE</span>=<span class="org-string">"en_US.UTF-8"</span>
|
||||
<span class="org-variable-name">LC_NUMERIC</span>=fr_FR.UTF-8
|
||||
<span class="org-variable-name">LC_TIME</span>=fr_FR.UTF-8
|
||||
<span class="org-variable-name">LC_COLLATE</span>=<span class="org-string">"en_US.UTF-8"</span>
|
||||
<span class="org-variable-name">LC_MONETARY</span>=fr_FR.UTF-8
|
||||
<span class="org-variable-name">LC_MESSAGES</span>=<span class="org-string">"en_US.UTF-8"</span>
|
||||
<span class="org-variable-name">LC_PAPER</span>=fr_FR.UTF-8
|
||||
<span class="org-variable-name">LC_NAME</span>=fr_FR.UTF-8
|
||||
<span class="org-variable-name">LC_ADDRESS</span>=fr_FR.UTF-8
|
||||
<span class="org-variable-name">LC_TELEPHONE</span>=fr_FR.UTF-8
|
||||
<span class="org-variable-name">LC_MEASUREMENT</span>=fr_FR.UTF-8
|
||||
<span class="org-variable-name">LC_IDENTIFICATION</span>=fr_FR.UTF-8
|
||||
<span class="org-variable-name">LC_ALL</span>=
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -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>
|
||||
<div class="outline-text-2" id="text-orgd31ca2a">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-type">_rofi ()</span> {
|
||||
rofi -dmenu -i -no-levenshtein-sort -width <span class="org-highlight-numbers-number">1000</span> <span class="org-string">"$@"</span>
|
||||
}
|
||||
<pre class="src src-conf"> <span class="org-type">_rofi ()</span> {
|
||||
rofi -dmenu -i -no-levenshtein-sort -width <span class="org-highlight-numbers-number">1000</span> <span class="org-string">"$@"</span>
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@ -206,8 +206,8 @@ max-cache-ttl <span class="org-highlight-numbers-number">60480000</span>
|
||||
Display settings
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-variable-name">display_type</span>=<span class="org-highlight-numbers-number">1</span>
|
||||
<span class="org-variable-name">max_str_width</span>=<span class="org-highlight-numbers-number">80</span>
|
||||
<pre class="src src-conf"> <span class="org-variable-name">display_type</span>=<span class="org-highlight-numbers-number">1</span>
|
||||
<span class="org-variable-name">max_str_width</span>=<span class="org-highlight-numbers-number">80</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@ -215,11 +215,11 @@ Display settings
|
||||
Keybindings
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-variable-name">switch_view</span>=<span class="org-string">"Alt+Tab"</span>
|
||||
<span class="org-variable-name">new_bookmark</span>=<span class="org-string">"Alt+n"</span>
|
||||
<span class="org-variable-name">actions</span>=<span class="org-string">"Alt+a"</span>
|
||||
<span class="org-variable-name">edit</span>=<span class="org-string">"Alt+e"</span>
|
||||
<span class="org-variable-name">delete</span>=<span class="org-string">"Alt+d"</span>
|
||||
<pre class="src src-conf"> <span class="org-variable-name">switch_view</span>=<span class="org-string">"Alt+Tab"</span>
|
||||
<span class="org-variable-name">new_bookmark</span>=<span class="org-string">"Alt+n"</span>
|
||||
<span class="org-variable-name">actions</span>=<span class="org-string">"Alt+a"</span>
|
||||
<span class="org-variable-name">edit</span>=<span class="org-string">"Alt+e"</span>
|
||||
<span class="org-variable-name">delete</span>=<span class="org-string">"Alt+d"</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@ -227,7 +227,7 @@ Keybindings
|
||||
Colors
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-variable-name">help_color</span>=<span class="org-string">"#2d7ed8"</span>
|
||||
<pre class="src src-conf"> <span class="org-variable-name">help_color</span>=<span class="org-string">"#2d7ed8"</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -235,7 +235,7 @@ Colors
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<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>
|
||||
</body>
|
||||
</html>
|
||||
|
2
docs/dist/style.css
vendored
2
docs/dist/style.css
vendored
File diff suppressed because one or more lines are too long
4404
docs/doom.html
4404
docs/doom.html
File diff suppressed because it is too large
Load Diff
141
docs/index.html
141
docs/index.html
@ -3,13 +3,14 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-01-01 ven. 21:59 -->
|
||||
<!-- 2021-01-03 dim. 22:51 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Dotfiles - Manjaro Linux</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
<style> #content {margin: auto;} </style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -18,29 +19,13 @@
|
||||
<a accesskey="H" href="./index.html"> HOME </a>
|
||||
</div><div id="content">
|
||||
<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>
|
||||
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>
|
||||
|
||||
<div id="outline-container-orgd79ce2e" class="outline-2">
|
||||
<h2 id="orgd79ce2e">Desktop Configuration</h2>
|
||||
<div class="outline-text-2" id="text-orgd79ce2e">
|
||||
<p>
|
||||
There are Specific configuration files for:
|
||||
</p>
|
||||
<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>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>Notification Manager</b>: <a href="notifications.html">Dunst</a></li>
|
||||
<li><b>Service Manager</b>: <a href="systemd.html">Systemd</a></li>
|
||||
<li><a href="xconfig.html">X configuration</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org462d26f" class="outline-2">
|
||||
<h2 id="org462d26f">Editors</h2>
|
||||
<div class="outline-text-2" id="text-org462d26f">
|
||||
<ul class="org-ul">
|
||||
<li><a href="vim.html">Vim</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>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org18da288" class="outline-2">
|
||||
<h2 id="org18da288">Command Line</h2>
|
||||
<div class="outline-text-2" id="text-org18da288">
|
||||
<ul class="org-ul">
|
||||
<li><a href="bash.html">Bash</a> and <a href="zsh.html">ZSH</a></li>
|
||||
<li>Terminal: <a href="termite.html">Termite</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><b>Display Server</b>: <a href="xconfig.html">Xorg</a></li>
|
||||
<li><b>Editors</b>: <a href="vim.html">Neovim</a> and <a href="./doom.html">Emacs (Doom)</a> (<a href="emacs-library-babel.html">library of babel</a>, <a href="emacs-snippets.html">snippets</a>)</li>
|
||||
<li><b>Shell</b>: <a href="bash.html">Bash</a></li>
|
||||
<li><b>Terminal Emulator</b>: <a href="termite.html">Termite</a></li>
|
||||
<li><b>Terminal Multiplexer</b> <a href="tmux.html">TMUX</a></li>
|
||||
<li><b>Image Setup</b>: <a href="image.html">SXIV</a></li>
|
||||
<li><b>Music Setup</b>: <a href="music.html">NCMPCPP, Mopidy and Beets</a></li>
|
||||
<li><b>Video Setup</b>: <a href="video.html">MPV</a></li>
|
||||
<li><b>Web Browser</b>: <a href="qutebrowser.html">Qutebrowser</a></li>
|
||||
<li><b>PDF Reader</b>: <a href="zathura.html">Zathura</a></li>
|
||||
<li><b>GUI File Manager</b>: <a href="pcmanfm.html">Pcmanfm</a></li>
|
||||
<li><b>Terminal File Manager</b>: <a href="ranger.html">Ranger</a></li>
|
||||
<li><b>Calendar</b>: <a href="calendar.html">Vdirsyncer and Khal</a></li>
|
||||
<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>
|
||||
<li><b>RSS-Reader</b>: <a href="newsboat.html">Newsboat</a></li>
|
||||
<li><b>Version Control</b>: <a href="git.html">Git</a></li>
|
||||
<li><b>Scripts</b>: <a href="binaries.html">Scripts</a></li>
|
||||
<li><b>Desktop Applications</b>: <a href="applications.html">.desktop files</a></li>
|
||||
<li><b>Computation</b>: <a href="matlab.html">Matlab</a></li>
|
||||
<li><b>GUI Toolkit</b>: <a href="gtk.html">GTK</a></li>
|
||||
<li><a href="config.html">Other Config</a></li>
|
||||
</ul>
|
||||
</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>
|
||||
</html>
|
||||
|
3418
docs/install.html
3418
docs/install.html
File diff suppressed because it is too large
Load Diff
240
docs/music.html
240
docs/music.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<!-- 2021-01-03 dim. 22:25 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Music/Sound Configuration</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
@ -40,14 +40,14 @@
|
||||
<h2 id="pavucontrol"><code>pavucontrol</code> - Volume Control</h2>
|
||||
<div class="outline-text-2" id="text-pavucontrol">
|
||||
<div class="org-src-container">
|
||||
<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">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">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">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>
|
||||
<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">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">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">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>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -57,47 +57,47 @@
|
||||
<h2 id="mopidy"><code>mopidy</code> - Music Server</h2>
|
||||
<div class="outline-text-2" id="text-mopidy">
|
||||
<div class="org-src-container">
|
||||
<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">password</span> = <<get-password(passname=<span class="org-string">"spotify.com/dehaeze.thomas@gmail.com"</span>)>>
|
||||
<span class="org-variable-name">client_id</span> = 9dd02534-f038-46d8-946e-bfe72498204e
|
||||
<span class="org-variable-name">client_secret</span> = <<get-password(passname=<span class="org-string">"spotify/client_secret"</span>)>>
|
||||
<span class="org-variable-name">bitrate</span> = <span class="org-highlight-numbers-number">320</span>
|
||||
<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">password</span> = <<get-password(passname=<span class="org-string">"spotify.com/dehaeze.thomas@gmail.com"</span>)>>
|
||||
<span class="org-variable-name">client_id</span> = 9dd02534-f038-46d8-946e-bfe72498204e
|
||||
<span class="org-variable-name">client_secret</span> = <<get-password(passname=<span class="org-string">"spotify/client_secret"</span>)>>
|
||||
<span class="org-variable-name">bitrate</span> = <span class="org-highlight-numbers-number">320</span>
|
||||
|
||||
[<span class="org-type">mpd</span>]
|
||||
<span class="org-variable-name">enabled</span> = true
|
||||
<span class="org-variable-name">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">password</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">zeroconf</span> = Mopidy MPD server on $hostname
|
||||
<span class="org-variable-name">command_blacklist</span> = listall,listallinfo
|
||||
<span class="org-variable-name">default_playlist_scheme</span> = m3u
|
||||
[<span class="org-type">mpd</span>]
|
||||
<span class="org-variable-name">enabled</span> = true
|
||||
<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">password</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">zeroconf</span> = Mopidy MPD server on $hostname
|
||||
<span class="org-variable-name">command_blacklist</span> = listall,listallinfo
|
||||
<span class="org-variable-name">default_playlist_scheme</span> = m3u
|
||||
|
||||
[<span class="org-type">jellyfin</span>]
|
||||
<span class="org-variable-name">hostname</span> = https://jellyfin.tdehaeze.xyz/
|
||||
<span class="org-variable-name">username</span> = tdehaeze
|
||||
<span class="org-variable-name">password</span> = <<get-password(passname=<span class="org-string">"music.tdehaeze.xyz/tdehaeze"</span>)>>
|
||||
<span class="org-variable-name">libraries</span> = Music
|
||||
<span class="org-variable-name">albumartistsort</span> = True
|
||||
<span class="org-variable-name">album_format</span> = {ProductionYear} - {Name}
|
||||
[<span class="org-type">jellyfin</span>]
|
||||
<span class="org-variable-name">hostname</span> = https://jellyfin.tdehaeze.xyz/
|
||||
<span class="org-variable-name">username</span> = tdehaeze
|
||||
<span class="org-variable-name">password</span> = <<get-password(passname=<span class="org-string">"music.tdehaeze.xyz/tdehaeze"</span>)>>
|
||||
<span class="org-variable-name">libraries</span> = Music
|
||||
<span class="org-variable-name">albumartistsort</span> = True
|
||||
<span class="org-variable-name">album_format</span> = {ProductionYear} - {Name}
|
||||
|
||||
[<span class="org-type">file</span>]
|
||||
<span class="org-variable-name">enabled</span> = true
|
||||
<span class="org-variable-name">media_dirs</span> = /home/thomas/Music
|
||||
<span class="org-variable-name">excluded_file_extensions</span> =
|
||||
.db
|
||||
.directory
|
||||
.html
|
||||
.jpeg
|
||||
.jpg
|
||||
.log
|
||||
.nfo
|
||||
.pdf
|
||||
.png
|
||||
.txt
|
||||
.zip
|
||||
[<span class="org-type">file</span>]
|
||||
<span class="org-variable-name">enabled</span> = true
|
||||
<span class="org-variable-name">media_dirs</span> = /home/thomas/Music
|
||||
<span class="org-variable-name">excluded_file_extensions</span> =
|
||||
.db
|
||||
.directory
|
||||
.html
|
||||
.jpeg
|
||||
.jpg
|
||||
.log
|
||||
.nfo
|
||||
.pdf
|
||||
.png
|
||||
.txt
|
||||
.zip
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -119,7 +119,7 @@ Cheatsheet: <a href="https://pkgbuild.com/~jelle/ncmpcpp/">https://pkgbuild.com/
|
||||
Configuration directory.
|
||||
</p>
|
||||
<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>
|
||||
</div>
|
||||
|
||||
@ -127,9 +127,9 @@ Configuration directory.
|
||||
MPD Configuration.
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<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_music_dir</span> = ~/Music
|
||||
<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_music_dir</span> = ~/Music
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@ -137,7 +137,7 @@ MPD Configuration.
|
||||
Notification of song change.
|
||||
</p>
|
||||
<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 ♫"</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 ♫"</span> <span class="org-string">"$(mpc current)"</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@ -145,11 +145,11 @@ Notification of song change.
|
||||
Better user interface
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<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">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">playlist_display_mode</span> = <span class="org-string">"columns"</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">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">playlist_display_mode</span> = <span class="org-string">"columns"</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@ -157,13 +157,13 @@ Better user interface
|
||||
Sorting by tracking number and then title
|
||||
</p>
|
||||
<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>
|
||||
<span class="org-variable-name">browser_sort_format</span> = <span class="org-string">'{%n - %t}|{%t}'</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>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
@ -173,42 +173,42 @@ Sorting by tracking number and then title
|
||||
<h3 id="orga43b7ae">Bindings</h3>
|
||||
<div class="outline-text-3" id="text-orga43b7ae">
|
||||
<div class="org-src-container">
|
||||
<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>
|
||||
def_key <span class="org-string">"Q"</span>
|
||||
quit
|
||||
def_key <span class="org-string">"g"</span>
|
||||
move_home
|
||||
def_key <span class="org-string">"G"</span>
|
||||
move_end
|
||||
def_key <span class="org-string">"j"</span>
|
||||
scroll_down
|
||||
def_key <span class="org-string">"k"</span>
|
||||
scroll_up
|
||||
def_key <span class="org-string">"ctrl-u"</span>
|
||||
page_up
|
||||
def_key <span class="org-string">"ctrl-d"</span>
|
||||
page_down
|
||||
def_key <span class="org-string">"l"</span>
|
||||
enter_directory
|
||||
def_key <span class="org-string">"h"</span>
|
||||
jump_to_parent_directory
|
||||
def_key <span class="org-string">"."</span>
|
||||
show_lyrics
|
||||
def_key <span class="org-string">"n"</span>
|
||||
next_found_item
|
||||
def_key <span class="org-string">"N"</span>
|
||||
previous_found_item
|
||||
def_key <span class="org-string">"J"</span>
|
||||
move_sort_order_down
|
||||
def_key <span class="org-string">"K"</span>
|
||||
move_sort_order_up
|
||||
def_key <span class="org-string">"d"</span>
|
||||
delete_playlist_items
|
||||
def_key <span class="org-string">"+"</span>
|
||||
volume_up
|
||||
def_key <span class="org-string">"-"</span>
|
||||
volume_down
|
||||
<pre class="src src-conf"> def_key <span class="org-string">"q"</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>
|
||||
quit
|
||||
def_key <span class="org-string">"g"</span>
|
||||
move_home
|
||||
def_key <span class="org-string">"G"</span>
|
||||
move_end
|
||||
def_key <span class="org-string">"j"</span>
|
||||
scroll_down
|
||||
def_key <span class="org-string">"k"</span>
|
||||
scroll_up
|
||||
def_key <span class="org-string">"ctrl-u"</span>
|
||||
page_up
|
||||
def_key <span class="org-string">"ctrl-d"</span>
|
||||
page_down
|
||||
def_key <span class="org-string">"l"</span>
|
||||
enter_directory
|
||||
def_key <span class="org-string">"h"</span>
|
||||
jump_to_parent_directory
|
||||
def_key <span class="org-string">"."</span>
|
||||
show_lyrics
|
||||
def_key <span class="org-string">"n"</span>
|
||||
next_found_item
|
||||
def_key <span class="org-string">"N"</span>
|
||||
previous_found_item
|
||||
def_key <span class="org-string">"J"</span>
|
||||
move_sort_order_down
|
||||
def_key <span class="org-string">"K"</span>
|
||||
move_sort_order_up
|
||||
def_key <span class="org-string">"d"</span>
|
||||
delete_playlist_items
|
||||
def_key <span class="org-string">"+"</span>
|
||||
volume_up
|
||||
def_key <span class="org-string">"-"</span>
|
||||
volume_down
|
||||
|
||||
</pre>
|
||||
</div>
|
||||
@ -224,14 +224,14 @@ def_key <span class="org-string">"-"</span>
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">directory: ~/Music
|
||||
library: ~/Music/musiclibrary.db
|
||||
art_filename: cover
|
||||
<pre class="src src-conf"> directory: ~/Music
|
||||
library: ~/Music/musiclibrary.db
|
||||
art_filename: cover
|
||||
|
||||
import:
|
||||
move: yes
|
||||
import:
|
||||
move: yes
|
||||
|
||||
plugins: fromfilename discogs
|
||||
plugins: fromfilename discogs
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -241,26 +241,26 @@ plugins: fromfilename discogs
|
||||
<h2 id="curseradio"><code>curseradio</code> - Radio with curseradio</h2>
|
||||
<div class="outline-text-2" id="text-curseradio">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">opml</span>]
|
||||
<span class="org-variable-name">root</span> = http://opml.radiotime.com/
|
||||
<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-type">playback</span>]
|
||||
<span class="org-variable-name">command</span> = /usr/bin/mpv
|
||||
[<span class="org-type">playback</span>]
|
||||
<span class="org-variable-name">command</span> = /usr/bin/mpv
|
||||
|
||||
[<span class="org-type">interface</span>]
|
||||
<span class="org-variable-name">keymap</span> = vi
|
||||
[<span class="org-type">interface</span>]
|
||||
<span class="org-variable-name">keymap</span> = vi
|
||||
|
||||
[<span class="org-type">keymap.vi</span>]
|
||||
<span class="org-variable-name">up</span> = k
|
||||
<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">end</span> = $
|
||||
<span class="org-variable-name">pageup</span> = u
|
||||
<span class="org-variable-name">pagedown</span> = d
|
||||
<span class="org-variable-name">enter</span> = l
|
||||
<span class="org-variable-name">stop</span> = p
|
||||
<span class="org-variable-name">exit</span> = q
|
||||
<span class="org-variable-name">favourite</span> = f
|
||||
[<span class="org-type">keymap.vi</span>]
|
||||
<span class="org-variable-name">up</span> = k
|
||||
<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">end</span> = $
|
||||
<span class="org-variable-name">pageup</span> = u
|
||||
<span class="org-variable-name">pagedown</span> = d
|
||||
<span class="org-variable-name">enter</span> = l
|
||||
<span class="org-variable-name">stop</span> = p
|
||||
<span class="org-variable-name">exit</span> = q
|
||||
<span class="org-variable-name">favourite</span> = f
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -268,7 +268,7 @@ plugins: fromfilename discogs
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<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>
|
||||
</body>
|
||||
</html>
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -3,9 +3,9 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<!-- 2021-01-03 dim. 22:51 -->
|
||||
<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="author" content="Dehaeze Thomas" />
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
@ -17,7 +17,7 @@
|
||||
|
|
||||
<a accesskey="H" href="./index.html"> HOME </a>
|
||||
</div><div id="content">
|
||||
<h1 class="title">PCMANFM</h1>
|
||||
<h1 class="title">PCManFM</h1>
|
||||
<div id="table-of-contents">
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
@ -33,8 +33,8 @@
|
||||
<h2 id="org0ad1961">Config</h2>
|
||||
<div class="outline-text-2" id="text-org0ad1961">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">config</span>]
|
||||
<span class="org-variable-name">bm_open_method</span>=<span class="org-highlight-numbers-number">0</span>
|
||||
<pre class="src src-conf"> [<span class="org-type">config</span>]
|
||||
<span class="org-variable-name">bm_open_method</span>=<span class="org-highlight-numbers-number">0</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -44,10 +44,10 @@
|
||||
<h2 id="org9ed27d2">Volume</h2>
|
||||
<div class="outline-text-2" id="text-org9ed27d2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">volume</span>]
|
||||
<span class="org-variable-name">mount_on_startup</span>=<span class="org-highlight-numbers-number">0</span>
|
||||
<span class="org-variable-name">mount_removable</span>=<span class="org-highlight-numbers-number">0</span>
|
||||
<span class="org-variable-name">autorun</span>=<span class="org-highlight-numbers-number">0</span>
|
||||
<pre class="src src-conf"> [<span class="org-type">volume</span>]
|
||||
<span class="org-variable-name">mount_on_startup</span>=<span class="org-highlight-numbers-number">0</span>
|
||||
<span class="org-variable-name">mount_removable</span>=<span class="org-highlight-numbers-number">0</span>
|
||||
<span class="org-variable-name">autorun</span>=<span class="org-highlight-numbers-number">0</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -57,24 +57,24 @@
|
||||
<h2 id="org8c3fa60">UI</h2>
|
||||
<div class="outline-text-2" id="text-org8c3fa60">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">ui</span>]
|
||||
<span class="org-variable-name">always_show_tabs</span>=<span class="org-highlight-numbers-number">0</span>
|
||||
<span class="org-variable-name">max_tab_chars</span>=<span class="org-highlight-numbers-number">32</span>
|
||||
<span class="org-variable-name">win_width</span>=<span class="org-highlight-numbers-number">1263</span>
|
||||
<span class="org-variable-name">win_height</span>=<span class="org-highlight-numbers-number">690</span>
|
||||
<span class="org-variable-name">splitter_pos</span>=<span class="org-highlight-numbers-number">150</span>
|
||||
<span class="org-variable-name">media_in_new_tab</span>=<span class="org-highlight-numbers-number">0</span>
|
||||
<span class="org-variable-name">desktop_folder_new_win</span>=<span class="org-highlight-numbers-number">0</span>
|
||||
<span class="org-variable-name">change_tab_on_drop</span>=<span class="org-highlight-numbers-number">1</span>
|
||||
<span class="org-variable-name">close_on_unmount</span>=<span class="org-highlight-numbers-number">1</span>
|
||||
<span class="org-variable-name">focus_previous</span>=<span class="org-highlight-numbers-number">0</span>
|
||||
<span class="org-variable-name">side_pane_mode</span>=places
|
||||
<span class="org-variable-name">view_mode</span>=icon
|
||||
<span class="org-variable-name">show_hidden</span>=<span class="org-highlight-numbers-number">0</span>
|
||||
<span class="org-variable-name">sort</span>=mtime;descending;
|
||||
<span class="org-variable-name">toolbar</span>=newtab;navigation;home;
|
||||
<span class="org-variable-name">show_statusbar</span>=<span class="org-highlight-numbers-number">1</span>
|
||||
<span class="org-variable-name">pathbar_mode_buttons</span>=<span class="org-highlight-numbers-number">0</span>
|
||||
<pre class="src src-conf"> [<span class="org-type">ui</span>]
|
||||
<span class="org-variable-name">always_show_tabs</span>=<span class="org-highlight-numbers-number">0</span>
|
||||
<span class="org-variable-name">max_tab_chars</span>=<span class="org-highlight-numbers-number">32</span>
|
||||
<span class="org-variable-name">win_width</span>=<span class="org-highlight-numbers-number">1263</span>
|
||||
<span class="org-variable-name">win_height</span>=<span class="org-highlight-numbers-number">690</span>
|
||||
<span class="org-variable-name">splitter_pos</span>=<span class="org-highlight-numbers-number">150</span>
|
||||
<span class="org-variable-name">media_in_new_tab</span>=<span class="org-highlight-numbers-number">0</span>
|
||||
<span class="org-variable-name">desktop_folder_new_win</span>=<span class="org-highlight-numbers-number">0</span>
|
||||
<span class="org-variable-name">change_tab_on_drop</span>=<span class="org-highlight-numbers-number">1</span>
|
||||
<span class="org-variable-name">close_on_unmount</span>=<span class="org-highlight-numbers-number">1</span>
|
||||
<span class="org-variable-name">focus_previous</span>=<span class="org-highlight-numbers-number">0</span>
|
||||
<span class="org-variable-name">side_pane_mode</span>=places
|
||||
<span class="org-variable-name">view_mode</span>=icon
|
||||
<span class="org-variable-name">show_hidden</span>=<span class="org-highlight-numbers-number">0</span>
|
||||
<span class="org-variable-name">sort</span>=mtime;descending;
|
||||
<span class="org-variable-name">toolbar</span>=newtab;navigation;home;
|
||||
<span class="org-variable-name">show_statusbar</span>=<span class="org-highlight-numbers-number">1</span>
|
||||
<span class="org-variable-name">pathbar_mode_buttons</span>=<span class="org-highlight-numbers-number">0</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -82,7 +82,7 @@
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<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>
|
||||
</body>
|
||||
</html>
|
||||
|
File diff suppressed because it is too large
Load Diff
676
docs/ranger.html
676
docs/ranger.html
File diff suppressed because it is too large
Load Diff
285
docs/rofi.html
285
docs/rofi.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<!-- 2021-01-03 dim. 22:25 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Rofi Configuration</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
@ -32,52 +32,52 @@
|
||||
<h2 id="orgcda15fb">Rofi</h2>
|
||||
<div class="outline-text-2" id="text-orgcda15fb">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-type">configuration</span> {
|
||||
modi: <span class="org-string">"window,run,ssh"</span>;
|
||||
width: <span class="org-highlight-numbers-number">50</span>;
|
||||
lines: <span class="org-highlight-numbers-number">15</span>;
|
||||
columns: <span class="org-highlight-numbers-number">1</span>;
|
||||
font: <span class="org-string">"Hack Nerd Font 12"</span>;
|
||||
fixed-num-lines: true;
|
||||
show-icons: false;
|
||||
terminal: <span class="org-string">"rofi-sensible-terminal"</span>;
|
||||
sort: false;
|
||||
case-sensitive: false;
|
||||
cycle: true;
|
||||
sidebar-mode: false;
|
||||
auto-select: false;
|
||||
combi-modi: <span class="org-string">"window,run"</span>;
|
||||
matching: <span class="org-string">"normal"</span>;
|
||||
line-margin: <span class="org-highlight-numbers-number">2</span>;
|
||||
line-padding: <span class="org-highlight-numbers-number">1</span>;
|
||||
separator-style: <span class="org-string">"dash"</span>;
|
||||
hide-scrollbar: true;
|
||||
fullscreen: false;
|
||||
dpi: -1;
|
||||
show-match: true;
|
||||
theme: <span class="org-string">"gruvbox-dark-soft"</span>;
|
||||
kb-move-front: <span class="org-string">"Control+a"</span>;
|
||||
kb-move-end: <span class="org-string">"Control+e"</span>;
|
||||
kb-move-word-back: <span class="org-string">"Alt+b,Control+Left"</span>;
|
||||
kb-move-word-forward: <span class="org-string">"Alt+f,Control+Right"</span>;
|
||||
kb-move-char-back: <span class="org-string">"Left,Control+b"</span>;
|
||||
kb-move-char-forward: <span class="org-string">"Right,Control+f"</span>;
|
||||
kb-remove-char-forward: <span class="org-string">"Delete,Control+d"</span>;
|
||||
kb-remove-char-back: <span class="org-string">"BackSpace,Shift+BackSpace"</span>;
|
||||
kb-remove-to-eol: <span class="org-string">"Control+k"</span>;
|
||||
kb-remove-to-sol: <span class="org-string">"Control+u"</span>;
|
||||
kb-accept-entry: <span class="org-string">"Control+j,Return,KP_Enter"</span>;
|
||||
kb-accept-custom: <span class="org-string">"Control+Return"</span>;
|
||||
kb-accept-alt: <span class="org-string">"Shift+Return"</span>;
|
||||
kb-delete-entry: <span class="org-string">"Shift+Delete"</span>;
|
||||
kb-row-up: <span class="org-string">"Up,Control+p"</span>;
|
||||
kb-row-down: <span class="org-string">"Down,Control+n"</span>;
|
||||
kb-row-tab: <span class="org-string">"Tab"</span>;
|
||||
kb-row-first: <span class="org-string">"Home,KP_Home"</span>;
|
||||
kb-row-last: <span class="org-string">"End,KP_End"</span>;
|
||||
kb-row-select: <span class="org-string">"Control+space"</span>;
|
||||
kb-cancel: <span class="org-string">"Escape,Control+g"</span>;
|
||||
}
|
||||
<pre class="src src-conf"> <span class="org-type">configuration</span> {
|
||||
modi: <span class="org-string">"window,run,ssh"</span>;
|
||||
width: <span class="org-highlight-numbers-number">50</span>;
|
||||
lines: <span class="org-highlight-numbers-number">15</span>;
|
||||
columns: <span class="org-highlight-numbers-number">1</span>;
|
||||
font: <span class="org-string">"Hack Nerd Font 12"</span>;
|
||||
fixed-num-lines: true;
|
||||
show-icons: false;
|
||||
terminal: <span class="org-string">"rofi-sensible-terminal"</span>;
|
||||
sort: false;
|
||||
case-sensitive: false;
|
||||
cycle: true;
|
||||
sidebar-mode: false;
|
||||
auto-select: false;
|
||||
combi-modi: <span class="org-string">"window,run"</span>;
|
||||
matching: <span class="org-string">"normal"</span>;
|
||||
line-margin: <span class="org-highlight-numbers-number">2</span>;
|
||||
line-padding: <span class="org-highlight-numbers-number">1</span>;
|
||||
separator-style: <span class="org-string">"dash"</span>;
|
||||
hide-scrollbar: true;
|
||||
fullscreen: false;
|
||||
dpi: -1;
|
||||
show-match: true;
|
||||
theme: <span class="org-string">"gruvbox-dark-soft"</span>;
|
||||
kb-move-front: <span class="org-string">"Control+a"</span>;
|
||||
kb-move-end: <span class="org-string">"Control+e"</span>;
|
||||
kb-move-word-back: <span class="org-string">"Alt+b,Control+Left"</span>;
|
||||
kb-move-word-forward: <span class="org-string">"Alt+f,Control+Right"</span>;
|
||||
kb-move-char-back: <span class="org-string">"Left,Control+b"</span>;
|
||||
kb-move-char-forward: <span class="org-string">"Right,Control+f"</span>;
|
||||
kb-remove-char-forward: <span class="org-string">"Delete,Control+d"</span>;
|
||||
kb-remove-char-back: <span class="org-string">"BackSpace,Shift+BackSpace"</span>;
|
||||
kb-remove-to-eol: <span class="org-string">"Control+k"</span>;
|
||||
kb-remove-to-sol: <span class="org-string">"Control+u"</span>;
|
||||
kb-accept-entry: <span class="org-string">"Control+j,Return,KP_Enter"</span>;
|
||||
kb-accept-custom: <span class="org-string">"Control+Return"</span>;
|
||||
kb-accept-alt: <span class="org-string">"Shift+Return"</span>;
|
||||
kb-delete-entry: <span class="org-string">"Shift+Delete"</span>;
|
||||
kb-row-up: <span class="org-string">"Up,Control+p"</span>;
|
||||
kb-row-down: <span class="org-string">"Down,Control+n"</span>;
|
||||
kb-row-tab: <span class="org-string">"Tab"</span>;
|
||||
kb-row-first: <span class="org-string">"Home,KP_Home"</span>;
|
||||
kb-row-last: <span class="org-string">"End,KP_End"</span>;
|
||||
kb-row-select: <span class="org-string">"Control+space"</span>;
|
||||
kb-cancel: <span class="org-string">"Escape,Control+g"</span>;
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -87,65 +87,64 @@ kb-cancel: <span class="org-string">"Escape,Control+g"</span>;
|
||||
<h2 id="orged85414">Theme</h2>
|
||||
<div class="outline-text-2" id="text-orged85414">
|
||||
<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-accept-entry: <span class="org-string">"MousePrimary"</span>;
|
||||
scroll-method: <span class="org-highlight-numbers-number">1</span>;
|
||||
show-icons: true;
|
||||
sidebar-mode: true;
|
||||
kb-custom-1: <span class="org-string">""</span>;
|
||||
kb-custom-2: <span class="org-string">""</span>;
|
||||
kb-custom-3: <span class="org-string">""</span>;
|
||||
kb-custom-4: <span class="org-string">""</span>;
|
||||
kb-custom-5: <span class="org-string">""</span>;
|
||||
kb-custom-6: <span class="org-string">""</span>;
|
||||
kb-custom-7: <span class="org-string">""</span>;
|
||||
kb-custom-8: <span class="org-string">""</span>;
|
||||
kb-custom-9: <span class="org-string">""</span>;
|
||||
kb-custom-10: <span class="org-string">""</span>;
|
||||
kb-select-1: <span class="org-string">"Alt+1"</span>;
|
||||
kb-select-2: <span class="org-string">"Alt+2"</span>;
|
||||
kb-select-3: <span class="org-string">"Alt+3"</span>;
|
||||
kb-select-4: <span class="org-string">"Alt+4"</span>;
|
||||
kb-select-5: <span class="org-string">"Alt+5"</span>;
|
||||
kb-select-6: <span class="org-string">"Alt+6"</span>;
|
||||
kb-select-7: <span class="org-string">"Alt+7"</span>;
|
||||
kb-select-8: <span class="org-string">"Alt+8"</span>;
|
||||
kb-select-9: <span class="org-string">"Alt+9"</span>;
|
||||
kb-select-10: <span class="org-string">"Alt+0"</span>;
|
||||
}
|
||||
show-icons: true;
|
||||
sidebar-mode: true;
|
||||
kb-custom-1: <span class="org-string">""</span>;
|
||||
kb-custom-2: <span class="org-string">""</span>;
|
||||
kb-custom-3: <span class="org-string">""</span>;
|
||||
kb-custom-4: <span class="org-string">""</span>;
|
||||
kb-custom-5: <span class="org-string">""</span>;
|
||||
kb-custom-6: <span class="org-string">""</span>;
|
||||
kb-custom-7: <span class="org-string">""</span>;
|
||||
kb-custom-8: <span class="org-string">""</span>;
|
||||
kb-custom-9: <span class="org-string">""</span>;
|
||||
kb-custom-10: <span class="org-string">""</span>;
|
||||
kb-select-1: <span class="org-string">"Alt+1"</span>;
|
||||
kb-select-2: <span class="org-string">"Alt+2"</span>;
|
||||
kb-select-3: <span class="org-string">"Alt+3"</span>;
|
||||
kb-select-4: <span class="org-string">"Alt+4"</span>;
|
||||
kb-select-5: <span class="org-string">"Alt+5"</span>;
|
||||
kb-select-6: <span class="org-string">"Alt+6"</span>;
|
||||
kb-select-7: <span class="org-string">"Alt+7"</span>;
|
||||
kb-select-8: <span class="org-string">"Alt+8"</span>;
|
||||
kb-select-9: <span class="org-string">"Alt+9"</span>;
|
||||
kb-select-10: <span class="org-string">"Alt+0"</span>;
|
||||
}
|
||||
|
||||
<span class="org-type">*</span> {
|
||||
//// COLORS ////
|
||||
<span class="org-type">*</span> {
|
||||
//// 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-color: <span class="org-comment-delimiter">#</span><span class="org-comment">292f3400;</span>
|
||||
foreground: <span class="org-comment-delimiter">#</span><span class="org-comment">F6F9FFFF;</span>
|
||||
selected: <span class="org-comment-delimiter">#</span><span class="org-comment">1ABB9BFF;</span>
|
||||
selected-foreground: @foreground;
|
||||
|
||||
//// uncomment to match Adapta Nokto theme
|
||||
// background: <span class="org-comment-delimiter">#</span><span class="org-comment">222D32E8;</span>
|
||||
// background-color: <span class="org-comment-delimiter">#</span><span class="org-comment">00000000;</span>
|
||||
// foreground: <span class="org-comment-delimiter">#</span><span class="org-comment">CFD8DCFF;</span>
|
||||
// selected: <span class="org-comment-delimiter">#</span><span class="org-comment">00BCD4FF;</span>
|
||||
// selected-foreground: <span class="org-comment-delimiter">#</span><span class="org-comment">FFFFFFFF;</span>
|
||||
//// uncomment to match Adapta Nokto theme
|
||||
// background: <span class="org-comment-delimiter">#</span><span class="org-comment">222D32E8;</span>
|
||||
// background-color: <span class="org-comment-delimiter">#</span><span class="org-comment">00000000;</span>
|
||||
// foreground: <span class="org-comment-delimiter">#</span><span class="org-comment">CFD8DCFF;</span>
|
||||
// selected: <span class="org-comment-delimiter">#</span><span class="org-comment">00BCD4FF;</span>
|
||||
// selected-foreground: <span class="org-comment-delimiter">#</span><span class="org-comment">FFFFFFFF;</span>
|
||||
|
||||
//// common - active and urgent
|
||||
active-background: <span class="org-comment-delimiter">#</span><span class="org-comment">3A464BFF;</span>
|
||||
urgent-background: <span class="org-comment-delimiter">#</span><span class="org-comment">800000FF;</span>
|
||||
urgent-foreground: @foreground;
|
||||
selected-urgent-background: @urgent-foreground;
|
||||
selected-urgent-foreground: @urgent-background;
|
||||
//// common - active and urgent
|
||||
active-background: <span class="org-comment-delimiter">#</span><span class="org-comment">3A464BFF;</span>
|
||||
urgent-background: <span class="org-comment-delimiter">#</span><span class="org-comment">800000FF;</span>
|
||||
urgent-foreground: @foreground;
|
||||
selected-urgent-background: @urgent-foreground;
|
||||
selected-urgent-foreground: @urgent-background;
|
||||
|
||||
//// TEXT ////
|
||||
//// TEXT ////
|
||||
|
||||
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;
|
||||
border: 0px;
|
||||
@ -155,118 +154,118 @@ kb-cancel: <span class="org-string">"Escape,Control+g"</span>;
|
||||
elementmargin: 0px 2px;
|
||||
listmargin: 0px 2px 0px 0px;
|
||||
|
||||
//// SIZE ////
|
||||
//// SIZE ////
|
||||
|
||||
windowwidth: 40ch;
|
||||
buttonwidth: 18ch;
|
||||
lines: <span class="org-highlight-numbers-number">12</span>;
|
||||
fixed-height: false;
|
||||
|
||||
//// POSITION ////
|
||||
//// POSITION ////
|
||||
|
||||
location: northwest;
|
||||
anchor: northwest;
|
||||
x-offset: 0px;
|
||||
y-offset: 24px;
|
||||
|
||||
//// LAYOUT ////
|
||||
//// LAYOUT ////
|
||||
|
||||
scrollbar: true;
|
||||
|
||||
//// uncomment to get submenu-like style
|
||||
//// uncomment to get submenu-like style
|
||||
menustyle: [ sb-mainbox ];
|
||||
buttonpadding: 2px 1ch;
|
||||
button-bg: @background;
|
||||
dynamic: true;
|
||||
|
||||
//// uncomment to get tabs-like style
|
||||
// menustyle: [ tb-mainbox ];
|
||||
// buttonpadding: 14px 1ch;
|
||||
// dynamic: false;
|
||||
}
|
||||
//////////////////////////////////////////
|
||||
<span class="org-type">window</span> {
|
||||
//// uncomment to get tabs-like style
|
||||
// menustyle: [ tb-mainbox ];
|
||||
// buttonpadding: 14px 1ch;
|
||||
// dynamic: false;
|
||||
}
|
||||
//////////////////////////////////////////
|
||||
<span class="org-type">window</span> {
|
||||
width: @windowwidth;
|
||||
children: @menustyle;
|
||||
}
|
||||
//submenu-style
|
||||
<span class="org-type">sb-mainbox</span> {
|
||||
}
|
||||
//submenu-style
|
||||
<span class="org-type">sb-mainbox</span> {
|
||||
orientation: horizontal;
|
||||
children: [ sidebar, vertibox ];
|
||||
}
|
||||
//tabs-style
|
||||
<span class="org-type">tb-mainbox</span> {
|
||||
}
|
||||
//tabs-style
|
||||
<span class="org-type">tb-mainbox</span> {
|
||||
orientation: vertical;
|
||||
children: [ inputbar, horibox ];
|
||||
background-color: @background;
|
||||
}
|
||||
//desktop-submenu
|
||||
<span class="org-type">dt-mainbox</span> {
|
||||
}
|
||||
//desktop-submenu
|
||||
<span class="org-type">dt-mainbox</span> {
|
||||
orientation: vertical;
|
||||
children: [ boxdummy, sb-mainbox ];
|
||||
}
|
||||
<span class="org-type">horibox</span> {
|
||||
}
|
||||
<span class="org-type">horibox</span> {
|
||||
orientation: horizontal;
|
||||
children: [ listview, sidebar ];
|
||||
}
|
||||
<span class="org-type">sidebar</span> {
|
||||
}
|
||||
<span class="org-type">sidebar</span> {
|
||||
orientation: vertical;
|
||||
}
|
||||
<span class="org-type">button</span> {
|
||||
}
|
||||
<span class="org-type">button</span> {
|
||||
horizontal-align: <span class="org-highlight-numbers-number">0</span>;
|
||||
padding: @buttonpadding;
|
||||
width: @buttonwidth;
|
||||
background-color: @button-bg;
|
||||
expand: false;
|
||||
}
|
||||
<span class="org-type">vertibox</span> {
|
||||
}
|
||||
<span class="org-type">vertibox</span> {
|
||||
orientation: vertical;
|
||||
children: [ inputbar, listview ];
|
||||
background-color: @background;
|
||||
}
|
||||
<span class="org-type">prompt</span> {
|
||||
}
|
||||
<span class="org-type">prompt</span> {
|
||||
enabled: false;
|
||||
}
|
||||
<span class="org-type">listview</span> {
|
||||
}
|
||||
<span class="org-type">listview</span> {
|
||||
margin: @listmargin;
|
||||
}
|
||||
<span class="org-type">scrollbar</span> {
|
||||
}
|
||||
<span class="org-type">scrollbar</span> {
|
||||
handle-width: 0.5ch;
|
||||
handle-color: @selected;
|
||||
}
|
||||
<span class="org-type">boxdummy</span> {
|
||||
}
|
||||
<span class="org-type">boxdummy</span> {
|
||||
enabled: false;
|
||||
orientation: vertical;
|
||||
expand: false;
|
||||
children: [ textboxdummy ];
|
||||
}
|
||||
<span class="org-type">textboxdummy</span> {
|
||||
}
|
||||
<span class="org-type">textboxdummy</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;
|
||||
margin: @elementmargin;
|
||||
width: @elementwidth;
|
||||
}
|
||||
element.normal.active,
|
||||
<span class="org-type">element.alternate.active</span> {
|
||||
}
|
||||
element.normal.active,
|
||||
<span class="org-type">element.alternate.active</span> {
|
||||
background-color: @active-background;
|
||||
text-color: @selected-foreground;
|
||||
}
|
||||
element.selected,
|
||||
<span class="org-type">button.selected</span> {
|
||||
}
|
||||
element.selected,
|
||||
<span class="org-type">button.selected</span> {
|
||||
background-color: @selected;
|
||||
text-color: @selected-foreground;
|
||||
}
|
||||
element.normal.urgent,
|
||||
<span class="org-type">element.alternate.urgent</span> {
|
||||
}
|
||||
element.normal.urgent,
|
||||
<span class="org-type">element.alternate.urgent</span> {
|
||||
background-color: @urgent-background;
|
||||
text-color: @urgent-foreground;
|
||||
}
|
||||
<span class="org-type">element.selected.urgent</span> {
|
||||
}
|
||||
<span class="org-type">element.selected.urgent</span> {
|
||||
background-color: @selected-urgent-background;
|
||||
text-color: @selected-urgent-foreground;
|
||||
}
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -274,7 +273,7 @@ element.normal.urgent,
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<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>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<!-- 2021-01-03 dim. 22:25 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Windows Config and Install</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
@ -26,6 +26,12 @@
|
||||
<li><a href="#org0143940">Install Windows10 PRO</a></li>
|
||||
<li><a href="#org0cc05f7">Install Software using Chocolatey</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>
|
||||
<ul>
|
||||
<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>
|
||||
</ul>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">yay -S woeusb
|
||||
<pre class="src src-bash"> yay -S woeusb
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
@ -66,7 +72,7 @@
|
||||
First install Chocolatey using a PowerShell as administrator:
|
||||
</p>
|
||||
<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>
|
||||
</div>
|
||||
|
||||
@ -74,7 +80,7 @@ First install Chocolatey using a PowerShell as administrator:
|
||||
Then, install all required software using one command:
|
||||
</p>
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
@ -91,12 +97,102 @@ Then, install all required software using one command:
|
||||
Run a PowerShell with administrative rights and run:
|
||||
</p>
|
||||
<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>
|
||||
</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">
|
||||
<h2 id="orgb8446e0">Software Setup</h2>
|
||||
<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 id="postamble" class="status">
|
||||
<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>
|
||||
</body>
|
||||
</html>
|
||||
|
20
doom.org
20
doom.org
@ -1,5 +1,15 @@
|
||||
#+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
|
||||
|
||||
* Introduction and Resources :ignore:
|
||||
@ -2586,16 +2596,16 @@ Create Org-Roam file from heading ([[https://ag91.github.io/blog/2020/11/12/writ
|
||||
:init
|
||||
:config
|
||||
;; 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
|
||||
(setq bibtex-completion-library-path "~/Cloud/pdfs/")
|
||||
(setq bibtex-completion-library-path '("~/Cloud/pdfs/"
|
||||
"~/Cloud/acoustic/resources/pdfs/"))
|
||||
|
||||
;; Directory with notes files
|
||||
(setq bibtex-completion-notes-path "~/Cloud/brain/")
|
||||
|
||||
(setq bibtex-completion-notes-extension ".org")
|
||||
|
||||
(setq bibtex-completion-pdf-extension '(".pdf" ".djvu"))
|
||||
|
||||
(setq bibtex-completion-additional-search-fields '(keywords))
|
||||
|
67
index.org
67
index.org
@ -1,9 +1,12 @@
|
||||
#+TITLE: Dotfiles - Manjaro Linux
|
||||
#+OPTIONS: toc:nil
|
||||
#+OPTIONS: html-postamble:nil
|
||||
#+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]]
|
||||
- *Hotkey Manager*: [[file:sxhkd.org][SXHKD]]
|
||||
- *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]]
|
||||
- *Notification Manager*: [[file:notifications.org][Dunst]]
|
||||
- *Service Manager*: [[file:systemd.org][Systemd]]
|
||||
- [[file:xconfig.org][X configuration]]
|
||||
|
||||
* Editors
|
||||
- [[file:vim.org][Vim]]
|
||||
- [[./doom.org][Doom Emacs]] ([[file:emacs-library-babel.org][library of babel]], [[file:emacs-snippets.org][snippets]])
|
||||
|
||||
* Command Line
|
||||
- [[file:bash.org][Bash]] and [[file:zsh.org][ZSH]]
|
||||
- Terminal: [[file:termite.org][Termite]]
|
||||
- Terminal Multiplexer [[file:tmux.org][TMUX]]
|
||||
|
||||
* Multimedia
|
||||
- [[file:image.org][Image]]
|
||||
- [[file:music.org][Music]]
|
||||
- [[file:video.org][Video]]
|
||||
|
||||
* Internet Related
|
||||
- Web Browser: [[file:qutebrowser.org][Qutebrowser]]
|
||||
- Bookmark Manager: [[file:bookmarks.org][Buku]]
|
||||
|
||||
* PDF Reader
|
||||
- [[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]]
|
||||
- *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]])
|
||||
- *Shell*: [[file:bash.org][Bash]]
|
||||
- *Terminal Emulator*: [[file:termite.org][Termite]]
|
||||
- *Terminal Multiplexer* [[file:tmux.org][TMUX]]
|
||||
- *Image Setup*: [[file:image.org][SXIV]]
|
||||
- *Music Setup*: [[file:music.org][NCMPCPP, Mopidy and Beets]]
|
||||
- *Video Setup*: [[file:video.org][MPV]]
|
||||
- *Web Browser*: [[file:qutebrowser.org][Qutebrowser]]
|
||||
- *PDF Reader*: [[file:zathura.org][Zathura]]
|
||||
- *GUI File Manager*: [[file:pcmanfm.org][Pcmanfm]]
|
||||
- *Terminal File Manager*: [[file:ranger.org][Ranger]]
|
||||
- *Calendar*: [[file:calendar.org][Vdirsyncer and Khal]]
|
||||
- *Mails*: [[file:mail.org][Mbsync, Msmtp, Mu and Neomutt]]
|
||||
- *Contacts*: [[file:contacts.org][Khard]]
|
||||
- *RSS-Reader*: [[file:newsboat.org][Newsboat]]
|
||||
- *Version Control*: [[file:git.org][Git]]
|
||||
- *Scripts*: [[file:binaries.org][Scripts]]
|
||||
- *Desktop Applications*: [[file:applications.org][.desktop files]]
|
||||
- *Computation*: [[file:matlab.org][Matlab]]
|
||||
- *GUI Toolkit*: [[file:gtk.org][GTK]]
|
||||
- [[file:config.org][Other Config]]
|
||||
|
||||
|
985
install.org
985
install.org
File diff suppressed because it is too large
Load Diff
@ -128,7 +128,7 @@ Sorting by tracking number and then title
|
||||
|
||||
#+begin_src conf
|
||||
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"
|
||||
quit
|
||||
def_key "g"
|
||||
|
@ -7,6 +7,7 @@
|
||||
#+begin_src conf
|
||||
[global]
|
||||
#+end_src
|
||||
|
||||
** Display
|
||||
#+begin_src conf
|
||||
# Which monitor should the notifications be displayed on.
|
||||
|
@ -1,4 +1,4 @@
|
||||
#+TITLE: PCMANFM
|
||||
#+TITLE: PCManFM
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
#+PROPERTY: header-args:bash :comments both
|
||||
#+PROPERTY: header-args:bash+ :mkdirp yes
|
||||
|
@ -577,7 +577,7 @@ Send to Emacs
|
||||
#+begin_src bash :tangle ~/.config/qutebrowser/userscripts/html-to-pdf.sh
|
||||
filename=$(rofi -p "filename" -dmenu -lines 1)
|
||||
|
||||
if [ -n "filename" ]; then
|
||||
if [ -n "$filename" ]; then
|
||||
cd ~/Pictures/ && \
|
||||
percollate pdf --css "@page { size: A4 portrait }" --output "$filename.pdf" "$QUTE_URL" && \
|
||||
dunstify "Percollate" "Successfully saved to pdf"
|
||||
|
@ -1,4 +1,4 @@
|
||||
#+TITLE: Ranger Configuration
|
||||
#+TITLE: Ranger
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
|
||||
* Documentation
|
||||
|
205
rofi.org
205
rofi.org
@ -57,49 +57,49 @@
|
||||
#+END_SRC
|
||||
|
||||
* Theme
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.config/rofimenu/rofimenu.rasi
|
||||
:header-args+: :comments none :mkdirp yes
|
||||
:END:
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.config/rofimenu/rofimenu.rasi
|
||||
:header-args+: :comments none :mkdirp yes
|
||||
:END:
|
||||
|
||||
#+BEGIN_SRC conf
|
||||
configuration {
|
||||
me-select-entry: "MouseSecondary";
|
||||
me-accept-entry: "MousePrimary";
|
||||
scroll-method: 1;
|
||||
show-icons: true;
|
||||
sidebar-mode: true;
|
||||
kb-custom-1: "";
|
||||
kb-custom-2: "";
|
||||
kb-custom-3: "";
|
||||
kb-custom-4: "";
|
||||
kb-custom-5: "";
|
||||
kb-custom-6: "";
|
||||
kb-custom-7: "";
|
||||
kb-custom-8: "";
|
||||
kb-custom-9: "";
|
||||
kb-custom-10: "";
|
||||
kb-select-1: "Alt+1";
|
||||
kb-select-2: "Alt+2";
|
||||
kb-select-3: "Alt+3";
|
||||
kb-select-4: "Alt+4";
|
||||
kb-select-5: "Alt+5";
|
||||
kb-select-6: "Alt+6";
|
||||
kb-select-7: "Alt+7";
|
||||
kb-select-8: "Alt+8";
|
||||
kb-select-9: "Alt+9";
|
||||
kb-select-10: "Alt+0";
|
||||
me-select-entry: "MouseSecondary";
|
||||
me-accept-entry: "MousePrimary";
|
||||
scroll-method: 1;
|
||||
show-icons: true;
|
||||
sidebar-mode: true;
|
||||
kb-custom-1: "";
|
||||
kb-custom-2: "";
|
||||
kb-custom-3: "";
|
||||
kb-custom-4: "";
|
||||
kb-custom-5: "";
|
||||
kb-custom-6: "";
|
||||
kb-custom-7: "";
|
||||
kb-custom-8: "";
|
||||
kb-custom-9: "";
|
||||
kb-custom-10: "";
|
||||
kb-select-1: "Alt+1";
|
||||
kb-select-2: "Alt+2";
|
||||
kb-select-3: "Alt+3";
|
||||
kb-select-4: "Alt+4";
|
||||
kb-select-5: "Alt+5";
|
||||
kb-select-6: "Alt+6";
|
||||
kb-select-7: "Alt+7";
|
||||
kb-select-8: "Alt+8";
|
||||
kb-select-9: "Alt+9";
|
||||
kb-select-10: "Alt+0";
|
||||
}
|
||||
|
||||
* {
|
||||
,* {
|
||||
//// COLORS ////
|
||||
|
||||
//// uncomment to match bspwm edition theme
|
||||
background: #292f34FF;
|
||||
background-color: #292f3400;
|
||||
foreground: #F6F9FFFF;
|
||||
selected: #1ABB9BFF;
|
||||
selected-foreground: @foreground;
|
||||
background: #292f34FF;
|
||||
background-color: #292f3400;
|
||||
foreground: #F6F9FFFF;
|
||||
selected: #1ABB9BFF;
|
||||
selected-foreground: @foreground;
|
||||
|
||||
//// uncomment to match Adapta Nokto theme
|
||||
// background: #222D32E8;
|
||||
@ -109,51 +109,50 @@
|
||||
// selected-foreground: #FFFFFFFF;
|
||||
|
||||
//// common - active and urgent
|
||||
active-background: #3A464BFF;
|
||||
urgent-background: #800000FF;
|
||||
urgent-foreground: @foreground;
|
||||
selected-urgent-background: @urgent-foreground;
|
||||
selected-urgent-foreground: @urgent-background;
|
||||
active-background: #3A464BFF;
|
||||
urgent-background: #800000FF;
|
||||
urgent-foreground: @foreground;
|
||||
selected-urgent-background: @urgent-foreground;
|
||||
selected-urgent-foreground: @urgent-background;
|
||||
|
||||
//// TEXT ////
|
||||
|
||||
font: "xos4 Terminus 18px";
|
||||
// font: "Knack Nerd Font 16px";
|
||||
text-color: @foreground;
|
||||
font: "xos4 Terminus 18px";
|
||||
text-color: @foreground;
|
||||
|
||||
//// PADDING ETC ////
|
||||
|
||||
margin: 0px;
|
||||
border: 0px;
|
||||
padding: 0px;
|
||||
spacing: 0px;
|
||||
elementpadding: 2px 0px;
|
||||
elementmargin: 0px 2px;
|
||||
listmargin: 0px 2px 0px 0px;
|
||||
margin: 0px;
|
||||
border: 0px;
|
||||
padding: 0px;
|
||||
spacing: 0px;
|
||||
elementpadding: 2px 0px;
|
||||
elementmargin: 0px 2px;
|
||||
listmargin: 0px 2px 0px 0px;
|
||||
|
||||
//// SIZE ////
|
||||
|
||||
windowwidth: 40ch;
|
||||
buttonwidth: 18ch;
|
||||
lines: 12;
|
||||
fixed-height: false;
|
||||
windowwidth: 40ch;
|
||||
buttonwidth: 18ch;
|
||||
lines: 12;
|
||||
fixed-height: false;
|
||||
|
||||
//// POSITION ////
|
||||
|
||||
location: northwest;
|
||||
anchor: northwest;
|
||||
x-offset: 0px;
|
||||
y-offset: 24px;
|
||||
location: northwest;
|
||||
anchor: northwest;
|
||||
x-offset: 0px;
|
||||
y-offset: 24px;
|
||||
|
||||
//// LAYOUT ////
|
||||
|
||||
scrollbar: true;
|
||||
scrollbar: true;
|
||||
|
||||
//// uncomment to get submenu-like style
|
||||
menustyle: [ sb-mainbox ];
|
||||
buttonpadding: 2px 1ch;
|
||||
button-bg: @background;
|
||||
dynamic: true;
|
||||
menustyle: [ sb-mainbox ];
|
||||
buttonpadding: 2px 1ch;
|
||||
button-bg: @background;
|
||||
dynamic: true;
|
||||
|
||||
//// uncomment to get tabs-like style
|
||||
// menustyle: [ tb-mainbox ];
|
||||
@ -162,85 +161,85 @@
|
||||
}
|
||||
//////////////////////////////////////////
|
||||
window {
|
||||
width: @windowwidth;
|
||||
children: @menustyle;
|
||||
width: @windowwidth;
|
||||
children: @menustyle;
|
||||
}
|
||||
//submenu-style
|
||||
sb-mainbox {
|
||||
orientation: horizontal;
|
||||
children: [ sidebar, vertibox ];
|
||||
orientation: horizontal;
|
||||
children: [ sidebar, vertibox ];
|
||||
}
|
||||
//tabs-style
|
||||
tb-mainbox {
|
||||
orientation: vertical;
|
||||
children: [ inputbar, horibox ];
|
||||
background-color: @background;
|
||||
orientation: vertical;
|
||||
children: [ inputbar, horibox ];
|
||||
background-color: @background;
|
||||
}
|
||||
//desktop-submenu
|
||||
dt-mainbox {
|
||||
orientation: vertical;
|
||||
children: [ boxdummy, sb-mainbox ];
|
||||
orientation: vertical;
|
||||
children: [ boxdummy, sb-mainbox ];
|
||||
}
|
||||
horibox {
|
||||
orientation: horizontal;
|
||||
children: [ listview, sidebar ];
|
||||
orientation: horizontal;
|
||||
children: [ listview, sidebar ];
|
||||
}
|
||||
sidebar {
|
||||
orientation: vertical;
|
||||
orientation: vertical;
|
||||
}
|
||||
button {
|
||||
horizontal-align: 0;
|
||||
padding: @buttonpadding;
|
||||
width: @buttonwidth;
|
||||
background-color: @button-bg;
|
||||
expand: false;
|
||||
horizontal-align: 0;
|
||||
padding: @buttonpadding;
|
||||
width: @buttonwidth;
|
||||
background-color: @button-bg;
|
||||
expand: false;
|
||||
}
|
||||
vertibox {
|
||||
orientation: vertical;
|
||||
children: [ inputbar, listview ];
|
||||
background-color: @background;
|
||||
orientation: vertical;
|
||||
children: [ inputbar, listview ];
|
||||
background-color: @background;
|
||||
}
|
||||
prompt {
|
||||
enabled: false;
|
||||
enabled: false;
|
||||
}
|
||||
listview {
|
||||
margin: @listmargin;
|
||||
margin: @listmargin;
|
||||
}
|
||||
scrollbar {
|
||||
handle-width: 0.5ch;
|
||||
handle-color: @selected;
|
||||
handle-width: 0.5ch;
|
||||
handle-color: @selected;
|
||||
}
|
||||
boxdummy {
|
||||
enabled: false;
|
||||
orientation: vertical;
|
||||
expand: false;
|
||||
children: [ textboxdummy ];
|
||||
enabled: false;
|
||||
orientation: vertical;
|
||||
expand: false;
|
||||
children: [ textboxdummy ];
|
||||
}
|
||||
textboxdummy {
|
||||
str: " ";
|
||||
str: " ";
|
||||
}
|
||||
element, inputbar, textboxdummy {
|
||||
padding: @elementpadding;
|
||||
margin: @elementmargin;
|
||||
width: @elementwidth;
|
||||
padding: @elementpadding;
|
||||
margin: @elementmargin;
|
||||
width: @elementwidth;
|
||||
}
|
||||
element.normal.active,
|
||||
element.alternate.active {
|
||||
background-color: @active-background;
|
||||
text-color: @selected-foreground;
|
||||
background-color: @active-background;
|
||||
text-color: @selected-foreground;
|
||||
}
|
||||
element.selected,
|
||||
button.selected {
|
||||
background-color: @selected;
|
||||
text-color: @selected-foreground;
|
||||
background-color: @selected;
|
||||
text-color: @selected-foreground;
|
||||
}
|
||||
element.normal.urgent,
|
||||
element.alternate.urgent {
|
||||
background-color: @urgent-background;
|
||||
text-color: @urgent-foreground;
|
||||
background-color: @urgent-background;
|
||||
text-color: @urgent-foreground;
|
||||
}
|
||||
element.selected.urgent {
|
||||
background-color: @selected-urgent-background;
|
||||
text-color: @selected-urgent-foreground;
|
||||
background-color: @selected-urgent-background;
|
||||
text-color: @selected-urgent-foreground;
|
||||
}
|
||||
#+END_SRC
|
||||
|
53
windows.org
53
windows.org
@ -23,7 +23,7 @@ First install Chocolatey using a PowerShell as administrator:
|
||||
|
||||
Then, install all required software using one command:
|
||||
#+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
|
||||
|
||||
* 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'))
|
||||
#+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
|
||||
** Syncthing
|
||||
https://docs.syncthing.net/users/autostart.html#autostart-windows-startup
|
||||
|
Loading…
Reference in New Issue
Block a user