From 24ddcccafbb0819df94e82549c509ab37d044b90 Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Fri, 8 Jan 2021 01:43:48 +0100 Subject: [PATCH] Publish the rest of the html files --- android.org | 23 + docs/android.html | 133 ++ docs/applications.html | 4 +- docs/bash.html | 360 ++-- docs/binaries.html | 36 +- docs/bspwm.html | 4 +- docs/compositor.html | 4 +- docs/config.html | 202 +- docs/contacts.html | 4 +- docs/emacs-snippets.html | 4 +- docs/git.html | 4 +- docs/gtk.html | 4 +- docs/i3.html | 9 +- docs/image.html | 4 +- docs/index.html | 9 +- docs/install.html | 308 +-- docs/mail.html | 2072 ++++++++++---------- docs/matlab.html | 4 +- docs/music.html | 240 +-- docs/nas.html | 1385 ++++++-------- docs/notifications.html | 3856 +++++++++++++++++++------------------- docs/polybar.html | 117 +- docs/qutebrowser.html | 657 +++---- docs/rofi.html | 422 ++--- docs/systemd.html | 157 +- docs/termite.html | 4 +- docs/torrent.html | 4 +- docs/video.html | 127 +- docs/windows.html | 54 +- docs/xconfig.html | 4 +- docs/zathura.html | 4 +- index.org | 5 +- install.org | 3 - nas.org | 1 - 34 files changed, 5077 insertions(+), 5151 deletions(-) create mode 100644 android.org create mode 100644 docs/android.html diff --git a/android.org b/android.org new file mode 100644 index 0000000..286b12c --- /dev/null +++ b/android.org @@ -0,0 +1,23 @@ +#+TITLE: Android Phone +#+SETUPFILE: ./setup/org-setup-file.org + + +* Favorite Apps + +| Type | URL | +|-------------------+----------------------------------------------------------------------------------| +| Application Store | https://f-droid.org/fr/ | +| Reddit Client | https://play.google.com/store/apps/details?id=com.rubenmayayo.reddit&hl=fr&gl=US | +| Contacts | https://github.com/SimpleMobileTools/Simple-Contacts | +| SMS Client | https://github.com/moezbhatti/qksms | +| Youtube | https://vancedapp.com/ | +| Web Browser | https://github.com/mozilla-mobile/fenix | +| File Sharing | https://github.com/syncthing/syncthing-android | +| Terminal | https://github.com/termux/termux-app | +| Github Client | https://github.com/k0shk0sh/FastHub | +| Jellyfin Client | https://github.com/dkanada/gelli | +| Mail Client | https://github.com/k9mail/k-9 | +| Photo Gallery | https://github.com/SimpleMobileTools/Simple-Gallery | +| Pdf viewer | https://f-droid.org/fr/packages/com.artifex.mupdf.viewer.app/ | +| Media viewer | https://github.com/mpv-android/mpv-android | +| Orgzly | http://www.orgzly.com/ | diff --git a/docs/android.html b/docs/android.html new file mode 100644 index 0000000..1de92e4 --- /dev/null +++ b/docs/android.html @@ -0,0 +1,133 @@ + + + + + + +Android Phone + + + + + + +
+ UP + | + HOME +
+

Android Phone

+
+

Table of Contents

+ +
+ + + +
+
+

Author: Dehaeze Thomas

+

Created: 2021-01-08 ven. 01:41

+
+ + diff --git a/docs/applications.html b/docs/applications.html index 486d1cf..39c8efb 100644 --- a/docs/applications.html +++ b/docs/applications.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Desktop file for the applications @@ -230,7 +230,7 @@

Author: Dehaeze Thomas

-

Created: 2021-01-01 ven. 20:09

+

Created: 2021-01-08 ven. 01:43

diff --git a/docs/bash.html b/docs/bash.html index ba6b0c9..c05a044 100644 --- a/docs/bash.html +++ b/docs/bash.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Bash Configuration @@ -90,7 +90,7 @@

If not running interactively, don’t do anything

-
  [[ $- != *i* ]] && return
+
[[ $- != *i* ]] && return
 
@@ -100,7 +100,7 @@

Bash Completion

-
  [ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
+
[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
 
@@ -110,7 +110,7 @@

FZF

-
  source /usr/share/fzf/key-bindings.bash
+
source /usr/share/fzf/key-bindings.bash
 
@@ -120,8 +120,8 @@

Ignore case for auto-completion

-
  bind "set completion-ignore-case on"
-  bind "set show-all-if-ambiguous on"
+
bind "set completion-ignore-case on"
+bind "set show-all-if-ambiguous on"
 
@@ -131,7 +131,7 @@

Use Color

-
  use_color=true
+
use_color=true
 
@@ -141,33 +141,33 @@

Some config

-
  # Unset some variables
-  unset use_color safe_term match_lhs sh
+
# Unset some variables
+unset use_color safe_term match_lhs sh
 
-  # Allow local processes with root privileges to connect to the locally running X server
-  xhost +local:root > /dev/null 2>&1
+# Allow local processes with root privileges to connect to the locally running X server
+xhost +local:root > /dev/null 2>&1
 
-  # Autocomplete sudo commands
-  complete -cf sudo
+# Autocomplete sudo commands
+complete -cf sudo
 
-  # Line wrap on window resize
-  shopt -s checkwinsize
+# 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
+# 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
+# Expand Aliases
+shopt -s expand_aliases
 
-  # Auto "cd" when entering just a path
-  shopt -s autocd
+# Auto "cd" when entering just a path
+shopt -s autocd
 
-  # Enable history appending instead of overwriting
-  shopt -s histappend
+# Enable history appending instead of overwriting
+shopt -s histappend
 
-  # Save multi-line commands as one command
-  shopt -s cmdhist
+# Save multi-line commands as one command
+shopt -s cmdhist
 
@@ -177,7 +177,7 @@

Prompt - PS1

-
  export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][\[$(tput setaf 3)\]\u\[$(tput setaf 2)\]@\[$(tput setaf 4)\]\h \[$(tput setaf 5)\]\W\[$(tput setaf 1)\]]\[$(tput setaf 7)\]\\$ \[$(tput sgr0)\]"
+
export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][\[$(tput setaf 3)\]\u\[$(tput setaf 2)\]@\[$(tput setaf 4)\]\h \[$(tput setaf 5)\]\W\[$(tput setaf 1)\]]\[$(tput setaf 7)\]\\$ \[$(tput sgr0)\]"
 
@@ -187,8 +187,8 @@

Rebind up and down arrow keys to search through bash history

-
  bind '"\e[A": history-search-backward'
-  bind '"\e[B": history-search-forward'
+
bind '"\e[A": history-search-backward'
+bind '"\e[B": history-search-forward'
 
@@ -202,13 +202,13 @@

Better defaults for some commands

-
  alias ls='ls -hN --color=auto --group-directories-first'
-  alias grep='grep --colour=auto'
-  alias cp="cp -i"     # confirm before overwriting something
-  alias df='df -h'     # human-readable sizes
-  alias free='free -m' # show sizes in MB
-  alias mutt="neomutt"
-  alias tmux='tmux -f $XDG_CONFIG_HOME/tmux/tmux.conf'
+
alias ls='ls -hN --color=auto --group-directories-first'
+alias grep='grep --colour=auto'
+alias cp="cp -i"     # confirm before overwriting something
+alias df='df -h'     # human-readable sizes
+alias free='free -m' # show sizes in MB
+alias mutt="neomutt"
+alias tmux='tmux -f $XDG_CONFIG_HOME/tmux/tmux.conf'
 
@@ -218,13 +218,13 @@

One letter aliases

-
  alias r="ranger"
-  alias t="tmux"
-  alias v="nvim"
-  alias sv='sudo -E nvim'
-  alias g="git"
-  alias m="neomutt"
-  alias o="xdg-open"
+
alias r="ranger"
+alias t="tmux"
+alias v="nvim"
+alias sv='sudo -E nvim'
+alias g="git"
+alias m="neomutt"
+alias o="xdg-open"
 
@@ -234,7 +234,7 @@

Neovim

-
  command -v nvim >/dev/null && alias vim="nvim" vimdiff="nvim -d" # Use neovim for vim if present.
+
command -v nvim >/dev/null && alias vim="nvim" vimdiff="nvim -d" # Use neovim for vim if present.
 
@@ -244,8 +244,8 @@

Vim-like

-
  alias :q=exit
-  alias :e=nvim
+
alias :q=exit
+alias :e=nvim
 
@@ -255,7 +255,7 @@

Print each PATH entry on a separate line

-
  alias path='echo -e ${PATH//:/\\n}'
+
alias path='echo -e ${PATH//:/\\n}'
 
@@ -270,32 +270,32 @@

colors - Display colors

-
  colors() {
-      local fgc bgc vals seq0
+
colors() {
+    local fgc bgc vals seq0
 
-      printf "Color escapes are %s\n" '\e[${value};...;${value}m'
-      printf "Values 30..37 are \e[33mforeground colors\e[m\n"
-      printf "Values 40..47 are \e[43mbackground colors\e[m\n"
-      printf "Value  1 gives a  \e[1mbold-faced look\e[m\n\n"
+    printf "Color escapes are %s\n" '\e[${value};...;${value}m'
+    printf "Values 30..37 are \e[33mforeground colors\e[m\n"
+    printf "Values 40..47 are \e[43mbackground colors\e[m\n"
+    printf "Value  1 gives a  \e[1mbold-faced look\e[m\n\n"
 
-      # foreground colors
-      for fgc in {30..37}; do
-          # background colors
-          for bgc in {40..47}; do
-              fgc=${fgc#37} # white
-              bgc=${bgc#40} # black
+    # foreground colors
+    for fgc in {30..37}; do
+        # background colors
+        for bgc in {40..47}; do
+            fgc=${fgc#37} # white
+            bgc=${bgc#40} # black
 
-              vals="${fgc:+$fgc;}${bgc}"
-              vals=${vals%%;}
+            vals="${fgc:+$fgc;}${bgc}"
+            vals=${vals%%;}
 
-              seq0="${vals:+\e[${vals}m}"
-              printf "  %-9s" "${seq0:-(default)}"
-              printf " ${seq0}TEXT\e[m"
-              printf " \e[${vals:+${vals+$vals;}}1mBOLD\e[m"
-          done
-          echo; echo
-      done
-  }
+            seq0="${vals:+\e[${vals}m}"
+            printf "  %-9s" "${seq0:-(default)}"
+            printf " ${seq0}TEXT\e[m"
+            printf " \e[${vals:+${vals+$vals;}}1mBOLD\e[m"
+        done
+        echo; echo
+    done
+}
 
@@ -312,9 +312,9 @@ small enough for one screen.

-
  function tre() {
-      tree -aC -I '.git|node_modules|bower_components' --dirsfirst "$@" | less -FRNX;
-  }
+
function tre() {
+    tree -aC -I '.git|node_modules|bower_components' --dirsfirst "$@" | less -FRNX;
+}
 
@@ -324,9 +324,9 @@ small enough for one screen.

mkd - Create a new directory and enter it

-
  function mkd() {
-      mkdir -p "$@" && cd "$_";
-  }
+
function mkd() {
+    mkdir -p "$@" && cd "$_";
+}
 
@@ -336,18 +336,18 @@ small enough for one screen.

fs - Filesize of directory

-
  function fs() {
-      if du -b /dev/null > /dev/null 2>&1; then
-          local arg=-sbh;
-      else
-          local arg=-sh;
-      fi
-      if [[ -n "$@" ]]; then
-          du $arg -- "$@";
-      else
-          du $arg .[^.]* ./*;
-      fi;
-  }
+
function fs() {
+    if du -b /dev/null > /dev/null 2>&1; then
+        local arg=-sbh;
+    else
+        local arg=-sh;
+    fi
+    if [[ -n "$@" ]]; then
+        du $arg -- "$@";
+    else
+        du $arg .[^.]* ./*;
+    fi;
+}
 
@@ -357,9 +357,9 @@ small enough for one screen.

nullify - Redirect both standard output and standard error, as well as sending to background

-
  function nullify() {
-      "$@" >/dev/null 2>&1
-  }
+
function nullify() {
+    "$@" >/dev/null 2>&1
+}
 
@@ -373,18 +373,18 @@ small enough for one screen.

-
  sms(){
-      local args="$@"
-      # local phone_number name phone_type
-      # khard phone --parsable | sort -u | fzf | IFS=$'\t' read -r phone_number name phone_type
-      local phone_number=$(khard phone --parsable | sort -u | fzf | cut -f1 -d$'\t')
-      if [[ -z "${phone_number}" ]]; then
-          echo No recipient was chosen >&2
-          return
-      else
-          kdeconnect-cli --send-sms "${args}" --destination "${phone_number}" --device 4de3b5de2264a17c
-      fi
-  }
+
sms(){
+    local args="$@"
+    # local phone_number name phone_type
+    # khard phone --parsable | sort -u | fzf | IFS=$'\t' read -r phone_number name phone_type
+    local phone_number=$(khard phone --parsable | sort -u | fzf | cut -f1 -d$'\t')
+    if [[ -z "${phone_number}" ]]; then
+        echo No recipient was chosen >&2
+        return
+    else
+        kdeconnect-cli --send-sms "${args}" --destination "${phone_number}" --device 4de3b5de2264a17c
+    fi
+}
 
 
@@ -400,20 +400,20 @@ Undocumented feature which sets the size to “unlimited”. -
  # Huge history. Doesn't appear to slow things down, so why not?
-  HISTSIZE=500000
-  HISTFILESIZE=100000
+
# Huge history. Doesn't appear to slow things down, so why not?
+HISTSIZE=500000
+HISTFILESIZE=100000
 
-  # Avoid duplicate entries
-  HISTCONTROL="erasedups:ignoreboth"
+# Avoid duplicate entries
+HISTCONTROL="erasedups:ignoreboth"
 
-  # Don't record some commands
-  export HISTIGNORE="&:[ ]*:exit:ls:bg:fg:history:clear"
+# 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 '
+# Use standard ISO 8601 timestamp
+# %F equivalent to %Y-%m-%d
+# %T equivalent to %H:%M:%S (24-hours format)
+HISTTIMEFORMAT='%F %T '
 
@@ -422,7 +422,7 @@ Change the file location because certain bash sessions truncate .bash_hist

-
  export HISTFILE=~/.bash_eternal_history
+
export HISTFILE=~/.bash_eternal_history
 
@@ -431,7 +431,7 @@ Force prompt to write history after every command.
-
  PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
+
PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
 
@@ -442,8 +442,8 @@ Force prompt to write history after every command.
~/.bash_profile
-
  [[ -f ~/.profile ]] && . ~/.profile
-  [[ -f ~/.bashrc ]] && . ~/.bashrc
+
[[ -f ~/.profile ]] && . ~/.profile
+[[ -f ~/.bashrc ]] && . ~/.bashrc
 
@@ -458,8 +458,8 @@ Force prompt to write history after every command.
QT And GTK Themes
-
  export QT_QPA_PLATFORMTHEME="qt5ct"
-  export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
+
export QT_QPA_PLATFORMTHEME="qt5ct"
+export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
 
@@ -469,7 +469,7 @@ Force prompt to write history after every command.
Gui program to ask for sudo password
-
  export SUDO_ASKPASS=~/.local/bin/askpass-rofi
+
export SUDO_ASKPASS=~/.local/bin/askpass-rofi
 
@@ -482,10 +482,10 @@ Force prompt to write history after every command.
-
  if [ -n "$DESKTOP_SESSION" ];then
-      eval $(gnome-keyring-daemon --start)
-      export SSH_AUTH_SOCK
-  fi
+
if [ -n "$DESKTOP_SESSION" ];then
+    eval $(gnome-keyring-daemon --start)
+    export SSH_AUTH_SOCK
+fi
 
@@ -495,11 +495,11 @@ Enable the keyring for applications run through the terminal

Export some default applications

-
  export EDITOR="nvim"
-  export TERMINAL="termite"
-  export BROWSER="qutebrowser"
-  export READER="zathura"
-  export FILE="ranger"
+
export EDITOR="nvim"
+export TERMINAL="termite"
+export BROWSER="qutebrowser"
+export READER="zathura"
+export FILE="ranger"
 
@@ -516,7 +516,7 @@ Enable the keyring for applications run through the terminal This is important for termite to work when sshing in remote machines.

-
  export TERM=xterm-color
+
export TERM=xterm-color
 
@@ -526,7 +526,7 @@ This is important for termite to work when sshing in remote machines.

XDG Default

-
  export XDG_CONFIG_HOME="$HOME/.config"
+
export XDG_CONFIG_HOME="$HOME/.config"
 
@@ -536,8 +536,8 @@ This is important for termite to work when sshing in remote machines.

Use Ripgrep for FZF

-
  export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"'
-  export FZF_DEFAULT_OPTS='--layout=reverse --height=20'
+
export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"'
+export FZF_DEFAULT_OPTS='--layout=reverse --height=20'
 
@@ -547,7 +547,7 @@ This is important for termite to work when sshing in remote machines.

Goland

-
  export GOPATH=$HOME/go
+
export GOPATH=$HOME/go
 
@@ -557,7 +557,7 @@ This is important for termite to work when sshing in remote machines.

Latex Path

-
  export TEXMFHOME=$HOME/.local/share/texmf
+
export TEXMFHOME=$HOME/.local/share/texmf
 
@@ -567,7 +567,7 @@ This is important for termite to work when sshing in remote machines.

Bitwarden Session

-
  export BW_SESSION="HH0yycfocRSuGtq/iW1e6v13PQ1sShMXbMhdb/En94S6OcIXFnJlLEyU+dySsmf2YShY4CImoB5FrxgdPsY9Qw=="
+
export BW_SESSION="HH0yycfocRSuGtq/iW1e6v13PQ1sShMXbMhdb/En94S6OcIXFnJlLEyU+dySsmf2YShY4CImoB5FrxgdPsY9Qw=="
 
@@ -577,7 +577,7 @@ This is important for termite to work when sshing in remote machines.

Python Path

-
  export PYTHONPATH="${PYTHONPATH}:/usr/lib/python3.9/site-packages/configobj"
+
export PYTHONPATH="${PYTHONPATH}:/usr/lib/python3.9/site-packages/configobj"
 
@@ -588,11 +588,11 @@ This is important for termite to work when sshing in remote machines.

Path

-
  PATH=$HOME/appimages:$PATH
-  PATH=$HOME/.gem/ruby/2.5.0/bin:$PATH
-  PATH=$GOPATH:$GOPATH/bin:$PATH
-  PATH=~/.config/emacs/bin:$PATH
-  export PATH
+
PATH=$HOME/appimages:$PATH
+PATH=$HOME/.gem/ruby/2.5.0/bin:$PATH
+PATH=$GOPATH:$GOPATH/bin:$PATH
+PATH=~/.config/emacs/bin:$PATH
+export PATH
 
@@ -602,9 +602,9 @@ This is important for termite to work when sshing in remote machines.

Automatically run startx

-
  if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
-      exec startx
-  fi
+
if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
+    exec startx
+fi
 
@@ -618,11 +618,11 @@ This is important for termite to work when sshing in remote machines. Completion:

-
  # Single tab for autocompletion
-  set show-all-if-ambiguous on
+
# Single tab for autocompletion
+set show-all-if-ambiguous on
 
-  # Ignore case for completion
-  set completion-ignore-case on
+# Ignore case for completion
+set completion-ignore-case on
 
@@ -630,15 +630,15 @@ Completion: vi mode:

-
  # VI mode (works in bash and zsh)
-  set editing-mode vi
+
# VI mode (works in bash and zsh)
+set editing-mode vi
 
-  # Show which mode (normal or insert)
-  set show-mode-in-prompt on
+# Show which mode (normal or insert)
+set show-mode-in-prompt on
 
-  # Show the mode by changing the cursor
-  set vi-ins-mode-string \1\e[6 q\2
-  set vi-cmd-mode-string \1\e[2 q\2
+# Show the mode by changing the cursor
+set vi-ins-mode-string \1\e[6 q\2
+set vi-cmd-mode-string \1\e[2 q\2
 
@@ -646,19 +646,19 @@ vi mode: Key-bindings for vi-mode:

-
  set keymap vi-command
-  # these are for vi-command mode
-  Control-l: clear-screen
-  Control-a: beginning-of-line
-  Control-e: end-of-line
-  Control-w: "\C-aisudo \C-e"
+
set keymap vi-command
+# these are for vi-command mode
+Control-l: clear-screen
+Control-a: beginning-of-line
+Control-e: end-of-line
+Control-w: "\C-aisudo \C-e"
 
-  set keymap vi-insert
-  # these are for vi-insert mode
-  Control-l: clear-screen
-  Control-a: beginning-of-line
-  Control-e: end-of-line
-  Control-w: "\C-asudo \C-e"
+set keymap vi-insert
+# these are for vi-insert mode
+Control-l: clear-screen
+Control-a: beginning-of-line
+Control-e: end-of-line
+Control-w: "\C-asudo \C-e"
 
@@ -666,16 +666,16 @@ Key-bindings for vi-mode: Colorized completion

-
  # Color files by types
-  set colored-stats On
-  # Append char to indicate type
-  set visible-stats On
-  # Mark symlinked directories
-  set mark-symlinked-directories On
-  # Color the common prefix
-  set colored-completion-prefix On
-  # Color the common prefix in menu-complete
-  set menu-complete-display-prefix On
+
# Color files by types
+set colored-stats On
+# Append char to indicate type
+set visible-stats On
+# Mark symlinked directories
+set mark-symlinked-directories On
+# Color the common prefix
+set colored-completion-prefix On
+# Color the common prefix in menu-complete
+set menu-complete-display-prefix On
 
@@ -683,7 +683,7 @@ Colorized completion Don’t echo ^C after Ctrl+C is pressed.

-
  set echo-control-characters off
+
set echo-control-characters off
 
@@ -691,7 +691,7 @@ Don’t echo ^C after Ctrl+C is pressed.

Author: Dehaeze Thomas

-

Created: 2021-01-03 dim. 22:19

+

Created: 2021-01-08 ven. 01:40

diff --git a/docs/binaries.html b/docs/binaries.html index 1e00a7f..4571bd8 100644 --- a/docs/binaries.html +++ b/docs/binaries.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Binaries @@ -24,6 +24,7 @@
  • dmenumount - Mount USB and Android
  • dmenuumount - Unmount USB and Android devices
  • +
  • dmenukill - Kill program using Dmenu
  • nordvpn-toggle - Connect to VPN using NordVPN
  • bukurun - Open link from Buku
  • i3exit - Manage lock, suspend, reboot, …
  • @@ -178,6 +179,25 @@ Script taken from Luke Smith. +
    +

    dmenukill - Kill program using Dmenu

    +
    +
    +
    ps_line=$(ps -u $USER k -size -o pid=,%mem=,%cpu=,comm= | dmenu -i -l 15)
    +
    +if [ ! -z "$ps_line" ]; then
    +    pid=$(echo $ps_line | awk '{print $1}')
    +    name=$(echo $ps_line | awk '{print $4}')
    +
    +    kill -15 $pid && \
    +        dunstify "Kill" "$name (PID $pid)" &
    +fi
    +
    +
    +
    +
    +
    +

    nordvpn-toggle - Connect to VPN using NordVPN

    @@ -706,10 +726,10 @@ ffmpeg -v warning -i $1 -i $
    if [ $TMUX ]; then
    -    tmux split -v -l 5 "cd ~/Downloads/ && youtube-dl --add-metadata -xic -f bestaudio/best $1" && tmux select-pane -U
    +  tmux split -v -l 5 "cd ~/Downloads/ && youtube-dl --add-metadata -xic -f bestaudio/best $1" && tmux select-pane -U
     else
    -    cd ~/Downloads/;
    -    setsid nohup youtube-dl --add-metadata -xic -f bestaudio/best $1 &> /dev/null &
    +  cd ~/Downloads/;
    +  setsid nohup youtube-dl --add-metadata -xic -f bestaudio/best $1 &> /dev/null &
     fi
     
    @@ -721,10 +741,10 @@ ffmpeg -v warning -i $1 -i $
    if [ $TMUX ]; then
    -    tmux split -v -l 5 "cd ~/Downloads/ && youtube-dl --add-metadata -ic $1" && tmux select-pane -U
    +  tmux split -v -l 5 "cd ~/Downloads/ && youtube-dl --add-metadata -ic $1" && tmux select-pane -U
     else
    -    cd ~/Downloads/;
    -    setsid nohup youtube-dl --add-metadata -ic $1 &> /dev/null &
    +  cd ~/Downloads/;
    +  setsid nohup youtube-dl --add-metadata -ic $1 &> /dev/null &
     fi
     
    @@ -1308,7 +1328,7 @@ Run some simple calculations with rofi.

    Author: Dehaeze Thomas

    -

    Created: 2021-01-01 ven. 20:09

    +

    Created: 2021-01-08 ven. 01:40

    diff --git a/docs/bspwm.html b/docs/bspwm.html index 59fa628..c33489a 100644 --- a/docs/bspwm.html +++ b/docs/bspwm.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + BSPWM @@ -106,7 +106,7 @@ sxhkd -m 1 -c ~/.config/sxhkd/

    Author: Dehaeze Thomas

    -

    Created: 2021-01-01 ven. 20:09

    +

    Created: 2021-01-08 ven. 01:43

    diff --git a/docs/compositor.html b/docs/compositor.html index c1c6132..6476018 100644 --- a/docs/compositor.html +++ b/docs/compositor.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Picom (Compositor) @@ -109,7 +109,7 @@

    Author: Dehaeze Thomas

    -

    Created: 2021-01-01 ven. 20:09

    +

    Created: 2021-01-08 ven. 01:43

    diff --git a/docs/config.html b/docs/config.html index 83d7b04..d359bb3 100644 --- a/docs/config.html +++ b/docs/config.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Configuration Files @@ -38,37 +38,37 @@

    SSH

    -
      AddKeysToAgent  yes
    +
    AddKeysToAgent  yes
     
    -  Host grenoble
    -      hostname 82.64.103.2
    -      Port 10022
    -      user tdehaeze
    -      IdentityFile ~/.ssh/id_rsa
    +Host grenoble
    +    hostname 82.64.103.2
    +    Port 10022
    +    user tdehaeze
    +    IdentityFile ~/.ssh/id_rsa
     
    -  Host wingaudio
    -      hostname 207.154.251.241
    -      Port 22
    -      user tdehaeze
    -      IdentityFile ~/.ssh/id_rsa
    +Host wingaudio
    +    hostname 207.154.251.241
    +    Port 22
    +    user tdehaeze
    +    IdentityFile ~/.ssh/id_rsa
     
    -  Host octoprint
    -      hostname 192.168.1.56
    -      Port 22
    -      user pi
    -      IdentityFile ~/.ssh/id_rsa
    +Host octoprint
    +    hostname 192.168.1.56
    +    Port 22
    +    user pi
    +    IdentityFile ~/.ssh/id_rsa
     
    -  Host hassio
    -      hostname 192.168.1.101
    -      Port 10022
    -      user root
    -      IdentityFile ~/.ssh/id_rsa
    +Host hassio
    +    hostname 192.168.1.101
    +    Port 10022
    +    user root
    +    IdentityFile ~/.ssh/id_rsa
     
    -  Host nas
    -      hostname 192.168.1.50
    -      Port 10022
    -      user tdehaeze
    -      IdentityFile ~/.ssh/id_rsa
    +Host nas
    +    hostname 192.168.1.50
    +    Port 10022
    +    user tdehaeze
    +    IdentityFile ~/.ssh/id_rsa
     
    @@ -78,28 +78,28 @@

    Font

    -
      <?xml version='1.0'?>
    -  <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
    -  <fontconfig>
    +
    <?xml version='1.0'?>
    +<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
    +<fontconfig>
     
    +<alias>
    +    <family>serif</family>
    +    <prefer><family>Linux Libertine</family></prefer>
    +  </alias>
       <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>
    +    <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>
     
    @@ -109,8 +109,8 @@

    GnuPG

    -
      default-cache-ttl 60480000
    -  max-cache-ttl 60480000
    +
    default-cache-ttl 60480000
    +max-cache-ttl 60480000
     
    @@ -120,22 +120,22 @@

    Redshift

    -
      [redshift]
    -  temp-day=5700
    -  temp-night=3500
    +
    [redshift]
    +temp-day=5700
    +temp-night=3500
     
    -  transition=1
    +transition=1
     
    -  ;brightness-day=0.7
    -  ;brightness-night=0.4
    +;brightness-day=0.7
    +;brightness-night=0.4
     
    -  location-provider=manual
    +location-provider=manual
     
    -  adjustment-method=randr
    +adjustment-method=randr
     
    -  [manual]
    -  lat=45.1
    -  lon=5.7
    +[manual]
    +lat=45.1
    +lon=5.7
     
    @@ -145,26 +145,26 @@

    dmenu

    -
      # define the font for dmenu to be used
    -  DMENU_FN="Hack Nerd Font 12"
    +
    # define the font for dmenu to be used
    +DMENU_FN="Hack Nerd Font 12"
     
    -  # background colour for unselected menu-items
    -  DMENU_NB="#222D31"
    +# background colour for unselected menu-items
    +DMENU_NB="#222D31"
     
    -  # textcolour for unselected menu-items
    -  DMENU_NF="#F9FAF9"
    +# textcolour for unselected menu-items
    +DMENU_NF="#F9FAF9"
     
    -  # background colour for selected menu-items
    -  DMENU_SB="#16A085"
    +# background colour for selected menu-items
    +DMENU_SB="#16A085"
     
    -  # textcolour for selected menu-items
    -  DMENU_SF="#F9FAF9"
    +# textcolour for selected menu-items
    +DMENU_SF="#F9FAF9"
     
    -  # command for the terminal application to be used:
    -  TERMINAL_CMD="terminal -e"
    +# command for the terminal application to be used:
    +TERMINAL_CMD="terminal -e"
     
    -  # export our variables
    -  DMENU_OPTIONS="-fn $DMENU_FN -nb $DMENU_NB -nf $DMENU_NF -sf $DMENU_SF -sb $DMENU_SB"
    +# export our variables
    +DMENU_OPTIONS="-fn $DMENU_FN -nb $DMENU_NB -nf $DMENU_NF -sf $DMENU_SF -sb $DMENU_SB"
     
    @@ -174,20 +174,20 @@

    Locale

    -
      LANG=en_US.UTF-8
    -  LC_CTYPE="en_US.UTF-8"
    -  LC_NUMERIC=fr_FR.UTF-8
    -  LC_TIME=fr_FR.UTF-8
    -  LC_COLLATE="en_US.UTF-8"
    -  LC_MONETARY=fr_FR.UTF-8
    -  LC_MESSAGES="en_US.UTF-8"
    -  LC_PAPER=fr_FR.UTF-8
    -  LC_NAME=fr_FR.UTF-8
    -  LC_ADDRESS=fr_FR.UTF-8
    -  LC_TELEPHONE=fr_FR.UTF-8
    -  LC_MEASUREMENT=fr_FR.UTF-8
    -  LC_IDENTIFICATION=fr_FR.UTF-8
    -  LC_ALL=
    +
    LANG=en_US.UTF-8
    +LC_CTYPE="en_US.UTF-8"
    +LC_NUMERIC=fr_FR.UTF-8
    +LC_TIME=fr_FR.UTF-8
    +LC_COLLATE="en_US.UTF-8"
    +LC_MONETARY=fr_FR.UTF-8
    +LC_MESSAGES="en_US.UTF-8"
    +LC_PAPER=fr_FR.UTF-8
    +LC_NAME=fr_FR.UTF-8
    +LC_ADDRESS=fr_FR.UTF-8
    +LC_TELEPHONE=fr_FR.UTF-8
    +LC_MEASUREMENT=fr_FR.UTF-8
    +LC_IDENTIFICATION=fr_FR.UTF-8
    +LC_ALL=
     
    @@ -196,6 +196,10 @@

    Netrc

    +

    +It is very important that ~/.netrc as 600 permissions. +

    +
    machine traefik.tdehaeze.xyz
     login tdehaeze
    @@ -229,9 +233,9 @@ login tdehaeze
     

    bukurun Rofi Frontend for Buku (Bookmark Manager)

    -
      _rofi () {
    -      rofi -dmenu -i -no-levenshtein-sort -width 1000 "$@"
    -  }
    +
    _rofi () {
    +    rofi -dmenu -i -no-levenshtein-sort -width 1000 "$@"
    +}
     
    @@ -239,8 +243,8 @@ login tdehaeze Display settings

    -
      display_type=1
    -  max_str_width=80
    +
    display_type=1
    +max_str_width=80
     
    @@ -248,11 +252,11 @@ Display settings Keybindings

    -
      switch_view="Alt+Tab"
    -  new_bookmark="Alt+n"
    -  actions="Alt+a"
    -  edit="Alt+e"
    -  delete="Alt+d"
    +
    switch_view="Alt+Tab"
    +new_bookmark="Alt+n"
    +actions="Alt+a"
    +edit="Alt+e"
    +delete="Alt+d"
     
    @@ -260,7 +264,7 @@ Keybindings Colors

    -
      help_color="#2d7ed8"
    +
    help_color="#2d7ed8"
     
    @@ -268,7 +272,7 @@ Colors

    Author: Dehaeze Thomas

    -

    Created: 2021-01-04 lun. 21:32

    +

    Created: 2021-01-08 ven. 01:43

    diff --git a/docs/contacts.html b/docs/contacts.html index 8a1ad44..98b523a 100644 --- a/docs/contacts.html +++ b/docs/contacts.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Contact Configuration @@ -83,7 +83,7 @@

    Author: Dehaeze Thomas

    -

    Created: 2021-01-01 ven. 20:09

    +

    Created: 2021-01-08 ven. 01:43

    diff --git a/docs/emacs-snippets.html b/docs/emacs-snippets.html index e7c28db..391473f 100644 --- a/docs/emacs-snippets.html +++ b/docs/emacs-snippets.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Doom Emacs Configuration @@ -905,7 +905,7 @@ $0

    Author: Dehaeze Thomas

    -

    Created: 2021-01-01 ven. 20:09

    +

    Created: 2021-01-08 ven. 01:40

    diff --git a/docs/git.html b/docs/git.html index d351e04..a6e2f31 100644 --- a/docs/git.html +++ b/docs/git.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Git Configuration @@ -315,7 +315,7 @@ Session.vim

    Author: Dehaeze Thomas

    -

    Created: 2021-01-01 ven. 20:09

    +

    Created: 2021-01-08 ven. 01:40

    diff --git a/docs/gtk.html b/docs/gtk.html index 40cce47..feab34d 100644 --- a/docs/gtk.html +++ b/docs/gtk.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + GTK Configuration @@ -79,7 +79,7 @@

    Author: Dehaeze Thomas

    -

    Created: 2021-01-01 ven. 20:09

    +

    Created: 2021-01-08 ven. 01:43

    diff --git a/docs/i3.html b/docs/i3.html index f3270a0..75918c7 100644 --- a/docs/i3.html +++ b/docs/i3.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + I3 Configuration @@ -245,8 +245,11 @@ set $ws8 8 for_window [title="Bluetooth Devices"] floating enable for_window [title="Simulink Library Browser"] floating enable for_window [class="Floating"] floating enable, resize set 800 600, move position 1100 460 +for_window [class="mpv"] floating enable # Size/Position is defined in mpv.conf for_window [class="Sxiv"] floating enable, resize set 800 600, move position center -for_window [title="nmtui"] floating enable, resize set 800 600 +for_window [title="khal"] floating enable, resize set 600 600, move position center +for_window [title="ncmpcpp"] floating enable, resize set 800 400, move position center +for_window [title="nmtui"] floating enable, resize set 800 600, move position center
@@ -288,7 +291,7 @@ exec --no-startup-id polybar top >>/tmp/polybar.log 2>&1 &

Author: Dehaeze Thomas

-

Created: 2021-01-01 ven. 20:09

+

Created: 2021-01-08 ven. 01:43

diff --git a/docs/image.html b/docs/image.html index f2e7b22..97cf8dc 100644 --- a/docs/image.html +++ b/docs/image.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + SXIV Configuration @@ -39,7 +39,7 @@ done

Author: Dehaeze Thomas

-

Created: 2021-01-01 ven. 20:09

+

Created: 2021-01-08 ven. 01:43

diff --git a/docs/index.html b/docs/index.html index 1def58d..655f85c 100644 --- a/docs/index.html +++ b/docs/index.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Dotfiles - Manjaro Linux @@ -59,8 +59,13 @@ There are Specific configuration files for:

-I also have a nice Home-Server which configuration files can be found here. +I also have:

+
    +
  • a nice Home-Server (conf)
  • +
  • a Windows PC that I occasionally use (conf)
  • +
  • an Android phone (conf)
  • +
diff --git a/docs/install.html b/docs/install.html index 0bdb252..727e81b 100644 --- a/docs/install.html +++ b/docs/install.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Installation @@ -45,28 +45,28 @@
  • buku - Bookmark Manager
  • qutebrowser - Browser
  • - +
    @@ -457,7 +457,7 @@ It can be installed like so: Its configuration file is described here.

    -
    Table 1: yay - Cheatsheet
    +
    @@ -564,7 +564,7 @@ Ressources:
  • https://thoughtbot.com/upcase/tmux
  • -
    Table 2: termite - Cheatsheet
    +
    @@ -966,9 +966,9 @@ Bitwarden https://github.com/bitwarde

    -
    Table 3: tmux - Cheatsheet
    @@ -1140,9 +1140,9 @@ And then browse to http://127.0.0.1:5001.

    -
    -

    Installation

    -
    +
    +

    Installation

    +
      yay -S qutebrowser
     
    @@ -1154,9 +1154,9 @@ And then browse to http://127.0.0.1:5001.

    View Pdf inside qutebrowser with pdfjs

    -
    -

    Installation

    -
    +
    +

    Installation

    +
      yay -S pdfjs
     
    @@ -1164,9 +1164,9 @@ And then browse to http://127.0.0.1:5001.
    -
    -

    Usage

    -
    +
    +

    Usage

    +

    When opening a pdf file on qutebrowser, you’ll be ask for options:

    @@ -1268,6 +1268,7 @@ Addons:
  • uBlock Origin
  • Adblock Plus
  • Bukurow
  • +
  • I don’t care about cookies
  • @@ -1660,9 +1661,9 @@ This looks for contacts in all indexed emails.

    -
    -

    Installation

    -
    +
    +

    Installation

    +
      yay -S weechat
     
    @@ -1773,9 +1774,9 @@ Then we install some dependencies
    -
    -

    Configuration

    -
    +
    +

    Configuration

    + -
    -

    Installation

    -
    +
    +

    Installation

    +
      yay -S python2-websocket-client
     
    @@ -1998,9 +1999,9 @@ It runs weechat inside tmux.

    -
    -

    Installation

    -
    +
    +

    Installation

    +
      yay -S isync
     
    @@ -2008,9 +2009,9 @@ It runs weechat inside tmux.
    -
    -

    Configuration

    -
    +
    +

    Configuration

    +

    ~/.mbsyncrc

    @@ -2064,9 +2065,9 @@ systemctl --user start syncmail.timer

    -
    -

    Installation

    -
    +
    +

    Installation

    +
      yay -S msmtp
     
    @@ -2092,9 +2093,9 @@ systemctl --user start syncmail.timer

    -
    -

    Installation

    -
    +
    +

    Installation

    +
      yay -S neomutt
     
    @@ -2122,9 +2123,9 @@ systemctl --user start syncmail.timer
    -
    -

    Ressources

    -
    +
    +

    Ressources

    + -
    -

    Installation

    -
    +
    +

    Installation

    +
    yay -S ranger
     
    @@ -2173,9 +2174,9 @@ Configuration files:
    -
    -

    Configuration

    -
    +
    +

    Configuration

    +

    The configuration file is ~/.config/ranger/rc.conf.

    @@ -2219,9 +2220,9 @@ It works better with Urxvt.

    -
    -

    Installation

    -
    +
    +

    Installation

    +
      yay -S sxiv
     
    @@ -2239,9 +2240,9 @@ It works better with Urxvt.
    -
    -

    Cheatsheet

    -
    +
    +

    Cheatsheet

    +
    @@ -2314,9 +2315,9 @@ Configuration file: SXHKD.

    -
    -

    Installation

    -
    +
    +

    Installation

    +
      yay -S i3-gaps
     
    @@ -2324,9 +2325,9 @@ Configuration file: SXHKD.
    -
    -

    Configuration

    -
    +
    +

    Configuration

    +

    ~/.i3/config

    @@ -2346,9 +2347,9 @@ Configuration file: SXHKD.

    -
    -

    Installation

    -
    +
    +

    Installation

    +
      yay -S polybar
     
    @@ -2369,9 +2370,9 @@ Configuration file: SXHKD.

    -
    -

    Installation

    -
    +
    +

    Installation

    +
      yay -S picom
     
    @@ -2379,9 +2380,9 @@ Configuration file: SXHKD.
    -
    -

    Configuration

    -
    +
    +

    Configuration

    +

    ~/.config/picom/picom.conf

    @@ -2411,9 +2412,9 @@ Compton is run from .xprofile config in the background:

    -
    -

    Installation

    -
    +
    +

    Installation

    +
      yay -S dunst dunstify
     
    @@ -2421,18 +2422,18 @@ Compton is run from .xprofile config in the background:
    -
    -

    Configuration

    -
    +
    +

    Configuration

    +

    ~/.config/dunst/dunstrc

    -
    -

    Usage

    -
    +
    +

    Usage

    +
      dunstify --replace=16549 "AppName" "Message"
     
    @@ -2879,9 +2880,9 @@ Configuration: https://pwmt.org/projects/zathura/

    -
    -

    Installation

    -
    +
    +

    Installation

    +
      yay -S zathura
     
    @@ -2901,18 +2902,18 @@ It seems that mupdf is better that poppler to view pdf.
    -
    -

    Configuration

    -
    +
    +

    Configuration

    +

    ~/.config/zathura/zathurarc

    -
    -

    Cheatsheet

    -
    +
    +

    Cheatsheet

    +
    @@ -3015,9 +3016,9 @@ pdfpc is a great tool for showing pdf presentations. It support: -
    -

    Installation

    -
    +
    +

    Installation

    +
      yay -S pdfpc
     
    @@ -3035,9 +3036,9 @@ pdfpc is a great tool for showing pdf presentations. It support:
    -
    -

    Usage

    -
    +
    +

    Usage

    +
      pdfpc filename.pdf
     
    @@ -3301,9 +3302,9 @@ Configuration:
    -
    -

    Others

    -
    +
    +

    Others

    +

    maim=/=flameshot - Take Screenshots

    @@ -3775,9 +3776,9 @@ Using command line:
    -
    -

    Others

    -
    +
    +

    Others

    +
    @@ -4100,9 +4101,9 @@ To see next timers -
    -

    Ressources

    -
    +
    +

    Ressources

    +

    Dotfiles

    @@ -4170,6 +4171,11 @@ To see next timers
    + + + + + @@ -4181,12 +4187,7 @@ To see next timers - - - - - - + @@ -4474,6 +4475,11 @@ To see next timers + + + + +
    Synchronize calendars and contacts
    abookAddress book with mutt support
    urlview URL extractor/launcher
    abookAddress book with mutt support
    elinkslynx Text mode web browser
    pandoc Swiss-army knife of markup format conversion
    uniQuery the Unicode database from the commandline
    @@ -4482,7 +4488,7 @@ To see next timers

    Author: Dehaeze Thomas

    -

    Created: 2021-01-03 dim. 22:25

    +

    Created: 2021-01-08 ven. 01:43

    diff --git a/docs/mail.html b/docs/mail.html index bbdf2ac..133be8d 100644 --- a/docs/mail.html +++ b/docs/mail.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Mail Configuration @@ -25,8 +25,8 @@
  • mbsync - Synchronize Mailboxes @@ -34,8 +34,8 @@
  • msmtp - Send Mails @@ -115,7 +118,7 @@

    Hardware

    - +
    @@ -471,7 +474,7 @@ To check how the first part of the crontab works, check Update System/Packages
    -
      sudo -- sh -c 'apt-get update; apt-get upgrade -y; apt-get dist-upgrade -y; apt-get autoremove -y; apt-get autoclean -y'
    +
    sudo -- sh -c 'apt-get update; apt-get upgrade -y; apt-get dist-upgrade -y; apt-get autoremove -y; apt-get autoclean -y'
     
    @@ -494,7 +497,7 @@ To check how the first part of the crontab works, check
    -
      cd ~/docker/ && docker-compose pull --ignore-pull-failures && docker-compose up -d
    +
    cd ~/docker/ && docker-compose pull --ignore-pull-failures && docker-compose up -d
     
    @@ -503,7 +506,7 @@ Clean up Docker environment This will delete all unused images, volumes and networks.

    -
      docker system prune -f && docker image prune -f && docker volume prune -f
    +
    docker system prune -f && docker image prune -f && docker volume prune -f
     
    @@ -520,14 +523,14 @@ This will delete all unused images, volumes and networks. -
    -

    Snapraid

    -
    +
    +

    Snapraid

    +

    To see all files “backed up” by snapraid, use:

    -
      docker exec -ti snapraid snapraid list | fzf
    +
    docker exec -ti snapraid snapraid list | fzf
     
    @@ -535,7 +538,7 @@ To see all files “backed up” by snapraid, use: In reality, snapraid in ran from the docker container:

    -
      docker exec -ti snapraid snapraid fix -f <path_to_file>
    +
    docker exec -ti snapraid snapraid fix -f <path_to_file>
     
    @@ -552,7 +555,7 @@ The path to file should be relative: /srv/storage/Cloud/org/file.org
    -
      docker exec restic restic snapshots
    +
    docker exec restic restic snapshots
     
    @@ -571,7 +574,7 @@ a7b98408 2020-09-03 21:18:00 4803c2af7d4e /data/documents/manuals Force backup of folder:

    -
      docker exec restic restic backup /data/documents/manuals
    +
    docker exec restic restic backup /data/documents/manuals
     
    @@ -590,7 +593,7 @@ snapshot 9cf0b480 saved Find the path to the file within the snapshot:

    -
      docker exec restic restic find file_name
    +
    docker exec restic restic find file_name
     
    @@ -598,7 +601,7 @@ Find the path to the file within the snapshot: Find files only for a specific snapshot:

    -
      docker exec restic restic find -s latest file_name
    +
    docker exec restic restic find -s latest file_name
     
    @@ -606,7 +609,7 @@ Find files only for a specific snapshot: Backup files/folders:

    -
      docker exec restic restic restore --include /data/documents/manuals --target / 088e31a4
    +
    docker exec restic restic restore --include /data/documents/manuals --target / 088e31a4
     
    @@ -730,6 +733,342 @@ You can use latest instead of the ID.
    +
    +

    Homer

    +
    +
    +
      homer:
    +    container_name: homer
    +    image: b4bz/homer
    +    restart: unless-stopped
    +    networks:
    +      - t2_proxy
    +    environment:
    +      - UID=$PUID
    +      - GID=$PGID
    +      - TZ=$TZ
    +    volumes:
    +      - $CONFIGDIR/homer/assets/:/www/assets
    +    labels:
    +      - "traefik.enable=true"
    +      - "traefik.http.routers.homer-rtr.entrypoints=https"
    +      - "traefik.http.routers.homer-rtr.rule=Host(`homer.$DOMAINNAME`)"
    +      - "traefik.http.routers.homer-rtr.tls=true"
    +      - "traefik.http.routers.homer-rtr.service=homer-svc"
    +      - "traefik.http.services.homer-svc.loadbalancer.server.port=8080"
    +
    +
    +
    + +
    +

    config.yml

    +
    +
    +
    ---
    +title: "Homepage"
    +subtitle: "Homer"
    +logo: "assets/homer.png"
    +header: false
    +footer: false
    +
    +columns: "auto"
    +connectivityCheck: false
    +
    +theme: default
    +
    +links: []
    +
    +services:
    +  - name: "Websites"
    +    icon: "fas fa-desktop"
    +    items:
    +    - name: "Wiki"
    +      logo: "/assets/tools/brain.png"
    +      subtitle: "Digital Brain"
    +      url: "https://brain.tdehaeze.xyz"
    +    - name: "Research"
    +      logo: "/assets/tools/orgmode.png"
    +      subtitle: "Research Pages"
    +      url: "https://research.tdehaeze.xyz"
    +  - name: "Utilities"
    +    icon: "fas fa-rss"
    +    items:
    +    - name: "Miniflux"
    +      logo: "/assets/tools/miniflux.png"
    +      subtitle: "RSS Feeds"
    +      url: "https://rss.tdehaeze.xyz"
    +    # - name: "Bitwarden"
    +    #   logo: "/assets/tools/bitwarden.png"
    +    #   subtitle: "Password Manager"
    +    #   url: "https://bw.tdehaeze.xyz"
    +    - name: "Home Assistant"
    +      logo: "/assets/tools/homeassistant.png"
    +      subtitle: "Home Assistant"
    +      url: "http://home.tdehaeze.xyz:8123"
    +    - name: "Guacamole"
    +      logo: "/assets/tools/guacamole.png"
    +      subtitle: "SSH Access"
    +      url: "https://guacamole.tdehaeze.xyz/"
    +  - name: "Cloud"
    +    icon: "fas fa-cloud"
    +    items:
    +    - name: "Cloud"
    +      logo: "/assets/tools/cloud.png"
    +      subtitle: "Simple Personnal Could"
    +      url: "https://cloud.tdehaeze.xyz"
    +    - name: "Syncthing"
    +      logo: "/assets/tools/syncthing.png"
    +      subtitle: "P2P Sync"
    +      url: "https://syncthing.tdehaeze.xyz"
    +    - name: "Gitea"
    +      logo: "/assets/tools/gitea.png"
    +      subtitle: "Git Server"
    +      url: "https://git.tdehaeze.xyz"
    +  - name: "Download"
    +    icon: "fas fa-download"
    +    items:
    +    - name: "Transmission"
    +      logo: "/assets/tools/transmission.png"
    +      subtitle: "Torrents"
    +      url: "https://torrent.tdehaeze.xyz/transmission/web/"
    +    # - name: "transfer"
    +    #   logo: "/assets/tools/transfer.png"
    +    #   subtitle: "Transfer.sh"
    +    #   url: "https://file.tdehaeze.xyz"
    +    - name: "deemix"
    +      subtitle: "Download Music"
    +      logo: "/assets/tools/deezer.png"
    +      url: "https://deemix.tdehaeze.xyz"
    +      #    - name: "Aria2"
    +      #      logo: "/assets/tools/aria2.png"
    +      #      subtitle: "Direct Downloads"
    +      #      url: "https://dl.tdehaeze.xyz"
    +  - name: "Media"
    +    icon: "fas fa-film"
    +    items:
    +    - name: "Jellyfin"
    +      logo: "/assets/tools/jellyfin.png"
    +      subtitle: "Media Library"
    +      url: "https://jellyfin.tdehaeze.xyz"
    +  - name: "Config"
    +    icon: "fas fa-cog"
    +    items:
    +    - name: "Portainer"
    +      logo: "/assets/tools/portainer.png"
    +      subtitle: "Manger Docker"
    +      url: "https://portainer.tdehaeze.xyz"
    +    - name: "Traefik"
    +      logo: "/assets/tools/traefik.png"
    +      subtitle: "Reverse Proxy"
    +      url: "https://traefik.tdehaeze.xyz"
    +  - name: "Local"
    +    icon: "fas fa-home"
    +    items:
    +    # - name: "Jackett"
    +    #   logo: "/assets/tools/jackett.png"
    +    #   subtitle: "Download API"
    +    #   url: "http://192.168.1.150:9117/"
    +    # - name: "Radarr"
    +    #   logo: "/assets/tools/radarr.png"
    +    #   subtitle: "Movie Manager"
    +    #   url: "http://192.168.1.150:7878/"
    +    # - name: "Sonarr"
    +    #   logo: "/assets/tools/sonarr.png"
    +    #   subtitle: "TV Shows Manager"
    +    #   url: "http://192.168.1.150:8989/"
    +    # - name: "Ombi"
    +    #   logo: "/assets/tools/ombi.png"
    +    #   subtitle: "Request Content"
    +    #   url: "https://ombi.tdehaeze.xyz/"
    +    # - name: "Bazarr"
    +    #   logo: "/assets/tools/bazarr.png"
    +    #   subtitle: "Subtitles Manager"
    +    #   url: "http://192.168.1.150:6767/"
    +    - name: "Scrutiny"
    +      logo: "/assets/tools/scrutiny.png"
    +      subtitle: "S.M.A.R.T"
    +      url: "http://192.168.1.150:8089/web/dashboard"
    +    - name: "OctoPrint"
    +      logo: "/assets/tools/octoprint.png"
    +      subtitle: "3D-Printing"
    +      url: "http://192.168.1.56/"
    +
    +
    +
    +
    +
    + +
    +

    Restic

    +
    +
    +
      restic:
    +    container_name: restic
    +    image: mazzolino/restic
    +    restart: "no"
    +    networks:
    +      - t2_proxy
    +    environment:
    +      - RUN_ON_STARTUP=true
    +      - BACKUP_CRON=0 30 0 * * *
    +      - RESTIC_REPOSITORY=rclone:mega:mega
    +      - RESTIC_PASSWORD="$RESTIC_PASSWORD"
    +      - RESTIC_BACKUP_SOURCES=/data
    +      - RESTIC_FORGET_ARGS=--keep-daily 7 --keep-weekly 4 --keep-monthly 12
    +      - UID=$PUID
    +      - GID=$PGID
    +      - TZ=$TZ
    +    volumes:
    +      - $CONFIGDIR/restic:/root/.config/rclone
    +      - /srv/storage/Cloud/thesis:/data/thesis
    +
    +
    +
    + +
    +

    rclone.conf

    +
    +
    +
    [mega]
    +type = mega
    +user = dehaeze.thomas@gmail.com
    +pass = <<get-password(passname="nas/rclone_mega_pass")>>
    +
    +
    +
    +
    +
    + +
    +

    Snapraid

    +
    +
    +
      snapraid:
    +    container_name: snapraid
    +    image: xagaba/snapraid
    +    restart: unless-stopped
    +    privileged: true
    +    volumes:
    +      - /mnt:/mnt
    +      - $CONFIGDIR/snapraid:/config
    +      - type: "bind"
    +        source: /dev/disk
    +        target: /dev/disk
    +    environment:
    +      - PUID=$PUID
    +      - PGID=$PGID
    +      - TZ=$TZ
    +
    +
    +
    + +
    +

    snapraid.conf

    +
    +
    +
    # Defines the file to use as parity storage
    +# It must NOT be in a data disk
    +# Format: "parity FILE_PATH"
    +parity /mnt/parity/snapraid.parity
    +
    +# Defines the files to use as content list
    +# You can use multiple specification to store more copies
    +# You must have least one copy for each parity file plus one. Some more don't
    +# hurt
    +# They can be in the disks used for data, parity or boot,
    +# but each file must be in a different disk
    +# Format: "content FILE_PATH"
    +content /var/snapraid.content
    +content /mnt/disk0/.snapraid.content
    +content /mnt/disk1/.snapraid.content
    +
    +# Defines the data disks to use
    +# The order is relevant for parity, do not change it
    +# Format: "disk DISK_NAME DISK_MOUNT_POINT"
    +disk d0 /mnt/disk0
    +disk d1 /mnt/disk1
    +
    +# Excludes hidden files and directories (uncomment to enable).
    +#nohidden
    +
    +# Defines files and directories to exclude
    +# Remember that all the paths are relative at the mount points
    +# Format: "exclude FILE"
    +# Format: "exclude DIR/"
    +# Format: "exclude /PATH/FILE"
    +# Format: "exclude /PATH/DIR/"
    +exclude *.unrecoverable
    +exclude /tmp/
    +exclude /lost+found/
    +exclude *.!sync
    +exclude .AppleDouble
    +exclude ._AppleDouble
    +exclude .DS_Store
    +exclude ._.DS_Store
    +exclude .Thumbs.db
    +exclude .fseventsd
    +exclude .Spotlight-V100
    +exclude .TemporaryItems
    +exclude .Trashes
    +exclude .AppleDB
    +
    +
    +
    +
    + +
    +

    snapraid-runner.conf

    +
    +
    +
    [snapraid]
    +; path to the snapraid executable (e.g. /bin/snapraid)
    +executable = /usr/bin/snapraid
    +; path to the snapraid config to be used
    +config = /config/snapraid.conf
    +; abort operation if there are more deletes than this, set to -1 to disable
    +deletethreshold = -1
    +; if you want touch to be ran each time
    +touch = false
    +
    +[logging]
    +; logfile to write to, leave empty to disable
    +file = /config/snapraid.log
    +; maximum logfile size in KiB, leave empty for infinite
    +maxsize = 5000
    +
    +; [email]
    +; ; when to send an email, comma-separated list of [success, error]
    +; sendon = success,error
    +; ; set to false to get full programm output via email
    +; short = true
    +; subject = [SnapRAID] Status Report:
    +; from =
    +; to =
    +; ; maximum email size in KiB
    +; maxsize = 500
    +;
    +; [smtp]
    +; host =
    +; ; leave empty for default port
    +; port =
    +; ; set to "true" to activate
    +; ssl = false
    +; tls = false
    +; user =
    +; password =
    +
    +[scrub]
    +; set to true to run scrub after sync
    +enabled = false
    +percentage = 12
    +older-than = 10
    +
    +
    +
    +
    +
    + +

    Portainer

    @@ -762,34 +1101,32 @@ You can use latest instead of the ID.
    -
    -

    Jellyfin

    -
    +
    +

    Wireguard

    +
    -
      jellyfin:
    -    container_name: jellyfin
    -    image: linuxserver/jellyfin
    +
      wireguard:
    +    container_name: wireguard
    +    image: linuxserver/wireguard
         restart: unless-stopped
         networks:
           - t2_proxy
    -    volumes:
    -      - $CONFIGDIR/jellyfin:/config
    -      - /srv/storage/TVShows:/data/tvshows
    -      - /srv/storage/LiveMusic:/data/livemusic
    -      - /srv/storage/Animes:/data/animes
    -      - /srv/storage/Movies:/data/movies
    -      - /srv/storage/Music:/data/music
    +    cap_add:
    +      - NET_ADMIN
    +      - SYS_MODULE
         environment:
           - PUID=$PUID
           - PGID=$PGID
           - TZ=$TZ
    -    labels:
    -      - "traefik.enable=true"
    -      - "traefik.http.routers.jellyfin-rtr.entrypoints=https"
    -      - "traefik.http.routers.jellyfin-rtr.rule=Host(`jellyfin.$DOMAINNAME`)"
    -      - "traefik.http.routers.jellyfin-rtr.tls=true"
    -      - "traefik.http.routers.jellyfin-rtr.service=jellyfin-svc"
    -      - "traefik.http.services.jellyfin-svc.loadbalancer.server.port=8096"
    +      - SERVERURL=wireguard.tdehaeze.xyz
    +      - SERVERPORT=51820
    +      - PEERS=3
    +      - PEERDNS=auto
    +    volumes:
    +      - $CONFIGDIR/wireguard:/config
    +      - /lib/modules:/lib/modules
    +    ports:
    +      - 51820:51820/udp
     
    @@ -848,40 +1185,9 @@ You can use latest instead of the ID.
    -
    -

    Transfer.sh

    -
    -
    -
      transfer:
    -    container_name: transfer
    -    image: dutchcoders/transfer.sh
    -    restart: unless-stopped
    -    networks:
    -      - t2_proxy
    -    environment:
    -      - PUID=$PUID
    -      - PGID=$PGID
    -      - TZ=$TZ
    -      - UMASK_SET=022
    -      - BASEDIR=/tmp/
    -      - PROVIDER=local
    -    volumes:
    -      - /srv/storage/Uploads:/tmp/
    -    labels:
    -      - "traefik.enable=true"
    -      - "traefik.http.routers.transfer-rtr.entrypoints=https"
    -      - "traefik.http.routers.transfer-rtr.rule=Host(`file.$DOMAINNAME`)"
    -      - "traefik.http.routers.transfer-rtr.tls=true"
    -      - "traefik.http.routers.transfer-rtr.service=transfer-svc"
    -      - "traefik.http.services.transfer-svc.loadbalancer.server.port=8080"
    -
    -
    -
    -
    - -
    -

    Caddy

    -
    +
    +

    Caddy

    +
      caddy:
         container_name: caddy
    @@ -908,6 +1214,50 @@ You can use latest instead of the ID.
     
    + +
    +

    Caddyfile

    +
    +
    +
    0.0.0.0:2015 {
    +    root /srv/www/
    +
    +    git {
    +        repo     https://git.tdehaeze.xyz/tdehaeze/research-home-page
    +        path     /srv/www/
    +        interval -1
    +        hook     /research-home-page/webhook QHZgAKjD8q2v54Ru
    +        then     git submodule update --init --recursive --merge
    +    }
    +}
    +
    +
    +
    +
    +
    + +
    +

    Hugo

    +
    +
    +
      hugo:
    +    container_name: hugo
    +    image: muninn/hugo-caddy
    +    restart: unless-stopped
    +    networks:
    +      - t2_proxy
    +    environment:
    +        - REPO=git.tdehaeze.xyz/tdehaeze/digital-brain
    +    labels:
    +      - "traefik.enable=true"
    +      - "traefik.http.routers.hugo-rtr.entrypoints=https"
    +      - "traefik.http.routers.hugo-rtr.rule=Host(`brain.$DOMAINNAME`)"
    +      - "traefik.http.routers.hugo-rtr.tls=true"
    +      - "traefik.http.routers.hugo-rtr.service=hugo-svc"
    +      - "traefik.http.services.hugo-svc.loadbalancer.server.port=2015"
    +
    +
    +
    @@ -949,29 +1299,6 @@ You can use latest instead of the ID.
    -
    -

    Aria2

    -
    -
    -
      aria2:
    -    container_name: aria2
    -    image: p3terx/aria2-pro
    -    restart: unless-stopped
    -    networks:
    -      - t2_proxy
    -    environment:
    -      - PUID=$PUID
    -      - PGID=$PGID
    -    volumes:
    -      - $CONFIGDIR/aria2:/config
    -      - /srv/storage/Downloads:/downloads
    -    ports:
    -      - 6800:6800
    -
    -
    -
    -
    -

    Miniflux

    @@ -1017,61 +1344,6 @@ You can use latest instead of the ID.
    -
    -

    Wireguard

    -
    -
    -
      wireguard:
    -    container_name: wireguard
    -    image: linuxserver/wireguard
    -    restart: unless-stopped
    -    networks:
    -      - t2_proxy
    -    cap_add:
    -      - NET_ADMIN
    -      - SYS_MODULE
    -    environment:
    -      - PUID=$PUID
    -      - PGID=$PGID
    -      - TZ=$TZ
    -      - SERVERURL=wireguard.tdehaeze.xyz
    -      - SERVERPORT=51820
    -      - PEERS=3
    -      - PEERDNS=auto
    -    volumes:
    -      - $CONFIGDIR/wireguard:/config
    -      - /lib/modules:/lib/modules
    -    ports:
    -      - 51820:51820/udp
    -
    -
    -
    -
    - -
    -

    Snapraid

    -
    -
    -
      snapraid:
    -    container_name: snapraid
    -    image: xagaba/snapraid
    -    restart: unless-stopped
    -    privileged: true
    -    volumes:
    -      - /mnt:/mnt
    -      - $CONFIGDIR/snapraid:/config
    -      - type: "bind"
    -        source: /dev/disk
    -        target: /dev/disk
    -    environment:
    -      - PUID=$PUID
    -      - PGID=$PGID
    -      - TZ=$TZ
    -
    -
    -
    -
    -

    Home Assistant

    @@ -1114,356 +1386,85 @@ You can use latest instead of the ID.
    -
    -

    Jackett

    -
    +
    +

    Jellyfin

    +
    -
      jackett:
    -    container_name: jackett
    -    image: linuxserver/jackett
    -    restart: unless-stopped
    -    networks:
    -      - backend
    -    environment:
    -      - PUID=$PUID
    -      - PGID=$PGID
    -      - TZ=$TZ
    -      - AUTO_UPDATE=true
    -    # - RUN_OPTS=
    -    volumes:
    -      - $CONFIGDIR/jackett:/config
    -      - /srv/storage/Downloads:/downloads
    -    ports:
    -      - 9117:9117
    -
    -
    -
    -
    - -
    -

    Radarr

    -
    -
    -
      radarr:
    -    container_name: radarr
    -    image: linuxserver/radarr
    -    restart: unless-stopped
    -    networks:
    -      - backend
    -    environment:
    -      - PUID=$PUID
    -      - PGID=$PGID
    -      - TZ=$TZ
    -      - UMASK_SET=022
    -    volumes:
    -      - $CONFIGDIR/radarr:/config
    -      - /srv/storage/Movies:/movies
    -      - /srv/storage/Downloads:/downloads
    -    ports:
    -      - 7878:7878
    -
    -
    -
    -
    - -
    -

    Sonarr

    -
    -
    -
      sonarr:
    -    container_name: sonarr
    -    image: linuxserver/sonarr
    -    restart: unless-stopped
    -    networks:
    -      - backend
    -    environment:
    -      - PUID=$PUID
    -      - PGID=$PGID
    -      - TZ=$TZ
    -      - UMASK_SET=022
    -    volumes:
    -      - $CONFIGDIR/sonarr:/config
    -      - /srv/storage/TVShows:/tv
    -      - /srv/storage/Downloads:/downloads
    -    ports:
    -      - 8989:8989
    -
    -
    -
    -
    - -
    -

    Ombi

    -
    -
    -
      ombi:
    -    container_name: ombi
    -    image: linuxserver/ombi
    +
      jellyfin:
    +    container_name: jellyfin
    +    image: linuxserver/jellyfin
         restart: unless-stopped
         networks:
           - t2_proxy
    +    volumes:
    +      - $CONFIGDIR/jellyfin:/config
    +      - /srv/storage/TVShows:/data/tvshows
    +      - /srv/storage/LiveMusic:/data/livemusic
    +      - /srv/storage/Animes:/data/animes
    +      - /srv/storage/Movies:/data/movies
    +      - /srv/storage/Music:/data/music
         environment:
           - PUID=$PUID
           - PGID=$PGID
           - TZ=$TZ
    -      # - BASE_URL=/ombi #optional
    -    volumes:
    -      - $CONFIGDIR/ombi:/config
         labels:
           - "traefik.enable=true"
    -      - "traefik.http.routers.ombi-rtr.entrypoints=https"
    -      - "traefik.http.routers.ombi-rtr.rule=Host(`ombi.$DOMAINNAME`)"
    -      - "traefik.http.routers.ombi-rtr.tls=true"
    -      - "traefik.http.routers.ombi-rtr.service=ombi-svc"
    -      - "traefik.http.services.ombi-svc.loadbalancer.server.port=3579"
    +      - "traefik.http.routers.jellyfin-rtr.entrypoints=https"
    +      - "traefik.http.routers.jellyfin-rtr.rule=Host(`jellyfin.$DOMAINNAME`)"
    +      - "traefik.http.routers.jellyfin-rtr.tls=true"
    +      - "traefik.http.routers.jellyfin-rtr.service=jellyfin-svc"
    +      - "traefik.http.services.jellyfin-svc.loadbalancer.server.port=8096"
     
    -
    -

    Transmission

    -
    +
    +

    Filebrowser

    +
    -
      transmission-openvpn:
    -    container_name: transmission
    -    image: haugene/transmission-openvpn:2.13
    +
      filebrowser:
    +    container_name: filebrowser
    +    image: filebrowser/filebrowser
         restart: unless-stopped
         networks:
           - t2_proxy
    -      - backend
    -    environment:
    -      - PUID=$PUID
    -      - PGID=$PGID
    -      - CREATE_TUN_DEVICE=true
    -      - ENABLE_UFW=true
    -      - WEBPROXY_ENABLED=false
    -      - TRANSMISSION_WEB_UI=combustion
    -      - OPENVPN_PROVIDER=NORDVPN
    -      - OPENVPN_USERNAME=$NORDVPN_NAME
    -      - OPENVPN_PASSWORD=$NORDVPN_PASS
    -      - NORDVPN_COUNTRY=FR
    -      - NORDVPN_CATEGORY=P2P
    -      - NORDVPN_PROTOCOL=tcp
    -      - LOCAL_NETWORK=192.168.0.0/16
         volumes:
    -      - /srv/storage/Downloads:/data
    -      - /etc/localtime:/etc/localtime:ro
    -    cap_add:
    -      - NET_ADMIN
    -    ports:
    -      - 9091:9091
    -      - 51413:51413
    -      - 51413:51413/udp
    -    labels:
    -      - "traefik.enable=true"
    -      - "traefik.http.routers.transmission-rtr.entrypoints=https"
    -      - "traefik.http.routers.transmission-rtr.rule=Host(`torrent.$DOMAINNAME`)"
    -      - "traefik.http.routers.transmission-rtr.tls=true"
    -      - "traefik.http.routers.transmission-rtr.service=transmission-svc"
    -      - "traefik.http.routers.transmission-rtr.middlewares=traefik-auth"
    -      - "traefik.http.services.transmission-svc.loadbalancer.server.port=9091"
    -
    -
    -
    -
    - -
    -

    Bazarr

    -
    -
    -
      bazarr:
    -    container_name: bazarr
    -    image: linuxserver/bazarr
    -    restart: unless-stopped
    -    networks:
    -      - backend
    +      - $CONFIGDIR/filebrowser/database.db:/database.db
    +      - $CONFIGDIR/filebrowser/.filebrowser.json:/.filebrowser.json
    +      - /srv/storage:/srv/storage
    +    user: "${PUID}:${PGID}"
         environment:
           - PUID=$PUID
           - PGID=$PGID
           - TZ=$TZ
    -      - UMASK_SET=022 #optional
    -    volumes:
    -      - $CONFIGDIR/bazarr:/config
    -      - /srv/storage/TVShows:/tv
    -      - /srv/storage/Movies:/movies
    -    ports:
    -      - 6767:6767
    -
    -
    -
    -
    - -
    -

    Hugo

    -
    -
    -
      hugo:
    -    container_name: hugo
    -    image: muninn/hugo-caddy
    -    restart: unless-stopped
    -    networks:
    -      - t2_proxy
    -    environment:
    -        - REPO=git.tdehaeze.xyz/tdehaeze/digital-brain
         labels:
           - "traefik.enable=true"
    -      - "traefik.http.routers.hugo-rtr.entrypoints=https"
    -      - "traefik.http.routers.hugo-rtr.rule=Host(`brain.$DOMAINNAME`)"
    -      - "traefik.http.routers.hugo-rtr.tls=true"
    -      - "traefik.http.routers.hugo-rtr.service=hugo-svc"
    -      - "traefik.http.services.hugo-svc.loadbalancer.server.port=2015"
    +      - "traefik.http.routers.filebrowser-rtr.entrypoints=https"
    +      - "traefik.http.routers.filebrowser-rtr.rule=Host(`cloud.$DOMAINNAME`)"
    +      - "traefik.http.routers.filebrowser-rtr.tls=true"
    +      - "traefik.http.routers.filebrowser-rtr.service=filebrowser-svc"
    +      - "traefik.http.services.filebrowser-svc.loadbalancer.server.port=80"
     
    -
    -
    -

    Bitwarden

    -
    +
    +

    .filebrowser.json

    +
    -
      bitwarden:
    -    container_name: bitwarden
    -    image: bitwardenrs/server
    -    restart: unless-stopped
    -    networks:
    -      - t2_proxy
    -    environment:
    -      - PUID=$PUID
    -      - PGID=$PGID
    -      - TZ=$TZ
    -    volumes:
    -      - $CONFIGDIR/bitwarden:/data
    -    labels:
    -      - "traefik.enable=true"
    -      - "traefik.http.routers.bitwarden-rtr.entrypoints=https"
    -      - "traefik.http.routers.bitwarden-rtr.rule=Host(`bw.$DOMAINNAME`)"
    -      - "traefik.http.routers.bitwarden-rtr.tls=true"
    -      - "traefik.http.routers.bitwarden-rtr.service=bitwarden-svc"
    -      - "traefik.http.services.bitwarden-svc.loadbalancer.server.port=80"
    +
    {
    +  "port": 80,
    +  "baseURL": "",
    +  "address": "",
    +  "log": "stdout",
    +  "database": "/database.db",
    +  "root": "/srv/storage"
    +}
     
    - -
    -

    Homer

    -
    -
    -
      homer:
    -    container_name: homer
    -    image: b4bz/homer
    -    restart: unless-stopped
    -    networks:
    -      - t2_proxy
    -    environment:
    -      - UID=$PUID
    -      - GID=$PGID
    -      - TZ=$TZ
    -    volumes:
    -      - $CONFIGDIR/homer/assets/:/www/assets
    -    labels:
    -      - "traefik.enable=true"
    -      - "traefik.http.routers.homer-rtr.entrypoints=https"
    -      - "traefik.http.routers.homer-rtr.rule=Host(`homer.$DOMAINNAME`)"
    -      - "traefik.http.routers.homer-rtr.tls=true"
    -      - "traefik.http.routers.homer-rtr.service=homer-svc"
    -      - "traefik.http.services.homer-svc.loadbalancer.server.port=8080"
    -
    -
    -
    -
    - -
    -

    Restic

    -
    -
    -
      restic:
    -    container_name: restic
    -    image: mazzolino/restic
    -    restart: "no"
    -    networks:
    -      - t2_proxy
    -    environment:
    -      - RUN_ON_STARTUP=true
    -      - BACKUP_CRON=0 30 0 * * *
    -      - RESTIC_REPOSITORY=rclone:mega:mega
    -      - RESTIC_PASSWORD="$RESTIC_PASSWORD"
    -      - RESTIC_BACKUP_SOURCES=/data
    -      - RESTIC_FORGET_ARGS=--keep-daily 7 --keep-weekly 4 --keep-monthly 12
    -      - UID=$PUID
    -      - GID=$PGID
    -      - TZ=$TZ
    -    volumes:
    -      - $CONFIGDIR/restic:/root/.config/rclone
    -      - /srv/storage/Cloud/thesis:/data/thesis
    -
    -
    -
    -
    - -
    -

    CloudCMD

    -
    -
    -
      cloudcmd:
    -    container_name: cloudcmd
    -    image: coderaiser/cloudcmd
    -    restart: unless-stopped
    -    networks:
    -      - t2_proxy
    -    environment:
    -      - PUID=$PUID
    -      - PGID=$PGID
    -      - TZ=$TZ
    -      - CLOUDCMD_ROOT=/mnt/fs
    -      - CLOUDCMD_VIM=true
    -      - CLOUDCMD_ONE_FILE_PANEL=true
    -    volumes:
    -      - /srv/storage/Downloads:/mnt/fs/Downloads
    -      - /srv/storage/Cloud:/mnt/fs/Cloud
    -      - /srv/storage/TVShows:/mnt/fs/TVShows
    -    labels:
    -      - "traefik.enable=true"
    -      - "traefik.http.routers.cloudcmd-rtr.entrypoints=https"
    -      - "traefik.http.routers.cloudcmd-rtr.rule=Host(`cloud.$DOMAINNAME`)"
    -      - "traefik.http.routers.cloudcmd-rtr.tls=true"
    -      - "traefik.http.routers.cloudcmd-rtr.service=cloudcmd-svc"
    -      - "traefik.http.routers.cloudcmd-rtr.middlewares=traefik-auth"
    -      - "traefik.http.services.cloudcmd-svc.loadbalancer.server.port=8000"
    -
    -
    -
    -
    - -
    -

    Gotify

    -
    -
    -
      gotify:
    -    container_name: gotify
    -    image: gotify/server
    -    restart: unless-stopped
    -    networks:
    -      - t2_proxy
    -    environment:
    -      - PUID=$PUID
    -      - PGID=$PGID
    -      - TZ=$TZ
    -      - GOTIFY_DEFAULTUSER_NAME=$GOTIFY_DEFAULTUSER_NAME
    -      - GOTIFY_DEFAULTUSER_PASS=$GOTIFY_DEFAULTUSER_PASS
    -    volumes:
    -      - $CONFIGDIR/gotify:/app/data
    -    labels:
    -      - "traefik.enable=true"
    -      - "traefik.http.routers.gotify-rtr.entrypoints=https"
    -      - "traefik.http.routers.gotify-rtr.rule=Host(`notify.$DOMAINNAME`)"
    -      - "traefik.http.routers.gotify-rtr.tls=true"
    -      - "traefik.http.routers.gotify-rtr.service=gotify-svc"
    -      - "traefik.http.services.gotify-svc.loadbalancer.server.port=80"
    -
    -
    -
    @@ -1531,28 +1532,107 @@ You can use latest instead of the ID.
    -
    -

    Mail-CLI

    -
    +
    +

    Transmission

    +
    -
      mail-cli:
    -    image: tdehaeze/docker-mail-cli
    -    container_name: mail-cli
    +
      transmission-openvpn:
    +    container_name: transmission
    +    image: haugene/transmission-openvpn:2.13
         restart: unless-stopped
    -    volumes:
    -      - $CONFIGDIR/mail-cli:/config
    -      - /srv/storage/mail:/mail
    -      - /srv/storage/Downloads:/data
    +    networks:
    +      - t2_proxy
    +      - backend
         environment:
    -      - TZ=$TZ
           - PUID=$PUID
           - PGID=$PGID
    -    tty: true
    +      - CREATE_TUN_DEVICE=true
    +      - ENABLE_UFW=true
    +      - WEBPROXY_ENABLED=false
    +      - TRANSMISSION_WEB_UI=combustion
    +      - OPENVPN_PROVIDER=NORDVPN
    +      - OPENVPN_USERNAME=$NORDVPN_NAME
    +      - OPENVPN_PASSWORD=$NORDVPN_PASS
    +      - NORDVPN_COUNTRY=FR
    +      - NORDVPN_CATEGORY=P2P
    +      - NORDVPN_PROTOCOL=tcp
    +      - LOCAL_NETWORK=192.168.0.0/16
    +    volumes:
    +      - /srv/storage/Downloads:/data
    +      - /etc/localtime:/etc/localtime:ro
    +    cap_add:
    +      - NET_ADMIN
    +    ports:
    +      - 9091:9091
    +      - 51413:51413
    +      - 51413:51413/udp
    +    labels:
    +      - "traefik.enable=true"
    +      - "traefik.http.routers.transmission-rtr.entrypoints=https"
    +      - "traefik.http.routers.transmission-rtr.rule=Host(`torrent.$DOMAINNAME`)"
    +      - "traefik.http.routers.transmission-rtr.tls=true"
    +      - "traefik.http.routers.transmission-rtr.service=transmission-svc"
    +      - "traefik.http.routers.transmission-rtr.middlewares=traefik-auth"
    +      - "traefik.http.services.transmission-svc.loadbalancer.server.port=9091"
     
    +
    +

    Aria2 - Daemon

    +
    +
    +
      aria2:
    +    container_name: aria2
    +    image: opengg/aria2
    +    restart: unless-stopped
    +    networks:
    +      - t2_proxy
    +    environment:
    +      - PUID=$PUID
    +      - PGID=$PGID
    +    user: "${PUID}:${PGID}"
    +    volumes:
    +      - $CONFIGDIR/aria2:/config
    +      - /srv/storage/Downloads:/downloads
    +    ports:
    +      - 6800:6800
    +
    +
    +
    + +
    +

    aria2.conf

    +
    +
    +
    save-session=/config/aria2.session
    +input-file=/config/aria2.session
    +save-session-interval=60
    +
    +dir=/downloads
    +
    +file-allocation=prealloc
    +disk-cache=128M
    +
    +enable-rpc=true
    +rpc-listen-port=6800
    +rpc-allow-origin-all=true
    +rpc-listen-all=true
    +
    +rpc-secret=<<get-password(passname="nas/aria2")>>
    +
    +auto-file-renaming=false
    +
    +max-connection-per-server=16
    +min-split-size=1M
    +split=16
    +
    +
    +
    +
    +
    +

    Deemix

    @@ -1671,295 +1751,10 @@ Type crontab -e and add this line:
    - -
    -

    Config

    -
    -
    -
    -

    Caddy

    -
    -
    -
    0.0.0.0:2015 {
    -    root /srv/www/
    -
    -    git {
    -        repo     https://git.tdehaeze.xyz/tdehaeze/research-home-page
    -        path     /srv/www/
    -        interval -1
    -        hook     /research-home-page/webhook QHZgAKjD8q2v54Ru
    -        then     git submodule update --init --recursive --merge
    -    }
    -}
    -
    -
    -
    -
    - -
    -

    Homer

    -
    -
    -
    ---
    -title: "Homepage"
    -subtitle: "Homer"
    -logo: "assets/homer.png"
    -header: false
    -footer: false
    -
    -columns: "auto"
    -connectivityCheck: false
    -
    -theme: default
    -
    -links: []
    -
    -services:
    -  - name: "Websites"
    -    icon: "fas fa-desktop"
    -    items:
    -    - name: "Wiki"
    -      logo: "/assets/tools/brain.png"
    -      subtitle: "Digital Brain"
    -      url: "https://brain.tdehaeze.xyz"
    -    - name: "Research"
    -      logo: "/assets/tools/orgmode.png"
    -      subtitle: "Research Pages"
    -      url: "https://research.tdehaeze.xyz"
    -  - name: "Utilities"
    -    icon: "fas fa-rss"
    -    items:
    -    - name: "Miniflux"
    -      logo: "/assets/tools/miniflux.png"
    -      subtitle: "RSS Feeds"
    -      url: "https://rss.tdehaeze.xyz"
    -    - name: "Bitwarden"
    -      logo: "/assets/tools/bitwarden.png"
    -      subtitle: "Password Manager"
    -      url: "https://bw.tdehaeze.xyz"
    -    - name: "Home Assistant"
    -      logo: "/assets/tools/homeassistant.png"
    -      subtitle: "Home Assistant"
    -      url: "http://home.tdehaeze.xyz:8123"
    -    - name: "Guacamole"
    -      logo: "/assets/tools/guacamole.png"
    -      subtitle: "SSH Access"
    -      url: "https://guacamole.tdehaeze.xyz/"
    -  - name: "Cloud"
    -    icon: "fas fa-cloud"
    -    items:
    -    - name: "Cloud"
    -      logo: "/assets/tools/cloud.png"
    -      subtitle: "Simple Personnal Could"
    -      url: "https://cloud.tdehaeze.xyz"
    -    - name: "Syncthing"
    -      logo: "/assets/tools/syncthing.png"
    -      subtitle: "P2P Sync"
    -      url: "https://syncthing.tdehaeze.xyz"
    -    - name: "Gitea"
    -      logo: "/assets/tools/gitea.png"
    -      subtitle: "Git Server"
    -      url: "https://git.tdehaeze.xyz"
    -  - name: "Download"
    -    icon: "fas fa-download"
    -    items:
    -    - name: "Transmission"
    -      logo: "/assets/tools/transmission.png"
    -      subtitle: "Torrents"
    -      url: "https://torrent.tdehaeze.xyz/transmission/web/"
    -    - name: "transfer"
    -      logo: "/assets/tools/transfer.png"
    -      subtitle: "Transfer.sh"
    -      url: "https://file.tdehaeze.xyz"
    -    - name: "deemix"
    -      subtitle: "Download Music"
    -      logo: "/assets/tools/deezer.png"
    -      url: "https://deemix.tdehaeze.xyz"
    -      #    - name: "Aria2"
    -      #      logo: "/assets/tools/aria2.png"
    -      #      subtitle: "Direct Downloads"
    -      #      url: "https://dl.tdehaeze.xyz"
    -  - name: "Media"
    -    icon: "fas fa-film"
    -    items:
    -    - name: "Jellyfin"
    -      logo: "/assets/tools/jellyfin.png"
    -      subtitle: "Media Library"
    -      url: "https://jellyfin.tdehaeze.xyz"
    -  - name: "Config"
    -    icon: "fas fa-cog"
    -    items:
    -    - name: "Portainer"
    -      logo: "/assets/tools/portainer.png"
    -      subtitle: "Manger Docker"
    -      url: "https://portainer.tdehaeze.xyz"
    -    - name: "Traefik"
    -      logo: "/assets/tools/traefik.png"
    -      subtitle: "Reverse Proxy"
    -      url: "https://traefik.tdehaeze.xyz"
    -  - name: "Local"
    -    icon: "fas fa-home"
    -    items:
    -    - name: "Jackett"
    -      logo: "/assets/tools/jackett.png"
    -      subtitle: "Download API"
    -      url: "http://192.168.1.150:9117/"
    -    - name: "Radarr"
    -      logo: "/assets/tools/radarr.png"
    -      subtitle: "Movie Manager"
    -      url: "http://192.168.1.150:7878/"
    -    - name: "Sonarr"
    -      logo: "/assets/tools/sonarr.png"
    -      subtitle: "TV Shows Manager"
    -      url: "http://192.168.1.150:8989/"
    -    - name: "Ombi"
    -      logo: "/assets/tools/ombi.png"
    -      subtitle: "Request Content"
    -      url: "https://ombi.tdehaeze.xyz/"
    -    - name: "Bazarr"
    -      logo: "/assets/tools/bazarr.png"
    -      subtitle: "Subtitles Manager"
    -      url: "http://192.168.1.150:6767/"
    -    - name: "Scrutiny"
    -      logo: "/assets/tools/scrutiny.png"
    -      subtitle: "S.M.A.R.T"
    -      url: "http://192.168.1.150:8089/web/dashboard"
    -    - name: "OctoPrint"
    -      logo: "/assets/tools/octoprint.png"
    -      subtitle: "3D-Printing"
    -      url: "http://192.168.1.56/"
    -
    -
    -
    -
    - -
    -

    Restic

    -
    -
    -
    [mega]
    -type = mega
    -user = dehaeze.thomas@gmail.com
    -pass = <<get-password(passname="nas/rclone_mega_pass")>>
    -
    -
    -
    -
    - -
    -

    Snapraid

    -
    -
    -
    -

    snapraid.conf

    -
    -
    -
    # Defines the file to use as parity storage
    -# It must NOT be in a data disk
    -# Format: "parity FILE_PATH"
    -parity /mnt/parity/snapraid.parity
    -
    -# Defines the files to use as content list
    -# You can use multiple specification to store more copies
    -# You must have least one copy for each parity file plus one. Some more don't
    -# hurt
    -# They can be in the disks used for data, parity or boot,
    -# but each file must be in a different disk
    -# Format: "content FILE_PATH"
    -content /var/snapraid.content
    -content /mnt/disk0/.snapraid.content
    -content /mnt/disk1/.snapraid.content
    -
    -# Defines the data disks to use
    -# The order is relevant for parity, do not change it
    -# Format: "disk DISK_NAME DISK_MOUNT_POINT"
    -disk d0 /mnt/disk0
    -disk d1 /mnt/disk1
    -
    -# Excludes hidden files and directories (uncomment to enable).
    -#nohidden
    -
    -# Defines files and directories to exclude
    -# Remember that all the paths are relative at the mount points
    -# Format: "exclude FILE"
    -# Format: "exclude DIR/"
    -# Format: "exclude /PATH/FILE"
    -# Format: "exclude /PATH/DIR/"
    -exclude *.unrecoverable
    -exclude /tmp/
    -exclude /lost+found/
    -exclude *.!sync
    -exclude .AppleDouble
    -exclude ._AppleDouble
    -exclude .DS_Store
    -exclude ._.DS_Store
    -exclude .Thumbs.db
    -exclude .fseventsd
    -exclude .Spotlight-V100
    -exclude .TemporaryItems
    -exclude .Trashes
    -exclude .AppleDB
    -
    -
    -
    -
    - -
    -

    snapraid-runner.conf

    -
    -
    -
    [snapraid]
    -; path to the snapraid executable (e.g. /bin/snapraid)
    -executable = /usr/bin/snapraid
    -; path to the snapraid config to be used
    -config = /config/snapraid.conf
    -; abort operation if there are more deletes than this, set to -1 to disable
    -deletethreshold = -1
    -; if you want touch to be ran each time
    -touch = false
    -
    -[logging]
    -; logfile to write to, leave empty to disable
    -file = /config/snapraid.log
    -; maximum logfile size in KiB, leave empty for infinite
    -maxsize = 5000
    -
    -; [email]
    -; ; when to send an email, comma-separated list of [success, error]
    -; sendon = success,error
    -; ; set to false to get full programm output via email
    -; short = true
    -; subject = [SnapRAID] Status Report:
    -; from =
    -; to =
    -; ; maximum email size in KiB
    -; maxsize = 500
    -;
    -; [smtp]
    -; host =
    -; ; leave empty for default port
    -; port =
    -; ; set to "true" to activate
    -; ssl = false
    -; tls = false
    -; user =
    -; password =
    -
    -[scrub]
    -; set to true to run scrub after sync
    -enabled = false
    -percentage = 12
    -older-than = 10
    -
    -
    -
    -
    -
    -

    Author: Dehaeze Thomas

    -

    Created: 2021-01-03 dim. 22:51

    +

    Created: 2021-01-08 ven. 01:43

    diff --git a/docs/notifications.html b/docs/notifications.html index 1bd9753..ca788fe 100644 --- a/docs/notifications.html +++ b/docs/notifications.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Dunst (Notification Manager) @@ -41,7 +41,7 @@

    Global

    -
      [global]
    +
    [global]
     
    @@ -50,87 +50,87 @@

    Display

    -
      # Which monitor should the notifications be displayed on.
    -  monitor = 0
    +
    # Which monitor should the notifications be displayed on.
    +monitor = 0
     
    -  # Display notification on focused monitor.  Possible modes are:
    -  #   mouse: follow mouse pointer
    -  #   keyboard: follow window with keyboard focus
    -  #   none: don't follow anything
    -  #
    -  # "keyboard" needs a windowmanager that exports the
    -  # _NET_ACTIVE_WINDOW property.
    -  # This should be the case for almost all modern windowmanagers.
    -  #
    -  # If this option is set to mouse or keyboard, the monitor option
    -  # will be ignored.
    -  follow = keyboard
    +# Display notification on focused monitor.  Possible modes are:
    +#   mouse: follow mouse pointer
    +#   keyboard: follow window with keyboard focus
    +#   none: don't follow anything
    +#
    +# "keyboard" needs a windowmanager that exports the
    +# _NET_ACTIVE_WINDOW property.
    +# This should be the case for almost all modern windowmanagers.
    +#
    +# If this option is set to mouse or keyboard, the monitor option
    +# will be ignored.
    +follow = keyboard
     
    -  # The geometry of the window:
    -  #   [{width}]x{height}[+/-{x}+/-{y}]
    -  # The geometry of the message window.
    -  # The height is measured in number of notifications everything else
    -  # in pixels.  If the width is omitted but the height is given
    -  # ("-geometry x2"), the message window expands over the whole screen
    -  # (dmenu-like).  If width is 0, the window expands to the longest
    -  # message displayed.  A positive x is measured from the left, a
    -  # negative from the right side of the screen.  Y is measured from
    -  # the top and down respectevly.
    -  # The width can be negative.  In this case the actual width is the
    -  # screen width minus the width defined in within the geometry option.
    -  geometry = "250x50-10+37"
    +# The geometry of the window:
    +#   [{width}]x{height}[+/-{x}+/-{y}]
    +# The geometry of the message window.
    +# The height is measured in number of notifications everything else
    +# in pixels.  If the width is omitted but the height is given
    +# ("-geometry x2"), the message window expands over the whole screen
    +# (dmenu-like).  If width is 0, the window expands to the longest
    +# message displayed.  A positive x is measured from the left, a
    +# negative from the right side of the screen.  Y is measured from
    +# the top and down respectevly.
    +# The width can be negative.  In this case the actual width is the
    +# screen width minus the width defined in within the geometry option.
    +geometry = "250x50-10+37"
     
    -  # Show how many messages are currently hidden (because of geometry).
    -  indicate_hidden = yes
    +# Show how many messages are currently hidden (because of geometry).
    +indicate_hidden = yes
     
    -  # Shrink window if it's smaller than the width.  Will be ignored if
    -  # width is 0.
    -  shrink = no
    +# Shrink window if it's smaller than the width.  Will be ignored if
    +# width is 0.
    +shrink = no
     
    -  # The transparency of the window.  Range: [0; 100].
    -  # This option will only work if a compositing windowmanager is
    -  # present (e.g. xcompmgr, compiz, etc.).
    -  transparency = 0
    +# The transparency of the window.  Range: [0; 100].
    +# This option will only work if a compositing windowmanager is
    +# present (e.g. xcompmgr, compiz, etc.).
    +transparency = 0
     
    -  # The height of the entire notification.  If the height is smaller
    -  # than the font height and padding combined, it will be raised
    -  # to the font height and padding.
    -  notification_height = 0
    +# The height of the entire notification.  If the height is smaller
    +# than the font height and padding combined, it will be raised
    +# to the font height and padding.
    +notification_height = 0
     
    -  # Draw a line of "separator_height" pixel height between two
    -  # notifications.
    -  # Set to 0 to disable.
    -  separator_height = 4
    +# Draw a line of "separator_height" pixel height between two
    +# notifications.
    +# Set to 0 to disable.
    +separator_height = 4
     
    -  # Padding between text and separator.
    -  padding = 16
    +# Padding between text and separator.
    +padding = 16
     
    -  # Horizontal padding.
    -  horizontal_padding = 16
    +# Horizontal padding.
    +horizontal_padding = 16
     
    -  # Defines width in pixels of frame around the notification window.
    -  # Set to 0 to disable.
    -  frame_width = 2
    +# Defines width in pixels of frame around the notification window.
    +# Set to 0 to disable.
    +frame_width = 2
     
    -  # Defines color of the frame around the notification window.
    -  frame_color = "#32302f"
    +# Defines color of the frame around the notification window.
    +frame_color = "#32302f"
     
    -  # Define a color for the separator.
    -  # possible values are:
    -  #  * auto: dunst tries to find a color fitting to the background;
    -  #  * foreground: use the same color as the foreground;
    -  #  * frame: use the same color as the frame;
    -  #  * anything else will be interpreted as a X color.
    -  separator_color = frame
    +# Define a color for the separator.
    +# possible values are:
    +#  * auto: dunst tries to find a color fitting to the background;
    +#  * foreground: use the same color as the foreground;
    +#  * frame: use the same color as the frame;
    +#  * anything else will be interpreted as a X color.
    +separator_color = frame
     
    -  # Don't remove messages, if the user is idle (no mouse or keyboard input)
    -  # for longer than idle_threshold seconds.
    -  # Set to 0 to disable.
    -  # default 120
    -  idle_threshold = 120
    +# Don't remove messages, if the user is idle (no mouse or keyboard input)
    +# for longer than idle_threshold seconds.
    +# Set to 0 to disable.
    +# default 120
    +idle_threshold = 120
     
    -  # Sort messages by urgency.
    -  sort = yes
    +# Sort messages by urgency.
    +sort = yes
     
    @@ -140,1822 +140,1822 @@

    Text

    -
      font = Hack Nerd Font 10
    -
    -  # The height of a single line.  If the height is smaller than the
    -  # font height, it will get raised to the font height.
    -  # This adds empty space above and under the text.
    -  line_height = 4
    -
    -  # Possible values are:
    -  # full: Allow a small subset of html markup in notifications:
    -  #        <b>bold</b>
    -  #        <i>italic</i>
    -  #        <s>strikethrough</s>
    -  #        <u>underline</u>
    -  #
    -  #        For a complete reference see
    -  #        <http://developer.gnome.org/pango/stable/PangoMarkupFormat.html>.
    -  #
    -  # strip: This setting is provided for compatibility with some broken
    -  #        clients that send markup even though it's not enabled on the
    -  #        server. Dunst will try to strip the markup but the parsing is
    -  #        simplistic so using this option outside of matching rules for
    -  #        specific applications *IS GREATLY DISCOURAGED*.
    -  #
    -  # no:    Disable markup parsing, incoming notifications will be treated as
    -  #        plain text. Dunst will not advertise that it has the body-markup
    -  #        capability if this is set as a global setting.
    -  #
    -  # It's important to note that markup inside the format option will be parsed
    -  # regardless of what this is set to.
    -  markup = full
    -
    -  # The format of the message.  Possible variables are:
    -  #   %a  appname
    -  #   %s  summary
    -  #   %b  body
    -  #   %i  iconname (including its path)
    -  #   %I  iconname (without its path)
    -  #   %p  progress value if set ([  0%] to [100%]) or nothing
    -  #   %n  progress value if set without any extra characters
    -  # Markup is allowed
    -  format = "<b>%s</b>\n%b"
    -
    -  # Alignment of message text.
    -  # Possible values are "left", "center" and "right".
    -  alignment = left
    -
    -  # Show age of message if message is older than show_age_threshold
    -  # seconds.
    -  # Set to -1 to disable.
    -  show_age_threshold = 300
    -
    -  # Split notifications into multiple lines if they don't fit into
    -  # geometry.
    -  word_wrap = yes
    -
    -  # Ignore newlines '\n' in notifications.
    -  ignore_newline = no
    -
    -  # Merge multiple notifications with the same content
    -  stack_duplicates = false
    -
    -  # Hide the count of merged notifications with the same content
    -  hide_duplicate_count = false
    -
    -  # Display indicators for URLs (U) and actions (A).
    -  show_indicators = yes
    +
    font = Hack Nerd Font 10
    +
    +# The height of a single line.  If the height is smaller than the
    +# font height, it will get raised to the font height.
    +# This adds empty space above and under the text.
    +line_height = 4
    +
    +# Possible values are:
    +# full: Allow a small subset of html markup in notifications:
    +#        <b>bold</b>
    +#        <i>italic</i>
    +#        <s>strikethrough</s>
    +#        <u>underline</u>
    +#
    +#        For a complete reference see
    +#        <http://developer.gnome.org/pango/stable/PangoMarkupFormat.html>.
    +#
    +# strip: This setting is provided for compatibility with some broken
    +#        clients that send markup even though it's not enabled on the
    +#        server. Dunst will try to strip the markup but the parsing is
    +#        simplistic so using this option outside of matching rules for
    +#        specific applications *IS GREATLY DISCOURAGED*.
    +#
    +# no:    Disable markup parsing, incoming notifications will be treated as
    +#        plain text. Dunst will not advertise that it has the body-markup
    +#        capability if this is set as a global setting.
    +#
    +# It's important to note that markup inside the format option will be parsed
    +# regardless of what this is set to.
    +markup = full
    +
    +# The format of the message.  Possible variables are:
    +#   %a  appname
    +#   %s  summary
    +#   %b  body
    +#   %i  iconname (including its path)
    +#   %I  iconname (without its path)
    +#   %p  progress value if set ([  0%] to [100%]) or nothing
    +#   %n  progress value if set without any extra characters
    +# Markup is allowed
    +format = "<b>%s</b>\n%b"
    +
    +# Alignment of message text.
    +# Possible values are "left", "center" and "right".
    +alignment = left
    +
    +# Show age of message if message is older than show_age_threshold
    +# seconds.
    +# Set to -1 to disable.
    +show_age_threshold = 300
    +
    +# Split notifications into multiple lines if they don't fit into
    +# geometry.
    +word_wrap = yes
    +
    +# Ignore newlines '\n' in notifications.
    +ignore_newline = no
    +
    +# Merge multiple notifications with the same content
    +stack_duplicates = false
    +
    +# Hide the count of merged notifications with the same content
    +hide_duplicate_count = false
    +
    +# Display indicators for URLs (U) and actions (A).
    +show_indicators = yes
     
    @@ -1965,14 +1965,14 @@

    Icons

    -
      # Align icons left/right/off
    -  icon_position = off
    +
    # Align icons left/right/off
    +icon_position = off
     
    -  # Limit icons size.
    -  max_icon_size=32
    +# Limit icons size.
    +max_icon_size=32
     
    -  # Paths to default icons.
    -  icon_path = /usr/share/icons/Arc/16x16/status/:/usr/share/icons/Arc/16x16/devices/
    +# Paths to default icons.
    +icon_path = /usr/share/icons/Arc/16x16/status/:/usr/share/icons/Arc/16x16/devices/
     
    @@ -1982,12 +1982,12 @@

    History

    -
      # Should a notification popped up from history be sticky or timeout
    -  # as if it would normally do.
    -  sticky_history = yes
    +
    # Should a notification popped up from history be sticky or timeout
    +# as if it would normally do.
    +sticky_history = yes
     
    -  # Maximum amount of notifications kept in history
    -  history_length = 20
    +# Maximum amount of notifications kept in history
    +history_length = 20
     
    @@ -1997,25 +1997,25 @@

    Misc/Advanced

    -
      # dmenu path.
    -  dmenu = /usr/bin/dmenu -p dunst:
    +
    # dmenu path.
    +dmenu = /usr/bin/dmenu -p dunst:
     
    -  # Browser for opening urls in context menu.
    -  browser = $BROWSER
    +# Browser for opening urls in context menu.
    +browser = $BROWSER
     
    -  # Always run rule-defined scripts, even if the notification is suppressed
    -  always_run_script = true
    +# Always run rule-defined scripts, even if the notification is suppressed
    +always_run_script = true
     
    -  # Define the title of the windows spawned by dunst
    -  title = Dunst
    +# Define the title of the windows spawned by dunst
    +title = Dunst
     
    -  # Define the class of the windows spawned by dunst
    -  class = Dunst
    +# Define the class of the windows spawned by dunst
    +class = Dunst
     
    -  # Print a notification on startup.
    -  # This is mainly for error detection, since dbus (re-)starts dunst
    -  # automatically after a crash.
    -  startup_notification = false
    +# Print a notification on startup.
    +# This is mainly for error detection, since dbus (re-)starts dunst
    +# automatically after a crash.
    +startup_notification = false
     
    @@ -2026,11 +2026,11 @@

    Shortcuts

    -
      [shortcuts]
    -  # Available modifiers are "ctrl", "mod1" (the alt-key), "mod2",
    -  # "mod3" and "mod4" (windows-key).
    -  close = mod1+space
    -  history = mod1+Escape
    +
    [shortcuts]
    +# Available modifiers are "ctrl", "mod1" (the alt-key), "mod2",
    +# "mod3" and "mod4" (windows-key).
    +close = mod1+space
    +history = mod1+Escape
     
    @@ -2040,20 +2040,20 @@

    Urgency

    -
      [urgency_low]
    -  background = "#32302f"
    -  foreground = "#ebdbb2"
    -  timeout = 4
    +
    [urgency_low]
    +background = "#32302f"
    +foreground = "#ebdbb2"
    +timeout = 4
     
    -  [urgency_normal]
    -  background = "#32302f"
    -  foreground = "#ebdbb2"
    -  timeout = 6
    +[urgency_normal]
    +background = "#32302f"
    +foreground = "#ebdbb2"
    +timeout = 6
     
    -  [urgency_critical]
    -  background = "#32302f"
    -  foreground = "#cc241d"
    -  timeout = 0
    +[urgency_critical]
    +background = "#32302f"
    +foreground = "#cc241d"
    +timeout = 0
     
    @@ -2061,7 +2061,7 @@

    Author: Dehaeze Thomas

    -

    Created: 2021-01-03 dim. 22:51

    +

    Created: 2021-01-08 ven. 01:43

    diff --git a/docs/polybar.html b/docs/polybar.html index d5a9fb2..37c736a 100644 --- a/docs/polybar.html +++ b/docs/polybar.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Polybar Configuration @@ -61,12 +61,6 @@
  • Toggle Redshift
  • -
  • NordVPN - -
  • Packages
  • +
  • NordVPN + +
  • Wireguard
    • Wireguard Connection Status
    • @@ -591,13 +591,13 @@ checkmail -q && \

      Unread News Scripts

      -
       news_nb=`newsboat -x print-unread 2>/dev/null | cut -d " " -f1`
      +
      news_nb=`newsboat -x print-unread 2>/dev/null | cut -d " " -f1`
       
      -if [ -z "$news_nb" ] || [ "$news_nb" -eq "0" ]; then
      -   echo "";
      - else
      -   echo "%{F#859900}  $news_nb%{F-}";
      - fi
      + if [ -z "$news_nb" ] || [ "$news_nb" -eq "0" ]; then
      +  echo "";
      +else
      +  echo "%{F#859900}  $news_nb%{F-}";
      +fi
       
      @@ -739,48 +739,6 @@ checkmail -q && \
  • -
    -

    NordVPN

    -
    -
    -
    [module/nordvpn]
    -type = custom/script
    -
    -format-underline = ${colors.bg}
    -click-left = ~/.local/bin/nordvpn-toggle >/dev/null 2>%1 &
    -format = <label>
    -exec = ~/.config/polybar/scripts/nordvpn-status.sh
    -interval = 2
    -
    -
    -
    - -
    -

    Nordvpn Status script

    -
    -
    -
    tmpfile="/tmp/vpnstatus";
    -
    -if [ -f $tmpfile ] && grep -q "on" $tmpfile; then
    -  echo "%{F#859900}%{F-}";
    -else
    -  echo "";
    -fi
    -
    -
    -
    -
    - -
    -

    Nordvpn Toggle

    -
    -

    -The script is accessible here. -

    -
    -
    -
    -

    Packages

    @@ -824,12 +782,13 @@ The script is accessible here.
    dunstify --replace=64654 'Packages ' "Refreshing..."
     
     yay -Sy > /dev/null 2>&1 && \
    -    package_nb=`yay -Qu 2> /dev/null | wc -l`;
    +    package_nb=$(yay -Qu 2> /dev/null | wc -l) || \
    +    package_nb=0
     
     if [ "$package_nb" -eq "0" ]; then
       dunstify --replace=64654 'Packages ' "No upgrade available"
     else
    -  dunstify --replace=64654 'Packages ' "$(package_nb) upgrade(s) available"
    +  dunstify --replace=64654 'Packages ' "$package_nb upgrade(s) available"
     fi
     
    @@ -1095,6 +1054,48 @@ yay -Sy > /dev/null 2>&a
    +
    +

    NordVPN

    +
    +
    +
    [module/nordvpn]
    +type = custom/script
    +
    +format-underline = ${colors.bg}
    +click-left = ~/.local/bin/nordvpn-toggle >/dev/null 2>%1 &
    +format = <label>
    +exec = ~/.config/polybar/scripts/nordvpn-status.sh
    +interval = 2
    +
    +
    +
    + +
    +

    Nordvpn Status script

    +
    +
    +
    tmpfile="/tmp/vpnstatus";
    +
    +if [ -f $tmpfile ] && grep -q "on" $tmpfile; then
    +  echo "%{F#859900}%{F-}";
    +else
    +  echo "";
    +fi
    +
    +
    +
    +
    + +
    +

    Nordvpn Toggle

    +
    +

    +The script is accessible here. +

    +
    +
    +
    +

    Wireguard

    @@ -1219,7 +1220,7 @@ yay -Sy > /dev/null 2>&a

    Author: Dehaeze Thomas

    -

    Created: 2021-01-01 ven. 20:09

    +

    Created: 2021-01-08 ven. 01:43

    diff --git a/docs/qutebrowser.html b/docs/qutebrowser.html index 2f58101..ae165bd 100644 --- a/docs/qutebrowser.html +++ b/docs/qutebrowser.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Qutebrowser Configuration @@ -61,10 +61,10 @@

    Import

    -
      from qutebrowser.config.configfiles import ConfigAPI
    -  from qutebrowser.config.config import ConfigContainer
    +
    from qutebrowser.config.configfiles import ConfigAPI
    +from qutebrowser.config.config import ConfigContainer
     
    -  import sys, os
    +import sys, os
     
    @@ -74,10 +74,10 @@

    General config

    -
      c.aliases = {'w': 'session-save', 'q': 'quit', 'wq': 'quit --save'}
    -  c.auto_save.session = False
    -  c.backend = 'webengine'
    -  c.confirm_quit = ['downloads']
    +
    c.aliases = {'w': 'session-save', 'q': 'quit', 'wq': 'quit --save'}
    +c.auto_save.session = False
    +c.backend = 'webengine'
    +c.confirm_quit = ['downloads']
     
    @@ -87,13 +87,13 @@

    Content

    -
      c.content.autoplay = False
    -  c.content.notifications = False
    -  c.content.geolocation = 'ask'
    -  c.content.javascript.alert = True
    -  c.content.javascript.can_access_clipboard = True
    -  c.content.pdfjs = False
    -  c.content.proxy = 'system'
    +
    c.content.autoplay = False
    +c.content.notifications = False
    +c.content.geolocation = 'ask'
    +c.content.javascript.alert = True
    +c.content.javascript.can_access_clipboard = True
    +c.content.pdfjs = False
    +c.content.proxy = 'system'
     
    @@ -103,7 +103,7 @@

    Editor

    -
      c.editor.command = ['/usr/bin/termite', '--class="Floating"', '-e', 'nvim {}']
    +
    c.editor.command = ['/usr/bin/termite', '--class="Floating"', '-e', 'nvim {}']
     
    @@ -113,12 +113,12 @@

    Downloads

    -
      c.downloads.location.directory = '$HOME/Downloads/'
    -  c.downloads.location.prompt = True
    -  c.downloads.location.remember = True
    -  c.downloads.location.suggestion = 'path'
    -  c.downloads.position = 'bottom'
    -  c.downloads.remove_finished = 10000
    +
    c.downloads.location.directory = '$HOME/Downloads/'
    +c.downloads.location.prompt = True
    +c.downloads.location.remember = True
    +c.downloads.location.suggestion = 'path'
    +c.downloads.position = 'bottom'
    +c.downloads.remove_finished = 10000
     
    @@ -128,7 +128,7 @@

    Colors

    -
      # c.colors.webpage.darkmode.enabled = True
    +
    # c.colors.webpage.darkmode.enabled = True
     
    @@ -138,9 +138,9 @@

    Fonts

    -
      c.fonts.default_family = ["Hack Nerd Font Mono", "DejaVu Sans Mono", "Monaco"]
    -  c.fonts.prompts = '10pt monospace'
    -  c.fonts.statusbar = '10pt monospace'
    +
    c.fonts.default_family = ["Hack Nerd Font Mono", "DejaVu Sans Mono", "Monaco"]
    +c.fonts.prompts = '10pt monospace'
    +c.fonts.statusbar = '10pt monospace'
     
    @@ -150,10 +150,11 @@

    Input

    -
      c.input.insert_mode.auto_enter = True
    -  c.input.insert_mode.auto_leave = True
    -  c.input.insert_mode.auto_load = False
    -  c.input.insert_mode.plugins = True
    +
    c.input.insert_mode.auto_enter = True
    +# Very annoying when automatically leave insert mode
    +c.input.insert_mode.auto_leave = False
    +c.input.insert_mode.auto_load = False
    +c.input.insert_mode.plugins = True
     
    @@ -163,8 +164,8 @@

    New Instance Options

    -
      c.new_instance_open_target = 'tab'
    -  c.new_instance_open_target_window = 'last-focused'
    +
    c.new_instance_open_target = 'tab'
    +c.new_instance_open_target_window = 'last-focused'
     
    @@ -174,7 +175,7 @@

    Spell Check

    -
      c.spellcheck.languages = ['en-US', 'fr-FR']
    +
    c.spellcheck.languages = ['en-US', 'fr-FR']
     
    @@ -184,19 +185,19 @@

    Status Bar

    -
      # Hide the statusbar unless a message is shown.
    -  c.statusbar.position = 'bottom'
    +
    # Hide the statusbar unless a message is shown.
    +c.statusbar.position = 'bottom'
     
    -  # List of widgets displayed in the statusbar.
    -  # Valid values:
    -  #   - url: Current page URL.
    -  #   - scroll: Percentage of the current page position like `10%`.
    -  #   - scroll_raw: Raw percentage of the current page position like `10`.
    -  #   - history: Display an arrow when possible to go back/forward in history.
    -  #   - tabs: Current active tab, e.g. `2`.
    -  #   - keypress: Display pressed keys when composing a vi command.
    -  #   - progress: Progress bar for the current page loading.
    -  c.statusbar.widgets = ['keypress', 'url', 'scroll', 'history', 'progress']
    +# List of widgets displayed in the statusbar.
    +# Valid values:
    +#   - url: Current page URL.
    +#   - scroll: Percentage of the current page position like `10%`.
    +#   - scroll_raw: Raw percentage of the current page position like `10`.
    +#   - history: Display an arrow when possible to go back/forward in history.
    +#   - tabs: Current active tab, e.g. `2`.
    +#   - keypress: Display pressed keys when composing a vi command.
    +#   - progress: Progress bar for the current page loading.
    +c.statusbar.widgets = ['keypress', 'url', 'scroll', 'history', 'progress']
     
    @@ -206,45 +207,45 @@

    Tabs

    -
      # Open new tabs (middleclick/ctrl+click) in the background.
    -  c.tabs.background = True
    +
    # Open new tabs (middleclick/ctrl+click) in the background.
    +c.tabs.background = True
     
    -  # Mouse button with which to close tabs.
    -  c.tabs.close_mouse_button = 'right'
    +# Mouse button with which to close tabs.
    +c.tabs.close_mouse_button = 'right'
     
    -  # How to behave when the last tab is closed.
    -  c.tabs.last_close = 'close'
    +# How to behave when the last tab is closed.
    +c.tabs.last_close = 'close'
     
    -  # Switch between tabs using the mouse wheel.
    -  c.tabs.mousewheel_switching = False
    +# Switch between tabs using the mouse wheel.
    +c.tabs.mousewheel_switching = False
     
    -  # Position of new tabs opened from another tab.
    -  # Valid values:
    -  #   - prev: Before the current tab.
    -  #   - next: After the current tab.
    -  #   - first: At the beginning.
    -  #   - last: At the end.
    -  c.tabs.new_position.related = 'next'
    +# Position of new tabs opened from another tab.
    +# Valid values:
    +#   - prev: Before the current tab.
    +#   - next: After the current tab.
    +#   - first: At the beginning.
    +#   - last: At the end.
    +c.tabs.new_position.related = 'next'
     
    -  # Position of new tabs which aren't opened from another tab.
    -  # Valid values:
    -  #   - prev: Before the current tab.
    -  #   - next: After the current tab.
    -  #   - first: At the beginning.
    -  #   - last: At the end.
    -  c.tabs.new_position.unrelated = 'last'
    +# Position of new tabs which aren't opened from another tab.
    +# Valid values:
    +#   - prev: Before the current tab.
    +#   - next: After the current tab.
    +#   - first: At the beginning.
    +#   - last: At the end.
    +c.tabs.new_position.unrelated = 'last'
     
    -  # Position of the tab bar.
    -  c.tabs.position = 'left'
    +# Position of the tab bar.
    +c.tabs.position = 'left'
     
    -  # Which tab to select when the focused tab is removed.
    -  c.tabs.select_on_remove = 'next'
    +# Which tab to select when the focused tab is removed.
    +c.tabs.select_on_remove = 'next'
     
    -  # Width (in pixels or as percentage of the window) of the tab bar if it's vertical.
    -  c.tabs.width = 30
    +# Width (in pixels or as percentage of the window) of the tab bar if it's vertical.
    +c.tabs.width = 30
     
    -  # Wrap when changing tabs.
    -  c.tabs.wrap = False
    +# Wrap when changing tabs.
    +c.tabs.wrap = False
     
    @@ -254,31 +255,31 @@

    Urls and Search Engines

    -
      c.url.searchengines = {
    -      'DEFAULT': 'https://www.duckduckgo.org/?q={}',
    -      'aw': 'https://wiki.archlinux.org/?search={}',
    -      'wi': 'https://en.wikipedia.org/wiki/Special:Search?search={}',
    -      'go': 'https://www.google.com/search?q={}',
    -      'gc': 'https://scholar.google.fr/scholar?hl=fr&as_sdt=0%2C5&q={}&btnG=',
    -      'gm': 'https://www.google.com/maps/search/{}/',
    -      'yt': 'https://www.youtube.com/results?search_query={}',
    -      'gh': 'https://github.com/search?q={}',
    -      're': 'https://www.reddit.com/search?q={}',
    -      'lb': 'http://gen.lib.rus.ec/search.php?req={}',
    -      'la': 'http://gen.lib.rus.ec/scimag/index.php?s={}',
    -      'sm': 'https://www.openstreetmap.org/search?query={}',
    -      'am': 'https://www.amazon.fr/s?k={}',
    -      'md': 'https://fr.mathworks.com/help/search.html?qdoc={}&submitsearch=',
    -      'js': 'https://developer.mozilla.org/en-US/search?q={}',
    -      'tf': 'https://translate.google.com/#view=home&op=translate&sl=en&tl=fr&text={}',
    -      'te': 'https://translate.google.com/#view=home&op=translate&sl=fr&tl=en&text={}',
    -  }
    +
    c.url.searchengines = {
    +    'DEFAULT': 'https://www.duckduckgo.org/?q={}',
    +    'aw': 'https://wiki.archlinux.org/?search={}',
    +    'wi': 'https://en.wikipedia.org/wiki/Special:Search?search={}',
    +    'go': 'https://www.google.com/search?q={}',
    +    'gc': 'https://scholar.google.fr/scholar?hl=fr&as_sdt=0%2C5&q={}&btnG=',
    +    'gm': 'https://www.google.com/maps/search/{}/',
    +    'yt': 'https://www.youtube.com/results?search_query={}',
    +    'gh': 'https://github.com/search?q={}',
    +    're': 'https://www.reddit.com/search?q={}',
    +    'lb': 'http://gen.lib.rus.ec/search.php?req={}',
    +    'la': 'http://gen.lib.rus.ec/scimag/index.php?s={}',
    +    'sm': 'https://www.openstreetmap.org/search?query={}',
    +    'am': 'https://www.amazon.fr/s?k={}',
    +    'md': 'https://fr.mathworks.com/help/search.html?qdoc={}&submitsearch=',
    +    'js': 'https://developer.mozilla.org/en-US/search?q={}',
    +    'tf': 'https://translate.google.com/#view=home&op=translate&sl=en&tl=fr&text={}',
    +    'te': 'https://translate.google.com/#view=home&op=translate&sl=fr&tl=en&text={}',
    +}
     
    -
      c.url.start_pages = ['https://homer.tdehaeze.xyz/']
    -  c.url.default_page = 'https://homer.tdehaeze.xyz/'
    +
    c.url.start_pages = ['https://homer.tdehaeze.xyz/']
    +c.url.default_page = 'https://homer.tdehaeze.xyz/'
     
    @@ -291,9 +292,9 @@ Zooming

    -
      config.bind('+', 'zoom-in')
    -  config.bind('-', 'zoom-out')
    -  config.bind('=', 'zoom')
    +
    config.bind('+', 'zoom-in')
    +config.bind('-', 'zoom-out')
    +config.bind('=', 'zoom')
     
    @@ -301,8 +302,8 @@ Zooming Inputs blocks

    -
      config.bind(';t', 'hint inputs')
    -  config.bind('gi', 'hint inputs --first')
    +
    config.bind(';t', 'hint inputs')
    +config.bind('gi', 'hint inputs --first')
     
    @@ -310,7 +311,7 @@ Inputs blocks Opening New Window

    -
      config.bind('<Ctrl-N>', 'open -w')
    +
    config.bind('<Ctrl-N>', 'open -w')
     
    @@ -318,8 +319,8 @@ Opening New Window History

    -
      config.bind('H', 'back')
    -  config.bind('L', 'forward')
    +
    config.bind('H', 'back')
    +config.bind('L', 'forward')
     
    @@ -327,12 +328,12 @@ History Move tabs around

    -
      config.bind('d', 'tab-close')
    -  config.bind('<', 'tab-move -')
    -  config.bind('>', 'tab-move +')
    -  config.bind('gO', 'tab-give') # Open current tab in a new window
    -  config.bind('J', 'tab-next')
    -  config.bind('K', 'tab-prev')
    +
    config.bind('d', 'tab-close')
    +config.bind('<', 'tab-move -')
    +config.bind('>', 'tab-move +')
    +config.bind('gO', 'tab-give') # Open current tab in a new window
    +config.bind('J', 'tab-next')
    +config.bind('K', 'tab-prev')
     
    @@ -340,8 +341,8 @@ Move tabs around Bookmarks and Quickmark

    -
      config.bind('M', 'bookmark-add')
    -  config.bind('m', 'quickmark-save')
    +
    config.bind('M', 'bookmark-add')
    +config.bind('m', 'quickmark-save')
     
    @@ -349,8 +350,8 @@ Bookmarks and Quickmark Open New Pages/Tabs

    -
      config.bind('o', 'set-cmd-text -s :open')
    -  config.bind('O', 'set-cmd-text -s :open -t')
    +
    config.bind('o', 'set-cmd-text -s :open')
    +config.bind('O', 'set-cmd-text -s :open -t')
     
    @@ -358,8 +359,8 @@ Open New Pages/Tabs Open new page/tab with clipboard content

    -
      config.bind('pp', 'open -- {clipboard}')
    -  config.bind('pP', 'open -t -- {clipboard}')
    +
    config.bind('pp', 'open -- {clipboard}')
    +config.bind('pP', 'open -t -- {clipboard}')
     
    @@ -367,8 +368,8 @@ Open new page/tab with clipboard content Link Hinting

    -
      config.bind('f', 'hint')
    -  config.bind('F', 'hint all tab')
    +
    config.bind('f', 'hint')
    +config.bind('F', 'hint all tab')
     
    @@ -376,7 +377,7 @@ Link Hinting Yanking url

    -
      config.bind('yy', 'yank')
    +
    config.bind('yy', 'yank')
     
    @@ -384,15 +385,15 @@ Yanking url Go to specific websites

    -
      config.bind('gy', 'open -t https://www.youtube.com/feed/subscriptions')
    -  config.bind('gf', 'open -t https://rss.tdehaeze.xyz/')
    -  config.bind('gr', 'open -t https://www.reddit.com/')
    +
    config.bind('gy', 'open -t https://www.youtube.com/feed/subscriptions')
    +config.bind('gf', 'open -t https://rss.tdehaeze.xyz/')
    +config.bind('gr', 'open -t https://www.reddit.com/')
     
    -  config.bind('gh', 'open -t https://homer.tdehaeze.xyz/')
    +config.bind('gh', 'open -t https://homer.tdehaeze.xyz/')
     
    -  config.bind('gb', 'open -t qute://bookmarks')
    -  config.bind('gH', 'open -t qute://history')
    -  config.bind('gs', 'open -t qute://settings')
    +config.bind('gb', 'open -t qute://bookmarks')
    +config.bind('gH', 'open -t qute://history')
    +config.bind('gs', 'open -t qute://settings')
     
    @@ -405,7 +406,7 @@ Go to specific websites Create a Password for the current website

    -
      config.bind(',P', 'spawn --userscript ~/.config/qutebrowser/userscripts/add-passowrd.sh')
    +
    config.bind(',P', 'spawn --userscript ~/.config/qutebrowser/userscripts/add-passowrd.sh')
     
    @@ -413,7 +414,7 @@ Create a Password for the current website Use Pass to fill password and username (configuration is done in ~/.config/qutebrowser/password_fill_rc)

    -
      config.bind(',p', 'spawn --userscript password_fill')
    +
    config.bind(',p', 'spawn --userscript password_fill')
     
    @@ -421,8 +422,8 @@ Use Pass to fill password and username (configuration is done in ~/.config Open Youtube video using mpv

    -
      config.bind(',m', 'spawn --detach mpv --force-window yes {url}')
    -  config.bind(',M', 'hint links spawn --detach mpv --force-window yes {hint-url}')
    +
    config.bind(',m', 'spawn --detach mpv --force-window yes {url}')
    +config.bind(',M', 'hint links spawn --detach mpv --force-window yes {hint-url}')
     
    @@ -430,8 +431,8 @@ Open Youtube video using mpv Download Youtube video / entire playlist

    -
      config.bind(',v', 'spawn --userscript ~/.config/qutebrowser/userscripts/yt-download.sh {url}')
    -  config.bind(',V', 'hint links spawn --userscript ~/.config/qutebrowser/userscripts/yt-download.sh {hint-url}')
    +
    config.bind(',v', 'spawn --userscript ~/.config/qutebrowser/userscripts/yt-download.sh {url}')
    +config.bind(',V', 'hint links spawn --userscript ~/.config/qutebrowser/userscripts/yt-download.sh {hint-url}')
     
    @@ -439,8 +440,8 @@ Download Youtube video / entire playlist Add page to Bookmarks using buku

    -
      config.bind(',b', 'spawn --userscript ~/.config/qutebrowser/userscripts/buku-add.sh')
    -  config.bind(',B', 'spawn --userscript ~/.config/qutebrowser/userscripts/buku-rofi.sh')
    +
    config.bind(',b', 'spawn --userscript ~/.config/qutebrowser/userscripts/buku-add.sh')
    +config.bind(',B', 'spawn --userscript ~/.config/qutebrowser/userscripts/buku-rofi.sh')
     
    @@ -448,8 +449,8 @@ Add page to Bookmarks using buku Download with aria2c

    -
      config.bind(',d', 'hint links spawn --userscript ~/.config/qutebrowser/userscripts/aria2c-add.sh {hint-url}')
    -  config.bind(',D', 'hint links spawn --userscript ~/.config/qutebrowser/userscripts/aria2c-add-homelab.sh {hint-url}')
    +
    config.bind(',d', 'hint links spawn --userscript ~/.config/qutebrowser/userscripts/aria2c-add.sh {hint-url}')
    +config.bind(',D', 'hint links spawn --userscript ~/.config/qutebrowser/userscripts/aria2c-add-homelab.sh {hint-url}')
     
    @@ -457,7 +458,7 @@ Download with aria2c Open bookmark using buku

    -
      config.bind(',o', 'spawn ~/.local/bin/bukurun')
    +
    config.bind(',o', 'spawn ~/.local/bin/bukurun')
     
    @@ -465,8 +466,8 @@ Open bookmark using buku Org Capture

    -
      config.bind(',r', 'spawn --userscript ~/.config/qutebrowser/userscripts/org-capture.sh')
    -  config.bind(',R', 'hint links userscript ~/.config/qutebrowser/userscripts/org-capture.sh')
    +
    config.bind(',r', 'spawn --userscript ~/.config/qutebrowser/userscripts/org-capture.sh')
    +config.bind(',R', 'hint links userscript ~/.config/qutebrowser/userscripts/org-capture.sh')
     
    @@ -474,8 +475,8 @@ Org Capture Screenshot of webpage to png

    -
      config.bind(',s', 'spawn --userscript ~/.config/qutebrowser/userscripts/html-to-pdf.sh')
    -  config.bind(',S', 'spawn --userscript ~/.config/qutebrowser/userscripts/html-to-png.sh')
    +
    config.bind(',s', 'spawn --userscript ~/.config/qutebrowser/userscripts/html-to-pdf.sh')
    +config.bind(',S', 'spawn --userscript ~/.config/qutebrowser/userscripts/html-to-png.sh')
     
    @@ -483,7 +484,7 @@ Screenshot of webpage to png Download AES video

    -
      config.bind(',E', 'spawn --userscript ~/.config/qutebrowser/userscripts/aes-download.sh')
    +
    config.bind(',E', 'spawn --userscript ~/.config/qutebrowser/userscripts/aes-download.sh')
     
    @@ -491,7 +492,7 @@ Download AES video Download a torrent

    -
      config.bind(',t', 'hint links spawn torrent-add {hint-url}')
    +
    config.bind(',t', 'hint links spawn torrent-add {hint-url}')
     
    @@ -499,7 +500,7 @@ Download a torrent Annotate with Hypothesis

    -
      config.bind(',a', "jseval javascript:(function(){window.hypothesisConfig=function(){return{showHighlights:true,appType:'bookmarklet'};};var d=document,s=d.createElement('script');s.setAttribute('src','https://hypothes.is/embed.js');d.body.appendChild(s)})();")
    +
    config.bind(',a', "jseval javascript:(function(){window.hypothesisConfig=function(){return{showHighlights:true,appType:'bookmarklet'};};var d=document,s=d.createElement('script');s.setAttribute('src','https://hypothes.is/embed.js');d.body.appendChild(s)})();")
     
    @@ -507,7 +508,7 @@ Annotate with Hypothesis See Amazon price history using CamelCamelCamel

    -
      config.bind(',A', ":open -t https://fr.camelcamelcamel.com/search?sq={url}")
    +
    config.bind(',A', ":open -t https://fr.camelcamelcamel.com/search?sq={url}")
     
    @@ -515,7 +516,7 @@ See Amazon price history using CamelCamelCamel Org Roam Entry for the current page

    -
      config.bind(',R', "open javascript:void(location.href='org-protocol://roam-ref?template=r&ref='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title))")
    +
    config.bind(',R', "open javascript:void(location.href='org-protocol://roam-ref?template=r&ref='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title))")
     
    @@ -530,18 +531,18 @@ Org Roam Entry for the current page

    Create a new password

    -
      url=$(echo "$QUTE_URL" | awk -F[/:] '{print $4}' | rofi -p "URL" -dmenu -lines 1)
    -  username=$(echo -e "dehaeze.thomas@gmail.com\nthomas.dehaeze@esrf.fr\ntdehaeze" | rofi -p "Username" -dmenu -lines 5)
    -  password=$(rofi -p "Password" -dmenu -password -lines 1)
    +
    url=$(echo "$QUTE_URL" | awk -F[/:] '{print $4}' | rofi -p "URL" -dmenu -lines 1)
    +username=$(echo -e "dehaeze.thomas@gmail.com\nthomas.dehaeze@esrf.fr\ntdehaeze" | rofi -p "Username" -dmenu -lines 5)
    +password=$(rofi -p "Password" -dmenu -password -lines 1)
     
    -  if [ -z "$url" ] || [ -z "$username" ] || [ -z "$password" ]; then
    -      dunstify --urgency=critical "Pass" "Failed to Add Password"
    -  else
    -      echo -e "$password\nlogin: $username\nurl: $QUTE_URL" > /tmp/add-password.txt
    -      pass insert --multiline "$url/$username" < /tmp/add-password.txt;
    -      rm /tmp/add-password.txt
    -      dunstify "Pass " "Password Added"
    -  fi
    +if [ -z "$url" ] || [ -z "$username" ] || [ -z "$password" ]; then
    +    dunstify --urgency=critical "Pass" "Failed to Add Password"
    +else
    +    echo -e "$password\nlogin: $username\nurl: $QUTE_URL" > /tmp/add-password.txt
    +    pass insert --multiline "$url/$username" < /tmp/add-password.txt;
    +    rm /tmp/add-password.txt
    +    dunstify "Pass " "Password Added"
    +fi
     
    @@ -551,23 +552,23 @@ Org Roam Entry for the current page

    Download Youtube Video

    -
      cd ~/Documents/to-watch/ || exit;
    +
    cd ~/Documents/to-watch/ || exit;
     
    -  if [[ "$1" == *"list"* ]]; then
    -      choice=$(echo -e "Video\nPlaylist" | rofi -dmenu -only-match -i)
    -  fi
    +if [[ "$1" == *"list"* ]]; then
    +    choice=$(echo -e "Video\nPlaylist" | rofi -dmenu -only-match -i)
    +fi
     
    -  if [ -n "$choice" ] && [ "$choice" = "Playlist" ]; then
    -      dunstify --replace=19243 "Youtube " "Downloading Playlist...";
    -      youtube-dl -i -f 'bestvideo[height<=720]+bestaudio/best[height<=720]' "$1" -o "%(playlist_title)s/%(playlist_index)s-%(title)s.%(ext)s" && \
    -          dunstify --replace=19243 "Youtube " "Downloaded" || \
    -          dunstify --replace=19243 --urgency=critical "Youtube " "Failed to download"
    -  else
    -      dunstify --replace=19243 "Youtube " "Downloading Video...";
    -      youtube-dl --no-playlist -f 'bestvideo[height<=720]+bestaudio/best[height<=720]' "$1" && \
    -          dunstify --replace=19243 "Youtube " "Downloaded" || \
    -          dunstify --replace=19243 --urgency=critical "Youtube " "Failed to download"
    -  fi
    +if [ -n "$choice" ] && [ "$choice" = "Playlist" ]; then
    +    dunstify --replace=19243 "Youtube " "Downloading Playlist...";
    +    youtube-dl -i -f 'bestvideo[height<=720]+bestaudio/best[height<=720]' "$1" -o "%(playlist_title)s/%(playlist_index)s-%(title)s.%(ext)s" && \
    +        dunstify --replace=19243 "Youtube " "Downloaded" || \
    +        dunstify --replace=19243 --urgency=critical "Youtube " "Failed to download"
    +else
    +    dunstify --replace=19243 "Youtube " "Downloading Video...";
    +    youtube-dl --no-playlist -f 'bestvideo[height<=720]+bestaudio/best[height<=720]' "$1" && \
    +        dunstify --replace=19243 "Youtube " "Downloaded" || \
    +        dunstify --replace=19243 --urgency=critical "Youtube " "Failed to download"
    +fi
     
    @@ -577,25 +578,25 @@ Org Roam Entry for the current page

    Password_fill_rc

    -
      # Show all password fields in the menu
    -  query_entries() {
    -      # safe queried url for choose_entry
    -      # the subdomains are removed
    -      export queried_url=$(expr match ".$1" '.*\.\(.*\..*\)')
    -      mapfile -t files < <(find -L "$PREFIX" -iname '*.gpg' -printf '%P\n' |sed 's,\.gpg$,,')
    -  }
    +
    # Show all password fields in the menu
    +query_entries() {
    +    # safe queried url for choose_entry
    +    # the subdomains are removed
    +    export queried_url=$(expr match ".$1" '.*\.\(.*\..*\)')
    +    mapfile -t files < <(find -L "$PREFIX" -iname '*.gpg' -printf '%P\n' |sed 's,\.gpg$,,')
    +}
     
    -  # Even if there is only one entry, always show a menu
    -  # for user confirmation.
    -  choose_entry() {
    -      MENU_COMMAND=(
    -          rofi -dmenu
    -              -p "qutebrowser> "
    -              -filter "$queried_url"
    -              -mesg $'Pick a password entry for <b>'"${QUTE_URL//&/&amp;}"'</b>'
    -      )
    -      file=$( printf "%s\n" "${files[@]}" | "${MENU_COMMAND[@]}" )
    -  }
    +# Even if there is only one entry, always show a menu
    +# for user confirmation.
    +choose_entry() {
    +    MENU_COMMAND=(
    +        rofi -dmenu
    +            -p "qutebrowser> "
    +            -filter "$queried_url"
    +            -mesg $'Pick a password entry for <b>'"${QUTE_URL//&/&amp;}"'</b>'
    +    )
    +    file=$( printf "%s\n" "${files[@]}" | "${MENU_COMMAND[@]}" )
    +}
     
    @@ -605,18 +606,18 @@ Org Roam Entry for the current page

    Org-Capture

    -
      readonly CAPTURE_SCRIPT=~/.config/qutebrowser/userscripts/org-protocol-capture-html.sh
    +
    readonly CAPTURE_SCRIPT=~/.config/qutebrowser/userscripts/org-protocol-capture-html.sh
     
    -  if [[ "$QUTE_MODE" = "hints" ]]; then
    -      # if we start with hints, we juste want to capture the URL
    -      $CAPTURE_SCRIPT --template "pu" --url "${QUTE_URL}"
    -  elif [[ -n "$QUTE_SELECTED_TEXT" ]]; then
    -      # if text is selected, we want to capture the text
    -      $CAPTURE_SCRIPT --template "pt" --heading "${QUTE_TITLE}" --url "${QUTE_URL}" "${QUTE_SELECTED_TEXT}"
    -  else
    -      # if no text is selected, we want to capture the url
    -      $CAPTURE_SCRIPT --template "pu" --heading "${QUTE_TITLE}" --url "${QUTE_URL}"
    -  fi
    +if [[ "$QUTE_MODE" = "hints" ]]; then
    +    # if we start with hints, we juste want to capture the URL
    +    $CAPTURE_SCRIPT --template "pu" --url "${QUTE_URL}"
    +elif [[ -n "$QUTE_SELECTED_TEXT" ]]; then
    +    # if text is selected, we want to capture the text
    +    $CAPTURE_SCRIPT --template "pt" --heading "${QUTE_TITLE}" --url "${QUTE_URL}" "${QUTE_SELECTED_TEXT}"
    +else
    +    # if no text is selected, we want to capture the url
    +    $CAPTURE_SCRIPT --template "pu" --heading "${QUTE_TITLE}" --url "${QUTE_URL}"
    +fi
     
    @@ -629,9 +630,9 @@ Org Roam Entry for the current page Defaults

    -
      heading="link"
    -  template="pu"
    -  url="https://google.com/"
    +
    heading="link"
    +template="pu"
    +url="https://google.com/"
     
    @@ -639,33 +640,33 @@ Defaults Functions

    -
      function debug {
    -      if [[ -n $debug ]]
    -      then
    -          function debug {
    -              echo "DEBUG: $@" >&2
    -          }
    -          debug "$@"
    -      else
    -          function debug {
    -              true
    -          }
    -      fi
    -  }
    -  function die {
    -      echo "$@" >&2
    -      exit 1
    -  }
    -  function urlencode {
    -      python -c "
    -  from __future__ import print_function
    -  try:
    -      from urllib import quote  # Python 2
    -  except ImportError:
    -      from urllib.parse import quote  # Python 3
    -  import sys
    -  print(quote(sys.stdin.read()[:-1], safe=''))"
    -  }
    +
    function debug {
    +    if [[ -n $debug ]]
    +    then
    +        function debug {
    +            echo "DEBUG: $@" >&2
    +        }
    +        debug "$@"
    +    else
    +        function debug {
    +            true
    +        }
    +    fi
    +}
    +function die {
    +    echo "$@" >&2
    +    exit 1
    +}
    +function urlencode {
    +    python -c "
    +from __future__ import print_function
    +try:
    +    from urllib import quote  # Python 2
    +except ImportError:
    +    from urllib.parse import quote  # Python 3
    +import sys
    +print(quote(sys.stdin.read()[:-1], safe=''))"
    +}
     
    @@ -673,22 +674,22 @@ Functions Documentation

    -
      function usage {
    -      cat <<EOF
    -  $0 [OPTIONS] [HTML]
    -  html | $0 [OPTIONS]
    -  Send HTML to Emacs through org-protocol, passing it through Pandoc to
    -  convert HTML to Org-mode.  HTML may be passed as an argument or
    -  through STDIN.  If only URL is given, it will be downloaded and its
    -  contents used.
    -  Options:
    -      -h, --heading HEADING     Heading
    -      -t, --template TEMPLATE   org-capture template key (default: pu)
    -      -u, --url URL             URL
    -      --debug  Print debug info
    -      --help   I need somebody!
    -  EOF
    -  }
    +
    function usage {
    +    cat <<EOF
    +$0 [OPTIONS] [HTML]
    +html | $0 [OPTIONS]
    +Send HTML to Emacs through org-protocol, passing it through Pandoc to
    +convert HTML to Org-mode.  HTML may be passed as an argument or
    +through STDIN.  If only URL is given, it will be downloaded and its
    +contents used.
    +Options:
    +    -h, --heading HEADING     Heading
    +    -t, --template TEMPLATE   org-capture template key (default: pu)
    +    -u, --url URL             URL
    +    --debug  Print debug info
    +    --help   I need somebody!
    +EOF
    +}
     
    @@ -696,46 +697,46 @@ Documentation Arguments

    -
      args=$(getopt -n "$0" -o dh:rt:u: -l debug,help,heading:,template:,url: -- "$@") \
    -      || die "Unable to parse args.  Is getopt installed?"
    -  eval set -- "$args"
    +
    args=$(getopt -n "$0" -o dh:rt:u: -l debug,help,heading:,template:,url: -- "$@") \
    +    || die "Unable to parse args.  Is getopt installed?"
    +eval set -- "$args"
     
    -  while true
    -  do
    -      case "$1" in
    -          -d|--debug)
    -              debug=true
    -              debug "Debugging on"
    -              ;;
    -          --help)
    -              usage
    -              exit
    -              ;;
    -          -h|--heading)
    -              shift
    -              heading="$1"
    -              ;;
    -          -t|--template)
    -              shift
    -              template="$1"
    -              ;;
    -          -u|--url)
    -              shift
    -              url="$1"
    -              ;;
    -          --)
    -              # Remaining args
    -              shift
    -              rest=("$@")
    -              break
    -              ;;
    -      esac
    +while true
    +do
    +    case "$1" in
    +        -d|--debug)
    +            debug=true
    +            debug "Debugging on"
    +            ;;
    +        --help)
    +            usage
    +            exit
    +            ;;
    +        -h|--heading)
    +            shift
    +            heading="$1"
    +            ;;
    +        -t|--template)
    +            shift
    +            template="$1"
    +            ;;
    +        -u|--url)
    +            shift
    +            url="$1"
    +            ;;
    +        --)
    +            # Remaining args
    +            shift
    +            rest=("$@")
    +            break
    +            ;;
    +    esac
     
    -      shift
    -  done
    +    shift
    +done
     
    -  debug "ARGS: $args"
    -  debug "Remaining args: ${rest[@]}"
    +debug "ARGS: $args"
    +debug "Remaining args: ${rest[@]}"
     
    @@ -743,12 +744,12 @@ Arguments Get HTML

    -
      if [[ -n $@ ]]
    -  then
    -      debug "Text from args"
    +
    if [[ -n $@ ]]
    +then
    +    debug "Text from args"
     
    -      body="$@"
    -  fi
    +    body="$@"
    +fi
     
    @@ -756,9 +757,9 @@ Get HTML URL-encode

    -
      heading=$(urlencode <<<"$heading") || die "Unable to urlencode heading."
    -  url=$(urlencode <<<"$url") || die "Unable to urlencode URL."
    -  body=$(urlencode <<<"$body") || die "Unable to urlencode text."
    +
    heading=$(urlencode <<<"$heading") || die "Unable to urlencode heading."
    +url=$(urlencode <<<"$url") || die "Unable to urlencode URL."
    +body=$(urlencode <<<"$body") || die "Unable to urlencode text."
     
    @@ -766,7 +767,7 @@ URL-encode Send to Emacs

    -
      emacsclient "org-protocol://capture?template=$template&url=$url&title=$heading&body=$body"
    +
    emacsclient "org-protocol://capture?template=$template&url=$url&title=$heading&body=$body"
     
    @@ -776,12 +777,12 @@ Send to Emacs

    Add Url to Buku using Rofi

    -
      title=$(echo "$QUTE_TITLE" | rofi -p "Title" -dmenu -lines 1)
    -  tags=$(buku -t --nc --np | sed -e 's/\s*[[:digit:]]*\.\s*\(.*\)\s*([[:digit:]]*)\s*/\1/' -e '/^\s*$/d' | sort | uniq | rofi -multi-select -p "Tags" -dmenu | tr "\n" "," | sed 's/\s*,\s*$//')
    +
    title=$(echo "$QUTE_TITLE" | rofi -p "Title" -dmenu -lines 1)
    +tags=$(buku -t --nc --np | sed -e 's/\s*[[:digit:]]*\.\s*\(.*\)\s*([[:digit:]]*)\s*/\1/' -e '/^\s*$/d' | sort | uniq | rofi -multi-select -p "Tags" -dmenu | tr "\n" "," | sed 's/\s*,\s*$//')
     
    -  buku --add "$QUTE_URL" --tag "$tags" --title "$title" && \
    -      dunstify "Buku" "Bookmark Added" || \
    -      dunstify --urgency=critical "Buku" " Bookmark Added"
    +buku --add "$QUTE_URL" --tag "$tags" --title "$title" && \
    +    dunstify "Buku" "Bookmark Added" || \
    +    dunstify --urgency=critical "Buku" " Bookmark Added"
     
    @@ -791,8 +792,8 @@ Send to Emacs

    Add Url to Buku without asking for information

    -
      buku --add $QUTE_URL --title "$QUTE_TITLE" && \
    -    dunstify "Buku" "📑 Bookmark Added"
    +
    buku --add $QUTE_URL --title "$QUTE_TITLE" && \
    +  dunstify "Buku" "📑 Bookmark Added"
     
    @@ -802,9 +803,9 @@ Send to Emacs

    Download with aria2c

    -
      aria2p add "$1" && \
    -    dunstify "Aria2" "Download Started" || \
    -    dunstify "Aria2" "Error"
    +
    aria2p add "$1" && \
    +  dunstify "Aria2" "Download Started" || \
    +  dunstify "Aria2" "Error"
     
    @@ -814,9 +815,9 @@ Send to Emacs

    Download with aria2c on the Homelab

    -
      dl-add $(echo "$1" | sed 's/\&af=.*$//g') && \
    -    dunstify "Aria2" "Download Started" || \
    -    dunstify "Aria2" "Error"
    +
    dl-add $(echo "$1" | sed 's/\&af=.*$//g') && \
    +  dunstify "Aria2" "Download Started" || \
    +  dunstify "Aria2" "Error"
     
    @@ -826,13 +827,13 @@ Send to Emacs

    Screenshot

    -
      filename=$(rofi -p "filename" -dmenu -lines 1)
    +
    filename=$(rofi -p "filename" -dmenu -lines 1)
     
    -  if [ -n "filename" ]; then
    -      cd ~/Pictures/ && \
    -          firefox-developer-edition -P default -headless --screenshot "$filename.png" "$QUTE_URL" && \
    -          dunstify "Screenshot" "Taken successfully"
    -  fi
    +if [ -n "filename" ]; then
    +    cd ~/Pictures/ && \
    +        firefox-developer-edition -P default -headless --screenshot "$filename.png" "$QUTE_URL" && \
    +        dunstify "Screenshot" "Taken successfully"
    +fi
     
    @@ -842,13 +843,13 @@ Send to Emacs

    Save to PDF

    -
      filename=$(rofi -p "filename" -dmenu -lines 1)
    +
    filename=$(rofi -p "filename" -dmenu -lines 1)
     
    -  if [ -n "$filename" ]; then
    -      cd ~/Pictures/ && \
    -          percollate pdf --css "@page { size: A4 portrait }" --output "$filename.pdf" "$QUTE_URL" && \
    -          dunstify "Percollate" "Successfully saved to pdf"
    -  fi
    +if [ -n "$filename" ]; then
    +    cd ~/Pictures/ && \
    +        percollate pdf --css "@page { size: A4 portrait }" --output "$filename.pdf" "$QUTE_URL" && \
    +        dunstify "Percollate" "Successfully saved to pdf"
    +fi
     
    @@ -858,16 +859,16 @@ Send to Emacs

    Download AES video

    -
      m3u8_path=`curl -L -s "$QUTE_URL" | pcregrep -o1 "file = \"\/(.*aes.*mp4)\""`
    +
    m3u8_path=`curl -L -s "$QUTE_URL" | pcregrep -o1 "file = \"\/(.*aes.*mp4)\""`
     
    -  if [ -z "$m3u8_path" ]; then
    -      dunstify --urgency=critical "Qutebrowser" "No m3u8 playlist found"
    -  else
    -      dunstify "Qutebrowser" "Downloads..." && \
    -          cd ~/Downloads/ && \
    -          ffmpeg -user_agent "Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0" -referer "$QUTE_URL" -i "https://cdn2.digitellinc.com/play/_definst_/mp4:$m3u8_path/playlist.m3u8" -c copy "$QUTE_TITLE.mp4" && \
    -          dunstify "Qutebrowser" "$QUTE_TITLE Downloaded"
    -  fi
    +if [ -z "$m3u8_path" ]; then
    +    dunstify --urgency=critical "Qutebrowser" "No m3u8 playlist found"
    +else
    +    dunstify "Qutebrowser" "Downloads..." && \
    +        cd ~/Downloads/ && \
    +        ffmpeg -user_agent "Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0" -referer "$QUTE_URL" -i "https://cdn2.digitellinc.com/play/_definst_/mp4:$m3u8_path/playlist.m3u8" -c copy "$QUTE_TITLE.mp4" && \
    +        dunstify "Qutebrowser" "$QUTE_TITLE Downloaded"
    +fi
     
    @@ -876,7 +877,7 @@ Send to Emacs

    Author: Dehaeze Thomas

    -

    Created: 2021-01-03 dim. 22:19

    +

    Created: 2021-01-08 ven. 01:40

    diff --git a/docs/rofi.html b/docs/rofi.html index 179d3cf..191e2ab 100644 --- a/docs/rofi.html +++ b/docs/rofi.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Rofi Configuration @@ -32,52 +32,52 @@

    Rofi

    -
      configuration {
    -  modi: "window,run,ssh";
    -  width: 50;
    -  lines: 15;
    -  columns: 1;
    -  font: "Hack Nerd Font 12";
    -  fixed-num-lines: true;
    -  show-icons: false;
    -  terminal: "rofi-sensible-terminal";
    -  sort: false;
    -  case-sensitive: false;
    -  cycle: true;
    -  sidebar-mode: false;
    -  auto-select: false;
    -  combi-modi: "window,run";
    -  matching: "normal";
    -  line-margin: 2;
    -  line-padding: 1;
    -  separator-style: "dash";
    -  hide-scrollbar: true;
    -  fullscreen: false;
    -  dpi: -1;
    -  show-match: true;
    -  theme: "gruvbox-dark-soft";
    -  kb-move-front: "Control+a";
    -  kb-move-end: "Control+e";
    -  kb-move-word-back: "Alt+b,Control+Left";
    -  kb-move-word-forward: "Alt+f,Control+Right";
    -  kb-move-char-back: "Left,Control+b";
    -  kb-move-char-forward: "Right,Control+f";
    -  kb-remove-char-forward: "Delete,Control+d";
    -  kb-remove-char-back: "BackSpace,Shift+BackSpace";
    -  kb-remove-to-eol: "Control+k";
    -  kb-remove-to-sol: "Control+u";
    -  kb-accept-entry: "Control+j,Return,KP_Enter";
    -  kb-accept-custom: "Control+Return";
    -  kb-accept-alt: "Shift+Return";
    -  kb-delete-entry: "Shift+Delete";
    -  kb-row-up: "Up,Control+p";
    -  kb-row-down: "Down,Control+n";
    -  kb-row-tab: "Tab";
    -  kb-row-first: "Home,KP_Home";
    -  kb-row-last: "End,KP_End";
    -  kb-row-select: "Control+space";
    -  kb-cancel: "Escape,Control+g";
    -  }
    +
    configuration {
    +modi: "window,run,ssh";
    +width: 50;
    +lines: 15;
    +columns: 1;
    +font: "Hack Nerd Font 12";
    +fixed-num-lines: true;
    +show-icons: false;
    +terminal: "rofi-sensible-terminal";
    +sort: false;
    +case-sensitive: false;
    +cycle: true;
    +sidebar-mode: false;
    +auto-select: false;
    +combi-modi: "window,run";
    +matching: "normal";
    +line-margin: 2;
    +line-padding: 1;
    +separator-style: "dash";
    +hide-scrollbar: true;
    +fullscreen: false;
    +dpi: -1;
    +show-match: true;
    +theme: "gruvbox-dark-soft";
    +kb-move-front: "Control+a";
    +kb-move-end: "Control+e";
    +kb-move-word-back: "Alt+b,Control+Left";
    +kb-move-word-forward: "Alt+f,Control+Right";
    +kb-move-char-back: "Left,Control+b";
    +kb-move-char-forward: "Right,Control+f";
    +kb-remove-char-forward: "Delete,Control+d";
    +kb-remove-char-back: "BackSpace,Shift+BackSpace";
    +kb-remove-to-eol: "Control+k";
    +kb-remove-to-sol: "Control+u";
    +kb-accept-entry: "Control+j,Return,KP_Enter";
    +kb-accept-custom: "Control+Return";
    +kb-accept-alt: "Shift+Return";
    +kb-delete-entry: "Shift+Delete";
    +kb-row-up: "Up,Control+p";
    +kb-row-down: "Down,Control+n";
    +kb-row-tab: "Tab";
    +kb-row-first: "Home,KP_Home";
    +kb-row-last: "End,KP_End";
    +kb-row-select: "Control+space";
    +kb-cancel: "Escape,Control+g";
    +}
     
    @@ -87,185 +87,185 @@

    Theme

    -
      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";
    -  }
    +
    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";
    +}
     
    -  * {
    -  ////  COLORS  ////
    +* {
    +////    COLORS  ////
     
    -  ////  uncomment to match bspwm edition theme
    -  background:                  #292f34FF;
    -  background-color:            #292f3400;
    -  foreground:                  #F6F9FFFF;
    -  selected:                    #1ABB9BFF;
    -  selected-foreground:         @foreground;
    +////    uncomment to match bspwm edition theme
    +background:                  #292f34FF;
    +background-color:            #292f3400;
    +foreground:                  #F6F9FFFF;
    +selected:                    #1ABB9BFF;
    +selected-foreground:         @foreground;
     
    -  ////   uncomment to match Adapta Nokto theme
    -  //    background:                  #222D32E8;
    -  //    background-color:            #00000000;
    -  //    foreground:                  #CFD8DCFF;
    -  //    selected:                    #00BCD4FF;
    -  //    selected-foreground:         #FFFFFFFF;
    +////     uncomment to match Adapta Nokto theme
    +//  background:                  #222D32E8;
    +//  background-color:            #00000000;
    +//  foreground:                  #CFD8DCFF;
    +//  selected:                    #00BCD4FF;
    +//  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;
    +////    common - active and urgent
    +active-background:           #3A464BFF;
    +urgent-background:           #800000FF;
    +urgent-foreground:           @foreground;
    +selected-urgent-background:  @urgent-foreground;
    +selected-urgent-foreground:  @urgent-background;
     
    -  ////  TEXT    ////
    +////    TEXT    ////
     
    -  font:             "xos4 Terminus 18px";
    -  text-color:           @foreground;
    +font:               "xos4 Terminus 18px";
    +text-color:         @foreground;
     
    -  ////  PADDING ETC ////
    +////    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    ////
    +////    SIZE    ////
     
    -  windowwidth:  40ch;
    -  buttonwidth:  18ch;
    -  lines:            12;
    -  fixed-height: false;
    +windowwidth:    40ch;
    +buttonwidth:    18ch;
    +lines:          12;
    +fixed-height:   false;
     
    -  ////  POSITION    ////
    +////    POSITION    ////
     
    -  location:     northwest;
    -  anchor:           northwest;
    -  x-offset:     0px;
    -  y-offset:     24px;
    +location:       northwest;
    +anchor:         northwest;
    +x-offset:       0px;
    +y-offset:       24px;
     
    -  ////  LAYOUT  ////
    +////    LAYOUT  ////
     
    -  scrollbar:        true;
    +scrollbar:      true;
     
    -  ////  uncomment to get submenu-like style
    -  menustyle:        [ sb-mainbox ];
    -  buttonpadding:    2px 1ch;
    -  button-bg:        @background;
    -  dynamic:      true;
    +////    uncomment to get submenu-like style
    +menustyle:      [ sb-mainbox ];
    +buttonpadding:  2px 1ch;
    +button-bg:      @background;
    +dynamic:        true;
     
    -  ////  uncomment to get tabs-like style
    -  //    menustyle:      [ tb-mainbox ];
    -  //    buttonpadding:  14px 1ch;
    -  //    dynamic:        false;
    -  }
    -  //////////////////////////////////////////
    -  window {
    -  width:            @windowwidth;
    -  children:     @menustyle;
    -  }
    -  //submenu-style
    -  sb-mainbox {
    -  orientation:  horizontal;
    -  children:     [ sidebar, vertibox ];
    -  }
    -  //tabs-style
    -  tb-mainbox {
    -  orientation:  vertical;
    -  children:     [ inputbar, horibox ];
    -  background-color: @background;
    -  }
    -  //desktop-submenu
    -  dt-mainbox {
    -  orientation:  vertical;
    -  children:     [ boxdummy, sb-mainbox ];
    -  }
    -  horibox {
    -  orientation:  horizontal;
    -  children:     [ listview, sidebar ];
    -  }
    -  sidebar {
    -  orientation:  vertical;
    -  }
    -  button {
    -  horizontal-align: 0;
    -  padding:      @buttonpadding;
    -  width:            @buttonwidth;
    -  background-color: @button-bg;
    -  expand:           false;
    -  }
    -  vertibox {
    -  orientation:  vertical;
    -  children:     [ inputbar, listview ];
    -  background-color: @background;
    -  }
    -  prompt {
    -  enabled:      false;
    -  }
    -  listview {
    -  margin:           @listmargin;
    -  }
    -  scrollbar {
    -  handle-width: 0.5ch;
    -  handle-color: @selected;
    -  }
    -  boxdummy {
    -  enabled:      false;
    -  orientation:  vertical;
    -  expand:           false;
    -  children:     [ textboxdummy ];
    -  }
    -  textboxdummy {
    -  str:          " ";
    -  }
    -  element, inputbar, textboxdummy {
    -  padding:      @elementpadding;
    -  margin:           @elementmargin;
    -  width:            @elementwidth;
    -  }
    -  element.normal.active,
    -  element.alternate.active {
    -  background-color: @active-background;
    -  text-color:           @selected-foreground;
    -  }
    -  element.selected,
    -  button.selected {
    -  background-color: @selected;
    -  text-color:           @selected-foreground;
    -  }
    -  element.normal.urgent,
    -  element.alternate.urgent {
    -  background-color: @urgent-background;
    -  text-color:           @urgent-foreground;
    -  }
    -  element.selected.urgent {
    -  background-color: @selected-urgent-background;
    -  text-color:           @selected-urgent-foreground;
    -  }
    +////    uncomment to get tabs-like style
    +//  menustyle:      [ tb-mainbox ];
    +//  buttonpadding:  14px 1ch;
    +//  dynamic:        false;
    +}
    +//////////////////////////////////////////
    +window {
    +width:          @windowwidth;
    +children:       @menustyle;
    +}
    +//submenu-style
    +sb-mainbox {
    +orientation:    horizontal;
    +children:       [ sidebar, vertibox ];
    +}
    +//tabs-style
    +tb-mainbox {
    +orientation:    vertical;
    +children:       [ inputbar, horibox ];
    +background-color:   @background;
    +}
    +//desktop-submenu
    +dt-mainbox {
    +orientation:    vertical;
    +children:       [ boxdummy, sb-mainbox ];
    +}
    +horibox {
    +orientation:    horizontal;
    +children:       [ listview, sidebar ];
    +}
    +sidebar {
    +orientation:    vertical;
    +}
    +button {
    +horizontal-align:   0;
    +padding:        @buttonpadding;
    +width:          @buttonwidth;
    +background-color:   @button-bg;
    +expand:         false;
    +}
    +vertibox {
    +orientation:    vertical;
    +children:       [ inputbar, listview ];
    +background-color:   @background;
    +}
    +prompt {
    +enabled:        false;
    +}
    +listview {
    +margin:         @listmargin;
    +}
    +scrollbar {
    +handle-width:   0.5ch;
    +handle-color:   @selected;
    +}
    +boxdummy {
    +enabled:        false;
    +orientation:    vertical;
    +expand:         false;
    +children:       [ textboxdummy ];
    +}
    +textboxdummy {
    +str:            " ";
    +}
    +element, inputbar, textboxdummy {
    +padding:        @elementpadding;
    +margin:         @elementmargin;
    +width:          @elementwidth;
    +}
    +element.normal.active,
    +element.alternate.active {
    +background-color:   @active-background;
    +text-color:         @selected-foreground;
    +}
    +element.selected,
    +button.selected {
    +background-color:   @selected;
    +text-color:         @selected-foreground;
    +}
    +element.normal.urgent,
    +element.alternate.urgent {
    +background-color:   @urgent-background;
    +text-color:         @urgent-foreground;
    +}
    +element.selected.urgent {
    +background-color:   @selected-urgent-background;
    +text-color:         @selected-urgent-foreground;
    +}
     
    @@ -273,7 +273,7 @@

    Author: Dehaeze Thomas

    -

    Created: 2021-01-03 dim. 22:25

    +

    Created: 2021-01-08 ven. 01:43

    diff --git a/docs/systemd.html b/docs/systemd.html index ad1059b..a703b0b 100644 --- a/docs/systemd.html +++ b/docs/systemd.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + <code>systemd</code> services and timers @@ -24,45 +24,50 @@ @@ -76,9 +81,9 @@

    bukugit - Automatic commit and push new bookmarks

    -
    -

    Service

    -
    +
    +

    Service

    +
    [Unit]
     Description=Sync Bookmarks every day
    @@ -93,9 +98,9 @@
     
    -
    -

    Timer

    -
    +
    +

    Timer

    +
    [Unit]
     Description=Sync All Mails every x hours
    @@ -116,9 +121,9 @@
     
    -
    -

    Script

    -
    +
    +

    Script

    +
    cd ~/.local/share/buku/
     
    @@ -145,9 +150,9 @@
     

    braingit - Automatic commit and push new brain pages

    -
    -

    Service

    -
    +
    +

    Service

    +
    [Unit]
     Description=Sync Brain Website everyday
    @@ -162,9 +167,9 @@
     
    -
    -

    Timer

    -
    +
    +

    Timer

    +
    [Unit]
     Description=Sync Brain Website everyday
    @@ -185,9 +190,9 @@
     
    -
    -

    Script

    -
    +
    +

    Script

    +
    cd ~/Cloud/brain-website/
     
    @@ -207,9 +212,9 @@
     

    checkmail - Check new mails

    -
    -

    Service

    -
    +
    +

    Service

    +
    [Unit]
     Description=Check new mails
    @@ -224,9 +229,9 @@
     
    -
    -

    Timer

    -
    +
    +

    Timer

    +
    [Unit]
     Description=Check Mail every x minutes
    @@ -250,9 +255,9 @@
     
    -
    -

    Script

    -
    +
    +

    Script

    +
    while [ -n "$1" ]; do # while loop starts
         case "$1" in
    @@ -317,9 +322,9 @@ mbsync $opt_all $syncmail - Synchronize all mails
     
    -
    -

    Service

    -
    +
    +

    Service

    +
    [Unit]
     Description=Sync all mails
    @@ -334,9 +339,9 @@ mbsync $opt_all $
    -

    Timer

    -
    +
    +

    Timer

    +
    [Unit]
     Description=Sync All Mails every x hours
    @@ -365,9 +370,9 @@ mbsync $opt_all $vdirsyncer - Synchronize calendar and contacts
     
    -
    -

    Service

    -
    +
    +

    Service

    +
    [Unit]
     Description=Synchronize calendars and contacts
    @@ -383,9 +388,9 @@ mbsync $opt_all $
    -

    Timer

    -
    +
    +

    Timer

    +
    [Unit]
     Description=Synchronize vdirs
    @@ -407,9 +412,9 @@ mbsync $opt_all $ssh-agent - SSH Agent
     
    -
    -

    Service

    -
    +
    +

    Service

    +
    [Unit]
     Description=SSH key agent
    @@ -431,9 +436,9 @@ mbsync $opt_all $powertop - Powertop
     
    -
    -

    Service

    -
    +
    +

    Service

    +
    [Unit]
     Description=Powertop tunings
    @@ -449,10 +454,38 @@ mbsync $opt_all $
    +

    emacs - Emacs

    +
    +
    +
    +

    Service

    +
    +
    +
    [Unit]
    +Description=Emacs text editor
    +Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/
    +
    +[Service]
    +Type=simple
    +ExecStart=/usr/bin/emacs --fg-daemon
    +ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)"
    +Environment=SSH_AUTH_SOCK=%t/keyring/ssh
    +Restart=on-failure
    +
    +[Install]
    +WantedBy=default.target
    +
    +
    +
    +
    +

    Author: Dehaeze Thomas

    -

    Created: 2021-01-01 ven. 20:09

    +

    Created: 2021-01-08 ven. 01:43

    diff --git a/docs/termite.html b/docs/termite.html index 9459b81..9938638 100644 --- a/docs/termite.html +++ b/docs/termite.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Termite Configuration @@ -159,7 +159,7 @@

    Author: Dehaeze Thomas

    -

    Created: 2021-01-01 ven. 20:09

    +

    Created: 2021-01-08 ven. 01:40

    diff --git a/docs/torrent.html b/docs/torrent.html index 2c3a0f1..894678c 100644 --- a/docs/torrent.html +++ b/docs/torrent.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Torrent Configuration @@ -146,7 +146,7 @@

    Author: Dehaeze Thomas

    -

    Created: 2021-01-01 ven. 20:09

    +

    Created: 2021-01-08 ven. 01:43

    diff --git a/docs/video.html b/docs/video.html index f5fd8de..57dc676 100644 --- a/docs/video.html +++ b/docs/video.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + MPV Configuration @@ -22,13 +22,7 @@

    Table of Contents

    @@ -37,122 +31,31 @@

    mpv.conf - MPV Configuration

    -
    - -
    -

    Video settings

    -
    -
    # Start in fullscreen mode by default.
    -#fs=yes
    -
    -# force starting with centered window
    -#geometry=50%:50%
    +
    # When Floating, put MPV on the bottom right corner
    +geometry=99%:98%
     
     # don't allow a new window to have a size larger than 90% of the screen size
    -#autofit-larger=90%x90%
    +autofit-larger=40%x40%
     
    -# Do not close the window on exit.
    -#keep-open=yes
    -
    -# Do not wait with showing the video window until it has loaded. (This will
    -
    -# resize the window once video is loaded. Also always shows a window with
    -# audio.)
    -#force-window=immediate
    -
    -# Disable the On Screen Controller (OSC).
    -#osc=no
    -
    -# Keep the player window on top of all other windows.
    -#ontop=yes
    -
    -# Specify high quality video rendering preset (for --vo=gpu only)
    -# Can cause performance problems with some drivers and GPUs.
    -#profile=gpu-hq
    -
    -# Force video to lock on the display's refresh rate, and change video and audio
    -# speed to some degree to ensure synchronous playback - can cause problems
    -# with some drivers and desktop environments.
    -#video-sync=display-resample
    -
    -# Enable hardware decoding if available. Often, this does not work with all
    -# video outputs, but should work well with default settings on most systems.
    -# If performance or energy usage is an issue, forcing the vdpau or vaapi VOs
    -# may or may not help.
    -#hwdec=auto
    -
    -
    -
    -
    - -
    -

    Audio settings

    -
    -
    -
    # Specify default audio device. You can list devices with: --audio-device=help
    -# The option takes the device string (the stuff between the '...').
    -#audio-device=alsa/default
    -
    -# Do not filter audio to keep pitch when changing playback speed.
    -#audio-pitch-correction=no
    -
    -# Output 5.1 audio natively, and upmix/downmix audio with a different format.
    -#audio-channels=5.1
    -# Disable any automatic remix, _if_ the audio output accepts the audio format.
    -# of the currently played file. See caveats mentioned in the manpage.
    -# (The default is "auto-safe", see manpage.)
    -#audio-channels=auto
    -
    -
    -
    -
    - -
    -

    Other settings

    -
    -
    -
    # Pretend to be a web browser. Might fix playback with some streaming sites,
    -# but also will break with shoutcast streams.
    -#user-agent="Mozilla/5.0"
    -
    -stop-screensaver = "yes"
    +# Do not run the screensaver when playing videos
    +stop-screensaver="yes"
     
    +# Automatically load subtitle file with filename same to the video
     sub-auto=fuzzy
     
    -# cache settings
    -#
    -# Use 150MB input cache by default. The cache is enabled for network streams only.
    -#cache-default=153600
    -#
    -# Use 150MB input cache for everything, even local files.
    -#cache=153600
    -#
    -# Disable the behavior that the player will pause if the cache goes below a
    -# certain fill size.
    -#cache-pause=no
    -#
    -# Read ahead about 5 seconds of audio and video packets.
    -#demuxer-readahead-secs=5.0
    -#
    -# Raise readahead from demuxer-readahead-secs to this value if a cache is active.
    -#cache-secs=50.0
    +# Display French subtitles if available.
    +slang=fr
     
    -# Display English subtitles if available.
    -#slang=en
    +# Play English audio if available, fall back to French otherwise.
    +alang=en,fr
     
    -# Play Finnish audio if available, fall back to English otherwise.
    -#alang=fi,en
    -
    -# Change subtitle encoding. For Arabic subtitles use 'cp1256'.
    -# If the file seems to be valid UTF-8, prefer UTF-8.
    -# (You can add '+' in front of the codepage to force it.)
    -#sub-codepage=cp1256
    +# Do not close mpv at the end of video
    +keep-open=yes
     
    -

    input.conf - MPV Key Bindings

    @@ -364,7 +267,7 @@ Z add sub-delay +0.1 #

    Author: Dehaeze Thomas

    -

    Created: 2021-01-01 ven. 20:09

    +

    Created: 2021-01-08 ven. 01:43

    diff --git a/docs/windows.html b/docs/windows.html index fc42530..9c2469a 100644 --- a/docs/windows.html +++ b/docs/windows.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Windows Config and Install @@ -26,10 +26,10 @@
  • Install Windows10 PRO
  • Install Software using Chocolatey
  • Debloat windows10
  • -
  • SSHFS +
  • SSHFS
  • Software Setup @@ -50,12 +50,12 @@
  • Create bootable USB key using the woeusb utility (https://computingforgeeks.com/create-windows-10-bootable-usb-on-linux/)
  • -
      yay -S woeusb
    +
    yay -S woeusb
     
    -
      sudo woeusb --device file.iso /dev/sdb --target-filesystem ntfs
    +
    sudo woeusb --device file.iso /dev/sdb --target-filesystem ntfs
     
    @@ -72,7 +72,7 @@ First install Chocolatey using a PowerShell as administrator:

    -
      Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
    +
    Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
     
    @@ -80,7 +80,7 @@ First install Chocolatey using a PowerShell as administrator: Then, install all required software using one command:

    -
      choco install -y firefox 7zip.install vlc git.install malwarebytes sumatrapdf.install steam anydesk discord f.lux cmder cura ccleaner neovim
    +
    choco install -y firefox 7zip.install vlc git.install malwarebytes sumatrapdf.install steam anydesk discord f.lux cmder cura ccleaner neovim
     
    @@ -97,15 +97,15 @@ Then, install all required software using one command: Run a PowerShell with administrative rights and run:

    -
      iex ((New-Object System.Net.WebClient).DownloadString('https://git.io/debloat'))
    +
    iex ((New-Object System.Net.WebClient).DownloadString('https://git.io/debloat'))
     
    -
    -

    SSHFS

    -
    +
    +

    SSHFS

    +

    SSH Setup

    @@ -114,7 +114,7 @@ Run a PowerShell with administrative rights and run: Install OpenSSH from chocolatey as the one packed with Windows is quite old (link):

    -
      choco install openssh --package-parameters="/SSHAgentFeature"
    +
    choco install openssh --package-parameters="/SSHAgentFeature"
     
    @@ -122,7 +122,7 @@ Install OpenSSH from chocolatey as the one packed with Windows is q Then generate the keys:

    -
      ssh-keygen
    +
    ssh-keygen
     
    @@ -130,14 +130,14 @@ Then generate the keys: Start the SSH-Agent to automatically unlock the keys:

    -
      # Start the service
    -  Start-Service ssh-agent
    +
    # Start the service
    +Start-Service ssh-agent
     
    -  # This should return a status of Running
    -  Get-Service ssh-agent
    +# This should return a status of Running
    +Get-Service ssh-agent
     
    -  # Now load your key files into ssh-agent
    -  ssh-add
    +# Now load your key files into ssh-agent
    +ssh-add
     
    @@ -145,7 +145,7 @@ Start the SSH-Agent to automatically unlock the keys: Copy the public key with:

    -
      Get-Content -Path $HOME\.ssh\id_rsa.pub | Set-Clipboard
    +
    Get-Content -Path $HOME\.ssh\id_rsa.pub | Set-Clipboard
     
    @@ -159,9 +159,9 @@ Finally, it should be possible to ssh to the server.
    -
    -

    SSHFS

    -
    +
    +

    SSHFS

    +

    Install sshfs-win.

    @@ -170,7 +170,7 @@ Install sshfs-win. Run the Registry Editor, and find Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\WinFsp\Services\sshfs.kr, then edit CommandLine:

    -
      svc %1 %2 %U  -o create_dir_umask=000 -o create_file_umask=111 -o umask=000
    +
    svc %1 %2 %U  -o create_dir_umask=000 -o create_file_umask=111 -o umask=000
     
    @@ -178,7 +178,7 @@ Run the Registry Editor, and find Computer\HKEY_LOCAL_MACHINE Then, to mount the network drive using sshfs:

    -
      net use X: \\sshfs.kr\thomas@192.168.1.150\srv\storage /persistent:yes
    +
    net use X: \\sshfs.kr\thomas@192.168.1.150\srv\storage /persistent:yes
     
    @@ -186,7 +186,7 @@ Then, to mount the network drive using sshfs: To un-mount it:

    -
      net use X: /delete
    +
    net use X: /delete
     
    @@ -226,7 +226,7 @@ Then, Syncthing can be accessed with: http://lo

    Author: Dehaeze Thomas

    -

    Created: 2021-01-03 dim. 22:25

    +

    Created: 2021-01-08 ven. 01:43

    diff --git a/docs/xconfig.html b/docs/xconfig.html index cca1603..66b2c58 100644 --- a/docs/xconfig.html +++ b/docs/xconfig.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Configuration Files related to Xorg @@ -522,7 +522,7 @@ Finally, run SXHKD for the key bindings:

    Author: Dehaeze Thomas

    -

    Created: 2021-01-01 ven. 20:09

    +

    Created: 2021-01-08 ven. 01:43

    diff --git a/docs/zathura.html b/docs/zathura.html index 2bfcb87..d57e512 100644 --- a/docs/zathura.html +++ b/docs/zathura.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Zathura @@ -155,7 +155,7 @@ pdftk $1

    Author: Dehaeze Thomas

    -

    Created: 2021-01-01 ven. 20:09

    +

    Created: 2021-01-08 ven. 01:43

    diff --git a/index.org b/index.org index 608c62e..24ef1d6 100644 --- a/index.org +++ b/index.org @@ -37,4 +37,7 @@ There are Specific configuration files for: - *GUI Toolkit*: [[file:gtk.org][GTK]] - [[file:config.org][Other Configurations]] and some [[file:data.org][data]] -I also have a nice Home-Server which configuration files can be found [[file:nas.org][here]]. +I also have: +- a nice Home-Server ([[file:nas.org][conf]]) +- a Windows PC that I occasionally use ([[file:windows.org][conf]]) +- an Android phone ([[file:android.org][conf]]) diff --git a/install.org b/install.org index 748772b..d4b2a71 100644 --- a/install.org +++ b/install.org @@ -9,7 +9,6 @@ Installation: sudo pacman -S yay #+end_src -#+name: tab:yay_cheatsheet #+caption: =yay= - Cheatsheet | Command | Usage | |---------------------+-----------------------------| @@ -59,7 +58,6 @@ It can be installed like so: Its configuration file is described [[file:termite.org][here]]. -#+name: tab:termite_cheatsheet #+caption: =termite= - Cheatsheet | Command | Usage | |--------------------+-------------------------| @@ -102,7 +100,6 @@ Ressources: - https://github.com/rothgar/awesome-tmux - https://thoughtbot.com/upcase/tmux -#+name: tab:tmux_cheatsheet #+caption: =tmux= - Cheatsheet | Command | Usage | |----------------+-------------------------------| diff --git a/nas.org b/nas.org index 1abd72e..a6ab375 100644 --- a/nas.org +++ b/nas.org @@ -4,7 +4,6 @@ * Installation ** Hardware -#+name: tab:home_server_hardware #+caption: Home Server Hardware | *Part* | *Model* | |-------------+-------------------------------------------------|
    Table 1: Home Server Hardware