Update css/js + few configs
This commit is contained in:
parent
2cfa706a42
commit
85e9caebe4
@ -1,21 +1,5 @@
|
||||
#+TITLE:Desktop file for the applications
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
:END:
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
|
||||
* Mime Applications
|
||||
:PROPERTIES:
|
||||
|
136
bash.org
136
bash.org
@ -1,36 +1,21 @@
|
||||
#+TITLE: Bash Configuration
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
:END:
|
||||
|
||||
* Bashrc
|
||||
* =~/.bashrc=
|
||||
:PROPERTIES:
|
||||
:header-args:bash: :tangle ~/.bashrc
|
||||
:header-args:bash+: :comments both :mkdirp yes
|
||||
:CUSTOM_ID: bashrc
|
||||
:END:
|
||||
|
||||
** What does that do?
|
||||
** If not running interactively, don't do anything
|
||||
#+BEGIN_SRC bash
|
||||
[[ $- != *i* ]] && return
|
||||
[[ $- != *i* ]] && return
|
||||
#+END_SRC
|
||||
|
||||
** Bash Completion
|
||||
#+BEGIN_SRC bash
|
||||
[ -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
|
||||
#+END_SRC
|
||||
|
||||
** FZF
|
||||
@ -38,68 +23,32 @@
|
||||
source /usr/share/fzf/key-bindings.bash
|
||||
#+end_src
|
||||
|
||||
** Ignore case for autocompletion
|
||||
** Ignore case for auto-completion
|
||||
#+BEGIN_SRC bash
|
||||
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"
|
||||
#+END_SRC
|
||||
|
||||
** Use Color
|
||||
#+BEGIN_SRC bash
|
||||
use_color=true
|
||||
alias ls='ls -hN --color=auto --group-directories-first'
|
||||
alias grep='grep --colour=auto'
|
||||
#+END_SRC
|
||||
|
||||
** Set colorful PS1 only on colorful terminals.
|
||||
dircolors --print-database uses its own built-in database instead of using /etc/DIR_COLORS. Try to use the external file first to take advantage of user additions. Use internal bash globbing instead of external grep binary.
|
||||
|
||||
#+BEGIN_SRC bash
|
||||
safe_term=${TERM//[^[:alnum:]]/?} # sanitize TERM
|
||||
match_lhs=""
|
||||
[[ -f ~/.dir_colors ]] && match_lhs="${match_lhs}$(<~/.dir_colors)"
|
||||
[[ -f /etc/DIR_COLORS ]] && match_lhs="${match_lhs}$(</etc/DIR_COLORS)"
|
||||
[[ -z ${match_lhs} ]] \
|
||||
&& type -P dircolors >/dev/null \
|
||||
&& match_lhs=$(dircolors --print-database)
|
||||
[[ $'\n'${match_lhs} == *$'\n'"TERM "${safe_term}* ]] && use_color=true
|
||||
|
||||
if ${use_color} ; then
|
||||
# Enable colors for ls, etc. Prefer ~/.dir_colors #64489
|
||||
if type -P dircolors >/dev/null ; then
|
||||
if [[ -f ~/.dir_colors ]] ; then
|
||||
eval $(dircolors -b ~/.dir_colors)
|
||||
elif [[ -f /etc/DIR_COLORS ]] ; then
|
||||
eval $(dircolors -b /etc/DIR_COLORS)
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
PS1='\[\033[01;31m\][\h\[\033[01;36m\] \W\[\033[01;31m\]]\$\[\033[00m\] '
|
||||
else
|
||||
PS1='\[\033[01;32m\][\u@\h\[\033[01;37m\] \W\[\033[01;32m\]]\$\[\033[00m\] '
|
||||
fi
|
||||
else
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
# show root@ when we don't have colors
|
||||
PS1='\u@\h \W \$ '
|
||||
else
|
||||
PS1='\u@\h \w \$ '
|
||||
fi
|
||||
fi
|
||||
#+END_SRC
|
||||
|
||||
** Some config
|
||||
#+BEGIN_SRC bash
|
||||
# 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
|
||||
|
||||
# Autocomplete sudo commands
|
||||
complete -cf sudo
|
||||
|
||||
# Line wrap on window resize
|
||||
shopt -s checkwinsize
|
||||
|
||||
# Expand Aliases
|
||||
shopt -s expand_aliases
|
||||
|
||||
# Auto "cd" when entering just a path
|
||||
@ -109,7 +58,7 @@ dircolors --print-database uses its own built-in database instead of using /etc/
|
||||
shopt -s histappend
|
||||
#+END_SRC
|
||||
|
||||
** Prompt
|
||||
** Prompt - =PS1=
|
||||
#+BEGIN_SRC bash
|
||||
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)\]"
|
||||
#+END_SRC
|
||||
@ -123,6 +72,8 @@ dircolors --print-database uses its own built-in database instead of using /etc/
|
||||
** Aliases
|
||||
*** Better defaults for some commands
|
||||
#+BEGIN_SRC bash
|
||||
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
|
||||
@ -138,9 +89,7 @@ dircolors --print-database uses its own built-in database instead of using /etc/
|
||||
alias sv='sudo -E nvim'
|
||||
alias g="git"
|
||||
alias m="neomutt"
|
||||
alias y="yadm"
|
||||
alias o="xdg-open"
|
||||
alias x="sxiv -ft *"
|
||||
#+END_SRC
|
||||
|
||||
*** Neovim
|
||||
@ -148,17 +97,6 @@ dircolors --print-database uses its own built-in database instead of using /etc/
|
||||
command -v nvim >/dev/null && alias vim="nvim" vimdiff="nvim -d" # Use neovim for vim if present.
|
||||
#+end_src
|
||||
|
||||
*** Magit
|
||||
#+BEGIN_SRC bash
|
||||
# alias magit="emacsclient -create-frame --alternate-editor=\"\" --eval '(magit-status)'"
|
||||
alias magit="nvim -c MagitOnly"
|
||||
#+END_SRC
|
||||
|
||||
*** Homelab Relative
|
||||
#+begin_src bash
|
||||
alias dlab="aria2p --port 6800 --host http://dl.tdehaeze.xyz --secret $(pass dl.tdehaeze.xyz/tdehaeze | sed -n 1p)"
|
||||
#+end_src
|
||||
|
||||
*** Vim-like
|
||||
#+BEGIN_SRC bash
|
||||
alias :q=exit
|
||||
@ -171,7 +109,7 @@ dircolors --print-database uses its own built-in database instead of using /etc/
|
||||
#+END_SRC
|
||||
|
||||
** Functions
|
||||
*** Display colors
|
||||
*** =colors= - Display colors
|
||||
#+BEGIN_SRC bash
|
||||
colors() {
|
||||
local fgc bgc vals seq0
|
||||
@ -201,7 +139,7 @@ dircolors --print-database uses its own built-in database instead of using /etc/
|
||||
}
|
||||
#+END_SRC
|
||||
|
||||
*** Tree display
|
||||
*** =tre= - Tree display
|
||||
=tre= is a shorthand for =tree= with hidden files and color enabled, ignoring
|
||||
the =.git= directory, listing directories first. The output gets piped into
|
||||
=less= with options to preserve color and line numbers, unless the output is
|
||||
@ -213,14 +151,14 @@ small enough for one screen.
|
||||
}
|
||||
#+END_SRC
|
||||
|
||||
*** Create a new directory and enter it
|
||||
*** =mkd= - Create a new directory and enter it
|
||||
#+BEGIN_SRC bash
|
||||
function mkd() {
|
||||
mkdir -p "$@" && cd "$_";
|
||||
}
|
||||
#+END_SRC
|
||||
|
||||
*** Filesize of directory
|
||||
*** =fs= - Filesize of directory
|
||||
#+BEGIN_SRC bash
|
||||
function fs() {
|
||||
if du -b /dev/null > /dev/null 2>&1; then
|
||||
@ -236,16 +174,17 @@ small enough for one screen.
|
||||
}
|
||||
#+END_SRC
|
||||
|
||||
*** Redirect both standard output and standard error, as well as sending to background
|
||||
*** =nullify= - Redirect both standard output and standard error, as well as sending to background
|
||||
#+BEGIN_SRC bash
|
||||
function nullify() {
|
||||
"$@" >/dev/null 2>&1
|
||||
}
|
||||
#+END_SRC
|
||||
|
||||
*** Send SMS
|
||||
*** =sms= - Send SMS
|
||||
https://doronbehar.com/articles/using-kdeconnect-to-comfortably-send-sms-messages-from-the-shell/#kdeconnects-builtin-sms-interface
|
||||
#+begin_src bash
|
||||
|
||||
#+begin_src bash :tangle no
|
||||
sms(){
|
||||
local args="$@"
|
||||
# local phone_number name phone_type
|
||||
@ -255,14 +194,12 @@ https://doronbehar.com/articles/using-kdeconnect-to-comfortably-send-sms-message
|
||||
echo No recipient was chosen >&2
|
||||
return
|
||||
else
|
||||
# echo "${name}"$'\t'"${phone_number}"$'\t'"${phone_type}" > ${_KDECONNECT_SMS_LAST_RECIPIENT}
|
||||
kdeconnect-cli --send-sms "${args}" --destination "${phone_number}" --device 4de3b5de2264a17c
|
||||
# kdeconnect-cli --device ${_KDECONNECT_DEFAULT_DEVICE} --send-sms "${args}" --destination "${phone_number}" && \
|
||||
# echo sent sms message to ${name} | fribidi
|
||||
fi
|
||||
}
|
||||
|
||||
#+end_src
|
||||
|
||||
** Bash History
|
||||
Undocumented feature which sets the size to "unlimited". http://stackoverflow.com/questions/9457233/unlimited-bash-history
|
||||
|
||||
@ -284,10 +221,11 @@ Force prompt to write history after every command. http://superuser.com/question
|
||||
PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
|
||||
#+END_SRC
|
||||
|
||||
* Bash Profile
|
||||
* =~/.bash_profile=
|
||||
:PROPERTIES:
|
||||
:header-args:bash: :tangle ~/.bash_profile
|
||||
:header-args:bash+: :comments both :mkdirp yes
|
||||
:CUSTOM_ID: bash_profile
|
||||
:END:
|
||||
|
||||
#+BEGIN_SRC bash
|
||||
@ -295,10 +233,11 @@ Force prompt to write history after every command. http://superuser.com/question
|
||||
[[ -f ~/.bashrc ]] && . ~/.bashrc
|
||||
#+END_SRC
|
||||
|
||||
* Profile
|
||||
* =~/.profile=
|
||||
:PROPERTIES:
|
||||
:header-args:bash: :tangle ~/.profile
|
||||
:header-args:bash+: :comments both :mkdirp yes
|
||||
:CUSTOM_ID: profile
|
||||
:END:
|
||||
|
||||
** QT And GTK Themes
|
||||
@ -313,6 +252,7 @@ Force prompt to write history after every command. http://superuser.com/question
|
||||
#+END_SRC
|
||||
|
||||
** Gnome Keyring Daemon
|
||||
Enable the keyring for applications run through the terminal
|
||||
#+begin_src bash
|
||||
if [ -n "$DESKTOP_SESSION" ];then
|
||||
eval $(gnome-keyring-daemon --start)
|
||||
@ -320,7 +260,7 @@ Force prompt to write history after every command. http://superuser.com/question
|
||||
fi
|
||||
#+end_src
|
||||
|
||||
** Default
|
||||
** Export some default applications
|
||||
#+begin_src bash
|
||||
export EDITOR="nvim"
|
||||
export TERMINAL="termite"
|
||||
@ -341,11 +281,6 @@ This is important for termite to work when sshing in remote machines.
|
||||
export XDG_CONFIG_HOME="$HOME/.config"
|
||||
#+end_src
|
||||
|
||||
*** Better yaourt colors
|
||||
#+begin_src bash
|
||||
export YAOURT_COLORS="nb=1:pkg=1:ver=1;32:lver=1;45:installed=1;42:grp=1;34:od=1;41;5:votes=1;44:dsc=0:other=1;35"
|
||||
#+end_src
|
||||
|
||||
*** Use Ripgrep for FZF
|
||||
#+begin_src bash
|
||||
export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"'
|
||||
@ -367,12 +302,16 @@ This is important for termite to work when sshing in remote machines.
|
||||
export BW_SESSION="HH0yycfocRSuGtq/iW1e6v13PQ1sShMXbMhdb/En94S6OcIXFnJlLEyU+dySsmf2YShY4CImoB5FrxgdPsY9Qw=="
|
||||
#+end_src
|
||||
|
||||
*** Python Path
|
||||
#+begin_src bash
|
||||
export PYTHONPATH="${PYTHONPATH}:/usr/lib/python3.9/site-packages/configobj"
|
||||
#+end_src
|
||||
|
||||
** Path
|
||||
#+begin_src bash
|
||||
PATH=$HOME/appimages:$PATH
|
||||
PATH=$HOME/.gem/ruby/2.5.0/bin:$PATH
|
||||
PATH=$GOPATH:$GOPATH/bin:$PATH
|
||||
PATH=~/.local/bin:$PATH
|
||||
PATH=~/.emacs.d/bin:$PATH
|
||||
export PATH
|
||||
#+END_SRC
|
||||
@ -384,10 +323,11 @@ This is important for termite to work when sshing in remote machines.
|
||||
fi
|
||||
#+end_src
|
||||
|
||||
* Input
|
||||
* =~/.inputrc=
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.inputrc
|
||||
:header-args+: :comments both :mkdirp yes
|
||||
:CUSTOM_ID: inputrc
|
||||
:END:
|
||||
|
||||
Completion:
|
||||
|
@ -1,26 +1,14 @@
|
||||
#+TITLE: My own specific binaries
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
|
||||
#+PROPERTY: header-args:bash :comments both :mkdirp yes
|
||||
#+PROPERTY: header-args:bash+ :shebang "#!/usr/bin/env bash"
|
||||
:END:
|
||||
|
||||
* =remote-desktop= - Remote Desktop Connect
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: remote-desktop
|
||||
:END:
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/remote-desktop
|
||||
computer=$(echo -e 'RNICE\nPCMEL1\nPCNASS1\nPCMEG01' | dmenu -p 'Computer:' -l 20);
|
||||
|
||||
@ -47,6 +35,9 @@
|
||||
#+end_src
|
||||
|
||||
* =print-rnice= - Print on Rnice
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: print-rnice
|
||||
:END:
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/print-rnice
|
||||
nbpage=$(echo -e '1\n2\n4' | dmenu -p 'Number of pages per sheet' -l 20);
|
||||
@ -64,6 +55,10 @@
|
||||
#+end_src
|
||||
|
||||
* =tmp14= - Mount/Umount tmp_14_days folder
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: tmp14
|
||||
:END:
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/tmp_14_days
|
||||
if [ $1 == "mount" ]; then
|
||||
if sshfs -o allow_other,default_permissions -p 5022 dehaeze@firewall.esrf.fr:/tmp_14_days/ ~/mnt/ESRF; then
|
||||
@ -82,6 +77,9 @@
|
||||
|
||||
|
||||
* =nas= - Interact with the NAS
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: nas
|
||||
:END:
|
||||
|
||||
As an alternative, =sshfs= can be used:
|
||||
#+begin_src bash :tangle no
|
||||
@ -105,14 +103,30 @@ As an alternative, =sshfs= can be used:
|
||||
#+end_src
|
||||
|
||||
* =torrent-add= - Download Torrent
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: torrent-add
|
||||
:END:
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/torrent-add
|
||||
transmission-remote ***REMOVED***:9091 --auth tdehaeze:$(pass nas/transmission | sed -n 1p) -a $1 && \
|
||||
dunstify 'Torrent' 'Successfully added' || \
|
||||
dunstify 'Torrent' 'Error'
|
||||
#+end_src
|
||||
|
||||
* =dl-add= - Direct Download with Aria2
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: dl-add
|
||||
:END:
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/dl-add
|
||||
aria2p --port 6800 --host http://dl.tdehaeze.xyz --secret $(pass dl.tdehaeze.xyz/tdehaeze | sed -n 1p) add $1
|
||||
#+end_src
|
||||
|
||||
* =note-extract-fig= - Extract Figure from note file
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: note-extract-fig
|
||||
:END:
|
||||
|
||||
Script used to convert a figure drawn on my Boox note2 to a png file that can then be imported into a document.
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/note-extract-fig
|
||||
@ -126,6 +140,10 @@ Script used to convert a figure drawn on my Boox note2 to a png file that can th
|
||||
#+end_src
|
||||
|
||||
* =share= - Share file with self-hosted =transfer.sh=
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: share
|
||||
:END:
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/share
|
||||
if [ $TMUX ]; then
|
||||
tmux split -v -l 1 "curl --progress-bar -F\"file=@$1\" https://file.tdehaeze.xyz/ | xsel -ib && dunstify 'Upload' 'Successful' || dunstify --urgency=critical 'Upload' 'Failed';" && tmux select-pane -U
|
||||
@ -137,6 +155,10 @@ Script used to convert a figure drawn on my Boox note2 to a png file that can th
|
||||
#+end_src
|
||||
|
||||
* =screen-select= - Xrandr pre-defined scripts
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: screen-select
|
||||
:END:
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/screen-select
|
||||
option=$(echo -e "Work\nXPS\nHome" | rofi -i -dmenu)
|
||||
|
||||
@ -148,7 +170,7 @@ Script used to convert a figure drawn on my Boox note2 to a png file that can th
|
||||
xrandr --output eDP1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP1 --off --output DP1-1 --off --output DP1-2 --off --output DP2 --off --output VIRTUAL1 --off
|
||||
;;
|
||||
"Home")
|
||||
xrandr --output eDP1 --off --output DP2-2 --primary --mode 2560x1440 --pos 0x0 --rotate normal --output DP1 --off --output VIRTUAL1 --off
|
||||
xrandr --output eDP1 --off --output DP2-1 --primary --mode 2560x1440 --pos 0x0 --rotate normal --output DP1 --off --output VIRTUAL1 --off
|
||||
;;
|
||||
,*)
|
||||
echo "== ! missing or invalid argument ! =="
|
||||
@ -156,12 +178,16 @@ Script used to convert a figure drawn on my Boox note2 to a png file that can th
|
||||
esac
|
||||
|
||||
setbg && \ # Fix background if screen size/arangement has changed.
|
||||
$HOME/.config/polybar/scripts/launch.sh # restart polybar
|
||||
polybar-msg cmd restart # restart polybar
|
||||
|
||||
exit 0
|
||||
#+end_src
|
||||
|
||||
* =color-picker= - Pick color and copy to clipboard
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: color-picker
|
||||
:END:
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/color-picker
|
||||
xcolor | xsel -b
|
||||
xcolor | tr -d '\n' | xsel -b
|
||||
#+end_src
|
||||
|
526
binaries.org
526
binaries.org
@ -1,109 +1,14 @@
|
||||
#+TITLE: Binaries
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
|
||||
#+PROPERTY: header-args:bash :comments both :mkdirp yes
|
||||
#+PROPERTY: header-args:bash+ :shebang "#!/usr/bin/env bash"
|
||||
:END:
|
||||
|
||||
* =displayselect= - Select Screen
|
||||
Script taken from Luke Smith.
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/displayselect
|
||||
twoscreen() { # If multi-monitor is selected and there are two screens.
|
||||
|
||||
mirror=$(printf "no\\nyes" | dmenu -i -p "Mirror displays?")
|
||||
# Mirror displays using native resolution of external display and a scaled
|
||||
# version for the internal display
|
||||
if [ "$mirror" = "yes" ]; then
|
||||
external=$(echo "$screens" | dmenu -i -p "Optimize resolution for:")
|
||||
internal=$(echo "$screens" | grep -v "$external")
|
||||
|
||||
res_external=$(xrandr --query | sed -n "/^$external/,/\+/p" | \
|
||||
tail -n 1 | awk '{print $1}')
|
||||
res_internal=$(xrandr --query | sed -n "/^$internal/,/\+/p" | \
|
||||
tail -n 1 | awk '{print $1}')
|
||||
|
||||
res_ext_x=$(echo "$res_external" | sed 's/x.*//')
|
||||
res_ext_y=$(echo "$res_external" | sed 's/.*x//')
|
||||
res_int_x=$(echo "$res_internal" | sed 's/x.*//')
|
||||
res_int_y=$(echo "$res_internal" | sed 's/.*x//')
|
||||
|
||||
scale_x=$(echo "$res_ext_x / $res_int_x" | bc -l)
|
||||
scale_y=$(echo "$res_ext_y / $res_int_y" | bc -l)
|
||||
|
||||
xrandr --output "$external" --auto --scale 1.0x1.0 \
|
||||
--output "$internal" --auto --same-as "$external" \
|
||||
--scale "$scale_x"x"$scale_y"
|
||||
else
|
||||
|
||||
primary=$(echo "$screens" | dmenu -i -p "Select primary display:")
|
||||
secondary=$(echo "$screens" | grep -v "$primary")
|
||||
direction=$(printf "left\\nright" | dmenu -i -p "What side of $primary should $secondary be on?")
|
||||
xrandr --output "$primary" --auto --scale 1.0x1.0 --output "$secondary" --"$direction"-of "$primary" --auto --scale 1.0x1.0
|
||||
fi
|
||||
}
|
||||
|
||||
morescreen() { # If multi-monitor is selected and there are more than two screens.
|
||||
primary=$(echo "$screens" | dmenu -i -p "Select primary display:")
|
||||
secondary=$(echo "$screens" | grep -v "$primary" | dmenu -i -p "Select secondary display:")
|
||||
direction=$(printf "left\\nright" | dmenu -i -p "What side of $primary should $secondary be on?")
|
||||
tertiary=$(echo "$screens" | grep -v "$primary" | grep -v "$secondary" | dmenu -i -p "Select third display:")
|
||||
xrandr --output "$primary" --auto --output "$secondary" --"$direction"-of "$primary" --auto --output "$tertiary" --"$(printf "left\\nright" | grep -v "$direction")"-of "$primary" --auto
|
||||
}
|
||||
|
||||
multimon() { # Multi-monitor handler.
|
||||
case "$(echo "$screens" | wc -l)" in
|
||||
2) twoscreen ;;
|
||||
,*) morescreen ;;
|
||||
esac ;}
|
||||
|
||||
onescreen() { # If only one output available or chosen.
|
||||
xrandr --output "$1" --auto --scale 1.0x1.0 "$(echo "$allposs" | grep -v "$1" | awk '{print "--output", $1, "--off"}' | paste -sd ' ')"
|
||||
}
|
||||
|
||||
postrun() { # Stuff to run to clean up.
|
||||
setbg # Fix background if screen size/arangement has changed.
|
||||
$HOME/.config/polybar/scripts/launch.sh # restart polybar
|
||||
{ killall dunst ; setsid -f dunst ;} >/dev/null 2>&1 # Restart dunst to ensure proper location on screen
|
||||
}
|
||||
|
||||
# Get all possible displays
|
||||
allposs=$(xrandr -q | grep "connected")
|
||||
|
||||
# Get all connected screens.
|
||||
screens=$(echo "$allposs" | awk '/ connected/ {print $1}')
|
||||
|
||||
# If there's only one screen
|
||||
[ "$(echo "$screens" | wc -l)" -lt 2 ] &&
|
||||
{ onescreen "$screens"; postrun; notify-send "💻 Only one screen detected." "Using it in its optimal settings..."; exit ;}
|
||||
|
||||
# Get user choice including multi-monitor and manual selection:
|
||||
chosen=$(printf "%s\\nmulti-monitor\\nmanual selection" "$screens" | dmenu -i -p "Select display arangement:") &&
|
||||
case "$chosen" in
|
||||
"manual selection") arandr ; exit ;;
|
||||
"multi-monitor") multimon ;;
|
||||
,*) onescreen "$chosen" ;;
|
||||
esac
|
||||
|
||||
postrun
|
||||
#+end_src
|
||||
|
||||
* =dmenumount= - Mount USB and Android
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: dmenumount
|
||||
:END:
|
||||
|
||||
Script taken from Luke Smith.
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/dmenumount
|
||||
@ -169,6 +74,10 @@ Script taken from Luke Smith.
|
||||
#+end_src
|
||||
|
||||
* =dmenuumount= - Unmount USB and Android devices
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: dmenuumount
|
||||
:END:
|
||||
|
||||
Script taken from Luke Smith.
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/dmenuumount
|
||||
@ -212,18 +121,36 @@ Script taken from Luke Smith.
|
||||
fi
|
||||
#+end_src
|
||||
|
||||
* =vpntoggle= - Connect to VPN using NordVPN
|
||||
#+begin_src bash :tangle ~/.local/bin/vpntoggle
|
||||
* =nordvpn-toggle= - Connect to VPN using NordVPN
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: nordvpn-toggle
|
||||
:END:
|
||||
|
||||
To use this this, =nordvpn= must be installed: =yay -S nordvpn-bin=.
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/nordvpn-toggle
|
||||
tmpfile="/tmp/vpnstatus";
|
||||
|
||||
if [[ $(nordvpn status) == *"Connected"* ]]; then
|
||||
nordvpn disconnect && dunstify --replace=23198 "VPN" "Disconnected";
|
||||
nordvpn disconnect && \
|
||||
dunstify --replace=23198 "VPN" "Disconnected" && \
|
||||
echo "off" > $tmpfile;
|
||||
else
|
||||
country=`cat ~/.local/data/nordvpn_countries.txt | sed 's/\s*\t\s*/ /g ; s/\s/\n/g ; s/_/ /g ; /^[a-zA-Z]/!d ; s/\(.*\)/\L\1/' | rofi -i -dmenu | sed 's/\s/_/g'`;
|
||||
dunstify --replace=23198 "VPN" "Connecting to $country...";
|
||||
nordvpn connect $country && dunstify --replace=23198 "VPN" "Connected to $country";
|
||||
# Select Country to connect to
|
||||
country=`cat ~/.local/data/nordvpn_countries.txt | rofi -i -dmenu | sed 's/\s/_/g'`;
|
||||
dunstify --replace=23198 "VPN" "Connecting to $country...";
|
||||
nordvpn connect $country && \
|
||||
dunstify --replace=23198 "VPN" "Connected to $country" && \
|
||||
echo "on" > $tmpfile;
|
||||
fi
|
||||
#+end_src
|
||||
|
||||
* =bukurun= - Open link from Buku
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: bukurun
|
||||
:END:
|
||||
|
||||
Script taken from [[https://github.com/carnager/buku_run][here]] that acts as a buku frontend using Rofi.
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/bukurun
|
||||
_rofi () {
|
||||
@ -559,6 +486,9 @@ Script taken from Luke Smith.
|
||||
#+end_src
|
||||
|
||||
* =i3exit= - Manage lock, suspend, reboot, ...
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: i3exit
|
||||
:END:
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/i3exit
|
||||
option=$(echo -e "Lock\nExit\nLogout\nSuspend\nHibernate\nReboot\nShutdown" | rofi -i -dmenu)
|
||||
@ -568,7 +498,7 @@ Script taken from Luke Smith.
|
||||
~/.local/bin/lockscreen
|
||||
;;
|
||||
"Exit")
|
||||
dm-tool switch-to-greeter
|
||||
pkill -15 -t tty"$XDG_VTNR" Xorg
|
||||
;;
|
||||
"Logout")
|
||||
loginctl terminate-session `loginctl session-status | head -n 1 | awk '{print $1}'`
|
||||
@ -604,8 +534,13 @@ Script taken from Luke Smith.
|
||||
#+end_src
|
||||
|
||||
* =askpass-rofi= - GUI prompt for passwords
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: askpass-rofi
|
||||
:END:
|
||||
|
||||
Take password prompt from STDIN, print password to STDOUT.
|
||||
The sed piece just removes the colon from the provided prompt: =rofi -p= already gives us a colon
|
||||
|
||||
#+BEGIN_SRC bash :tangle ~/.local/bin/askpass-rofi
|
||||
rofi -dmenu \
|
||||
-password \
|
||||
@ -614,37 +549,55 @@ The sed piece just removes the colon from the provided prompt: =rofi -p= already
|
||||
#+END_SRC
|
||||
|
||||
* =screenshot= - Take Screenshot
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: screenshot
|
||||
:END:
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/screenshot
|
||||
status=$(echo -e "All\nGUI\nSelection\nCropped\nCopy\nShadow\nActive" | rofi -i -dmenu -p "Type")
|
||||
# Ask for screenshot type
|
||||
status=$(echo -e "All\nGUI\nSelection\nCropped\nCopy\nPretty\nShadow\nWindow" | rofi -i -dmenu -p "Type")
|
||||
if [ -z "$status" ]; then
|
||||
exit;
|
||||
exit;
|
||||
fi
|
||||
|
||||
name=$(echo -e "screenshot-$(date +"%m-%d-%y_%H-%M-%S")" | rofi -i -dmenu -p "Filename")
|
||||
if [ -z "$name" ]; then
|
||||
exit;
|
||||
# Ask for filename if not copying the image
|
||||
if [[ $status != "Copy" ]]; then
|
||||
name=$(echo -e "screenshot-$(date +"%m-%d-%y_%H-%M-%S")" | rofi -i -dmenu -p "Filename")
|
||||
if [ -z "$name" ]; then
|
||||
exit;
|
||||
fi
|
||||
filename=~/Pictures/$name.png
|
||||
fi
|
||||
|
||||
case "$status" in
|
||||
"All")
|
||||
maim ~/Pictures/$name.png ;;
|
||||
maim -u $filename ;;
|
||||
"GUI")
|
||||
flameshot gui -r > ~/Pictures/$name.png ;;
|
||||
flameshot gui -r > $filename && \
|
||||
pkill flameshot;;
|
||||
"Selection")
|
||||
maim -s ~/Pictures/$name.png ;;
|
||||
maim -u -s $filename ;;
|
||||
"Cropped")
|
||||
maim -s ~/Pictures/$name.png && convert -trim ~/Pictures/$name.png ~/Pictures/$name.png;;
|
||||
maim -u -s $filename && convert -trim $filename $filename ;;
|
||||
"Copy")
|
||||
maim -s | xclip -selection clipboard -t image/png ;;
|
||||
maim -u -s | xclip -selection clipboard -t image/png ;;
|
||||
"Shadow")
|
||||
maim -st 9999999 | convert - \( +clone -background black -shadow 80x3+5+5 \) +swap -background none -layers merge +repage ~/Pictures/$name.png ;;
|
||||
"Active")
|
||||
maim -i $(xdotool getactivewindow) ~/Pictures/$name.png ;;
|
||||
maim -u -s | convert - \( +clone -background black -shadow 80x3+5+5 \) +swap -background none -layers merge +repage $filename ;;
|
||||
"Pretty")
|
||||
maim -u -s $filename && \
|
||||
convert $filename \( +clone -alpha extract -draw 'fill black polygon 0,0 0,5 5,0 fill white circle 5,5 5,0' \( +clone -flip \) -compose Multiply -composite \( +clone -flop \) -compose Multiply -composite \) -alpha off -compose CopyOpacity -composite $filename && \
|
||||
convert $filename \( +clone -background black -shadow 40x5+0+0 \) +swap -background none -layers merge +repage $filename ;;
|
||||
"Window")
|
||||
maim -u -i $(xdotool selectwindow) $filename ;;
|
||||
esac
|
||||
#+end_src
|
||||
|
||||
* =network-toggle= - Toggle Network
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: network-toggle
|
||||
:END:
|
||||
|
||||
Minimal network manager to just toggle the Wifi or Ethernet connection.
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/network-toggle
|
||||
result=$(nmcli device | sed '1d' | dmenu -l 20);
|
||||
@ -659,11 +612,15 @@ The sed piece just removes the colon from the provided prompt: =rofi -p= already
|
||||
fi
|
||||
#+end_src
|
||||
|
||||
* =make-gif= - Make GIF
|
||||
* =make-gif= - Convert an =MP4= video to =GIF=
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: make-gif
|
||||
:END:
|
||||
|
||||
First argument is the =mp4= file and the second argument is the output =gif= file.
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/make-gif
|
||||
palette="/tmp/palette.png"
|
||||
|
||||
filters="fps=15,scale=320:-1:flags=lanczos"
|
||||
|
||||
ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette
|
||||
@ -671,6 +628,9 @@ The sed piece just removes the colon from the provided prompt: =rofi -p= already
|
||||
#+end_src
|
||||
|
||||
* =yt-audio= - Download-Audio from youtube
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: yt-audio
|
||||
:END:
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/yt-audio
|
||||
if [ $TMUX ]; then
|
||||
@ -682,6 +642,9 @@ fi
|
||||
#+end_src
|
||||
|
||||
* =yt-video= - Download-Video from youtube
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: yt-video
|
||||
:END:
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/yt-video
|
||||
if [ $TMUX ]; then
|
||||
@ -692,18 +655,33 @@ else
|
||||
fi
|
||||
#+end_src
|
||||
* =setbg= - Set Background
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: setbg
|
||||
:END:
|
||||
|
||||
First argument is either:
|
||||
- the background file
|
||||
- a directory, in such case it will pick a random picture file from that directory
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/setbg
|
||||
bgloc="${XDG_CACHE_HOME:-$HOME/.cache/}/bg"
|
||||
|
||||
# If the argument is a file
|
||||
[ -f "$1" ] && ln -sf "$(readlink -f "$1")" "$bgloc"
|
||||
|
||||
# If the argument is a directory
|
||||
[ -d "$1" ] && ln -sf "$(find "$(readlink -f "$1")" -iregex '.*.\(jpg\|jpeg\|png\|gif\)' -type f | shuf -n 1)" "$bgloc"
|
||||
|
||||
# Set the wallpaper
|
||||
xwallpaper --zoom "$bgloc"
|
||||
#+end_src
|
||||
|
||||
* =insert-unicode= - Insert Unicode Icon
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: insert-unicode
|
||||
:END:
|
||||
|
||||
The list of emojis is available [[file:data.org::#emojis][here]].
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/insert-unicode
|
||||
# Must have xclip installed to even show menu.
|
||||
@ -723,6 +701,11 @@ fi
|
||||
#+end_src
|
||||
|
||||
* =insert-nerd-fonts= - Insert Nerd Font Icon
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: insert-nerd-fonts
|
||||
:END:
|
||||
|
||||
The list of emojis is available [[file:data.org::#nerd-fonts][here]].
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/insert-nerd-fonts
|
||||
# Must have xsel installed to even show menu.
|
||||
@ -742,92 +725,71 @@ fi
|
||||
#+end_src
|
||||
|
||||
* =linkhandler= - Open with Default application
|
||||
Inspired from =linkhandler= https://github.com/LukeSmithxyz/voidrice/
|
||||
This is used in =newsboat= to handle links
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: linkhandler
|
||||
:END:
|
||||
|
||||
Inspired from =linkhandler= script ([[https://github.com/LukeSmithxyz/voidrice/][github]]).
|
||||
This is used to open any type of file with the wanted program.
|
||||
It can be used in =newsboat=, =neomutt= and =ranger= for instance.
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/linkhandler
|
||||
[ -z "$1" ] && { "$BROWSER"; exit; }
|
||||
|
||||
case "$1" in
|
||||
,*mkv|*webm|*mp4|*youtube.com/watch*|*youtube.com/playlist*|*youtu.be*|*hooktube.com*|*bitchute.com*)
|
||||
,*mkv|*webm|*mp4|*youtube.com/watch*|*youtube.com/playlist*|*youtu.be*)
|
||||
setsid mpv --input-ipc-server=/tmp/mpvsoc$(date +%s) -quiet "$1" >/dev/null 2>&1 & ;;
|
||||
,*png|*jpg|*jpe|*jpeg|*gif)
|
||||
curl -sL "$1" > "/tmp/$(echo "$1" | sed "s/.*\///")" && sxiv -a "/tmp/$(echo "$1" | sed "s/.*\///")" >/dev/null 2>&1 & ;;
|
||||
,*mp3|*flac|*opus|*mp3?source*)
|
||||
setsid tsp curl -LO "$1" >/dev/null 2>&1 & ;;
|
||||
setsid curl -LO "$1" >/dev/null 2>&1 & ;;
|
||||
,*)
|
||||
if [ -f "$1" ]; then "$TERMINAL" -e "$EDITOR $1"
|
||||
else setsid $BROWSER "$1" >/dev/null 2>&1 & fi ;;
|
||||
esac
|
||||
#+end_src
|
||||
* =lockscreen= - LockScreen
|
||||
|
||||
* =lockscreen= - Lock Screen
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: lockscreen
|
||||
:header-args: :tangle ~/.local/bin/lockscreen
|
||||
:END:
|
||||
|
||||
First, turn off dunst
|
||||
#+begin_src bash
|
||||
killall -SIGUSR1 dunst && echo "off" > /tmp/dunststatus;
|
||||
#+end_src
|
||||
A nice lockscreen that uses =i3lock=.
|
||||
It takes a screenshot, pixelize it and overlay an image in the lockscreens folder.
|
||||
|
||||
Turn off the music if it is playing.
|
||||
#+begin_src bash
|
||||
# First, turn off dunst
|
||||
killall -SIGUSR1 dunst && echo "off" > /tmp/dunststatus;
|
||||
|
||||
# Turn off the music if it is playing.
|
||||
MPC_STATE=$(mpc | sed -n '2p' | cut -d "[" -f2 | cut -d "]" -f1)
|
||||
if [[ $MPC_STATE == "playing" ]]; then
|
||||
mpc pause
|
||||
mpc pause
|
||||
fi
|
||||
#+end_src
|
||||
|
||||
Then take a screenshot and process it.
|
||||
#+begin_src bash
|
||||
# Take the screenshot and process it nicely
|
||||
temp_file="/tmp/screen.png"
|
||||
|
||||
rm -f $temp_file
|
||||
maim $temp_file && \
|
||||
# Pixelize the Screenshot
|
||||
convert $temp_file -scale 10% -scale 1000% $temp_file && \
|
||||
# Overlay a random image in the lockscreens folder
|
||||
composite -gravity center $(find ~/.local/data/lockscreens/ -type f | shuf -n 1) $temp_file $temp_file;
|
||||
|
||||
maim $temp_file
|
||||
convert $temp_file -scale 10% -scale 1000% $temp_file
|
||||
#+end_src
|
||||
|
||||
Finally, lock the screen using =i3lock=.
|
||||
#+begin_src bash
|
||||
i3lock --no-unlock-indicator --ignore-empty-password --nofork --image=$temp_file && killall -SIGUSR2 dunst && echo "on" > /tmp/dunststatus
|
||||
#+end_src
|
||||
|
||||
#+begin_src bash :tangle no
|
||||
revert() {
|
||||
xset dpms 0 0 0
|
||||
}
|
||||
trap revert HUP INT TERM
|
||||
# turn off screen after 5 seconds
|
||||
xset +dpms dpms 5 5 5
|
||||
|
||||
# Parameters
|
||||
temp_file="/tmp/screen.png"
|
||||
icon="$HOME/Pictures/Evil_Rick_Sprite.png"
|
||||
width=1920
|
||||
height=1080
|
||||
blur_factor=6
|
||||
lock_blur_factor=0
|
||||
|
||||
# Take the screen shot, blur the image and add the icon
|
||||
ffmpeg -f x11grab -video_size "${width}x${height}" -y -i $DISPLAY -i $icon -filter_complex "boxblur=$blur_factor:$blur_factor,overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2,boxblur=$lock_blur_factor:$lock_blur_factor" -vframes 1 $temp_file
|
||||
|
||||
# Alternative
|
||||
# maim -d 1 $temp_file
|
||||
# convert -blur 0x8 $temp_file $temp_file
|
||||
# convert -composite $temp_file $icon -gravity South -geometry -20x1200 $temp_file
|
||||
|
||||
# Lock the screen with the image
|
||||
i3lock --no-unlock-indicator --ignore-empty-password --show-failed-attempts --nofork --image=$temp_file
|
||||
|
||||
# Remove the screenshot
|
||||
rm $temp_file
|
||||
|
||||
# Don't turn off screen when back from lock
|
||||
revert
|
||||
# Finally, lock the screen using =i3lock=
|
||||
i3lock --ignore-empty-password --nofork --image=$temp_file && \
|
||||
# When unlocking, restart dunst
|
||||
killall -SIGUSR2 dunst && echo "on" > /tmp/dunststatus
|
||||
#+end_src
|
||||
|
||||
* =mopidy-restart= - Restart Mopidy
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: mopidy-restart
|
||||
:END:
|
||||
|
||||
Sometimes =mopidy= need to be restarted...
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/mopidy-restart
|
||||
pids=( $(pgrep -f mopidy) )
|
||||
|
||||
@ -836,14 +798,20 @@ Finally, lock the screen using =i3lock=.
|
||||
kill "$pid"
|
||||
fi
|
||||
done
|
||||
|
||||
echo "Killed mopidy."
|
||||
|
||||
echo "Restarting mopidy..."
|
||||
mopidy --config ~/.config/mopidy/mopidy.conf >/dev/null 2>&1 &
|
||||
echo "Done"
|
||||
#+end_src
|
||||
|
||||
* =upload= - Upload Script
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: upload
|
||||
:END:
|
||||
|
||||
Upload a file to https://0x0.st/ and copy the generated url.
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/upload
|
||||
if [ $TMUX ]; then
|
||||
tmux split -v -l 1 "curl --progress-bar -F\"file=@$1\" https://0x0.st | xsel -ib;" && tmux select-pane -U
|
||||
@ -855,6 +823,12 @@ Finally, lock the screen using =i3lock=.
|
||||
#+end_src
|
||||
|
||||
* =weather= - Display Weather in terminal
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: weather
|
||||
:END:
|
||||
|
||||
Get the weather from http://wttr.in/.
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/weather
|
||||
if [ -n "$*" ]; then
|
||||
address="wttr.in/"
|
||||
@ -878,16 +852,21 @@ Finally, lock the screen using =i3lock=.
|
||||
#+end_src
|
||||
|
||||
* =readbib= - Open Bibliography File
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: readbib
|
||||
:END:
|
||||
|
||||
List all =pdf= files and open selected one with zathura.
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/readbib
|
||||
cd ~/Cloud/pdfs/ && ls | rofi -dmenu -lines 20 | xargs -I {} zathura {}
|
||||
#+end_src
|
||||
|
||||
* =readnotes= - Open Note File
|
||||
#+begin_src bash :tangle ~/.local/bin/readnotes
|
||||
cd ~/Cloud/thesis/ressources/notes/pdfs/ && ls *.pdf | rofi -dmenu -lines 20 | xargs -I {} zathura {}
|
||||
#+end_src
|
||||
|
||||
* =pdf2bib= - Extract bibtex entry from PDF file
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: pdf2bib
|
||||
:END:
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/pdf2bib
|
||||
pdf2doi () {
|
||||
pdfinfo "$1" | grep -io "doi:.*" | grep -Poi "10.\d+/[^\s]+" || \
|
||||
@ -919,13 +898,143 @@ Finally, lock the screen using =i3lock=.
|
||||
#+end_src
|
||||
|
||||
* =pdf2png= - Convert a PDF to PNG
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: pdf2png
|
||||
:END:
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/pdf2png
|
||||
# Check if the input argumetn is a PDF file
|
||||
if [[ -f "$1" && "$1" == *.pdf ]]; then
|
||||
pdftoppm -png "$1" > "$(echo "$1" | cut -f 1 -d '.' | sed 's/$/.png/')"
|
||||
fi
|
||||
#+end_src
|
||||
|
||||
* =convert-file= - Convert any file to another filetype
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: convert-file
|
||||
:END:
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/convert-file
|
||||
# Get filename
|
||||
filename_with_extension=$(basename -- "$1")
|
||||
# Extract extension of the file
|
||||
in_ext="${filename_with_extension##*.}"
|
||||
# filename without extension
|
||||
filename_without_extension=${filename_with_extension%.*}
|
||||
|
||||
# Convert SVG Files
|
||||
svg2() { \
|
||||
out_ext=$(echo -e "pdf\npng" | rofi -i -dmenu -p "Convert SVG to")
|
||||
|
||||
if [ -z "$out_ext" ]; then
|
||||
exit;
|
||||
fi
|
||||
|
||||
case "$out_ext" in
|
||||
"png")
|
||||
inkscape --export-type="$out_ext" --export-dpi=200 --export-area-drawing "$filename_with_extension"
|
||||
;;
|
||||
"pdf")
|
||||
inkscape --export-type="$out_ext" "$filename_with_extension"
|
||||
# pdf2svg file.pdf file.svg
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
# Convert PDF Files
|
||||
pdf2() { \
|
||||
out_ext=$(echo -e "svg\npng" | rofi -i -dmenu -p "Convert PDF to")
|
||||
|
||||
# Ask if crop?
|
||||
|
||||
if [ -z "$out_ext" ]; then
|
||||
exit;
|
||||
fi
|
||||
|
||||
case "$out_ext" in
|
||||
"png")
|
||||
inkscape --export-type="$out_ext" --export-dpi=200 --export-area-drawing "$filename_with_extension"
|
||||
;;
|
||||
"svg")
|
||||
inkscape --export-type="$out_ext" "$filename_with_extension"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
# Convert DOCX/PPTX Files
|
||||
docx2() { \
|
||||
out_ext=$(echo -e "pdf" | rofi -i -dmenu -p "Convert DOCX/PPTX to")
|
||||
|
||||
if [ -z "$out_ext" ]; then
|
||||
exit;
|
||||
fi
|
||||
|
||||
case "$out_ext" in
|
||||
"pdf")
|
||||
lowriter --convert-to pdf "$filename_with_extension"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
# Convert PNG Files
|
||||
png2() { \
|
||||
out_ext=$(echo -e "pdf" | rofi -i -dmenu -p "Convert PNG to")
|
||||
|
||||
if [ -z "$out_ext" ]; then
|
||||
exit;
|
||||
fi
|
||||
|
||||
case "$out_ext" in
|
||||
"pdf")
|
||||
convert "$filename_with_extension" "$filename_without_extension.pdf"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
# Convert MP4 Files
|
||||
mp42() { \
|
||||
out_ext=$(echo -e "gif" | rofi -i -dmenu -p "Convert MP4 to")
|
||||
|
||||
if [ -z "$out_ext" ]; then
|
||||
exit;
|
||||
fi
|
||||
|
||||
case "$out_ext" in
|
||||
"gif")
|
||||
make-gif "$filename_with_extension" "$filename_without_extension.gif"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
case "$in_ext" in
|
||||
"svg")
|
||||
svg2
|
||||
;;
|
||||
"pdf")
|
||||
pdf2
|
||||
;;
|
||||
"mp4")
|
||||
mp42
|
||||
;;
|
||||
"png")
|
||||
png2
|
||||
;;
|
||||
"docx")
|
||||
docx2
|
||||
;;
|
||||
"pttx")
|
||||
docx2
|
||||
;;
|
||||
esac
|
||||
#+end_src
|
||||
|
||||
* =pdf-shrink= - Pdf Shrink
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: pdf-shrink
|
||||
:END:
|
||||
|
||||
Simply reduces the size of a given pdf file.
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/pdf-shrink
|
||||
shrink ()
|
||||
{
|
||||
@ -984,7 +1093,7 @@ Finally, lock the screen using =i3lock=.
|
||||
OFILE="-"
|
||||
fi
|
||||
|
||||
# Output resolution defaults to 72 unless given:
|
||||
# Output resolution defaults to 90 unless given:
|
||||
if [ ! -z "$3" ]; then
|
||||
res="$3"
|
||||
else
|
||||
@ -996,20 +1105,31 @@ Finally, lock the screen using =i3lock=.
|
||||
check_smaller "$IFILE" "$OFILE"
|
||||
#+end_src
|
||||
* =pdf-delete-annotations= - Delete Annotations from PDFs
|
||||
From: https://gist.github.com/stefanschmidt/5248592
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: pdf-delete-annotations
|
||||
:END:
|
||||
|
||||
Taken from this [[https://gist.github.com/stefanschmidt/5248592][gist]].
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/pdf-delete-annotations
|
||||
pdftk $1 output /tmp/uncompressed.pdf uncompress
|
||||
LANG=C sed -n '/^\/Annots/!p' /tmp/uncompressed.pdf > /tmp/stripped.pdf
|
||||
pdftk /tmp/stripped.pdf output $1 compress
|
||||
# Check if the input argumetn is a PDF file
|
||||
if [[ -f "$1" && "$1" == *.pdf ]]; then
|
||||
pdftk $1 output /tmp/uncompressed.pdf uncompress
|
||||
LANG=C sed -n '/^\/Annots/!p' /tmp/uncompressed.pdf > /tmp/stripped.pdf
|
||||
pdftk /tmp/stripped.pdf output $1 compress
|
||||
fi
|
||||
#+end_src
|
||||
|
||||
* =pdf-delete-first-page= - Delete first page of PDF
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: pdf-delete-first-page
|
||||
:END:
|
||||
|
||||
The requirement is to have =pdftk= or =stapler= installed.
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/pdf-delete-first-page
|
||||
# Check if the input argumetn is a PDF file
|
||||
if [[ -f $1 && $1 == *.pdf ]]; then
|
||||
# Argument if a file
|
||||
if type stapler > /dev/null 2>&1; then
|
||||
stapler del "$1" 1 /tmp/pdftk_out.pdf && mv /tmp/pdftk_out.pdf "$1"
|
||||
elif type pdftk > /dev/null 2>&1; then
|
||||
@ -1020,18 +1140,27 @@ The requirement is to have =pdftk= or =stapler= installed.
|
||||
fi
|
||||
#+end_src
|
||||
|
||||
|
||||
|
||||
* =rofi-calc= - Simple Calculation using Rofi
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: rofi-calc
|
||||
:END:
|
||||
|
||||
Run some simple calculations with =rofi=.
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/rofi-calc
|
||||
rofi -show calc -mode calc -no-show-match -no-sort
|
||||
#+end_src
|
||||
|
||||
* =pass-gen= - Generate Random Alphanumeric Password
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: pass-gen
|
||||
:END:
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/pass-gen
|
||||
# Ask for the wanted number of caracters
|
||||
num=$(rofi -dmenu -p "Number of caracters")
|
||||
|
||||
# Random generation of alphanumeric caracters
|
||||
pass=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
|
||||
|
||||
re='^[0-9]+$'
|
||||
@ -1039,6 +1168,19 @@ The requirement is to have =pdftk= or =stapler= installed.
|
||||
pass=${pass:0:$num}
|
||||
fi
|
||||
|
||||
# Send the password to the clipboard
|
||||
printf "$pass" | xclip -sel clip && \
|
||||
dunstify 'Password' 'Generated'
|
||||
#+end_src
|
||||
|
||||
|
||||
* =sxhkd-help= - List of keybindings using Rofi
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: sxhkd-help
|
||||
:END:
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/sxhkd-help
|
||||
awk '/^[a-z]/ && last {print "<small>",$0,"\t",last,"</small>"} {last=""} /^#/{last=$0}' ~/.config/sxhkd/sxhkdrc{,.i3} |
|
||||
column -t -s $'\t' |
|
||||
rofi -dmenu -i -markup-rows -no-show-icons -width 1000 -lines 15 -yoffset 40
|
||||
#+end_src
|
||||
|
@ -1,48 +0,0 @@
|
||||
#+TITLE: Bukurun (Bookmark Manager)
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
|
||||
#+PROPERTY: header-args :tangle ~/.config/buku_run/config
|
||||
#+PROPERTY: header-args+ :comments both :mkdirp yes
|
||||
#+PROPERTY: header-args+ :shebang "#!/usr/bin/env bash"
|
||||
:END:
|
||||
|
||||
#+BEGIN_SRC conf
|
||||
_rofi () {
|
||||
rofi -dmenu -i -no-levenshtein-sort -width 1000 "$@"
|
||||
}
|
||||
#+END_SRC
|
||||
|
||||
Display settings
|
||||
#+BEGIN_SRC conf
|
||||
display_type=1
|
||||
max_str_width=80
|
||||
#+END_SRC
|
||||
|
||||
Keybindings
|
||||
#+BEGIN_SRC conf
|
||||
switch_view="Alt+Tab"
|
||||
new_bookmark="Alt+n"
|
||||
actions="Alt+a"
|
||||
edit="Alt+e"
|
||||
delete="Alt+d"
|
||||
#+END_SRC
|
||||
|
||||
Colors
|
||||
#+BEGIN_SRC conf
|
||||
help_color="#2d7ed8"
|
||||
#+END_SRC
|
20
bspwm.org
20
bspwm.org
@ -1,26 +1,10 @@
|
||||
#+TITLE: BSPWM
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
|
||||
#+PROPERTY: header-args:bash :comments both
|
||||
#+PROPERTY: header-args:bash+ :mkdirp yes
|
||||
#+PROPERTY: header-args:bash+ :shebang "#!/bin/sh"
|
||||
#+PROPERTY: header-args:bash+ :tangle ~/.config/bspwm/bspwmrc
|
||||
:END:
|
||||
|
||||
* List Desktops
|
||||
#+begin_src bash
|
||||
@ -64,6 +48,6 @@ Use =xprop= to obtain information about the window.
|
||||
|
||||
* Run Polybar and SXHKD
|
||||
#+begin_src bash
|
||||
$HOME/.config/polybar/scripts/launch.sh
|
||||
polybar top >>/tmp/polybar.log 2>&1 &
|
||||
sxhkd -m 1 -c ~/.config/sxhkd/sxhkdrc.bspwm &
|
||||
#+end_src
|
||||
|
22
calendar.org
22
calendar.org
@ -1,23 +1,7 @@
|
||||
#+TITLE:Calendar Configuration
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
:END:
|
||||
|
||||
* Vdirsyncer
|
||||
* =vdirsyncer= - Synchronize calendars and contacts
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.config/vdirsyncer/config
|
||||
:header-args+: :comments both :mkdirp yes :noweb no-export
|
||||
@ -63,7 +47,7 @@
|
||||
client_secret = "<<get-password(passname="contacts/google_client_secret")>>"
|
||||
#+END_SRC
|
||||
|
||||
* Khal
|
||||
* =khal= - CLI calendar application
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.config/khal/config
|
||||
:header-args+: :comments both :mkdirp yes
|
||||
|
@ -1,24 +1,8 @@
|
||||
#+TITLE: Picom (Compositor)
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
|
||||
#+PROPERTY: header-args :tangle ~/.config/picom/picom.conf
|
||||
#+PROPERTY: header-args+ :comments both :mkdirp yes
|
||||
:END:
|
||||
|
||||
* Shadow
|
||||
#+BEGIN_SRC conf
|
||||
|
50
config.org
50
config.org
@ -1,21 +1,5 @@
|
||||
#+TITLE: Configuration Files
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
:END:
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
|
||||
* SSH
|
||||
:PROPERTIES:
|
||||
@ -176,3 +160,35 @@
|
||||
LC_ALL=
|
||||
#+END_SRC
|
||||
|
||||
* =bukurun= Rofi Frontend for Buku (Bookmark Manager)
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.config/buku_run/config
|
||||
:header-args+: :comments both :mkdirp yes
|
||||
:header-args+: :shebang "#!/usr/bin/env bash"
|
||||
:END:
|
||||
|
||||
#+BEGIN_SRC conf
|
||||
_rofi () {
|
||||
rofi -dmenu -i -no-levenshtein-sort -width 1000 "$@"
|
||||
}
|
||||
#+END_SRC
|
||||
|
||||
Display settings
|
||||
#+BEGIN_SRC conf
|
||||
display_type=1
|
||||
max_str_width=80
|
||||
#+END_SRC
|
||||
|
||||
Keybindings
|
||||
#+BEGIN_SRC conf
|
||||
switch_view="Alt+Tab"
|
||||
new_bookmark="Alt+n"
|
||||
actions="Alt+a"
|
||||
edit="Alt+e"
|
||||
delete="Alt+d"
|
||||
#+END_SRC
|
||||
|
||||
Colors
|
||||
#+BEGIN_SRC conf
|
||||
help_color="#2d7ed8"
|
||||
#+END_SRC
|
||||
|
111
contacts.org
111
contacts.org
@ -1,21 +1,5 @@
|
||||
#+TITLE:Calendar Configuration
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
:END:
|
||||
#+TITLE: Contact Configuration
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
|
||||
* Khard
|
||||
:PROPERTIES:
|
||||
@ -23,53 +7,50 @@
|
||||
:header-args+: :comments both :mkdirp yes
|
||||
:END:
|
||||
|
||||
#+BEGIN_SRC conf
|
||||
# example configuration file for khard version >= 0.13.0
|
||||
# place it under $HOME/.config/khard/khard.conf
|
||||
#+BEGIN_SRC conf
|
||||
[addressbooks]
|
||||
[[google]]
|
||||
path = ~/.contacts/default/
|
||||
|
||||
[addressbooks]
|
||||
[[google]]
|
||||
path = ~/.contacts/default/
|
||||
[general]
|
||||
debug = no
|
||||
default_action = list
|
||||
editor = vim
|
||||
merge_editor = vimdiff
|
||||
|
||||
[general]
|
||||
debug = no
|
||||
default_action = list
|
||||
editor = vim
|
||||
merge_editor = vimdiff
|
||||
[contact table]
|
||||
# display names by first or last name: first_name / last_name
|
||||
display = first_name
|
||||
# group by address book: yes / no
|
||||
group_by_addressbook = no
|
||||
# reverse table ordering: yes / no
|
||||
reverse = no
|
||||
# append nicknames to name column: yes / no
|
||||
show_nicknames = no
|
||||
# show uid table column: yes / no
|
||||
show_uids = yes
|
||||
# sort by first or last name: first_name / last_name
|
||||
sort = last_name
|
||||
# localize dates: yes / no
|
||||
localize_dates = yes
|
||||
# set a comma separated list of preferred phone number types in descending priority
|
||||
# or nothing for non-filtered alphabetical order
|
||||
preferred_phone_number_type = pref, cell, home
|
||||
# set a comma separated list of preferred email address types in descending priority
|
||||
# or nothing for non-filtered alphabetical order
|
||||
preferred_email_address_type = pref, work, home
|
||||
|
||||
[contact table]
|
||||
# display names by first or last name: first_name / last_name
|
||||
display = first_name
|
||||
# group by address book: yes / no
|
||||
group_by_addressbook = no
|
||||
# reverse table ordering: yes / no
|
||||
reverse = no
|
||||
# append nicknames to name column: yes / no
|
||||
show_nicknames = no
|
||||
# show uid table column: yes / no
|
||||
show_uids = yes
|
||||
# sort by first or last name: first_name / last_name
|
||||
sort = last_name
|
||||
# localize dates: yes / no
|
||||
localize_dates = yes
|
||||
# set a comma separated list of preferred phone number types in descending priority
|
||||
# or nothing for non-filtered alphabetical order
|
||||
preferred_phone_number_type = pref, cell, home
|
||||
# set a comma separated list of preferred email address types in descending priority
|
||||
# or nothing for non-filtered alphabetical order
|
||||
preferred_email_address_type = pref, work, home
|
||||
|
||||
[vcard]
|
||||
# extend contacts with your own private objects
|
||||
# these objects are stored with a leading "X-" before the object name in the vcard files
|
||||
# every object label may only contain letters, digits and the - character
|
||||
# example:
|
||||
# private_objects = Jabber, Skype, Twitter
|
||||
private_objects = Jabber, Skype, Twitter
|
||||
# preferred vcard version: 3.0 / 4.0
|
||||
preferred_version = 3.0
|
||||
# Look into source vcf files to speed up search queries: yes / no
|
||||
search_in_source_files = no
|
||||
# skip unparsable vcard files: yes / no
|
||||
skip_unparsable = no
|
||||
#+END_SRC
|
||||
[vcard]
|
||||
# extend contacts with your own private objects
|
||||
# these objects are stored with a leading "X-" before the object name in the vcard files
|
||||
# every object label may only contain letters, digits and the - character
|
||||
# example:
|
||||
# private_objects = Jabber, Skype, Twitter
|
||||
private_objects = Jabber, Skype, Twitter
|
||||
# preferred vcard version: 3.0 / 4.0
|
||||
preferred_version = 3.0
|
||||
# Look into source vcf files to speed up search queries: yes / no
|
||||
search_in_source_files = no
|
||||
# skip unparsable vcard files: yes / no
|
||||
skip_unparsable = no
|
||||
#+END_SRC
|
||||
|
96
data.org
96
data.org
@ -1,26 +1,13 @@
|
||||
#+TITLE: Data
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
#+PROPERTY: header-args:conf :comments none :mkdirp yes
|
||||
:END:
|
||||
|
||||
* Nerd Fonts
|
||||
#+begin_src conf :tangle ~/.local/data/nerd-fonts
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: nerd-fonts
|
||||
:END:
|
||||
|
||||
#+begin_src conf :tangle ~/.local/datd/nerd-fonts
|
||||
- i_dev_bing_small
|
||||
- i_dev_css_tricks
|
||||
- i_dev_git
|
||||
@ -3713,7 +3700,12 @@
|
||||
- i_weather_moon_alt_waning_crescent_6
|
||||
- i_weather_moon_alt_new
|
||||
#+end_src
|
||||
|
||||
* Emojis
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: emojis
|
||||
:END:
|
||||
|
||||
#+begin_src conf :tangle ~/.local/data/emojis
|
||||
😀 grinning face; U+1F600
|
||||
😃 grinning face with big eyes; U+1F603
|
||||
@ -5099,3 +5091,69 @@
|
||||
🏳️🌈 rainbow flag; U+1F3F3 U+FE0F U+200D U+1F308
|
||||
🏴☠️ pirate flag; U+1F3F4 U+200D U+2620 U+FE0F
|
||||
#+end_src
|
||||
|
||||
* Nordvpn Countries
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: nordvpn-countries
|
||||
:END:
|
||||
|
||||
#+begin_src conf :tangle ~/.local/data/nordvpn_countries.txt
|
||||
Albania
|
||||
Bulgaria
|
||||
Denmark
|
||||
Hong_Kong
|
||||
Italy
|
||||
Netherlands
|
||||
Serbia
|
||||
Sweden
|
||||
United_States
|
||||
Argentina
|
||||
Canada
|
||||
Estonia
|
||||
Hungary
|
||||
Japan
|
||||
New_Zealand
|
||||
Singapore
|
||||
Switzerland
|
||||
Vietnam
|
||||
Australia
|
||||
Chile
|
||||
Finland
|
||||
Iceland
|
||||
Latvia
|
||||
North_Macedonia
|
||||
Slovakia
|
||||
Taiwan
|
||||
Austria
|
||||
Costa_Rica
|
||||
France
|
||||
India
|
||||
Luxembourg
|
||||
Norway
|
||||
Slovenia
|
||||
Thailand
|
||||
Belgium
|
||||
Croatia
|
||||
Georgia
|
||||
Indonesia
|
||||
Malaysia
|
||||
Poland
|
||||
South_Africa
|
||||
Turkey
|
||||
Bosnia_And_Herzegovina
|
||||
Cyprus
|
||||
Germany
|
||||
Ireland
|
||||
Mexico
|
||||
Portugal
|
||||
South_Korea
|
||||
Ukraine
|
||||
Brazil
|
||||
Czech_Republic
|
||||
Greece
|
||||
Israel
|
||||
Moldova
|
||||
Romania
|
||||
Spain
|
||||
United_Kingdom
|
||||
#+end_src
|
||||
|
@ -3,17 +3,13 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-05-26 mar. 08:40 -->
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Desktop file for the applications</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -26,207 +22,207 @@
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org3781e6a">Mime Applications</a></li>
|
||||
<li><a href="#org40d2ff7">Neomutt</a></li>
|
||||
<li><a href="#orgfba702e">Weechat</a></li>
|
||||
<li><a href="#org0917adc">Matlab</a></li>
|
||||
<li><a href="#org721c080">Neovim</a></li>
|
||||
<li><a href="#org11a99e9">Images</a></li>
|
||||
<li><a href="#org6d53535">Org-Protocol</a></li>
|
||||
<li><a href="#org77502a5">Ranger</a></li>
|
||||
<li><a href="#orgbb53a17">Emacs Client</a></li>
|
||||
<li><a href="#org3bbf6ce">Torrent with Transmission</a></li>
|
||||
<li><a href="#org71a2460">Mime Applications</a></li>
|
||||
<li><a href="#org3da423b">Neomutt</a></li>
|
||||
<li><a href="#org5e2e6fc">Weechat</a></li>
|
||||
<li><a href="#org034bd30">Matlab</a></li>
|
||||
<li><a href="#org6f623b4">Neovim</a></li>
|
||||
<li><a href="#orgd5b6306">Images</a></li>
|
||||
<li><a href="#orgb420f7f">Org-Protocol</a></li>
|
||||
<li><a href="#org777141a">Ranger</a></li>
|
||||
<li><a href="#org0cb9832">Emacs Client</a></li>
|
||||
<li><a href="#org42f59ff">Torrent with Transmission</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3781e6a" class="outline-2">
|
||||
<h2 id="org3781e6a">Mime Applications</h2>
|
||||
<div class="outline-text-2" id="text-org3781e6a">
|
||||
<div id="outline-container-org71a2460" class="outline-2">
|
||||
<h2 id="org71a2460">Mime Applications</h2>
|
||||
<div class="outline-text-2" id="text-org71a2460">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[Default Applications]
|
||||
text/plain=nvim.desktop
|
||||
x-scheme-handler/magnet=torrent.desktop;
|
||||
text/x-shellscript=nvim.desktop;
|
||||
image/png=img.desktop;
|
||||
image/jpeg=img.desktop;
|
||||
image/gif=img.desktop;
|
||||
application/rss+xml=rss.desktop
|
||||
x-scheme-handler/mailto=neomutt.desktop
|
||||
message/rfc822=neomutt.desktop
|
||||
application/x-bittorrent=deluge.desktop
|
||||
application/pdf=zathura.desktop
|
||||
x-scheme-handler/http=qutebrowser.desktop
|
||||
x-scheme-handler/https=qutebrowser.desktop
|
||||
x-scheme-handler/ftp=qutebrowser.desktop
|
||||
x-scheme-handler/chrome=qutebrowser.desktop
|
||||
text/html=qutebrowser.desktop
|
||||
application/x-extension-htm=qutebrowser.desktop
|
||||
application/x-extension-html=qutebrowser.desktop
|
||||
application/x-extension-shtml=qutebrowser.desktop
|
||||
application/xhtml+xml=qutebrowser.desktop
|
||||
application/x-extension-xhtml=qutebrowser.desktop
|
||||
application/x-extension-xht=qutebrowser.desktop
|
||||
<pre class="src src-conf">[<span class="org-type">Default Applications</span>]
|
||||
<span class="org-variable-name">text/plain</span>=nvim.desktop
|
||||
<span class="org-variable-name">x-scheme-handler/magnet</span>=torrent.desktop;
|
||||
<span class="org-variable-name">text/x-shellscript</span>=nvim.desktop;
|
||||
<span class="org-variable-name">image/png</span>=img.desktop;
|
||||
<span class="org-variable-name">image/jpeg</span>=img.desktop;
|
||||
<span class="org-variable-name">image/gif</span>=img.desktop;
|
||||
<span class="org-variable-name">application/rss+xml</span>=rss.desktop
|
||||
<span class="org-variable-name">x-scheme-handler/mailto</span>=neomutt.desktop
|
||||
<span class="org-variable-name">message/rfc822</span>=neomutt.desktop
|
||||
<span class="org-variable-name">application/x-bittorrent</span>=deluge.desktop
|
||||
<span class="org-variable-name">application/pdf</span>=zathura.desktop
|
||||
<span class="org-variable-name">x-scheme-handler/http</span>=qutebrowser.desktop
|
||||
<span class="org-variable-name">x-scheme-handler/https</span>=qutebrowser.desktop
|
||||
<span class="org-variable-name">x-scheme-handler/ftp</span>=qutebrowser.desktop
|
||||
<span class="org-variable-name">x-scheme-handler/chrome</span>=qutebrowser.desktop
|
||||
<span class="org-variable-name">text/html</span>=qutebrowser.desktop
|
||||
<span class="org-variable-name">application/x-extension-htm</span>=qutebrowser.desktop
|
||||
<span class="org-variable-name">application/x-extension-html</span>=qutebrowser.desktop
|
||||
<span class="org-variable-name">application/x-extension-shtml</span>=qutebrowser.desktop
|
||||
<span class="org-variable-name">application/xhtml+xml</span>=qutebrowser.desktop
|
||||
<span class="org-variable-name">application/x-extension-xhtml</span>=qutebrowser.desktop
|
||||
<span class="org-variable-name">application/x-extension-xht</span>=qutebrowser.desktop
|
||||
|
||||
[Added Associations]
|
||||
text/plain=mousepad.desktop;
|
||||
application/x-bittorrent=deluge.desktop;
|
||||
[<span class="org-type">Added Associations</span>]
|
||||
<span class="org-variable-name">text/plain</span>=mousepad.desktop;
|
||||
<span class="org-variable-name">application/x-bittorrent</span>=deluge.desktop;
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org40d2ff7" class="outline-2">
|
||||
<h2 id="org40d2ff7">Neomutt</h2>
|
||||
<div class="outline-text-2" id="text-org40d2ff7">
|
||||
<div id="outline-container-org3da423b" class="outline-2">
|
||||
<h2 id="org3da423b">Neomutt</h2>
|
||||
<div class="outline-text-2" id="text-org3da423b">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[Desktop Entry]
|
||||
Name=Neomutt
|
||||
GenericName=Email client
|
||||
Exec=$TERMINAL -e neomutt %u
|
||||
Type=Application
|
||||
Icon=/usr/share/icons/Papirus/64x64/apps/mutt.svg
|
||||
Categories=Network;Email;
|
||||
MimeType=message/rfc822;x-scheme-handler/mailto;application/x-xpinstall;
|
||||
StartupNotify=true
|
||||
<pre class="src src-conf">[<span class="org-type">Desktop Entry</span>]
|
||||
<span class="org-variable-name">Name</span>=Neomutt
|
||||
<span class="org-variable-name">GenericName</span>=Email client
|
||||
<span class="org-variable-name">Exec</span>=$TERMINAL -e neomutt %u
|
||||
<span class="org-variable-name">Type</span>=Application
|
||||
<span class="org-variable-name">Icon</span>=/usr/share/icons/Papirus/64x64/apps/mutt.svg
|
||||
<span class="org-variable-name">Categories</span>=Network;Email;
|
||||
<span class="org-variable-name">MimeType</span>=message/rfc822;x-scheme-handler/mailto;application/x-xpinstall;
|
||||
<span class="org-variable-name">StartupNotify</span>=true
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfba702e" class="outline-2">
|
||||
<h2 id="orgfba702e">Weechat</h2>
|
||||
<div class="outline-text-2" id="text-orgfba702e">
|
||||
<div id="outline-container-org5e2e6fc" class="outline-2">
|
||||
<h2 id="org5e2e6fc">Weechat</h2>
|
||||
<div class="outline-text-2" id="text-org5e2e6fc">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
MultipleArgs=false
|
||||
Terminal=false
|
||||
Exec=$TERMINAL --class=WeeChat -e 'weechat'
|
||||
StartupWMClass=WeeChat
|
||||
Icon=/usr/share/icons/Papirus/64x64/apps/weechat.svg
|
||||
Type=Application
|
||||
Categories=Network;IRCClient;
|
||||
StartupNotify=true
|
||||
Name=WeeChat
|
||||
GenericName=IRC Client
|
||||
<pre class="src src-conf">[<span class="org-type">Desktop Entry</span>]
|
||||
<span class="org-variable-name">Encoding</span>=UTF-8
|
||||
<span class="org-variable-name">MultipleArgs</span>=false
|
||||
<span class="org-variable-name">Terminal</span>=false
|
||||
<span class="org-variable-name">Exec</span>=$TERMINAL --class=WeeChat -e <span class="org-string">'weechat'</span>
|
||||
<span class="org-variable-name">StartupWMClass</span>=WeeChat
|
||||
<span class="org-variable-name">Icon</span>=/usr/share/icons/Papirus/64x64/apps/weechat.svg
|
||||
<span class="org-variable-name">Type</span>=Application
|
||||
<span class="org-variable-name">Categories</span>=Network;IRCClient;
|
||||
<span class="org-variable-name">StartupNotify</span>=true
|
||||
<span class="org-variable-name">Name</span>=WeeChat
|
||||
<span class="org-variable-name">GenericName</span>=IRC Client
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0917adc" class="outline-2">
|
||||
<h2 id="org0917adc">Matlab</h2>
|
||||
<div class="outline-text-2" id="text-org0917adc">
|
||||
<div id="outline-container-org034bd30" class="outline-2">
|
||||
<h2 id="org034bd30">Matlab</h2>
|
||||
<div class="outline-text-2" id="text-org034bd30">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[Desktop Entry]
|
||||
Version=R2020a
|
||||
Type=Application
|
||||
Terminal=false
|
||||
MimeType=text/x-matlab
|
||||
Exec=/usr/local/MATLAB/R2020a/bin/matlab -desktop -nosplash
|
||||
Name=MATLAB
|
||||
Icon=matlab
|
||||
Categories=Development;Math;Science
|
||||
Comment=Scientific computing environment
|
||||
StartupNotify=true
|
||||
<pre class="src src-conf">[<span class="org-type">Desktop Entry</span>]
|
||||
<span class="org-variable-name">Version</span>=R2020a
|
||||
<span class="org-variable-name">Type</span>=Application
|
||||
<span class="org-variable-name">Terminal</span>=false
|
||||
<span class="org-variable-name">MimeType</span>=text/x-matlab
|
||||
<span class="org-variable-name">Exec</span>=/usr/local/MATLAB/R2020a/bin/matlab -desktop -nosplash
|
||||
<span class="org-variable-name">Name</span>=MATLAB
|
||||
<span class="org-variable-name">Icon</span>=matlab
|
||||
<span class="org-variable-name">Categories</span>=Development;Math;Science
|
||||
<span class="org-variable-name">Comment</span>=Scientific computing environment
|
||||
<span class="org-variable-name">StartupNotify</span>=true
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org721c080" class="outline-2">
|
||||
<h2 id="org721c080">Neovim</h2>
|
||||
<div class="outline-text-2" id="text-org721c080">
|
||||
<div id="outline-container-org6f623b4" class="outline-2">
|
||||
<h2 id="org6f623b4">Neovim</h2>
|
||||
<div class="outline-text-2" id="text-org6f623b4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[Desktop Entry]
|
||||
Name=Neovim
|
||||
GenericName=Text Editor
|
||||
Comment=Edit text files
|
||||
Exec=nvim %F
|
||||
Terminal=true
|
||||
Type=Application
|
||||
Keywords=Text;editor;
|
||||
Icon=/usr/share/icons/Papirus/48x48/apps/nvim.svg
|
||||
Categories=Utility;TextEditor;
|
||||
StartupNotify=false
|
||||
MimeType=text/english;text/plain;text/x-makefile;
|
||||
<pre class="src src-conf">[<span class="org-type">Desktop Entry</span>]
|
||||
<span class="org-variable-name">Name</span>=Neovim
|
||||
<span class="org-variable-name">GenericName</span>=Text Editor
|
||||
<span class="org-variable-name">Comment</span>=Edit text files
|
||||
<span class="org-variable-name">Exec</span>=nvim %F
|
||||
<span class="org-variable-name">Terminal</span>=true
|
||||
<span class="org-variable-name">Type</span>=Application
|
||||
<span class="org-variable-name">Keywords</span>=Text;editor;
|
||||
<span class="org-variable-name">Icon</span>=/usr/share/icons/Papirus/48x48/apps/nvim.svg
|
||||
<span class="org-variable-name">Categories</span>=Utility;TextEditor;
|
||||
<span class="org-variable-name">StartupNotify</span>=false
|
||||
<span class="org-variable-name">MimeType</span>=text/english;text/plain;text/x-makefile;
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org11a99e9" class="outline-2">
|
||||
<h2 id="org11a99e9">Images</h2>
|
||||
<div class="outline-text-2" id="text-org11a99e9">
|
||||
<div id="outline-container-orgd5b6306" class="outline-2">
|
||||
<h2 id="orgd5b6306">Images</h2>
|
||||
<div class="outline-text-2" id="text-orgd5b6306">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Image viewer
|
||||
Exec=/usr/bin/sxiv -a %u
|
||||
<pre class="src src-conf">[<span class="org-type">Desktop Entry</span>]
|
||||
<span class="org-variable-name">Type</span>=Application
|
||||
<span class="org-variable-name">Name</span>=Image viewer
|
||||
<span class="org-variable-name">Exec</span>=/usr/bin/sxiv -a %u
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6d53535" class="outline-2">
|
||||
<h2 id="org6d53535">Org-Protocol</h2>
|
||||
<div class="outline-text-2" id="text-org6d53535">
|
||||
<div id="outline-container-orgb420f7f" class="outline-2">
|
||||
<h2 id="orgb420f7f">Org-Protocol</h2>
|
||||
<div class="outline-text-2" id="text-orgb420f7f">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[Desktop Entry]
|
||||
Name=org-protocol
|
||||
Exec=emacsclient %u
|
||||
Icon=emacs-icon
|
||||
Type=Application
|
||||
Terminal=false
|
||||
MimeType=x-scheme-handler/org-protocol;
|
||||
<pre class="src src-conf">[<span class="org-type">Desktop Entry</span>]
|
||||
<span class="org-variable-name">Name</span>=org-protocol
|
||||
<span class="org-variable-name">Exec</span>=emacsclient %u
|
||||
<span class="org-variable-name">Icon</span>=emacs-icon
|
||||
<span class="org-variable-name">Type</span>=Application
|
||||
<span class="org-variable-name">Terminal</span>=false
|
||||
<span class="org-variable-name">MimeType</span>=x-scheme-handler/org-protocol;
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org77502a5" class="outline-2">
|
||||
<h2 id="org77502a5">Ranger</h2>
|
||||
<div class="outline-text-2" id="text-org77502a5">
|
||||
<div id="outline-container-org777141a" class="outline-2">
|
||||
<h2 id="org777141a">Ranger</h2>
|
||||
<div class="outline-text-2" id="text-org777141a">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[Desktop Entry]
|
||||
Type=Application
|
||||
Name=ranger
|
||||
Comment=Launches the ranger file manager
|
||||
Icon=utilities-terminal
|
||||
Terminal=true
|
||||
Exec=ranger
|
||||
Categories=ConsoleOnly;System;FileTools;FileManager
|
||||
MimeType=inode/directory;inode/mount-point;x-scheme-handler/ssh;x-scheme-handler/smb;x-scheme-handler/nfs;x-scheme-handler/ftp;
|
||||
<pre class="src src-conf">[<span class="org-type">Desktop Entry</span>]
|
||||
<span class="org-variable-name">Type</span>=Application
|
||||
<span class="org-variable-name">Name</span>=ranger
|
||||
<span class="org-variable-name">Comment</span>=Launches the ranger file manager
|
||||
<span class="org-variable-name">Icon</span>=utilities-terminal
|
||||
<span class="org-variable-name">Terminal</span>=true
|
||||
<span class="org-variable-name">Exec</span>=ranger
|
||||
<span class="org-variable-name">Categories</span>=ConsoleOnly;System;FileTools;FileManager
|
||||
<span class="org-variable-name">MimeType</span>=inode/directory;inode/mount-point;x-scheme-handler/ssh;x-scheme-handler/smb;x-scheme-handler/nfs;x-scheme-handler/ftp;
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgbb53a17" class="outline-2">
|
||||
<h2 id="orgbb53a17">Emacs Client</h2>
|
||||
<div class="outline-text-2" id="text-orgbb53a17">
|
||||
<div id="outline-container-org0cb9832" class="outline-2">
|
||||
<h2 id="org0cb9832">Emacs Client</h2>
|
||||
<div class="outline-text-2" id="text-org0cb9832">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[Desktop Entry]
|
||||
Name=Emacs Client
|
||||
Exec=emacsclient -c %u
|
||||
Icon=emacs-icon
|
||||
Type=Application
|
||||
Terminal=false
|
||||
MimeType=x-scheme-handler/org-protocol;
|
||||
NoDisplay=true
|
||||
<pre class="src src-conf">[<span class="org-type">Desktop Entry</span>]
|
||||
<span class="org-variable-name">Name</span>=Emacs Client
|
||||
<span class="org-variable-name">Exec</span>=emacsclient -c %u
|
||||
<span class="org-variable-name">Icon</span>=emacs-icon
|
||||
<span class="org-variable-name">Type</span>=Application
|
||||
<span class="org-variable-name">Terminal</span>=false
|
||||
<span class="org-variable-name">MimeType</span>=x-scheme-handler/org-protocol;
|
||||
<span class="org-variable-name">NoDisplay</span>=true
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3bbf6ce" class="outline-2">
|
||||
<h2 id="org3bbf6ce">Torrent with Transmission</h2>
|
||||
<div class="outline-text-2" id="text-org3bbf6ce">
|
||||
<div id="outline-container-org42f59ff" class="outline-2">
|
||||
<h2 id="org42f59ff">Torrent with Transmission</h2>
|
||||
<div class="outline-text-2" id="text-org42f59ff">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Torrent
|
||||
Exec=tremc %U
|
||||
<pre class="src src-conf">[<span class="org-type">Desktop Entry</span>]
|
||||
<span class="org-variable-name">Type</span>=Application
|
||||
<span class="org-variable-name">Name</span>=Torrent
|
||||
<span class="org-variable-name">Exec</span>=tremc %U
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -234,7 +230,7 @@ Exec=tremc %U
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-05-26 mar. 08:40</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:09</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
474
docs/bash.html
474
docs/bash.html
@ -3,17 +3,13 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-11-03 mar. 16:26 -->
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Bash Configuration</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -26,75 +22,73 @@
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orge676bb2">Bashrc</a>
|
||||
<li><a href="#bashrc"><code>~/.bashrc</code></a>
|
||||
<ul>
|
||||
<li><a href="#org6524e6a">What does that do?</a></li>
|
||||
<li><a href="#orgade44ee">Bash Completion</a></li>
|
||||
<li><a href="#orgd9f988d">Ignore case for autocompletion</a></li>
|
||||
<li><a href="#org41663f0">Use Color</a></li>
|
||||
<li><a href="#org72d992f">Set colorful PS1 only on colorful terminals.</a></li>
|
||||
<li><a href="#orgd137e06">Some config</a></li>
|
||||
<li><a href="#org6e324a6">Prompt</a></li>
|
||||
<li><a href="#orgaf06a47">SSH Agent</a></li>
|
||||
<li><a href="#org586ae40">Rebind up and down arrow keys to search through bash history</a></li>
|
||||
<li><a href="#org928d454">Aliases</a>
|
||||
<li><a href="#orgb8018f7">If not running interactively, don’t do anything</a></li>
|
||||
<li><a href="#org16d9917">Bash Completion</a></li>
|
||||
<li><a href="#org17408fe">FZF</a></li>
|
||||
<li><a href="#org46238bc">Ignore case for auto-completion</a></li>
|
||||
<li><a href="#org53c6a26">Use Color</a></li>
|
||||
<li><a href="#org5664e96">Some config</a></li>
|
||||
<li><a href="#org26dcd39">Prompt - <code>PS1</code></a></li>
|
||||
<li><a href="#org7dc0b98">Rebind up and down arrow keys to search through bash history</a></li>
|
||||
<li><a href="#org5d3b91c">Aliases</a>
|
||||
<ul>
|
||||
<li><a href="#orgfc778e8">Better defaults for some commands</a></li>
|
||||
<li><a href="#orgd519f4b">One letter aliases</a></li>
|
||||
<li><a href="#org564af34">Neovim</a></li>
|
||||
<li><a href="#org258d499">Magit</a></li>
|
||||
<li><a href="#org88d74a4">Homelab Relative</a></li>
|
||||
<li><a href="#org9b3882d">Vim-like</a></li>
|
||||
<li><a href="#org62f7fe5">Print each PATH entry on a separate line</a></li>
|
||||
<li><a href="#orgad8f6ac">Better defaults for some commands</a></li>
|
||||
<li><a href="#orgd2723b6">One letter aliases</a></li>
|
||||
<li><a href="#org785c2af">Neovim</a></li>
|
||||
<li><a href="#org61be992">Vim-like</a></li>
|
||||
<li><a href="#org6f5c44a">Print each PATH entry on a separate line</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org25e4d93">Functions</a>
|
||||
<li><a href="#orgdd41cc3">Functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgfc4520c">Display colors</a></li>
|
||||
<li><a href="#org1522290">Tree display</a></li>
|
||||
<li><a href="#orgfe71409">Create a new directory and enter it</a></li>
|
||||
<li><a href="#org4395b78">Filesize of directory</a></li>
|
||||
<li><a href="#orgf1e7ce2">Redirect both standard output and standard error, as well as sending to background</a></li>
|
||||
<li><a href="#org2896f4a">Send SMS</a></li>
|
||||
<li><a href="#org716962c"><code>colors</code> - Display colors</a></li>
|
||||
<li><a href="#orgb6faa84"><code>tre</code> - Tree display</a></li>
|
||||
<li><a href="#org7b0ff56"><code>mkd</code> - Create a new directory and enter it</a></li>
|
||||
<li><a href="#org78520b0"><code>fs</code> - Filesize of directory</a></li>
|
||||
<li><a href="#orgfc72283"><code>nullify</code> - Redirect both standard output and standard error, as well as sending to background</a></li>
|
||||
<li><a href="#orge1cc477"><code>sms</code> - Send SMS</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9d14b86">Bash History</a></li>
|
||||
<li><a href="#orgfa27a35">Bash History</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6a5ac47">Bash Profile</a></li>
|
||||
<li><a href="#org99b9ec7">Profile</a>
|
||||
<li><a href="#bash_profile"><code>~/.bash_profile</code></a></li>
|
||||
<li><a href="#profile"><code>~/.profile</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgfbbfbf9">QT And GTK Themes</a></li>
|
||||
<li><a href="#orgbe2ffab">Gui program to ask for sudo password</a></li>
|
||||
<li><a href="#orga5ea80f">Gnome Keyring Daemon</a></li>
|
||||
<li><a href="#org3e2966e">Default</a></li>
|
||||
<li><a href="#org5ea13c1">Exports</a>
|
||||
<li><a href="#org15952b2">QT And GTK Themes</a></li>
|
||||
<li><a href="#org6c38c79">Gui program to ask for sudo password</a></li>
|
||||
<li><a href="#org5d2ff76">Gnome Keyring Daemon</a></li>
|
||||
<li><a href="#org10b40b3">Export some default applications</a></li>
|
||||
<li><a href="#orgf65a830">Exports</a>
|
||||
<ul>
|
||||
<li><a href="#org58a49d1">Term</a></li>
|
||||
<li><a href="#org1a74001">XDG Default</a></li>
|
||||
<li><a href="#org117a776">Better yaourt colors</a></li>
|
||||
<li><a href="#org684e85f">Use Ripgrep for FZF</a></li>
|
||||
<li><a href="#org545dc00">Goland</a></li>
|
||||
<li><a href="#org20b9dbe">Latex Path</a></li>
|
||||
<li><a href="#org8965bcd">Bitwarden Session</a></li>
|
||||
<li><a href="#org64e2de8">Term</a></li>
|
||||
<li><a href="#org0fa2d26">XDG Default</a></li>
|
||||
<li><a href="#org51055fb">Use Ripgrep for FZF</a></li>
|
||||
<li><a href="#org08d14fc">Goland</a></li>
|
||||
<li><a href="#org18f49cf">Latex Path</a></li>
|
||||
<li><a href="#org992e4cf">Bitwarden Session</a></li>
|
||||
<li><a href="#org6bdbd18">Python Path</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org3b15f2e">Path</a></li>
|
||||
<li><a href="#org8a10d32">Path</a></li>
|
||||
<li><a href="#orgda5e48a">Automatically run <code>startx</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org966baa0">Input</a></li>
|
||||
<li><a href="#inputrc"><code>~/.inputrc</code></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge676bb2" class="outline-2">
|
||||
<h2 id="orge676bb2">Bashrc</h2>
|
||||
<div class="outline-text-2" id="text-orge676bb2">
|
||||
<div id="outline-container-bashrc" class="outline-2">
|
||||
<h2 id="bashrc"><code>~/.bashrc</code></h2>
|
||||
<div class="outline-text-2" id="text-bashrc">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6524e6a" class="outline-3">
|
||||
<h3 id="org6524e6a">What does that do?</h3>
|
||||
<div class="outline-text-3" id="text-org6524e6a">
|
||||
<div id="outline-container-orgb8018f7" class="outline-3">
|
||||
<h3 id="orgb8018f7">If not running interactively, don’t do anything</h3>
|
||||
<div class="outline-text-3" id="text-orgb8018f7">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> $<span class="org-variable-name">-</span> != *i* <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span> && <span class="org-keyword">return</span>
|
||||
</pre>
|
||||
@ -102,9 +96,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgade44ee" class="outline-3">
|
||||
<h3 id="orgade44ee">Bash Completion</h3>
|
||||
<div class="outline-text-3" id="text-orgade44ee">
|
||||
<div id="outline-container-org16d9917" class="outline-3">
|
||||
<h3 id="org16d9917">Bash Completion</h3>
|
||||
<div class="outline-text-3" id="text-org16d9917">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-rainbow-delimiters-depth-1">[</span> -r /usr/share/bash-completion/bash_completion <span class="org-rainbow-delimiters-depth-1">]</span> && <span class="org-builtin">.</span> /usr/share/bash-completion/bash_completion
|
||||
</pre>
|
||||
@ -112,9 +106,19 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd9f988d" class="outline-3">
|
||||
<h3 id="orgd9f988d">Ignore case for autocompletion</h3>
|
||||
<div class="outline-text-3" id="text-orgd9f988d">
|
||||
<div id="outline-container-org17408fe" class="outline-3">
|
||||
<h3 id="org17408fe">FZF</h3>
|
||||
<div class="outline-text-3" id="text-org17408fe">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">source</span> /usr/share/fzf/key-bindings.bash
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org46238bc" class="outline-3">
|
||||
<h3 id="org46238bc">Ignore case for auto-completion</h3>
|
||||
<div class="outline-text-3" id="text-org46238bc">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">bind</span> <span class="org-string">"set completion-ignore-case on"</span>
|
||||
<span class="org-builtin">bind</span> <span class="org-string">"set show-all-if-ambiguous on"</span>
|
||||
@ -123,76 +127,33 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org41663f0" class="outline-3">
|
||||
<h3 id="org41663f0">Use Color</h3>
|
||||
<div class="outline-text-3" id="text-org41663f0">
|
||||
<div id="outline-container-org53c6a26" class="outline-3">
|
||||
<h3 id="org53c6a26">Use Color</h3>
|
||||
<div class="outline-text-3" id="text-org53c6a26">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">use_color</span>=true
|
||||
<span class="org-builtin">alias</span> <span class="org-type">ls</span>=<span class="org-string">'</span><span class="org-type"><span class="org-string">ls</span></span><span class="org-string"> -hN --color=auto --group-directories-first'</span>
|
||||
<span class="org-builtin">alias</span> <span class="org-type">grep</span>=<span class="org-string">'</span><span class="org-type"><span class="org-string">grep</span></span><span class="org-string"> --colour=auto'</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org72d992f" class="outline-3">
|
||||
<h3 id="org72d992f">Set colorful PS1 only on colorful terminals.</h3>
|
||||
<div class="outline-text-3" id="text-org72d992f">
|
||||
<p>
|
||||
dircolors –print-database uses its own built-in database instead of using /etc/DIR_COLORS. Try to use the external file first to take advantage of user additions. Use internal bash globbing instead of external grep binary.
|
||||
</p>
|
||||
|
||||
<div id="outline-container-org5664e96" class="outline-3">
|
||||
<h3 id="org5664e96">Some config</h3>
|
||||
<div class="outline-text-3" id="text-org5664e96">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">safe_term</span>=$<span class="org-rainbow-delimiters-depth-1">{</span><span class="org-variable-name">TERM</span>//<span class="org-rainbow-delimiters-depth-2">[</span>^<span class="org-rainbow-delimiters-depth-3">[</span>:alnum:<span class="org-rainbow-delimiters-depth-3">]</span><span class="org-rainbow-delimiters-depth-2">]</span>/?<span class="org-rainbow-delimiters-depth-1">}</span> <span class="org-comment-delimiter"># </span><span class="org-comment">sanitize TERM</span>
|
||||
<span class="org-variable-name">match_lhs</span>=<span class="org-string">""</span>
|
||||
<span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> -f ~/.dir_colors <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span> && <span class="org-variable-name">match_lhs</span>=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{match_lhs}</span></span><span class="org-string"><span class="org-sh-quoted-exec">$(<~/.dir_colors)</span></span><span class="org-string">"</span>
|
||||
<span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> -f /etc/DIR_COLORS <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span> && <span class="org-variable-name">match_lhs</span>=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{match_lhs}</span></span><span class="org-string"><span class="org-sh-quoted-exec">$(</etc/DIR_COLORS)</span></span><span class="org-string">"</span>
|
||||
<span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> -z $<span class="org-rainbow-delimiters-depth-3">{</span><span class="org-variable-name">match_lhs</span><span class="org-rainbow-delimiters-depth-3">}</span> <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span> <span class="org-sh-escaped-newline">\</span>
|
||||
&& <span class="org-builtin">type</span> -P dircolors >/dev/null <span class="org-sh-escaped-newline">\</span>
|
||||
&& <span class="org-variable-name">match_lhs</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">dircolors</span> --print-database<span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
<span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> $<span class="org-string">'\n'</span>$<span class="org-rainbow-delimiters-depth-3">{</span><span class="org-variable-name">match_lhs</span><span class="org-rainbow-delimiters-depth-3">}</span> == *$<span class="org-string">'\n'"TERM "</span>$<span class="org-rainbow-delimiters-depth-3">{</span><span class="org-variable-name">safe_term</span><span class="org-rainbow-delimiters-depth-3">}</span>* <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span> && <span class="org-variable-name">use_color</span>=true
|
||||
|
||||
<span class="org-keyword">if</span> $<span class="org-rainbow-delimiters-depth-1">{</span><span class="org-variable-name">use_color</span><span class="org-rainbow-delimiters-depth-1">}</span> ; <span class="org-keyword">then</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Enable colors for ls, etc. Prefer ~/.dir_colors #64489</span>
|
||||
<span class="org-keyword">if </span><span class="org-builtin">type</span> -P dircolors >/dev/null ; <span class="org-keyword">then</span>
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> -f ~/.dir_colors <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span> ; <span class="org-keyword">then</span>
|
||||
<span class="org-builtin">eval</span> $<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">dircolors</span> -b ~/.dir_colors<span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
<span class="org-keyword">elif</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> -f /etc/DIR_COLORS <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span> ; <span class="org-keyword">then</span>
|
||||
<span class="org-builtin">eval</span> $<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">dircolors</span> -b /etc/DIR_COLORS<span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
<span class="org-keyword">fi</span>
|
||||
<span class="org-keyword">fi</span>
|
||||
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> $<span class="org-rainbow-delimiters-depth-3">{</span><span class="org-variable-name">EUID</span><span class="org-rainbow-delimiters-depth-3">}</span> == <span class="org-highlight-numbers-number">0</span> <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span> ; <span class="org-keyword">then</span>
|
||||
<span class="org-variable-name">PS1</span>=<span class="org-string">'\[\033[01;31m\][\h\[\033[01;36m\] \W\[\033[01;31m\]]\$\[\033[00m\] '</span>
|
||||
<span class="org-keyword">else</span>
|
||||
<span class="org-variable-name">PS1</span>=<span class="org-string">'\[\033[01;32m\][\u@\h\[\033[01;37m\] \W\[\033[01;32m\]]\$\[\033[00m\] '</span>
|
||||
<span class="org-keyword">fi</span>
|
||||
<span class="org-keyword">else</span>
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> $<span class="org-rainbow-delimiters-depth-3">{</span><span class="org-variable-name">EUID</span><span class="org-rainbow-delimiters-depth-3">}</span> == <span class="org-highlight-numbers-number">0</span> <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span> ; <span class="org-keyword">then</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">show root@ when we don't have colors</span>
|
||||
<span class="org-variable-name">PS1</span>=<span class="org-string">'\u@\h \W \$ '</span>
|
||||
<span class="org-keyword">else</span>
|
||||
<span class="org-variable-name">PS1</span>=<span class="org-string">'\u@\h \w \$ '</span>
|
||||
<span class="org-keyword">fi</span>
|
||||
<span class="org-keyword">fi</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd137e06" class="outline-3">
|
||||
<h3 id="orgd137e06">Some config</h3>
|
||||
<div class="outline-text-3" id="text-orgd137e06">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">unset</span> use_color safe_term match_lhs sh
|
||||
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Unset some variables</span>
|
||||
<span class="org-builtin">unset</span> use_color safe_term match_lhs sh
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Allow local processes with root privileges to connect to the locally running X server</span>
|
||||
xhost +local:root > /dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Autocomplete </span><span class="org-type"><span class="org-comment">sudo</span></span><span class="org-comment"> commands</span>
|
||||
<span class="org-builtin">complete</span> -cf <span class="org-type">sudo</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Line wrap on window resize</span>
|
||||
<span class="org-builtin">shopt</span> -s checkwinsize
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Expand Aliases</span>
|
||||
<span class="org-builtin">shopt</span> -s expand_aliases
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Auto "</span><span class="org-type"><span class="org-comment">cd</span></span><span class="org-comment">" when entering just a path</span>
|
||||
@ -205,9 +166,9 @@ xhost +local:root > /dev/null <span class="org-highlight-numbers-number">2</s
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6e324a6" class="outline-3">
|
||||
<h3 id="org6e324a6">Prompt</h3>
|
||||
<div class="outline-text-3" id="text-org6e324a6">
|
||||
<div id="outline-container-org26dcd39" class="outline-3">
|
||||
<h3 id="org26dcd39">Prompt - <code>PS1</code></h3>
|
||||
<div class="outline-text-3" id="text-org26dcd39">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">PS1</span>=<span class="org-string">"\[</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">tput</span><span class="org-string"><span class="org-sh-quoted-exec"> bold)</span></span><span class="org-string">\]\[</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">tput</span><span class="org-string"><span class="org-sh-quoted-exec"> setaf 1)</span></span><span class="org-string">\][\[</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">tput</span><span class="org-string"><span class="org-sh-quoted-exec"> setaf 3)</span></span><span class="org-string">\]\u\[</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">tput</span><span class="org-string"><span class="org-sh-quoted-exec"> setaf 2)</span></span><span class="org-string">\]@\[</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">tput</span><span class="org-string"><span class="org-sh-quoted-exec"> setaf 4)</span></span><span class="org-string">\]\h \[</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">tput</span><span class="org-string"><span class="org-sh-quoted-exec"> setaf 5)</span></span><span class="org-string">\]\W\[</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">tput</span><span class="org-string"><span class="org-sh-quoted-exec"> setaf 1)</span></span><span class="org-string">\]]\[</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">tput</span><span class="org-string"><span class="org-sh-quoted-exec"> setaf 7)</span></span><span class="org-string">\]\\$ \[</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">tput</span><span class="org-string"><span class="org-sh-quoted-exec"> sgr0)</span></span><span class="org-string">\]"</span>
|
||||
</pre>
|
||||
@ -215,24 +176,9 @@ xhost +local:root > /dev/null <span class="org-highlight-numbers-number">2</s
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaf06a47" class="outline-3">
|
||||
<h3 id="orgaf06a47">SSH Agent</h3>
|
||||
<div class="outline-text-3" id="text-orgaf06a47">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">if ! </span><span class="org-type"><span class="org-comment">pgrep</span></span><span class="org-comment"> -u "$USER" ssh-agent > /dev/null; then</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">ssh-agent > "$XDG_RUNTIME_DIR/ssh-agent.env"</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">fi</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">if [[ ! "$SSH_AUTH_SOCK" ]]; then</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">eval "$(<"$XDG_RUNTIME_DIR/ssh-agent.env")"</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">fi</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org586ae40" class="outline-3">
|
||||
<h3 id="org586ae40">Rebind up and down arrow keys to search through bash history</h3>
|
||||
<div class="outline-text-3" id="text-org586ae40">
|
||||
<div id="outline-container-org7dc0b98" class="outline-3">
|
||||
<h3 id="org7dc0b98">Rebind up and down arrow keys to search through bash history</h3>
|
||||
<div class="outline-text-3" id="text-org7dc0b98">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">bind</span> <span class="org-string">'"\e[A": history-search-backward'</span>
|
||||
<span class="org-builtin">bind</span> <span class="org-string">'"\e[B": history-search-forward'</span>
|
||||
@ -241,15 +187,17 @@ xhost +local:root > /dev/null <span class="org-highlight-numbers-number">2</s
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org928d454" class="outline-3">
|
||||
<h3 id="org928d454">Aliases</h3>
|
||||
<div class="outline-text-3" id="text-org928d454">
|
||||
<div id="outline-container-org5d3b91c" class="outline-3">
|
||||
<h3 id="org5d3b91c">Aliases</h3>
|
||||
<div class="outline-text-3" id="text-org5d3b91c">
|
||||
</div>
|
||||
<div id="outline-container-orgfc778e8" class="outline-4">
|
||||
<h4 id="orgfc778e8">Better defaults for some commands</h4>
|
||||
<div class="outline-text-4" id="text-orgfc778e8">
|
||||
<div id="outline-container-orgad8f6ac" class="outline-4">
|
||||
<h4 id="orgad8f6ac">Better defaults for some commands</h4>
|
||||
<div class="outline-text-4" id="text-orgad8f6ac">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">alias</span> <span class="org-type">cp</span>=<span class="org-string">"</span><span class="org-type"><span class="org-string">cp</span></span><span class="org-string"> -i"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">confirm before overwriting something</span>
|
||||
<pre class="src src-bash"><span class="org-builtin">alias</span> <span class="org-type">ls</span>=<span class="org-string">'</span><span class="org-type"><span class="org-string">ls</span></span><span class="org-string"> -hN --color=auto --group-directories-first'</span>
|
||||
<span class="org-builtin">alias</span> <span class="org-type">grep</span>=<span class="org-string">'</span><span class="org-type"><span class="org-string">grep</span></span><span class="org-string"> --colour=auto'</span>
|
||||
<span class="org-builtin">alias</span> <span class="org-type">cp</span>=<span class="org-string">"</span><span class="org-type"><span class="org-string">cp</span></span><span class="org-string"> -i"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">confirm before overwriting something</span>
|
||||
<span class="org-builtin">alias</span> <span class="org-variable-name">df</span>=<span class="org-string">'df -h'</span> <span class="org-comment-delimiter"># </span><span class="org-comment">human-readable sizes</span>
|
||||
<span class="org-builtin">alias</span> <span class="org-variable-name">free</span>=<span class="org-string">'free -m'</span> <span class="org-comment-delimiter"># </span><span class="org-comment">show sizes in MB</span>
|
||||
<span class="org-builtin">alias</span> <span class="org-variable-name">mutt</span>=<span class="org-string">"neomutt"</span>
|
||||
@ -259,9 +207,9 @@ xhost +local:root > /dev/null <span class="org-highlight-numbers-number">2</s
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd519f4b" class="outline-4">
|
||||
<h4 id="orgd519f4b">One letter aliases</h4>
|
||||
<div class="outline-text-4" id="text-orgd519f4b">
|
||||
<div id="outline-container-orgd2723b6" class="outline-4">
|
||||
<h4 id="orgd2723b6">One letter aliases</h4>
|
||||
<div class="outline-text-4" id="text-orgd2723b6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">alias</span> <span class="org-variable-name">r</span>=<span class="org-string">"ranger"</span>
|
||||
<span class="org-builtin">alias</span> <span class="org-variable-name">t</span>=<span class="org-string">"tmux"</span>
|
||||
@ -269,17 +217,15 @@ xhost +local:root > /dev/null <span class="org-highlight-numbers-number">2</s
|
||||
<span class="org-builtin">alias</span> <span class="org-variable-name">sv</span>=<span class="org-string">'</span><span class="org-type"><span class="org-string">sudo</span></span><span class="org-string"> -E nvim'</span>
|
||||
<span class="org-builtin">alias</span> <span class="org-variable-name">g</span>=<span class="org-string">"</span><span class="org-type"><span class="org-string">git</span></span><span class="org-string">"</span>
|
||||
<span class="org-builtin">alias</span> <span class="org-variable-name">m</span>=<span class="org-string">"neomutt"</span>
|
||||
<span class="org-builtin">alias</span> <span class="org-variable-name">y</span>=<span class="org-string">"yadm"</span>
|
||||
<span class="org-builtin">alias</span> <span class="org-variable-name">o</span>=<span class="org-string">"xdg-open"</span>
|
||||
<span class="org-builtin">alias</span> <span class="org-variable-name">x</span>=<span class="org-string">"sxiv -ft *"</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org564af34" class="outline-4">
|
||||
<h4 id="org564af34">Neovim</h4>
|
||||
<div class="outline-text-4" id="text-org564af34">
|
||||
<div id="outline-container-org785c2af" class="outline-4">
|
||||
<h4 id="org785c2af">Neovim</h4>
|
||||
<div class="outline-text-4" id="text-org785c2af">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">command</span> -v nvim >/dev/null && <span class="org-builtin">alias</span> <span class="org-variable-name">vim</span>=<span class="org-string">"nvim"</span> <span class="org-variable-name">vimdiff</span>=<span class="org-string">"nvim -d"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Use neovim for vim if present.</span>
|
||||
</pre>
|
||||
@ -287,30 +233,9 @@ xhost +local:root > /dev/null <span class="org-highlight-numbers-number">2</s
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org258d499" class="outline-4">
|
||||
<h4 id="org258d499">Magit</h4>
|
||||
<div class="outline-text-4" id="text-org258d499">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">alias magit="emacsclient -create-frame --alternate-editor=\"\" --eval '(magit-status)'"</span>
|
||||
<span class="org-builtin">alias</span> <span class="org-variable-name">magit</span>=<span class="org-string">"nvim -c MagitOnly"</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org88d74a4" class="outline-4">
|
||||
<h4 id="org88d74a4">Homelab Relative</h4>
|
||||
<div class="outline-text-4" id="text-org88d74a4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">alias</span> <span class="org-variable-name">dlab</span>=<span class="org-string">"aria2p --port 6800 --host http://dl.tdehaeze.xyz --secret </span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">pass</span><span class="org-string"><span class="org-sh-quoted-exec"> dl.tdehaeze.xyz/tdehaeze | sed -n 1p)</span></span><span class="org-string">"</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9b3882d" class="outline-4">
|
||||
<h4 id="org9b3882d">Vim-like</h4>
|
||||
<div class="outline-text-4" id="text-org9b3882d">
|
||||
<div id="outline-container-org61be992" class="outline-4">
|
||||
<h4 id="org61be992">Vim-like</h4>
|
||||
<div class="outline-text-4" id="text-org61be992">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">alias</span> :<span class="org-variable-name">q</span>=exit
|
||||
<span class="org-builtin">alias</span> :<span class="org-variable-name">e</span>=nvim
|
||||
@ -319,9 +244,9 @@ xhost +local:root > /dev/null <span class="org-highlight-numbers-number">2</s
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org62f7fe5" class="outline-4">
|
||||
<h4 id="org62f7fe5">Print each PATH entry on a separate line</h4>
|
||||
<div class="outline-text-4" id="text-org62f7fe5">
|
||||
<div id="outline-container-org6f5c44a" class="outline-4">
|
||||
<h4 id="org6f5c44a">Print each PATH entry on a separate line</h4>
|
||||
<div class="outline-text-4" id="text-org6f5c44a">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">alias</span> <span class="org-variable-name">path</span>=<span class="org-string">'</span><span class="org-type"><span class="org-string">echo</span></span><span class="org-string"> -e ${PATH//:/\\n}'</span>
|
||||
</pre>
|
||||
@ -330,13 +255,13 @@ xhost +local:root > /dev/null <span class="org-highlight-numbers-number">2</s
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org25e4d93" class="outline-3">
|
||||
<h3 id="org25e4d93">Functions</h3>
|
||||
<div class="outline-text-3" id="text-org25e4d93">
|
||||
<div id="outline-container-orgdd41cc3" class="outline-3">
|
||||
<h3 id="orgdd41cc3">Functions</h3>
|
||||
<div class="outline-text-3" id="text-orgdd41cc3">
|
||||
</div>
|
||||
<div id="outline-container-orgfc4520c" class="outline-4">
|
||||
<h4 id="orgfc4520c">Display colors</h4>
|
||||
<div class="outline-text-4" id="text-orgfc4520c">
|
||||
<div id="outline-container-org716962c" class="outline-4">
|
||||
<h4 id="org716962c"><code>colors</code> - Display colors</h4>
|
||||
<div class="outline-text-4" id="text-org716962c">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-function-name">colors</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
|
||||
<span class="org-builtin">local</span> fgc bgc vals seq0
|
||||
@ -369,9 +294,9 @@ xhost +local:root > /dev/null <span class="org-highlight-numbers-number">2</s
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1522290" class="outline-4">
|
||||
<h4 id="org1522290">Tree display</h4>
|
||||
<div class="outline-text-4" id="text-org1522290">
|
||||
<div id="outline-container-orgb6faa84" class="outline-4">
|
||||
<h4 id="orgb6faa84"><code>tre</code> - Tree display</h4>
|
||||
<div class="outline-text-4" id="text-orgb6faa84">
|
||||
<p>
|
||||
<code>tre</code> is a shorthand for <code>tree</code> with hidden files and color enabled, ignoring
|
||||
the <code>.git</code> directory, listing directories first. The output gets piped into
|
||||
@ -388,9 +313,9 @@ small enough for one screen.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfe71409" class="outline-4">
|
||||
<h4 id="orgfe71409">Create a new directory and enter it</h4>
|
||||
<div class="outline-text-4" id="text-orgfe71409">
|
||||
<div id="outline-container-org7b0ff56" class="outline-4">
|
||||
<h4 id="org7b0ff56"><code>mkd</code> - Create a new directory and enter it</h4>
|
||||
<div class="outline-text-4" id="text-org7b0ff56">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-keyword">function</span> <span class="org-function-name">mkd</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
|
||||
<span class="org-type">mkdir</span> -p <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span> && <span class="org-type">cd</span> <span class="org-string">"$_"</span>;
|
||||
@ -400,9 +325,9 @@ small enough for one screen.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4395b78" class="outline-4">
|
||||
<h4 id="org4395b78">Filesize of directory</h4>
|
||||
<div class="outline-text-4" id="text-org4395b78">
|
||||
<div id="outline-container-org78520b0" class="outline-4">
|
||||
<h4 id="org78520b0"><code>fs</code> - Filesize of directory</h4>
|
||||
<div class="outline-text-4" id="text-org78520b0">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-keyword">function</span> <span class="org-function-name">fs</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
|
||||
<span class="org-keyword">if</span> du -b /dev/null > /dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span>; <span class="org-keyword">then</span>
|
||||
@ -421,9 +346,9 @@ small enough for one screen.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf1e7ce2" class="outline-4">
|
||||
<h4 id="orgf1e7ce2">Redirect both standard output and standard error, as well as sending to background</h4>
|
||||
<div class="outline-text-4" id="text-orgf1e7ce2">
|
||||
<div id="outline-container-orgfc72283" class="outline-4">
|
||||
<h4 id="orgfc72283"><code>nullify</code> - Redirect both standard output and standard error, as well as sending to background</h4>
|
||||
<div class="outline-text-4" id="text-orgfc72283">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-keyword">function</span> <span class="org-function-name">nullify</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
|
||||
<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span> >/dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span>
|
||||
@ -433,12 +358,13 @@ small enough for one screen.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2896f4a" class="outline-4">
|
||||
<h4 id="org2896f4a">Send SMS</h4>
|
||||
<div class="outline-text-4" id="text-org2896f4a">
|
||||
<div id="outline-container-orge1cc477" class="outline-4">
|
||||
<h4 id="orge1cc477"><code>sms</code> - Send SMS</h4>
|
||||
<div class="outline-text-4" id="text-orge1cc477">
|
||||
<p>
|
||||
<a href="https://doronbehar.com/articles/using-kdeconnect-to-comfortably-send-sms-messages-from-the-shell/#kdeconnects-builtin-sms-interface">https://doronbehar.com/articles/using-kdeconnect-to-comfortably-send-sms-messages-from-the-shell/#kdeconnects-builtin-sms-interface</a>
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-function-name">sms</span><span class="org-rainbow-delimiters-depth-1">(){</span>
|
||||
<span class="org-builtin">local</span> <span class="org-variable-name">args</span>=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span>
|
||||
@ -449,10 +375,7 @@ small enough for one screen.
|
||||
<span class="org-type">echo</span> No recipient was chosen >&<span class="org-highlight-numbers-number">2</span>
|
||||
<span class="org-keyword">return</span>
|
||||
<span class="org-keyword">else</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-type"><span class="org-comment">echo</span></span><span class="org-comment"> "${name}"$'\t'"${phone_number}"$'\t'"${phone_type}" > ${_KDECONNECT_SMS_LAST_RECIPIENT}</span>
|
||||
kdeconnect-cli --send-sms <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{args}</span></span><span class="org-string">"</span> --destination <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{phone_number}</span></span><span class="org-string">"</span> --device 4de3b5de2264a17c
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">kdeconnect-cli --device ${_KDECONNECT_DEFAULT_DEVICE} --send-sms "${args}" --destination "${phone_number}" && \</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-type"><span class="org-comment">echo</span></span><span class="org-comment"> sent sms message to ${name} | fribidi</span>
|
||||
<span class="org-keyword">fi</span>
|
||||
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||
|
||||
@ -461,9 +384,10 @@ small enough for one screen.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org9d14b86" class="outline-3">
|
||||
<h3 id="org9d14b86">Bash History</h3>
|
||||
<div class="outline-text-3" id="text-org9d14b86">
|
||||
|
||||
<div id="outline-container-orgfa27a35" class="outline-3">
|
||||
<h3 id="orgfa27a35">Bash History</h3>
|
||||
<div class="outline-text-3" id="text-orgfa27a35">
|
||||
<p>
|
||||
Undocumented feature which sets the size to “unlimited”. <a href="http://stackoverflow.com/questions/9457233/unlimited-bash-history">http://stackoverflow.com/questions/9457233/unlimited-bash-history</a>
|
||||
</p>
|
||||
@ -496,9 +420,9 @@ Force prompt to write history after every command. <a href="http://superuser.com
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6a5ac47" class="outline-2">
|
||||
<h2 id="org6a5ac47">Bash Profile</h2>
|
||||
<div class="outline-text-2" id="text-org6a5ac47">
|
||||
<div id="outline-container-bash_profile" class="outline-2">
|
||||
<h2 id="bash_profile"><code>~/.bash_profile</code></h2>
|
||||
<div class="outline-text-2" id="text-bash_profile">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> -f ~/.profile <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span> && <span class="org-builtin">.</span> ~/.profile
|
||||
<span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> -f ~/.bashrc <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span> && <span class="org-builtin">.</span> ~/.bashrc
|
||||
@ -507,14 +431,14 @@ Force prompt to write history after every command. <a href="http://superuser.com
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org99b9ec7" class="outline-2">
|
||||
<h2 id="org99b9ec7">Profile</h2>
|
||||
<div class="outline-text-2" id="text-org99b9ec7">
|
||||
<div id="outline-container-profile" class="outline-2">
|
||||
<h2 id="profile"><code>~/.profile</code></h2>
|
||||
<div class="outline-text-2" id="text-profile">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfbbfbf9" class="outline-3">
|
||||
<h3 id="orgfbbfbf9">QT And GTK Themes</h3>
|
||||
<div class="outline-text-3" id="text-orgfbbfbf9">
|
||||
<div id="outline-container-org15952b2" class="outline-3">
|
||||
<h3 id="org15952b2">QT And GTK Themes</h3>
|
||||
<div class="outline-text-3" id="text-org15952b2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">QT_QPA_PLATFORMTHEME</span>=<span class="org-string">"qt5ct"</span>
|
||||
<span class="org-builtin">export</span> <span class="org-variable-name">GTK2_RC_FILES</span>=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">HOME</span></span><span class="org-string">/.gtkrc-2.0"</span>
|
||||
@ -523,9 +447,9 @@ Force prompt to write history after every command. <a href="http://superuser.com
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbe2ffab" class="outline-3">
|
||||
<h3 id="orgbe2ffab">Gui program to ask for sudo password</h3>
|
||||
<div class="outline-text-3" id="text-orgbe2ffab">
|
||||
<div id="outline-container-org6c38c79" class="outline-3">
|
||||
<h3 id="org6c38c79">Gui program to ask for sudo password</h3>
|
||||
<div class="outline-text-3" id="text-org6c38c79">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">SUDO_ASKPASS</span>=~/.local/bin/askpass-rofi
|
||||
</pre>
|
||||
@ -533,9 +457,12 @@ Force prompt to write history after every command. <a href="http://superuser.com
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga5ea80f" class="outline-3">
|
||||
<h3 id="orga5ea80f">Gnome Keyring Daemon</h3>
|
||||
<div class="outline-text-3" id="text-orga5ea80f">
|
||||
<div id="outline-container-org5d2ff76" class="outline-3">
|
||||
<h3 id="org5d2ff76">Gnome Keyring Daemon</h3>
|
||||
<div class="outline-text-3" id="text-org5d2ff76">
|
||||
<p>
|
||||
Enable the keyring for applications run through the terminal
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -n <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">DESKTOP_SESSION</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>;<span class="org-keyword">then</span>
|
||||
<span class="org-builtin">eval</span> $<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">gnome-keyring-daemon</span> --start<span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
@ -546,9 +473,9 @@ Force prompt to write history after every command. <a href="http://superuser.com
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3e2966e" class="outline-3">
|
||||
<h3 id="org3e2966e">Default</h3>
|
||||
<div class="outline-text-3" id="text-org3e2966e">
|
||||
<div id="outline-container-org10b40b3" class="outline-3">
|
||||
<h3 id="org10b40b3">Export some default applications</h3>
|
||||
<div class="outline-text-3" id="text-org10b40b3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">EDITOR</span>=<span class="org-string">"nvim"</span>
|
||||
<span class="org-builtin">export</span> <span class="org-variable-name">TERMINAL</span>=<span class="org-string">"termite"</span>
|
||||
@ -560,13 +487,13 @@ Force prompt to write history after every command. <a href="http://superuser.com
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5ea13c1" class="outline-3">
|
||||
<h3 id="org5ea13c1">Exports</h3>
|
||||
<div class="outline-text-3" id="text-org5ea13c1">
|
||||
<div id="outline-container-orgf65a830" class="outline-3">
|
||||
<h3 id="orgf65a830">Exports</h3>
|
||||
<div class="outline-text-3" id="text-orgf65a830">
|
||||
</div>
|
||||
<div id="outline-container-org58a49d1" class="outline-4">
|
||||
<h4 id="org58a49d1">Term</h4>
|
||||
<div class="outline-text-4" id="text-org58a49d1">
|
||||
<div id="outline-container-org64e2de8" class="outline-4">
|
||||
<h4 id="org64e2de8">Term</h4>
|
||||
<div class="outline-text-4" id="text-org64e2de8">
|
||||
<p>
|
||||
This is important for termite to work when sshing in remote machines.
|
||||
</p>
|
||||
@ -577,9 +504,9 @@ This is important for termite to work when sshing in remote machines.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1a74001" class="outline-4">
|
||||
<h4 id="org1a74001">XDG Default</h4>
|
||||
<div class="outline-text-4" id="text-org1a74001">
|
||||
<div id="outline-container-org0fa2d26" class="outline-4">
|
||||
<h4 id="org0fa2d26">XDG Default</h4>
|
||||
<div class="outline-text-4" id="text-org0fa2d26">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">XDG_CONFIG_HOME</span>=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">HOME</span></span><span class="org-string">/.config"</span>
|
||||
</pre>
|
||||
@ -587,19 +514,9 @@ This is important for termite to work when sshing in remote machines.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org117a776" class="outline-4">
|
||||
<h4 id="org117a776">Better yaourt colors</h4>
|
||||
<div class="outline-text-4" id="text-org117a776">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">YAOURT_COLORS</span>=<span class="org-string">"nb=1:pkg=1:ver=1;32:lver=1;45:installed=1;42:grp=1;34:od=1;41;5:votes=1;44:dsc=0:other=1;35"</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org684e85f" class="outline-4">
|
||||
<h4 id="org684e85f">Use Ripgrep for FZF</h4>
|
||||
<div class="outline-text-4" id="text-org684e85f">
|
||||
<div id="outline-container-org51055fb" class="outline-4">
|
||||
<h4 id="org51055fb">Use Ripgrep for FZF</h4>
|
||||
<div class="outline-text-4" id="text-org51055fb">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">FZF_DEFAULT_COMMAND</span>=<span class="org-string">'rg --files --no-ignore --hidden --follow --glob "!.git/*"'</span>
|
||||
<span class="org-builtin">export</span> <span class="org-variable-name">FZF_DEFAULT_OPTS</span>=<span class="org-string">'--layout=reverse --height=20'</span>
|
||||
@ -608,9 +525,9 @@ This is important for termite to work when sshing in remote machines.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org545dc00" class="outline-4">
|
||||
<h4 id="org545dc00">Goland</h4>
|
||||
<div class="outline-text-4" id="text-org545dc00">
|
||||
<div id="outline-container-org08d14fc" class="outline-4">
|
||||
<h4 id="org08d14fc">Goland</h4>
|
||||
<div class="outline-text-4" id="text-org08d14fc">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">GOPATH</span>=$<span class="org-variable-name">HOME</span>/go
|
||||
</pre>
|
||||
@ -618,9 +535,9 @@ This is important for termite to work when sshing in remote machines.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org20b9dbe" class="outline-4">
|
||||
<h4 id="org20b9dbe">Latex Path</h4>
|
||||
<div class="outline-text-4" id="text-org20b9dbe">
|
||||
<div id="outline-container-org18f49cf" class="outline-4">
|
||||
<h4 id="org18f49cf">Latex Path</h4>
|
||||
<div class="outline-text-4" id="text-org18f49cf">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">TEXMFHOME</span>=$<span class="org-variable-name">HOME</span>/.local/share/texmf
|
||||
</pre>
|
||||
@ -628,36 +545,57 @@ This is important for termite to work when sshing in remote machines.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8965bcd" class="outline-4">
|
||||
<h4 id="org8965bcd">Bitwarden Session</h4>
|
||||
<div class="outline-text-4" id="text-org8965bcd">
|
||||
<div id="outline-container-org992e4cf" class="outline-4">
|
||||
<h4 id="org992e4cf">Bitwarden Session</h4>
|
||||
<div class="outline-text-4" id="text-org992e4cf">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">BW_SESSION</span>=<span class="org-string">"HH0yycfocRSuGtq/iW1e6v13PQ1sShMXbMhdb/En94S6OcIXFnJlLEyU+dySsmf2YShY4CImoB5FrxgdPsY9Qw=="</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3b15f2e" class="outline-3">
|
||||
<h3 id="org3b15f2e">Path</h3>
|
||||
<div class="outline-text-3" id="text-org3b15f2e">
|
||||
<div id="outline-container-org6bdbd18" class="outline-4">
|
||||
<h4 id="org6bdbd18">Python Path</h4>
|
||||
<div class="outline-text-4" id="text-org6bdbd18">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">PATH</span>=$<span class="org-variable-name">HOME</span>/appimages:$<span class="org-variable-name">PATH</span>
|
||||
<span class="org-variable-name">PATH</span>=$<span class="org-variable-name">HOME</span>/.gem/ruby/2.5.0/bin:$<span class="org-variable-name">PATH</span>
|
||||
<span class="org-variable-name">PATH</span>=$<span class="org-variable-name">GOPATH</span>:$<span class="org-variable-name">GOPATH</span>/bin:$<span class="org-variable-name">PATH</span>
|
||||
<span class="org-variable-name">PATH</span>=~/.local/bin:$<span class="org-variable-name">PATH</span>
|
||||
<span class="org-variable-name">PATH</span>=~/.emacs.d/bin:$<span class="org-variable-name">PATH</span>
|
||||
<span class="org-builtin">export</span> PATH
|
||||
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">PYTHONPATH</span>=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{PYTHONPATH}</span></span><span class="org-string">:/usr/lib/python3.9/site-packages/configobj"</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org966baa0" class="outline-2">
|
||||
<h2 id="org966baa0">Input</h2>
|
||||
<div class="outline-text-2" id="text-org966baa0">
|
||||
<div id="outline-container-org8a10d32" class="outline-3">
|
||||
<h3 id="org8a10d32">Path</h3>
|
||||
<div class="outline-text-3" id="text-org8a10d32">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">PATH</span>=$<span class="org-variable-name">HOME</span>/appimages:$<span class="org-variable-name">PATH</span>
|
||||
<span class="org-variable-name">PATH</span>=$<span class="org-variable-name">HOME</span>/.gem/ruby/2.5.0/bin:$<span class="org-variable-name">PATH</span>
|
||||
<span class="org-variable-name">PATH</span>=$<span class="org-variable-name">GOPATH</span>:$<span class="org-variable-name">GOPATH</span>/bin:$<span class="org-variable-name">PATH</span>
|
||||
<span class="org-variable-name">PATH</span>=~/.emacs.d/bin:$<span class="org-variable-name">PATH</span>
|
||||
<span class="org-builtin">export</span> PATH
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgda5e48a" class="outline-3">
|
||||
<h3 id="orgda5e48a">Automatically run <code>startx</code></h3>
|
||||
<div class="outline-text-3" id="text-orgda5e48a">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{DISPLAY}</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span> && <span class="org-rainbow-delimiters-depth-1">[</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{XDG_VTNR}</span></span><span class="org-string">"</span> -eq <span class="org-highlight-numbers-number">1</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
||||
<span class="org-keyword">exec</span> startx
|
||||
<span class="org-keyword">fi</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-inputrc" class="outline-2">
|
||||
<h2 id="inputrc"><code>~/.inputrc</code></h2>
|
||||
<div class="outline-text-2" id="text-inputrc">
|
||||
<p>
|
||||
Completion:
|
||||
</p>
|
||||
@ -735,7 +673,7 @@ Don’t echo <code>^C</code> after <code>Ctrl+C</code> is pressed.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-11-03 mar. 16:26</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:09</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -3,17 +3,13 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-11-03 mar. 16:26 -->
|
||||
<!-- 2021-01-01 ven. 20:08 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>My own specific binaries</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -26,22 +22,23 @@
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org6b54cb5"><code>remote-desktop</code> - Remote Desktop Connect</a></li>
|
||||
<li><a href="#org510bdb5"><code>print-rnice</code> - Print on Rnice</a></li>
|
||||
<li><a href="#org23d98e4"><code>tmp14</code> - Mount/Umount tmp_14_days folder</a></li>
|
||||
<li><a href="#org86657ca"><code>nas</code> - Interact with the NAS</a></li>
|
||||
<li><a href="#org626d308"><code>torrent-add</code> - Download Torrent</a></li>
|
||||
<li><a href="#org35e44f2"><code>note-extract-fig</code> - Extract Figure from note file</a></li>
|
||||
<li><a href="#org5c51513"><code>share</code> - Share file with self-hosted <code>transfer.sh</code></a></li>
|
||||
<li><a href="#org8406a5d"><code>screen-select</code> - Xrandr pre-defined scripts</a></li>
|
||||
<li><a href="#orge197761"><code>color-picker</code> - Pick color and copy to clipboard</a></li>
|
||||
<li><a href="#remote-desktop"><code>remote-desktop</code> - Remote Desktop Connect</a></li>
|
||||
<li><a href="#print-rnice"><code>print-rnice</code> - Print on Rnice</a></li>
|
||||
<li><a href="#tmp14"><code>tmp14</code> - Mount/Umount tmp_14_days folder</a></li>
|
||||
<li><a href="#nas"><code>nas</code> - Interact with the NAS</a></li>
|
||||
<li><a href="#torrent-add"><code>torrent-add</code> - Download Torrent</a></li>
|
||||
<li><a href="#dl-add"><code>dl-add</code> - Direct Download with Aria2</a></li>
|
||||
<li><a href="#note-extract-fig"><code>note-extract-fig</code> - Extract Figure from note file</a></li>
|
||||
<li><a href="#share"><code>share</code> - Share file with self-hosted <code>transfer.sh</code></a></li>
|
||||
<li><a href="#screen-select"><code>screen-select</code> - Xrandr pre-defined scripts</a></li>
|
||||
<li><a href="#color-picker"><code>color-picker</code> - Pick color and copy to clipboard</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6b54cb5" class="outline-2">
|
||||
<h2 id="org6b54cb5"><code>remote-desktop</code> - Remote Desktop Connect</h2>
|
||||
<div class="outline-text-2" id="text-org6b54cb5">
|
||||
<div id="outline-container-remote-desktop" class="outline-2">
|
||||
<h2 id="remote-desktop"><code>remote-desktop</code> - Remote Desktop Connect</h2>
|
||||
<div class="outline-text-2" id="text-remote-desktop">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">computer</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">'RNICE\nPCMEL1\nPCNASS1\nPCMEG01'</span> | dmenu -p <span class="org-string">'Computer:'</span> -l <span class="org-highlight-numbers-number">20</span><span class="org-rainbow-delimiters-depth-1">)</span>;
|
||||
|
||||
@ -70,9 +67,9 @@ dunstify --replace=<span class="org-highlight-numbers-number">89891</span> <span
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org510bdb5" class="outline-2">
|
||||
<h2 id="org510bdb5"><code>print-rnice</code> - Print on Rnice</h2>
|
||||
<div class="outline-text-2" id="text-org510bdb5">
|
||||
<div id="outline-container-print-rnice" class="outline-2">
|
||||
<h2 id="print-rnice"><code>print-rnice</code> - Print on Rnice</h2>
|
||||
<div class="outline-text-2" id="text-print-rnice">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">nbpage</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">'1\n2\n4'</span> | dmenu -p <span class="org-string">'Number of pages per sheet'</span> -l <span class="org-highlight-numbers-number">20</span><span class="org-rainbow-delimiters-depth-1">)</span>;
|
||||
<span class="org-variable-name">sides</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">'one-sided\ntwo-sided-long-edge\ntwo-sided-short-edge'</span> | dmenu -p <span class="org-string">'Two Sided:'</span> -l <span class="org-highlight-numbers-number">20</span><span class="org-rainbow-delimiters-depth-1">)</span>;
|
||||
@ -91,9 +88,9 @@ dunstify --replace=<span class="org-highlight-numbers-number">89891</span> <span
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org23d98e4" class="outline-2">
|
||||
<h2 id="org23d98e4"><code>tmp14</code> - Mount/Umount tmp_14_days folder</h2>
|
||||
<div class="outline-text-2" id="text-org23d98e4">
|
||||
<div id="outline-container-tmp14" class="outline-2">
|
||||
<h2 id="tmp14"><code>tmp14</code> - Mount/Umount tmp_14_days folder</h2>
|
||||
<div class="outline-text-2" id="text-tmp14">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-highlight-numbers-number">1</span> == <span class="org-string">"mount"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
||||
<span class="org-keyword">if</span> sshfs -o allow_other,default_permissions -p <span class="org-highlight-numbers-number">5022</span> dehaeze@firewall.esrf.fr:/tmp_14_days/ ~/mnt/ESRF; <span class="org-keyword">then</span>
|
||||
@ -114,9 +111,9 @@ dunstify --replace=<span class="org-highlight-numbers-number">89891</span> <span
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org86657ca" class="outline-2">
|
||||
<h2 id="org86657ca"><code>nas</code> - Interact with the NAS</h2>
|
||||
<div class="outline-text-2" id="text-org86657ca">
|
||||
<div id="outline-container-nas" class="outline-2">
|
||||
<h2 id="nas"><code>nas</code> - Interact with the NAS</h2>
|
||||
<div class="outline-text-2" id="text-nas">
|
||||
<p>
|
||||
As an alternative, <code>sshfs</code> can be used:
|
||||
</p>
|
||||
@ -144,22 +141,31 @@ As an alternative, <code>sshfs</code> can be used:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org626d308" class="outline-2">
|
||||
<h2 id="org626d308"><code>torrent-add</code> - Download Torrent</h2>
|
||||
<div class="outline-text-2" id="text-org626d308">
|
||||
<div id="outline-container-torrent-add" class="outline-2">
|
||||
<h2 id="torrent-add"><code>torrent-add</code> - Download Torrent</h2>
|
||||
<div class="outline-text-2" id="text-torrent-add">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">transmission-remote ***REMOVED***:9091 --auth tdehaeze:$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">pass</span> nas/transmission | sed -n 1p<span class="org-rainbow-delimiters-depth-1">)</span> -a $<span class="org-highlight-numbers-number">1</span> && <span class="org-sh-escaped-newline">\</span>
|
||||
dunstify <span class="org-string">'Torrent'</span> <span class="org-string">'Successfully added'</span> || <span class="org-sh-escaped-newline">\</span>
|
||||
dunstify <span class="org-string">'Torrent'</span> <span class="org-string">'Error'</span>
|
||||
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org35e44f2" class="outline-2">
|
||||
<h2 id="org35e44f2"><code>note-extract-fig</code> - Extract Figure from note file</h2>
|
||||
<div class="outline-text-2" id="text-org35e44f2">
|
||||
<div id="outline-container-dl-add" class="outline-2">
|
||||
<h2 id="dl-add"><code>dl-add</code> - Direct Download with Aria2</h2>
|
||||
<div class="outline-text-2" id="text-dl-add">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">aria2p --port <span class="org-highlight-numbers-number">6800</span> --host http://dl.tdehaeze.xyz --secret $<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">pass</span> dl.tdehaeze.xyz/tdehaeze | sed -n 1p<span class="org-rainbow-delimiters-depth-1">)</span> add $<span class="org-highlight-numbers-number">1</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-note-extract-fig" class="outline-2">
|
||||
<h2 id="note-extract-fig"><code>note-extract-fig</code> - Extract Figure from note file</h2>
|
||||
<div class="outline-text-2" id="text-note-extract-fig">
|
||||
<p>
|
||||
Script used to convert a figure drawn on my Boox note2 to a png file that can then be imported into a document.
|
||||
</p>
|
||||
@ -177,9 +183,9 @@ Script used to convert a figure drawn on my Boox note2 to a png file that can th
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5c51513" class="outline-2">
|
||||
<h2 id="org5c51513"><code>share</code> - Share file with self-hosted <code>transfer.sh</code></h2>
|
||||
<div class="outline-text-2" id="text-org5c51513">
|
||||
<div id="outline-container-share" class="outline-2">
|
||||
<h2 id="share"><code>share</code> - Share file with self-hosted <code>transfer.sh</code></h2>
|
||||
<div class="outline-text-2" id="text-share">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-variable-name">TMUX</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
||||
tmux split -v -l <span class="org-highlight-numbers-number">1</span> <span class="org-string">"</span><span class="org-type"><span class="org-string">curl</span></span><span class="org-string"> --progress-bar -F\"file=@</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">\" https://file.tdehaeze.xyz/ | xsel -ib && dunstify 'Upload' 'Successful' || dunstify --urgency=critical 'Upload' 'Failed';"</span> && tmux select-pane -U
|
||||
@ -193,9 +199,9 @@ Script used to convert a figure drawn on my Boox note2 to a png file that can th
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8406a5d" class="outline-2">
|
||||
<h2 id="org8406a5d"><code>screen-select</code> - Xrandr pre-defined scripts</h2>
|
||||
<div class="outline-text-2" id="text-org8406a5d">
|
||||
<div id="outline-container-screen-select" class="outline-2">
|
||||
<h2 id="screen-select"><code>screen-select</code> - Xrandr pre-defined scripts</h2>
|
||||
<div class="outline-text-2" id="text-screen-select">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">option</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"Work\nXPS\nHome"</span> | rofi -i -dmenu<span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
|
||||
@ -207,15 +213,15 @@ Script used to convert a figure drawn on my Boox note2 to a png file that can th
|
||||
xrandr --output eDP1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP1 --off --output DP1-1 --off --output DP1-2 --off --output DP2 --off --output VIRTUAL1 --off
|
||||
;;
|
||||
<span class="org-string">"Home"</span>)
|
||||
xrandr --output eDP1 --off --output DP1 --primary --mode 2560x1440 --pos 0x0 --rotate normal --output DP2 --off --output VIRTUAL1 --off
|
||||
xrandr --output eDP1 --off --output DP2-1 --primary --mode 2560x1440 --pos 0x0 --rotate normal --output DP1 --off --output VIRTUAL1 --off
|
||||
;;
|
||||
*)
|
||||
<span class="org-type">echo</span> <span class="org-string">"== ! missing or invalid argument ! =="</span>
|
||||
<span class="org-keyword">exit</span> <span class="org-highlight-numbers-number">2</span>
|
||||
<span class="org-keyword">esac</span>
|
||||
|
||||
setbg <span class="org-comment-delimiter"># </span><span class="org-comment">Fix background if screen size/arangement has changed.</span>
|
||||
$<span class="org-variable-name">HOME</span>/.config/polybar/scripts/launch.sh <span class="org-comment-delimiter"># </span><span class="org-comment">restart polybar</span>
|
||||
setbg && <span class="org-string">\ </span> <span class="org-comment-delimiter"># </span><span class="org-comment">Fix background if screen size/arangement has changed.</span>
|
||||
polybar-msg cmd restart <span class="org-comment-delimiter"># </span><span class="org-comment">restart polybar</span>
|
||||
|
||||
<span class="org-keyword">exit</span> <span class="org-highlight-numbers-number">0</span>
|
||||
</pre>
|
||||
@ -223,11 +229,11 @@ $<span class="org-variable-name">HOME</span>/.config/polybar/scripts/launch.sh <
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge197761" class="outline-2">
|
||||
<h2 id="orge197761"><code>color-picker</code> - Pick color and copy to clipboard</h2>
|
||||
<div class="outline-text-2" id="text-orge197761">
|
||||
<div id="outline-container-color-picker" class="outline-2">
|
||||
<h2 id="color-picker"><code>color-picker</code> - Pick color and copy to clipboard</h2>
|
||||
<div class="outline-text-2" id="text-color-picker">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">xcolor | xsel -b
|
||||
<pre class="src src-bash">xcolor | tr -d <span class="org-string">'\n'</span> | xsel -b
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -235,7 +241,7 @@ $<span class="org-variable-name">HOME</span>/.config/polybar/scripts/launch.sh <
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-11-03 mar. 16:26</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:08</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -3,17 +3,13 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-11-03 mar. 16:26 -->
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Binaries</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -26,132 +22,42 @@
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org28d68eb"><code>displayselect</code> - Select Screen</a></li>
|
||||
<li><a href="#org8139955"><code>dmenumount</code> - Mount USB and Android</a></li>
|
||||
<li><a href="#orgbff2106"><code>dmenuumount</code> - Unmount USB and Android devices</a></li>
|
||||
<li><a href="#orgd951db9"><code>vpntoggle</code> - Connect to VPN using NordVPN</a></li>
|
||||
<li><a href="#org39f3bdf"><code>bukurun</code> - Open link from Buku</a></li>
|
||||
<li><a href="#org1ce653d"><code>i3exit</code> - Manage lock, suspend, reboot, …</a></li>
|
||||
<li><a href="#org91bab59"><code>askpass-rofi</code> - GUI prompt for passwords</a></li>
|
||||
<li><a href="#org2d85447"><code>screenshot</code> - Take Screenshot</a></li>
|
||||
<li><a href="#org8a00ba3"><code>network-toggle</code> - Toggle Network</a></li>
|
||||
<li><a href="#orgd568e72"><code>make-gif</code> - Make GIF</a></li>
|
||||
<li><a href="#orgd7e49ff"><code>yt-audio</code> - Download-Audio from youtube</a></li>
|
||||
<li><a href="#org89810de"><code>yt-video</code> - Download-Video from youtube</a></li>
|
||||
<li><a href="#org539efcb"><code>setbg</code> - Set Background</a></li>
|
||||
<li><a href="#org229006d"><code>insert-unicode</code> - Insert Unicode Icon</a></li>
|
||||
<li><a href="#orgf4064e2"><code>insert-nerd-fonts</code> - Insert Nerd Font Icon</a></li>
|
||||
<li><a href="#org2796c9b"><code>linkhandler</code> - Open with Default application</a></li>
|
||||
<li><a href="#org56e0cc2"><code>lockscreen</code> - LockScreen</a></li>
|
||||
<li><a href="#orgbe881e3"><code>mopidy-restart</code> - Restart Mopidy</a></li>
|
||||
<li><a href="#orgffe5d25"><code>upload</code> - Upload Script</a></li>
|
||||
<li><a href="#orgcd16f91"><code>weather</code> - Display Weather in terminal</a></li>
|
||||
<li><a href="#org17ef4d2"><code>readbib</code> - Open Bibliography File</a></li>
|
||||
<li><a href="#orgda667bb"><code>readnotes</code> - Open Note File</a></li>
|
||||
<li><a href="#orge45135c"><code>pdf2bib</code> - Extract bibtex entry from PDF file</a></li>
|
||||
<li><a href="#org70ec456"><code>pdf2png</code> - Convert a PDF to PNG</a></li>
|
||||
<li><a href="#org7601ca9"><code>pdf-shrink</code> - Pdf Shrink</a></li>
|
||||
<li><a href="#org4041717"><code>pdf-delete-annotations</code> - Delete Annotations from PDFs</a></li>
|
||||
<li><a href="#orge18f381"><code>pdf-delete-first-page</code> - Delete first page of PDF</a></li>
|
||||
<li><a href="#org7ae8164"><code>rofi-calc</code> - Simple Calculation using Rofi</a></li>
|
||||
<li><a href="#orge7a6e2d"><code>pass-gen</code> - Generate Random Alphanumeric Password</a></li>
|
||||
<li><a href="#dmenumount"><code>dmenumount</code> - Mount USB and Android</a></li>
|
||||
<li><a href="#dmenuumount"><code>dmenuumount</code> - Unmount USB and Android devices</a></li>
|
||||
<li><a href="#nordvpn-toggle"><code>nordvpn-toggle</code> - Connect to VPN using NordVPN</a></li>
|
||||
<li><a href="#bukurun"><code>bukurun</code> - Open link from Buku</a></li>
|
||||
<li><a href="#i3exit"><code>i3exit</code> - Manage lock, suspend, reboot, …</a></li>
|
||||
<li><a href="#askpass-rofi"><code>askpass-rofi</code> - GUI prompt for passwords</a></li>
|
||||
<li><a href="#screenshot"><code>screenshot</code> - Take Screenshot</a></li>
|
||||
<li><a href="#network-toggle"><code>network-toggle</code> - Toggle Network</a></li>
|
||||
<li><a href="#make-gif"><code>make-gif</code> - Convert an <code>MP4</code> video to <code>GIF</code></a></li>
|
||||
<li><a href="#yt-audio"><code>yt-audio</code> - Download-Audio from youtube</a></li>
|
||||
<li><a href="#yt-video"><code>yt-video</code> - Download-Video from youtube</a></li>
|
||||
<li><a href="#setbg"><code>setbg</code> - Set Background</a></li>
|
||||
<li><a href="#insert-unicode"><code>insert-unicode</code> - Insert Unicode Icon</a></li>
|
||||
<li><a href="#insert-nerd-fonts"><code>insert-nerd-fonts</code> - Insert Nerd Font Icon</a></li>
|
||||
<li><a href="#linkhandler"><code>linkhandler</code> - Open with Default application</a></li>
|
||||
<li><a href="#lockscreen"><code>lockscreen</code> - Lock Screen</a></li>
|
||||
<li><a href="#mopidy-restart"><code>mopidy-restart</code> - Restart Mopidy</a></li>
|
||||
<li><a href="#upload"><code>upload</code> - Upload Script</a></li>
|
||||
<li><a href="#weather"><code>weather</code> - Display Weather in terminal</a></li>
|
||||
<li><a href="#readbib"><code>readbib</code> - Open Bibliography File</a></li>
|
||||
<li><a href="#pdf2bib"><code>pdf2bib</code> - Extract bibtex entry from PDF file</a></li>
|
||||
<li><a href="#pdf2png"><code>pdf2png</code> - Convert a PDF to PNG</a></li>
|
||||
<li><a href="#convert-file"><code>convert-file</code> - Convert any file to another filetype</a></li>
|
||||
<li><a href="#pdf-shrink"><code>pdf-shrink</code> - Pdf Shrink</a></li>
|
||||
<li><a href="#pdf-delete-annotations"><code>pdf-delete-annotations</code> - Delete Annotations from PDFs</a></li>
|
||||
<li><a href="#pdf-delete-first-page"><code>pdf-delete-first-page</code> - Delete first page of PDF</a></li>
|
||||
<li><a href="#rofi-calc"><code>rofi-calc</code> - Simple Calculation using Rofi</a></li>
|
||||
<li><a href="#pass-gen"><code>pass-gen</code> - Generate Random Alphanumeric Password</a></li>
|
||||
<li><a href="#sxhkd-help"><code>sxhkd-help</code> - List of keybindings using Rofi</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org28d68eb" class="outline-2">
|
||||
<h2 id="org28d68eb"><code>displayselect</code> - Select Screen</h2>
|
||||
<div class="outline-text-2" id="text-org28d68eb">
|
||||
<p>
|
||||
Script taken from Luke Smith.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-function-name">twoscreen</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-comment-delimiter"># </span><span class="org-comment">If multi-monitor is selected and there are two screens.</span>
|
||||
|
||||
<span class="org-variable-name">mirror</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">printf</span> <span class="org-string">"no\\nyes"</span> | dmenu -i -p <span class="org-string">"Mirror displays?"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Mirror displays using native resolution of external display and a scaled</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">version for the internal display</span>
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-2">[</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">mirror</span></span><span class="org-string">"</span> = <span class="org-string">"yes"</span> <span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
|
||||
<span class="org-variable-name">external</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">screens</span></span><span class="org-string">"</span> | dmenu -i -p <span class="org-string">"Optimize resolution for:"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||
<span class="org-variable-name">internal</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">screens</span></span><span class="org-string">"</span> | <span class="org-type">grep</span> -v <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">external</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||
|
||||
<span class="org-variable-name">res_external</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">xrandr</span> --query | sed -n <span class="org-string">"/^</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">external</span></span><span class="org-string">/,/\+/p"</span> | <span class="org-sh-escaped-newline">\</span>
|
||||
tail -n <span class="org-highlight-numbers-number">1</span> | awk <span class="org-string">'{print $1}'</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||
<span class="org-variable-name">res_internal</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">xrandr</span> --query | sed -n <span class="org-string">"/^</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">internal</span></span><span class="org-string">/,/\+/p"</span> | <span class="org-sh-escaped-newline">\</span>
|
||||
tail -n <span class="org-highlight-numbers-number">1</span> | awk <span class="org-string">'{print $1}'</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||
|
||||
<span class="org-variable-name">res_ext_x</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">res_external</span></span><span class="org-string">"</span> | sed <span class="org-string">'s/x.*//'</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||
<span class="org-variable-name">res_ext_y</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">res_external</span></span><span class="org-string">"</span> | sed <span class="org-string">'s/.*x//'</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||
<span class="org-variable-name">res_int_x</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">res_internal</span></span><span class="org-string">"</span> | sed <span class="org-string">'s/x.*//'</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||
<span class="org-variable-name">res_int_y</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">res_internal</span></span><span class="org-string">"</span> | sed <span class="org-string">'s/.*x//'</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||
|
||||
<span class="org-variable-name">scale_x</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">res_ext_x</span></span><span class="org-string"> / </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">res_int_x</span></span><span class="org-string">"</span> | bc -l<span class="org-rainbow-delimiters-depth-2">)</span>
|
||||
<span class="org-variable-name">scale_y</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">res_ext_y</span></span><span class="org-string"> / </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">res_int_y</span></span><span class="org-string">"</span> | bc -l<span class="org-rainbow-delimiters-depth-2">)</span>
|
||||
|
||||
xrandr --output <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">external</span></span><span class="org-string">"</span> --auto --scale 1.0x1.0 <span class="org-sh-escaped-newline">\</span>
|
||||
--output <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">internal</span></span><span class="org-string">"</span> --auto --same-as <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">external</span></span><span class="org-string">"</span> <span class="org-sh-escaped-newline">\</span>
|
||||
--scale <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">scale_x</span></span><span class="org-string">"</span>x<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">scale_y</span></span><span class="org-string">"</span>
|
||||
<span class="org-keyword">else</span>
|
||||
|
||||
<span class="org-variable-name">primary</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">screens</span></span><span class="org-string">"</span> | dmenu -i -p <span class="org-string">"Select primary display:"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||
<span class="org-variable-name">secondary</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">screens</span></span><span class="org-string">"</span> | <span class="org-type">grep</span> -v <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">primary</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||
<span class="org-variable-name">direction</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">printf</span> <span class="org-string">"left\\nright"</span> | dmenu -i -p <span class="org-string">"What side of </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">primary</span></span><span class="org-string"> should </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">secondary</span></span><span class="org-string"> be on?"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||
xrandr --output <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">primary</span></span><span class="org-string">"</span> --auto --scale 1.0x1.0 --output <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">secondary</span></span><span class="org-string">"</span> --<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">direction</span></span><span class="org-string">"</span>-of <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">primary</span></span><span class="org-string">"</span> --auto --scale 1.0x1.0
|
||||
<span class="org-keyword">fi</span>
|
||||
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||
|
||||
<span class="org-function-name">morescreen</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-comment-delimiter"># </span><span class="org-comment">If multi-monitor is selected and there are more than two screens.</span>
|
||||
<span class="org-variable-name">primary</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">screens</span></span><span class="org-string">"</span> | dmenu -i -p <span class="org-string">"Select primary display:"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||
<span class="org-variable-name">secondary</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">screens</span></span><span class="org-string">"</span> | <span class="org-type">grep</span> -v <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">primary</span></span><span class="org-string">"</span> | dmenu -i -p <span class="org-string">"Select secondary display:"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||
<span class="org-variable-name">direction</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">printf</span> <span class="org-string">"left\\nright"</span> | dmenu -i -p <span class="org-string">"What side of </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">primary</span></span><span class="org-string"> should </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">secondary</span></span><span class="org-string"> be on?"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||
<span class="org-variable-name">tertiary</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">screens</span></span><span class="org-string">"</span> | <span class="org-type">grep</span> -v <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">primary</span></span><span class="org-string">"</span> | <span class="org-type">grep</span> -v <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">secondary</span></span><span class="org-string">"</span> | dmenu -i -p <span class="org-string">"Select third display:"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||
xrandr --output <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">primary</span></span><span class="org-string">"</span> --auto --output <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">secondary</span></span><span class="org-string">"</span> --<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">direction</span></span><span class="org-string">"</span>-of <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">primary</span></span><span class="org-string">"</span> --auto --output <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">tertiary</span></span><span class="org-string">"</span> --<span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">printf</span><span class="org-string"><span class="org-sh-quoted-exec"> "left\\nright" | </span></span><span class="org-type"><span class="org-string"><span class="org-sh-quoted-exec">grep</span></span></span><span class="org-string"><span class="org-sh-quoted-exec"> -v "</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">direction</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">")</span></span><span class="org-string">"</span>-of <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">primary</span></span><span class="org-string">"</span> --auto
|
||||
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||
|
||||
<span class="org-function-name">multimon</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Multi-monitor handler.</span>
|
||||
<span class="org-keyword">case</span> <span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">echo</span><span class="org-string"><span class="org-sh-quoted-exec"> "</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">screens</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">" | wc -l)</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
|
||||
<span class="org-highlight-numbers-number">2</span>) twoscreen ;;
|
||||
*) morescreen ;;
|
||||
<span class="org-keyword">esac</span> ;<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||
|
||||
<span class="org-function-name">onescreen</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-comment-delimiter"># </span><span class="org-comment">If only one output available or chosen.</span>
|
||||
xrandr --output <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> --auto --scale 1.0x1.0 <span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">echo</span><span class="org-string"><span class="org-sh-quoted-exec"> "</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">allposs</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">" | </span></span><span class="org-type"><span class="org-string"><span class="org-sh-quoted-exec">grep</span></span></span><span class="org-string"><span class="org-sh-quoted-exec"> -v "</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">1</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">" | awk '{print "--output", </span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">1</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">, "--off"}' | paste -sd ' ')</span></span><span class="org-string">"</span>
|
||||
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||
|
||||
<span class="org-function-name">postrun</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Stuff to run to clean up.</span>
|
||||
setbg <span class="org-comment-delimiter"># </span><span class="org-comment">Fix background if screen size/arangement has changed.</span>
|
||||
$<span class="org-variable-name">HOME</span>/.config/polybar/scripts/launch.sh <span class="org-comment-delimiter"># </span><span class="org-comment">restart polybar</span>
|
||||
<span class="org-rainbow-delimiters-depth-2">{</span> killall dunst ; setsid -f dunst ;<span class="org-rainbow-delimiters-depth-2">}</span> >/dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Restart dunst to ensure proper location on screen</span>
|
||||
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Get all possible displays</span>
|
||||
<span class="org-variable-name">allposs</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">xrandr</span> -q | <span class="org-type">grep</span> <span class="org-string">"connected"</span><span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Get all connected screens.</span>
|
||||
<span class="org-variable-name">screens</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">allposs</span></span><span class="org-string">"</span> | awk <span class="org-string">'/ connected/ {print $1}'</span><span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">If there's only one screen</span>
|
||||
<span class="org-rainbow-delimiters-depth-1">[</span> <span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">echo</span><span class="org-string"><span class="org-sh-quoted-exec"> "</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">screens</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">" | wc -l)</span></span><span class="org-string">"</span> -lt <span class="org-highlight-numbers-number">2</span> <span class="org-rainbow-delimiters-depth-1">]</span> &&
|
||||
<span class="org-rainbow-delimiters-depth-1">{</span> onescreen <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">screens</span></span><span class="org-string">"</span>; postrun; notify-send <span class="org-string">"💻 Only one screen detected."</span> <span class="org-string">"Using it in its optimal settings..."</span>; <span class="org-keyword">exit</span> ;<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Get user choice including multi-monitor and manual selection:</span>
|
||||
<span class="org-variable-name">chosen</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">printf</span> <span class="org-string">"%s\\nmulti-monitor\\nmanual selection"</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">screens</span></span><span class="org-string">"</span> | dmenu -i -p <span class="org-string">"Select display arangement:"</span><span class="org-rainbow-delimiters-depth-1">)</span> &&
|
||||
<span class="org-keyword">case</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">chosen</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
|
||||
<span class="org-string">"manual selection"</span>) arandr ; <span class="org-keyword">exit</span> ;;
|
||||
<span class="org-string">"multi-monitor"</span>) multimon ;;
|
||||
*) onescreen <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">chosen</span></span><span class="org-string">"</span> ;;
|
||||
<span class="org-keyword">esac</span>
|
||||
|
||||
postrun
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8139955" class="outline-2">
|
||||
<h2 id="org8139955"><code>dmenumount</code> - Mount USB and Android</h2>
|
||||
<div class="outline-text-2" id="text-org8139955">
|
||||
<div id="outline-container-dmenumount" class="outline-2">
|
||||
<h2 id="dmenumount"><code>dmenumount</code> - Mount USB and Android</h2>
|
||||
<div class="outline-text-2" id="text-dmenumount">
|
||||
<p>
|
||||
Script taken from Luke Smith.
|
||||
</p>
|
||||
@ -221,9 +127,9 @@ Script taken from Luke Smith.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbff2106" class="outline-2">
|
||||
<h2 id="orgbff2106"><code>dmenuumount</code> - Unmount USB and Android devices</h2>
|
||||
<div class="outline-text-2" id="text-orgbff2106">
|
||||
<div id="outline-container-dmenuumount" class="outline-2">
|
||||
<h2 id="dmenuumount"><code>dmenuumount</code> - Unmount USB and Android devices</h2>
|
||||
<div class="outline-text-2" id="text-dmenuumount">
|
||||
<p>
|
||||
Script taken from Luke Smith.
|
||||
</p>
|
||||
@ -272,25 +178,40 @@ Script taken from Luke Smith.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd951db9" class="outline-2">
|
||||
<h2 id="orgd951db9"><code>vpntoggle</code> - Connect to VPN using NordVPN</h2>
|
||||
<div class="outline-text-2" id="text-orgd951db9">
|
||||
<div id="outline-container-nordvpn-toggle" class="outline-2">
|
||||
<h2 id="nordvpn-toggle"><code>nordvpn-toggle</code> - Connect to VPN using NordVPN</h2>
|
||||
<div class="outline-text-2" id="text-nordvpn-toggle">
|
||||
<p>
|
||||
To use this this, <code>nordvpn</code> must be installed: <code>yay -S nordvpn-bin</code>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> $<span class="org-rainbow-delimiters-depth-3">(</span><span class="org-sh-quoted-exec">nordvpn</span> status<span class="org-rainbow-delimiters-depth-3">)</span> == *<span class="org-string">"Connected"</span>* <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
||||
nordvpn disconnect && dunstify --replace=<span class="org-highlight-numbers-number">23198</span> <span class="org-string">"VPN"</span> <span class="org-string">"Disconnected"</span>;
|
||||
<pre class="src src-bash"><span class="org-variable-name">tmpfile</span>=<span class="org-string">"/tmp/vpnstatus"</span>;
|
||||
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> $<span class="org-rainbow-delimiters-depth-3">(</span><span class="org-sh-quoted-exec">nordvpn</span> status<span class="org-rainbow-delimiters-depth-3">)</span> == *<span class="org-string">"Connected"</span>* <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
||||
nordvpn disconnect && <span class="org-sh-escaped-newline">\</span>
|
||||
dunstify --replace=<span class="org-highlight-numbers-number">23198</span> <span class="org-string">"VPN"</span> <span class="org-string">"Disconnected"</span> && <span class="org-sh-escaped-newline">\</span>
|
||||
<span class="org-type">echo</span> <span class="org-string">"off"</span> > $<span class="org-variable-name">tmpfile</span>;
|
||||
<span class="org-keyword">else</span>
|
||||
<span class="org-variable-name">country</span>=<span class="org-sh-quoted-exec">`</span><span class="org-type"><span class="org-sh-quoted-exec">cat</span></span><span class="org-sh-quoted-exec"> ~/.local/data/nordvpn_countries.txt | sed 's/\s*\t\s*/ /g ; s/\s/\n/g ; s/_/ /g ; /^[a-zA-Z]/!d ; s/\(.*\)/\L\1/' | rofi -i -dmenu | sed 's/\s/_/g'`</span>;
|
||||
dunstify --replace=<span class="org-highlight-numbers-number">23198</span> <span class="org-string">"VPN"</span> <span class="org-string">"Connecting to </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">country</span></span><span class="org-string">..."</span>;
|
||||
nordvpn connect $<span class="org-variable-name">country</span> && dunstify --replace=<span class="org-highlight-numbers-number">23198</span> <span class="org-string">"VPN"</span> <span class="org-string">"Connected to </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">country</span></span><span class="org-string">"</span>;
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Select Country to connect to</span>
|
||||
<span class="org-variable-name">country</span>=<span class="org-sh-quoted-exec">`</span><span class="org-type"><span class="org-sh-quoted-exec">cat</span></span><span class="org-sh-quoted-exec"> ~/.local/data/nordvpn_countries.txt | rofi -i -dmenu | sed 's/\s/_/g'`</span>;
|
||||
dunstify --replace=<span class="org-highlight-numbers-number">23198</span> <span class="org-string">"VPN"</span> <span class="org-string">"Connecting to </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">country</span></span><span class="org-string">..."</span>;
|
||||
nordvpn connect $<span class="org-variable-name">country</span> && <span class="org-sh-escaped-newline">\</span>
|
||||
dunstify --replace=<span class="org-highlight-numbers-number">23198</span> <span class="org-string">"VPN"</span> <span class="org-string">"Connected to </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">country</span></span><span class="org-string">"</span> && <span class="org-sh-escaped-newline">\</span>
|
||||
<span class="org-type">echo</span> <span class="org-string">"on"</span> > $<span class="org-variable-name">tmpfile</span>;
|
||||
<span class="org-keyword">fi</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org39f3bdf" class="outline-2">
|
||||
<h2 id="org39f3bdf"><code>bukurun</code> - Open link from Buku</h2>
|
||||
<div class="outline-text-2" id="text-org39f3bdf">
|
||||
<div id="outline-container-bukurun" class="outline-2">
|
||||
<h2 id="bukurun"><code>bukurun</code> - Open link from Buku</h2>
|
||||
<div class="outline-text-2" id="text-bukurun">
|
||||
<p>
|
||||
Script taken from <a href="https://github.com/carnager/buku_run">here</a> that acts as a buku frontend using Rofi.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-function-name">_rofi</span> <span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
|
||||
rofi -dmenu -i -no-levenshtein-sort -width <span class="org-highlight-numbers-number">1000</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span>
|
||||
@ -627,9 +548,9 @@ Script taken from Luke Smith.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1ce653d" class="outline-2">
|
||||
<h2 id="org1ce653d"><code>i3exit</code> - Manage lock, suspend, reboot, …</h2>
|
||||
<div class="outline-text-2" id="text-org1ce653d">
|
||||
<div id="outline-container-i3exit" class="outline-2">
|
||||
<h2 id="i3exit"><code>i3exit</code> - Manage lock, suspend, reboot, …</h2>
|
||||
<div class="outline-text-2" id="text-i3exit">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">option</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"Lock\nExit\nLogout\nSuspend\nHibernate\nReboot\nShutdown"</span> | rofi -i -dmenu<span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
|
||||
@ -638,7 +559,7 @@ Script taken from Luke Smith.
|
||||
~/.local/bin/lockscreen
|
||||
;;
|
||||
<span class="org-string">"Exit"</span>)
|
||||
dm-tool switch-to-greeter
|
||||
<span class="org-type">pkill</span> -15 -t tty<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">XDG_VTNR</span></span><span class="org-string">"</span> Xorg
|
||||
;;
|
||||
<span class="org-string">"Logout"</span>)
|
||||
loginctl terminate-session <span class="org-sh-quoted-exec">`loginctl session-status | head -n 1 | awk '{print $1}'`</span>
|
||||
@ -676,13 +597,14 @@ Script taken from Luke Smith.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org91bab59" class="outline-2">
|
||||
<h2 id="org91bab59"><code>askpass-rofi</code> - GUI prompt for passwords</h2>
|
||||
<div class="outline-text-2" id="text-org91bab59">
|
||||
<div id="outline-container-askpass-rofi" class="outline-2">
|
||||
<h2 id="askpass-rofi"><code>askpass-rofi</code> - GUI prompt for passwords</h2>
|
||||
<div class="outline-text-2" id="text-askpass-rofi">
|
||||
<p>
|
||||
Take password prompt from STDIN, print password to STDOUT.
|
||||
The sed piece just removes the colon from the provided prompt: <code>rofi -p</code> already gives us a colon
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">rofi -dmenu <span class="org-sh-escaped-newline">\</span>
|
||||
-password <span class="org-sh-escaped-newline">\</span>
|
||||
@ -693,44 +615,58 @@ The sed piece just removes the colon from the provided prompt: <code>rofi -p</co
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2d85447" class="outline-2">
|
||||
<h2 id="org2d85447"><code>screenshot</code> - Take Screenshot</h2>
|
||||
<div class="outline-text-2" id="text-org2d85447">
|
||||
<div id="outline-container-screenshot" class="outline-2">
|
||||
<h2 id="screenshot"><code>screenshot</code> - Take Screenshot</h2>
|
||||
<div class="outline-text-2" id="text-screenshot">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">status</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"All\nGUI\nSelection\nCropped\nCopy\nShadow\nActive"</span> | rofi -i -dmenu -p <span class="org-string">"Type"</span><span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Ask for screenshot type</span>
|
||||
<span class="org-variable-name">status</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"All\nGUI\nSelection\nCropped\nCopy\nPretty\nShadow\nWindow"</span> | rofi -i -dmenu -p <span class="org-string">"Type"</span><span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">status</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
||||
<span class="org-keyword">exit</span>;
|
||||
<span class="org-keyword">exit</span>;
|
||||
<span class="org-keyword">fi</span>
|
||||
|
||||
<span class="org-variable-name">name</span>=<span class="org-sh-quoted-exec">$</span><span class="org-sh-quoted-exec"><span class="org-rainbow-delimiters-depth-1">(</span></span><span class="org-sh-quoted-exec">echo -e </span><span class="org-string"><span class="org-sh-quoted-exec">"screenshot-$(</span></span><span class="org-sh-quoted-exec">date</span><span class="org-string"><span class="org-sh-quoted-exec"> +"%m-%d-%y_%H-%M-%S")</span></span><span class="org-string">"</span> | rofi -i -dmenu -p <span class="org-string">"Filename"</span><span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">name</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
||||
<span class="org-keyword">exit</span>;
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Ask for filename if not copying the image</span>
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> $<span class="org-variable-name">status</span> != <span class="org-string">"Copy"</span> <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
||||
<span class="org-variable-name">name</span>=<span class="org-sh-quoted-exec">$</span><span class="org-sh-quoted-exec"><span class="org-rainbow-delimiters-depth-1">(</span></span><span class="org-sh-quoted-exec">echo -e </span><span class="org-string"><span class="org-sh-quoted-exec">"screenshot-$(</span></span><span class="org-sh-quoted-exec">date</span><span class="org-string"><span class="org-sh-quoted-exec"> +"%m-%d-%y_%H-%M-%S")</span></span><span class="org-string">"</span> | rofi -i -dmenu -p <span class="org-string">"Filename"</span><span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">name</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
||||
<span class="org-keyword">exit</span>;
|
||||
<span class="org-keyword">fi</span>
|
||||
<span class="org-variable-name">filename</span>=~/Pictures/$<span class="org-variable-name">name</span>.png
|
||||
<span class="org-keyword">fi</span>
|
||||
|
||||
<span class="org-keyword">case</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">status</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
|
||||
<span class="org-string">"All"</span>)
|
||||
maim ~/Pictures/$<span class="org-variable-name">name</span>.png ;;
|
||||
maim -u $<span class="org-variable-name">filename</span> ;;
|
||||
<span class="org-string">"GUI"</span>)
|
||||
flameshot gui -r > ~/Pictures/$<span class="org-variable-name">name</span>.png ;;
|
||||
flameshot gui -r > $<span class="org-variable-name">filename</span> && <span class="org-sh-escaped-newline">\</span>
|
||||
<span class="org-type">pkill</span> flameshot;;
|
||||
<span class="org-string">"Selection"</span>)
|
||||
maim -s ~/Pictures/$<span class="org-variable-name">name</span>.png ;;
|
||||
maim -u -s $<span class="org-variable-name">filename</span> ;;
|
||||
<span class="org-string">"Cropped"</span>)
|
||||
maim -s ~/Pictures/$<span class="org-variable-name">name</span>.png && convert -trim ~/Pictures/$<span class="org-variable-name">name</span>.png ~/Pictures/$<span class="org-variable-name">name</span>.png;;
|
||||
maim -u -s $<span class="org-variable-name">filename</span> && convert -trim $<span class="org-variable-name">filename</span> $<span class="org-variable-name">filename</span> ;;
|
||||
<span class="org-string">"Copy"</span>)
|
||||
maim -s | xclip -selection clipboard -t image/png ;;
|
||||
maim -u -s | xclip -selection clipboard -t image/png ;;
|
||||
<span class="org-string">"Shadow"</span>)
|
||||
maim -st <span class="org-highlight-numbers-number">9999999</span> | convert - <span class="org-string">\(</span> +clone -background black -shadow 80x3+5+5 <span class="org-string">\)</span> +swap -background none -layers merge +repage ~/Pictures/$<span class="org-variable-name">name</span>.png ;;
|
||||
<span class="org-string">"Active"</span>)
|
||||
maim -i $<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">xdotool</span> getactivewindow<span class="org-rainbow-delimiters-depth-1">)</span> ~/Pictures/$<span class="org-variable-name">name</span>.png ;;
|
||||
maim -u -s | convert - <span class="org-string">\(</span> +clone -background black -shadow 80x3+5+5 <span class="org-string">\)</span> +swap -background none -layers merge +repage $<span class="org-variable-name">filename</span> ;;
|
||||
<span class="org-string">"Pretty"</span>)
|
||||
maim -u -s $<span class="org-variable-name">filename</span> && <span class="org-sh-escaped-newline">\</span>
|
||||
convert $<span class="org-variable-name">filename</span> <span class="org-string">\(</span> +clone -alpha extract -draw <span class="org-string">'fill black polygon 0,0 0,5 5,0 fill white circle 5,5 5,0'</span> <span class="org-string">\(</span> +clone -flip <span class="org-string">\)</span> -compose Multiply -composite <span class="org-string">\(</span> +clone -flop <span class="org-string">\)</span> -compose Multiply -composite <span class="org-string">\)</span> -alpha off -compose CopyOpacity -composite $<span class="org-variable-name">filename</span> && <span class="org-sh-escaped-newline">\</span>
|
||||
convert $<span class="org-variable-name">filename</span> <span class="org-string">\(</span> +clone -background black -shadow 40x5+0+0 <span class="org-string">\)</span> +swap -background none -layers merge +repage $<span class="org-variable-name">filename</span> ;;
|
||||
<span class="org-string">"Window"</span>)
|
||||
maim -u -i $<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">xdotool</span> selectwindow<span class="org-rainbow-delimiters-depth-1">)</span> $<span class="org-variable-name">filename</span> ;;
|
||||
<span class="org-keyword">esac</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8a00ba3" class="outline-2">
|
||||
<h2 id="org8a00ba3"><code>network-toggle</code> - Toggle Network</h2>
|
||||
<div class="outline-text-2" id="text-org8a00ba3">
|
||||
<div id="outline-container-network-toggle" class="outline-2">
|
||||
<h2 id="network-toggle"><code>network-toggle</code> - Toggle Network</h2>
|
||||
<div class="outline-text-2" id="text-network-toggle">
|
||||
<p>
|
||||
Minimal network manager to just toggle the Wifi or Ethernet connection.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">result</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">nmcli</span> device | sed <span class="org-string">'1d'</span> | dmenu -l <span class="org-highlight-numbers-number">20</span><span class="org-rainbow-delimiters-depth-1">)</span>;
|
||||
|
||||
@ -747,12 +683,15 @@ The sed piece just removes the colon from the provided prompt: <code>rofi -p</co
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd568e72" class="outline-2">
|
||||
<h2 id="orgd568e72"><code>make-gif</code> - Make GIF</h2>
|
||||
<div class="outline-text-2" id="text-orgd568e72">
|
||||
<div id="outline-container-make-gif" class="outline-2">
|
||||
<h2 id="make-gif"><code>make-gif</code> - Convert an <code>MP4</code> video to <code>GIF</code></h2>
|
||||
<div class="outline-text-2" id="text-make-gif">
|
||||
<p>
|
||||
First argument is the <code>mp4</code> file and the second argument is the output <code>gif</code> file.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">palette</span>=<span class="org-string">"/tmp/palette.png"</span>
|
||||
|
||||
<span class="org-variable-name">filters</span>=<span class="org-string">"fps=15,scale=320:-1:flags=lanczos"</span>
|
||||
|
||||
ffmpeg -v warning -i $<span class="org-highlight-numbers-number">1</span> -vf <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">filters</span></span><span class="org-string">,palettegen"</span> -y $<span class="org-variable-name">palette</span>
|
||||
@ -762,9 +701,9 @@ ffmpeg -v warning -i $<span class="org-highlight-numbers-number">1</span> -i $<s
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd7e49ff" class="outline-2">
|
||||
<h2 id="orgd7e49ff"><code>yt-audio</code> - Download-Audio from youtube</h2>
|
||||
<div class="outline-text-2" id="text-orgd7e49ff">
|
||||
<div id="outline-container-yt-audio" class="outline-2">
|
||||
<h2 id="yt-audio"><code>yt-audio</code> - Download-Audio from youtube</h2>
|
||||
<div class="outline-text-2" id="text-yt-audio">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-variable-name">TMUX</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
||||
tmux split -v -l <span class="org-highlight-numbers-number">5</span> <span class="org-string">"</span><span class="org-type"><span class="org-string">cd</span></span><span class="org-string"> ~/Downloads/ && youtube-dl --add-metadata -xic -f bestaudio/best </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> && tmux select-pane -U
|
||||
@ -777,9 +716,9 @@ ffmpeg -v warning -i $<span class="org-highlight-numbers-number">1</span> -i $<s
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org89810de" class="outline-2">
|
||||
<h2 id="org89810de"><code>yt-video</code> - Download-Video from youtube</h2>
|
||||
<div class="outline-text-2" id="text-org89810de">
|
||||
<div id="outline-container-yt-video" class="outline-2">
|
||||
<h2 id="yt-video"><code>yt-video</code> - Download-Video from youtube</h2>
|
||||
<div class="outline-text-2" id="text-yt-video">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-variable-name">TMUX</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
||||
tmux split -v -l <span class="org-highlight-numbers-number">5</span> <span class="org-string">"</span><span class="org-type"><span class="org-string">cd</span></span><span class="org-string"> ~/Downloads/ && youtube-dl --add-metadata -ic </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> && tmux select-pane -U
|
||||
@ -791,25 +730,40 @@ ffmpeg -v warning -i $<span class="org-highlight-numbers-number">1</span> -i $<s
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org539efcb" class="outline-2">
|
||||
<h2 id="org539efcb"><code>setbg</code> - Set Background</h2>
|
||||
<div class="outline-text-2" id="text-org539efcb">
|
||||
<div id="outline-container-setbg" class="outline-2">
|
||||
<h2 id="setbg"><code>setbg</code> - Set Background</h2>
|
||||
<div class="outline-text-2" id="text-setbg">
|
||||
<p>
|
||||
First argument is either:
|
||||
</p>
|
||||
<ul class="org-ul">
|
||||
<li>the background file</li>
|
||||
<li>a directory, in such case it will pick a random picture file from that directory</li>
|
||||
</ul>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">bgloc</span>=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{XDG_CACHE_HOME:-$HOME/.cache/}</span></span><span class="org-string">/bg"</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">If the argument is a file</span>
|
||||
<span class="org-rainbow-delimiters-depth-1">[</span> -f <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span> && <span class="org-type">ln</span> -sf <span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">readlink</span><span class="org-string"><span class="org-sh-quoted-exec"> -f "</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">1</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">")</span></span><span class="org-string">"</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">bgloc</span></span><span class="org-string">"</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">If the argument is a directory</span>
|
||||
<span class="org-rainbow-delimiters-depth-1">[</span> -d <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span> && <span class="org-type">ln</span> -sf <span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">find</span><span class="org-string"><span class="org-sh-quoted-exec"> "$(</span></span><span class="org-sh-quoted-exec">readlink</span><span class="org-string"><span class="org-sh-quoted-exec"> -f "</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">1</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">")</span></span><span class="org-string">" -iregex '.*.\(jpg\|jpeg\|png\|gif\)' -type f | shuf -n 1)"</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">bgloc</span></span><span class="org-string">"</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Set the wallpaper</span>
|
||||
xwallpaper --zoom <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">bgloc</span></span><span class="org-string">"</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org229006d" class="outline-2">
|
||||
<h2 id="org229006d"><code>insert-unicode</code> - Insert Unicode Icon</h2>
|
||||
<div class="outline-text-2" id="text-org229006d">
|
||||
<div id="outline-container-insert-unicode" class="outline-2">
|
||||
<h2 id="insert-unicode"><code>insert-unicode</code> - Insert Unicode Icon</h2>
|
||||
<div class="outline-text-2" id="text-insert-unicode">
|
||||
<p>
|
||||
The list of emojis is available <a href="data.html#emojis">here</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Must have xclip installed to even show menu.</span>
|
||||
xclip -h <span class="org-highlight-numbers-number">2</span>>/dev/null || <span class="org-keyword">exit</span> <span class="org-highlight-numbers-number">1</span>
|
||||
@ -830,9 +784,13 @@ xclip -h <span class="org-highlight-numbers-number">2</span>>/dev/null || <sp
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf4064e2" class="outline-2">
|
||||
<h2 id="orgf4064e2"><code>insert-nerd-fonts</code> - Insert Nerd Font Icon</h2>
|
||||
<div class="outline-text-2" id="text-orgf4064e2">
|
||||
<div id="outline-container-insert-nerd-fonts" class="outline-2">
|
||||
<h2 id="insert-nerd-fonts"><code>insert-nerd-fonts</code> - Insert Nerd Font Icon</h2>
|
||||
<div class="outline-text-2" id="text-insert-nerd-fonts">
|
||||
<p>
|
||||
The list of emojis is available <a href="data.html#nerd-fonts">here</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Must have xsel installed to even show menu.</span>
|
||||
xsel -h <span class="org-highlight-numbers-number">2</span>>/dev/null || <span class="org-keyword">exit</span> <span class="org-highlight-numbers-number">1</span>
|
||||
@ -853,24 +811,25 @@ xsel -h <span class="org-highlight-numbers-number">2</span>>/dev/null || <spa
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2796c9b" class="outline-2">
|
||||
<h2 id="org2796c9b"><code>linkhandler</code> - Open with Default application</h2>
|
||||
<div class="outline-text-2" id="text-org2796c9b">
|
||||
<div id="outline-container-linkhandler" class="outline-2">
|
||||
<h2 id="linkhandler"><code>linkhandler</code> - Open with Default application</h2>
|
||||
<div class="outline-text-2" id="text-linkhandler">
|
||||
<p>
|
||||
Inspired from <code>linkhandler</code> <a href="https://github.com/LukeSmithxyz/voidrice/">https://github.com/LukeSmithxyz/voidrice/</a>
|
||||
This is used in <code>newsboat</code> to handle links
|
||||
Inspired from <code>linkhandler</code> script (<a href="https://github.com/LukeSmithxyz/voidrice/">github</a>).
|
||||
This is used to open any type of file with the wanted program.
|
||||
It can be used in <code>newsboat</code>, <code>neomutt</code> and <code>ranger</code> for instance.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-rainbow-delimiters-depth-1">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span> && <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">BROWSER</span></span><span class="org-string">"</span>; <span class="org-keyword">exit</span>; <span class="org-rainbow-delimiters-depth-1">}</span>
|
||||
|
||||
<span class="org-keyword">case</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
|
||||
*mkv|*webm|*mp4|*youtube.com/watch*|*youtube.com/playlist*|*youtu.be*|*hooktube.com*|*bitchute.com*)
|
||||
*mkv|*webm|*mp4|*youtube.com/watch*|*youtube.com/playlist*|*youtu.be*)
|
||||
setsid mpv --input-ipc-server=/tmp/mpvsoc$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">date</span> +%s<span class="org-rainbow-delimiters-depth-1">)</span> -quiet <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> >/dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span> & ;;
|
||||
*png|*jpg|*jpe|*jpeg|*gif)
|
||||
<span class="org-type">curl</span> -sL <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> > <span class="org-string">"/tmp/</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">echo</span><span class="org-string"><span class="org-sh-quoted-exec"> "</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">1</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">" | sed "s/.*\///")</span></span><span class="org-string">"</span> && sxiv -a <span class="org-string">"/tmp/</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">echo</span><span class="org-string"><span class="org-sh-quoted-exec"> "</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">1</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">" | sed "s/.*\///")</span></span><span class="org-string">"</span> >/dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span> & ;;
|
||||
*mp3|*flac|*opus|*mp3?source*)
|
||||
setsid tsp <span class="org-type">curl</span> -LO <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> >/dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span> & ;;
|
||||
setsid <span class="org-type">curl</span> -LO <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> >/dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span> & ;;
|
||||
*)
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -f <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">TERMINAL</span></span><span class="org-string">"</span> -e <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">EDITOR</span></span><span class="org-string"> </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span>
|
||||
<span class="org-keyword">else</span> setsid $<span class="org-variable-name">BROWSER</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> >/dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span> & <span class="org-keyword">fi</span> ;;
|
||||
@ -879,89 +838,50 @@ This is used in <code>newsboat</code> to handle links
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org56e0cc2" class="outline-2">
|
||||
<h2 id="org56e0cc2"><code>lockscreen</code> - LockScreen</h2>
|
||||
<div class="outline-text-2" id="text-org56e0cc2">
|
||||
<p>
|
||||
First, turn off dunst
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">killall -SIGUSR1 dunst && <span class="org-type">echo</span> <span class="org-string">"off"</span> > /tmp/dunststatus;
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-lockscreen" class="outline-2">
|
||||
<h2 id="lockscreen"><code>lockscreen</code> - Lock Screen</h2>
|
||||
<div class="outline-text-2" id="text-lockscreen">
|
||||
<p>
|
||||
Turn off the music if it is playing.
|
||||
A nice lockscreen that uses <code>i3lock</code>.
|
||||
It takes a screenshot, pixelize it and overlay an image in the lockscreens folder.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">MPC_STATE</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">mpc</span> | sed -n <span class="org-string">'2p'</span> | cut -d <span class="org-string">"["</span> -f2 | cut -d <span class="org-string">"]"</span> -f1<span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">First, turn off dunst</span>
|
||||
killall -SIGUSR1 dunst && <span class="org-type">echo</span> <span class="org-string">"off"</span> > /tmp/dunststatus;
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Turn off the music if it is playing.</span>
|
||||
<span class="org-variable-name">MPC_STATE</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">mpc</span> | sed -n <span class="org-string">'2p'</span> | cut -d <span class="org-string">"["</span> -f2 | cut -d <span class="org-string">"]"</span> -f1<span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> $<span class="org-variable-name">MPC_STATE</span> == <span class="org-string">"playing"</span> <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
||||
mpc pause
|
||||
mpc pause
|
||||
<span class="org-keyword">fi</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
Then take a screenshot and process it.
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">temp_file</span>=<span class="org-string">"/tmp/screen.png"</span>
|
||||
|
||||
<span class="org-type">rm</span> -f $<span class="org-variable-name">temp_file</span>
|
||||
|
||||
maim $<span class="org-variable-name">temp_file</span>
|
||||
convert $<span class="org-variable-name">temp_file</span> -scale 10% -scale 1000% $<span class="org-variable-name">temp_file</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
Finally, lock the screen using <code>i3lock</code>.
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">i3lock --no-unlock-indicator --ignore-empty-password --nofork --image=$<span class="org-variable-name">temp_file</span> && killall -SIGUSR2 dunst && <span class="org-type">echo</span> <span class="org-string">"on"</span> > /tmp/dunststatus
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-function-name">revert</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
|
||||
xset dpms <span class="org-highlight-numbers-number">0</span> <span class="org-highlight-numbers-number">0</span> <span class="org-highlight-numbers-number">0</span>
|
||||
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||
<span class="org-keyword">trap</span> revert HUP INT TERM
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">turn off screen after 5 seconds</span>
|
||||
xset +dpms dpms <span class="org-highlight-numbers-number">5</span> <span class="org-highlight-numbers-number">5</span> <span class="org-highlight-numbers-number">5</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Parameters</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Take the screenshot and process it nicely</span>
|
||||
<span class="org-variable-name">temp_file</span>=<span class="org-string">"/tmp/screen.png"</span>
|
||||
<span class="org-variable-name">icon</span>=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">HOME</span></span><span class="org-string">/Pictures/Evil_Rick_Sprite.png"</span>
|
||||
<span class="org-variable-name">width</span>=<span class="org-highlight-numbers-number">1920</span>
|
||||
<span class="org-variable-name">height</span>=<span class="org-highlight-numbers-number">1080</span>
|
||||
<span class="org-variable-name">blur_factor</span>=<span class="org-highlight-numbers-number">6</span>
|
||||
<span class="org-variable-name">lock_blur_factor</span>=<span class="org-highlight-numbers-number">0</span>
|
||||
<span class="org-type">rm</span> -f $<span class="org-variable-name">temp_file</span>
|
||||
maim $<span class="org-variable-name">temp_file</span> && <span class="org-sh-escaped-newline">\</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Pixelize the Screenshot</span>
|
||||
convert $<span class="org-variable-name">temp_file</span> -scale 10% -scale 1000% $<span class="org-variable-name">temp_file</span> && <span class="org-sh-escaped-newline">\</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Overlay a random image in the lockscreens folder</span>
|
||||
composite -gravity center $<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">find</span> ~/.local/data/lockscreens/ -type f | shuf -n <span class="org-highlight-numbers-number">1</span><span class="org-rainbow-delimiters-depth-1">)</span> $<span class="org-variable-name">temp_file</span> $<span class="org-variable-name">temp_file</span>;
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Take the screen shot, blur the image and add the icon</span>
|
||||
ffmpeg -f x11grab -video_size <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{width}</span></span><span class="org-string">x</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{height}</span></span><span class="org-string">"</span> -y -i $<span class="org-variable-name">DISPLAY</span> -i $<span class="org-variable-name">icon</span> -filter_complex <span class="org-string">"boxblur=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">blur_factor</span></span><span class="org-string">:</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">blur_factor</span></span><span class="org-string">,overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2,boxblur=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">lock_blur_factor</span></span><span class="org-string">:</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">lock_blur_factor</span></span><span class="org-string">"</span> -vframes <span class="org-highlight-numbers-number">1</span> $<span class="org-variable-name">temp_file</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Alternative</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">maim -d 1 $temp_file</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">convert -blur 0x8 $temp_file $temp_file</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">convert -composite $temp_file $icon -gravity South -geometry -20x1200 $temp_file</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Lock the screen with the image</span>
|
||||
i3lock --no-unlock-indicator --ignore-empty-password --show-failed-attempts --nofork --image=$<span class="org-variable-name">temp_file</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Remove the screenshot</span>
|
||||
<span class="org-type">rm</span> $<span class="org-variable-name">temp_file</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Don't turn off screen when back from lock</span>
|
||||
revert
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Finally, lock the screen using =i3lock=</span>
|
||||
i3lock --ignore-empty-password --nofork --image=$<span class="org-variable-name">temp_file</span> && <span class="org-sh-escaped-newline">\</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">When unlocking, restart dunst</span>
|
||||
killall -SIGUSR2 dunst && <span class="org-type">echo</span> <span class="org-string">"on"</span> > /tmp/dunststatus
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbe881e3" class="outline-2">
|
||||
<h2 id="orgbe881e3"><code>mopidy-restart</code> - Restart Mopidy</h2>
|
||||
<div class="outline-text-2" id="text-orgbe881e3">
|
||||
<div id="outline-container-mopidy-restart" class="outline-2">
|
||||
<h2 id="mopidy-restart"><code>mopidy-restart</code> - Restart Mopidy</h2>
|
||||
<div class="outline-text-2" id="text-mopidy-restart">
|
||||
<p>
|
||||
Sometimes <code>mopidy</code> need to be restarted…
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">pids</span>=<span class="org-rainbow-delimiters-depth-1">(</span> $<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">pgrep</span> -f mopidy<span class="org-rainbow-delimiters-depth-2">)</span> <span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
|
||||
@ -970,8 +890,8 @@ revert
|
||||
<span class="org-type">kill</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">pid</span></span><span class="org-string">"</span>
|
||||
<span class="org-keyword">fi</span>
|
||||
<span class="org-keyword">done</span>
|
||||
|
||||
<span class="org-type">echo</span> <span class="org-string">"Killed mopidy."</span>
|
||||
|
||||
<span class="org-type">echo</span> <span class="org-string">"Restarting mopidy..."</span>
|
||||
mopidy --config ~/.config/mopidy/mopidy.conf >/dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span> &
|
||||
<span class="org-type">echo</span> <span class="org-string">"Done"</span>
|
||||
@ -980,9 +900,13 @@ mopidy --config ~/.config/mopidy/mopidy.conf >/dev/null <span class="org-high
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgffe5d25" class="outline-2">
|
||||
<h2 id="orgffe5d25"><code>upload</code> - Upload Script</h2>
|
||||
<div class="outline-text-2" id="text-orgffe5d25">
|
||||
<div id="outline-container-upload" class="outline-2">
|
||||
<h2 id="upload"><code>upload</code> - Upload Script</h2>
|
||||
<div class="outline-text-2" id="text-upload">
|
||||
<p>
|
||||
Upload a file to <a href="https://0x0.st/">https://0x0.st/</a> and copy the generated url.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-variable-name">TMUX</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
||||
tmux split -v -l <span class="org-highlight-numbers-number">1</span> <span class="org-string">"</span><span class="org-type"><span class="org-string">curl</span></span><span class="org-string"> --progress-bar -F\"file=@</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">\" https://0x0.st | xsel -ib;"</span> && tmux select-pane -U
|
||||
@ -996,9 +920,13 @@ mopidy --config ~/.config/mopidy/mopidy.conf >/dev/null <span class="org-high
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcd16f91" class="outline-2">
|
||||
<h2 id="orgcd16f91"><code>weather</code> - Display Weather in terminal</h2>
|
||||
<div class="outline-text-2" id="text-orgcd16f91">
|
||||
<div id="outline-container-weather" class="outline-2">
|
||||
<h2 id="weather"><code>weather</code> - Display Weather in terminal</h2>
|
||||
<div class="outline-text-2" id="text-weather">
|
||||
<p>
|
||||
Get the weather from <a href="http://wttr.in/">http://wttr.in/</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -n <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">*</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
||||
<span class="org-variable-name">address</span>=<span class="org-string">"wttr.in/"</span>
|
||||
@ -1024,9 +952,13 @@ mopidy --config ~/.config/mopidy/mopidy.conf >/dev/null <span class="org-high
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org17ef4d2" class="outline-2">
|
||||
<h2 id="org17ef4d2"><code>readbib</code> - Open Bibliography File</h2>
|
||||
<div class="outline-text-2" id="text-org17ef4d2">
|
||||
<div id="outline-container-readbib" class="outline-2">
|
||||
<h2 id="readbib"><code>readbib</code> - Open Bibliography File</h2>
|
||||
<div class="outline-text-2" id="text-readbib">
|
||||
<p>
|
||||
List all <code>pdf</code> files and open selected one with zathura.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-type">cd</span> ~/Cloud/pdfs/ && <span class="org-type">ls</span> | rofi -dmenu -lines <span class="org-highlight-numbers-number">20</span> | xargs -I <span class="org-rainbow-delimiters-depth-1">{}</span> zathura <span class="org-rainbow-delimiters-depth-1">{}</span>
|
||||
</pre>
|
||||
@ -1034,19 +966,9 @@ mopidy --config ~/.config/mopidy/mopidy.conf >/dev/null <span class="org-high
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgda667bb" class="outline-2">
|
||||
<h2 id="orgda667bb"><code>readnotes</code> - Open Note File</h2>
|
||||
<div class="outline-text-2" id="text-orgda667bb">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-type">cd</span> ~/Cloud/thesis/ressources/notes/pdfs/ && <span class="org-type">ls</span> *.pdf | rofi -dmenu -lines <span class="org-highlight-numbers-number">20</span> | xargs -I <span class="org-rainbow-delimiters-depth-1">{}</span> zathura <span class="org-rainbow-delimiters-depth-1">{}</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge45135c" class="outline-2">
|
||||
<h2 id="orge45135c"><code>pdf2bib</code> - Extract bibtex entry from PDF file</h2>
|
||||
<div class="outline-text-2" id="text-orge45135c">
|
||||
<div id="outline-container-pdf2bib" class="outline-2">
|
||||
<h2 id="pdf2bib"><code>pdf2bib</code> - Extract bibtex entry from PDF file</h2>
|
||||
<div class="outline-text-2" id="text-pdf2bib">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-function-name">pdf2doi</span> <span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
|
||||
pdfinfo <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> | <span class="org-type">grep</span> -io <span class="org-string">"doi:.*"</span> | <span class="org-type">grep</span> -Poi <span class="org-string">"10.\d+/[^\s]+"</span> || <span class="org-sh-escaped-newline">\</span>
|
||||
@ -1080,11 +1002,12 @@ mopidy --config ~/.config/mopidy/mopidy.conf >/dev/null <span class="org-high
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org70ec456" class="outline-2">
|
||||
<h2 id="org70ec456"><code>pdf2png</code> - Convert a PDF to PNG</h2>
|
||||
<div class="outline-text-2" id="text-org70ec456">
|
||||
<div id="outline-container-pdf2png" class="outline-2">
|
||||
<h2 id="pdf2png"><code>pdf2png</code> - Convert a PDF to PNG</h2>
|
||||
<div class="outline-text-2" id="text-pdf2png">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> -f <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> && <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> == *.pdf <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
||||
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Check if the input argumetn is a PDF file</span>
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> -f <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> && <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> == *.pdf <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
||||
pdftoppm -png <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> > <span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">echo</span><span class="org-string"><span class="org-sh-quoted-exec"> "</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">1</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">" | cut -f 1 -d '.' | sed 's/$/.png/')</span></span><span class="org-string">"</span>
|
||||
<span class="org-keyword">fi</span>
|
||||
</pre>
|
||||
@ -1092,9 +1015,133 @@ mopidy --config ~/.config/mopidy/mopidy.conf >/dev/null <span class="org-high
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7601ca9" class="outline-2">
|
||||
<h2 id="org7601ca9"><code>pdf-shrink</code> - Pdf Shrink</h2>
|
||||
<div class="outline-text-2" id="text-org7601ca9">
|
||||
<div id="outline-container-convert-file" class="outline-2">
|
||||
<h2 id="convert-file"><code>convert-file</code> - Convert any file to another filetype</h2>
|
||||
<div class="outline-text-2" id="text-convert-file">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Get filename</span>
|
||||
<span class="org-variable-name">filename_with_extension</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">basename</span> -- <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Extract extension of the file</span>
|
||||
<span class="org-variable-name">in_ext</span>=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{filename_with_extension##*.}</span></span><span class="org-string">"</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">filename without extension</span>
|
||||
<span class="org-variable-name">filename_without_extension</span>=$<span class="org-rainbow-delimiters-depth-1">{</span><span class="org-variable-name">filename_with_extension</span>%.*<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Convert SVG Files</span>
|
||||
<span class="org-function-name">svg2</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||
<span class="org-variable-name">out_ext</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"pdf\npng"</span> | rofi -i -dmenu -p <span class="org-string">"Convert SVG to"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-2">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">out_ext</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
|
||||
<span class="org-keyword">exit</span>;
|
||||
<span class="org-keyword">fi</span>
|
||||
|
||||
<span class="org-keyword">case</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">out_ext</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
|
||||
<span class="org-string">"png"</span>)
|
||||
inkscape --export-type=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">out_ext</span></span><span class="org-string">"</span> --export-dpi=<span class="org-highlight-numbers-number">200</span> --export-area-drawing <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">filename_with_extension</span></span><span class="org-string">"</span>
|
||||
;;
|
||||
<span class="org-string">"pdf"</span>)
|
||||
inkscape --export-type=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">out_ext</span></span><span class="org-string">"</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">filename_with_extension</span></span><span class="org-string">"</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">pdf2svg file.pdf file.svg</span>
|
||||
;;
|
||||
<span class="org-keyword">esac</span>
|
||||
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Convert PDF Files</span>
|
||||
<span class="org-function-name">pdf2</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||
<span class="org-variable-name">out_ext</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"svg\npng"</span> | rofi -i -dmenu -p <span class="org-string">"Convert PDF to"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Ask if crop?</span>
|
||||
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-2">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">out_ext</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
|
||||
<span class="org-keyword">exit</span>;
|
||||
<span class="org-keyword">fi</span>
|
||||
|
||||
<span class="org-keyword">case</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">out_ext</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
|
||||
<span class="org-string">"png"</span>)
|
||||
inkscape --export-type=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">out_ext</span></span><span class="org-string">"</span> --export-dpi=<span class="org-highlight-numbers-number">200</span> --export-area-drawing <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">filename_with_extension</span></span><span class="org-string">"</span>
|
||||
;;
|
||||
<span class="org-string">"svg"</span>)
|
||||
inkscape --export-type=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">out_ext</span></span><span class="org-string">"</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">filename_with_extension</span></span><span class="org-string">"</span>
|
||||
;;
|
||||
<span class="org-keyword">esac</span>
|
||||
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Convert DOCX/PPTX Files</span>
|
||||
<span class="org-function-name">docx2</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||
<span class="org-variable-name">out_ext</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"pdf"</span> | rofi -i -dmenu -p <span class="org-string">"Convert DOCX/PPTX to"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-2">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">out_ext</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
|
||||
<span class="org-keyword">exit</span>;
|
||||
<span class="org-keyword">fi</span>
|
||||
|
||||
<span class="org-keyword">case</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">out_ext</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
|
||||
<span class="org-string">"pdf"</span>)
|
||||
lowriter --convert-to pdf <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">filename_with_extension</span></span><span class="org-string">"</span>
|
||||
;;
|
||||
<span class="org-keyword">esac</span>
|
||||
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Convert PNG Files</span>
|
||||
<span class="org-function-name">png2</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||
<span class="org-variable-name">out_ext</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"pdf"</span> | rofi -i -dmenu -p <span class="org-string">"Convert PNG to"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-2">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">out_ext</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
|
||||
<span class="org-keyword">exit</span>;
|
||||
<span class="org-keyword">fi</span>
|
||||
|
||||
<span class="org-keyword">case</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">out_ext</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
|
||||
<span class="org-string">"pdf"</span>)
|
||||
convert <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">filename_with_extension</span></span><span class="org-string">"</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">filename_without_extension</span></span><span class="org-string">.pdf"</span>
|
||||
;;
|
||||
<span class="org-keyword">esac</span>
|
||||
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Convert MP4 Files</span>
|
||||
<span class="org-function-name">mp42</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span> <span class="org-sh-escaped-newline">\</span>
|
||||
<span class="org-variable-name">out_ext</span>=$<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"gif"</span> | rofi -i -dmenu -p <span class="org-string">"Convert MP4 to"</span><span class="org-rainbow-delimiters-depth-2">)</span>
|
||||
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-2">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">out_ext</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-2">]</span>; <span class="org-keyword">then</span>
|
||||
<span class="org-keyword">exit</span>;
|
||||
<span class="org-keyword">fi</span>
|
||||
|
||||
<span class="org-keyword">case</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">out_ext</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
|
||||
<span class="org-string">"gif"</span>)
|
||||
make-gif <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">filename_with_extension</span></span><span class="org-string">"</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">filename_without_extension</span></span><span class="org-string">.gif"</span>
|
||||
;;
|
||||
<span class="org-keyword">esac</span>
|
||||
<span class="org-rainbow-delimiters-depth-1">}</span>
|
||||
|
||||
<span class="org-keyword">case</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">in_ext</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
|
||||
<span class="org-string">"svg"</span>)
|
||||
svg2
|
||||
;;
|
||||
<span class="org-string">"pdf"</span>)
|
||||
pdf2
|
||||
;;
|
||||
<span class="org-string">"mp4"</span>)
|
||||
mp42
|
||||
;;
|
||||
<span class="org-string">"png"</span>)
|
||||
png2
|
||||
;;
|
||||
<span class="org-string">"docx"</span>)
|
||||
docx2
|
||||
;;
|
||||
<span class="org-string">"pttx"</span>)
|
||||
docx2
|
||||
;;
|
||||
<span class="org-keyword">esac</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-pdf-shrink" class="outline-2">
|
||||
<h2 id="pdf-shrink"><code>pdf-shrink</code> - Pdf Shrink</h2>
|
||||
<div class="outline-text-2" id="text-pdf-shrink">
|
||||
<p>
|
||||
Simply reduces the size of a given pdf file.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-function-name">shrink</span> <span class="org-rainbow-delimiters-depth-1">()</span>
|
||||
<span class="org-rainbow-delimiters-depth-1">{</span>
|
||||
@ -1153,7 +1200,7 @@ mopidy --config ~/.config/mopidy/mopidy.conf >/dev/null <span class="org-high
|
||||
<span class="org-variable-name">OFILE</span>=<span class="org-string">"-"</span>
|
||||
<span class="org-keyword">fi</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Output resolution defaults to 72 unless given:</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Output resolution defaults to 90 unless given:</span>
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> <span class="org-negation-char">!</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">3</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
||||
<span class="org-variable-name">res</span>=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">3</span></span><span class="org-string">"</span>
|
||||
<span class="org-keyword">else</span>
|
||||
@ -1167,32 +1214,35 @@ check_smaller <span class="org-string">"</span><span class="org-string"><span cl
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org4041717" class="outline-2">
|
||||
<h2 id="org4041717"><code>pdf-delete-annotations</code> - Delete Annotations from PDFs</h2>
|
||||
<div class="outline-text-2" id="text-org4041717">
|
||||
<div id="outline-container-pdf-delete-annotations" class="outline-2">
|
||||
<h2 id="pdf-delete-annotations"><code>pdf-delete-annotations</code> - Delete Annotations from PDFs</h2>
|
||||
<div class="outline-text-2" id="text-pdf-delete-annotations">
|
||||
<p>
|
||||
From: <a href="https://gist.github.com/stefanschmidt/5248592">https://gist.github.com/stefanschmidt/5248592</a>
|
||||
Taken from this <a href="https://gist.github.com/stefanschmidt/5248592">gist</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">pdftk $<span class="org-highlight-numbers-number">1</span> output /tmp/uncompressed.pdf uncompress
|
||||
<span class="org-variable-name">LANG</span>=C sed -n <span class="org-string">'/^\/Annots/!p'</span> /tmp/uncompressed.pdf > /tmp/stripped.pdf
|
||||
pdftk /tmp/stripped.pdf output $<span class="org-highlight-numbers-number">1</span> compress
|
||||
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Check if the input argumetn is a PDF file</span>
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> -f <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> && <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> == *.pdf <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
||||
pdftk $<span class="org-highlight-numbers-number">1</span> output /tmp/uncompressed.pdf uncompress
|
||||
<span class="org-variable-name">LANG</span>=C sed -n <span class="org-string">'/^\/Annots/!p'</span> /tmp/uncompressed.pdf > /tmp/stripped.pdf
|
||||
pdftk /tmp/stripped.pdf output $<span class="org-highlight-numbers-number">1</span> compress
|
||||
<span class="org-keyword">fi</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge18f381" class="outline-2">
|
||||
<h2 id="orge18f381"><code>pdf-delete-first-page</code> - Delete first page of PDF</h2>
|
||||
<div class="outline-text-2" id="text-orge18f381">
|
||||
<div id="outline-container-pdf-delete-first-page" class="outline-2">
|
||||
<h2 id="pdf-delete-first-page"><code>pdf-delete-first-page</code> - Delete first page of PDF</h2>
|
||||
<div class="outline-text-2" id="text-pdf-delete-first-page">
|
||||
<p>
|
||||
The requirement is to have <code>pdftk</code> or <code>stapler</code> installed.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> -f $<span class="org-highlight-numbers-number">1</span> && $<span class="org-highlight-numbers-number">1</span> == *.pdf <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Argument if a file</span>
|
||||
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Check if the input argumetn is a PDF file</span>
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> -f $<span class="org-highlight-numbers-number">1</span> && $<span class="org-highlight-numbers-number">1</span> == *.pdf <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
||||
<span class="org-keyword">if </span><span class="org-builtin">type</span> stapler > /dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span>; <span class="org-keyword">then</span>
|
||||
stapler del <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> <span class="org-highlight-numbers-number">1</span> /tmp/pdftk_out.pdf && <span class="org-type">mv</span> /tmp/pdftk_out.pdf <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span>
|
||||
<span class="org-keyword">elif </span><span class="org-builtin">type</span> pdftk > /dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span>; <span class="org-keyword">then</span>
|
||||
@ -1206,11 +1256,13 @@ The requirement is to have <code>pdftk</code> or <code>stapler</code> installed.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-rofi-calc" class="outline-2">
|
||||
<h2 id="rofi-calc"><code>rofi-calc</code> - Simple Calculation using Rofi</h2>
|
||||
<div class="outline-text-2" id="text-rofi-calc">
|
||||
<p>
|
||||
Run some simple calculations with <code>rofi</code>.
|
||||
</p>
|
||||
|
||||
|
||||
<div id="outline-container-org7ae8164" class="outline-2">
|
||||
<h2 id="org7ae8164"><code>rofi-calc</code> - Simple Calculation using Rofi</h2>
|
||||
<div class="outline-text-2" id="text-org7ae8164">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">rofi -show calc -mode calc -no-show-match -no-sort
|
||||
</pre>
|
||||
@ -1218,11 +1270,14 @@ The requirement is to have <code>pdftk</code> or <code>stapler</code> installed.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge7a6e2d" class="outline-2">
|
||||
<h2 id="orge7a6e2d"><code>pass-gen</code> - Generate Random Alphanumeric Password</h2>
|
||||
<div class="outline-text-2" id="text-orge7a6e2d">
|
||||
<div id="outline-container-pass-gen" class="outline-2">
|
||||
<h2 id="pass-gen"><code>pass-gen</code> - Generate Random Alphanumeric Password</h2>
|
||||
<div class="outline-text-2" id="text-pass-gen">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">num</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">rofi</span> -dmenu -p <span class="org-string">"Number of caracters"</span><span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Ask for the wanted number of caracters</span>
|
||||
<span class="org-variable-name">num</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">rofi</span> -dmenu -p <span class="org-string">"Number of caracters"</span><span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Random generation of alphanumeric caracters</span>
|
||||
<span class="org-variable-name">pass</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">cat</span> /dev/urandom | tr -dc <span class="org-string">'a-zA-Z0-9'</span> | fold -w <span class="org-highlight-numbers-number">32</span> | head -n <span class="org-highlight-numbers-number">1</span><span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
|
||||
<span class="org-variable-name">re</span>=<span class="org-string">'^[0-9]+$'</span>
|
||||
@ -1230,16 +1285,30 @@ The requirement is to have <code>pdftk</code> or <code>stapler</code> installed.
|
||||
<span class="org-variable-name">pass</span>=$<span class="org-rainbow-delimiters-depth-1">{</span><span class="org-variable-name">pass</span>:0:$<span class="org-variable-name">num</span><span class="org-rainbow-delimiters-depth-1">}</span>
|
||||
<span class="org-keyword">fi</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Send the password to the clipboard</span>
|
||||
<span class="org-builtin">printf</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">pass</span></span><span class="org-string">"</span> | xclip -sel clip && <span class="org-sh-escaped-newline">\</span>
|
||||
dunstify <span class="org-string">'Password'</span> <span class="org-string">'Generated'</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-sxhkd-help" class="outline-2">
|
||||
<h2 id="sxhkd-help"><code>sxhkd-help</code> - List of keybindings using Rofi</h2>
|
||||
<div class="outline-text-2" id="text-sxhkd-help">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">awk <span class="org-string">'/^[a-z]/ && last {print "<small>",$0,"\t",last,"</small>"} {last=""} /^#/{last=$0}'</span> ~/.config/sxhkd/sxhkdrc<span class="org-rainbow-delimiters-depth-1">{</span>,.i3<span class="org-rainbow-delimiters-depth-1">}</span> |
|
||||
column -t -s $<span class="org-string">'\t'</span> |
|
||||
rofi -dmenu -i -markup-rows -no-show-icons -width <span class="org-highlight-numbers-number">1000</span> -lines <span class="org-highlight-numbers-number">15</span> -yoffset <span class="org-highlight-numbers-number">40</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-11-03 mar. 16:26</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:09</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-11-03 mar. 16:26 -->
|
||||
<!-- 2021-01-01 ven. 14:56 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Bukurun (Bookmark Manager)</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
@ -60,7 +60,7 @@ Colors
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-11-03 mar. 16:26</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 14:56</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
286
docs/bspwm.html
286
docs/bspwm.html
@ -1,251 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-01-11 sam. 22:19 -->
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>BSPWM</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<style type="text/css">
|
||||
<!--/*--><![CDATA[/*><!--*/
|
||||
.title { text-align: center;
|
||||
margin-bottom: .2em; }
|
||||
.subtitle { text-align: center;
|
||||
font-size: medium;
|
||||
font-weight: bold;
|
||||
margin-top:0; }
|
||||
.todo { font-family: monospace; color: red; }
|
||||
.done { font-family: monospace; color: green; }
|
||||
.priority { font-family: monospace; color: orange; }
|
||||
.tag { background-color: #eee; font-family: monospace;
|
||||
padding: 2px; font-size: 80%; font-weight: normal; }
|
||||
.timestamp { color: #bebebe; }
|
||||
.timestamp-kwd { color: #5f9ea0; }
|
||||
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
|
||||
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
|
||||
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
|
||||
.underline { text-decoration: underline; }
|
||||
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
|
||||
p.verse { margin-left: 3%; }
|
||||
pre {
|
||||
border: 1px solid #ccc;
|
||||
box-shadow: 3px 3px 3px #eee;
|
||||
padding: 8pt;
|
||||
font-family: monospace;
|
||||
overflow: auto;
|
||||
margin: 1.2em;
|
||||
}
|
||||
pre.src {
|
||||
position: relative;
|
||||
overflow: visible;
|
||||
padding-top: 1.2em;
|
||||
}
|
||||
pre.src:before {
|
||||
display: none;
|
||||
position: absolute;
|
||||
background-color: white;
|
||||
top: -10px;
|
||||
right: 10px;
|
||||
padding: 3px;
|
||||
border: 1px solid black;
|
||||
}
|
||||
pre.src:hover:before { display: inline;}
|
||||
/* Languages per Org manual */
|
||||
pre.src-asymptote:before { content: 'Asymptote'; }
|
||||
pre.src-awk:before { content: 'Awk'; }
|
||||
pre.src-C:before { content: 'C'; }
|
||||
/* pre.src-C++ doesn't work in CSS */
|
||||
pre.src-clojure:before { content: 'Clojure'; }
|
||||
pre.src-css:before { content: 'CSS'; }
|
||||
pre.src-D:before { content: 'D'; }
|
||||
pre.src-ditaa:before { content: 'ditaa'; }
|
||||
pre.src-dot:before { content: 'Graphviz'; }
|
||||
pre.src-calc:before { content: 'Emacs Calc'; }
|
||||
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
|
||||
pre.src-fortran:before { content: 'Fortran'; }
|
||||
pre.src-gnuplot:before { content: 'gnuplot'; }
|
||||
pre.src-haskell:before { content: 'Haskell'; }
|
||||
pre.src-hledger:before { content: 'hledger'; }
|
||||
pre.src-java:before { content: 'Java'; }
|
||||
pre.src-js:before { content: 'Javascript'; }
|
||||
pre.src-latex:before { content: 'LaTeX'; }
|
||||
pre.src-ledger:before { content: 'Ledger'; }
|
||||
pre.src-lisp:before { content: 'Lisp'; }
|
||||
pre.src-lilypond:before { content: 'Lilypond'; }
|
||||
pre.src-lua:before { content: 'Lua'; }
|
||||
pre.src-matlab:before { content: 'MATLAB'; }
|
||||
pre.src-mscgen:before { content: 'Mscgen'; }
|
||||
pre.src-ocaml:before { content: 'Objective Caml'; }
|
||||
pre.src-octave:before { content: 'Octave'; }
|
||||
pre.src-org:before { content: 'Org mode'; }
|
||||
pre.src-oz:before { content: 'OZ'; }
|
||||
pre.src-plantuml:before { content: 'Plantuml'; }
|
||||
pre.src-processing:before { content: 'Processing.js'; }
|
||||
pre.src-python:before { content: 'Python'; }
|
||||
pre.src-R:before { content: 'R'; }
|
||||
pre.src-ruby:before { content: 'Ruby'; }
|
||||
pre.src-sass:before { content: 'Sass'; }
|
||||
pre.src-scheme:before { content: 'Scheme'; }
|
||||
pre.src-screen:before { content: 'Gnu Screen'; }
|
||||
pre.src-sed:before { content: 'Sed'; }
|
||||
pre.src-sh:before { content: 'shell'; }
|
||||
pre.src-sql:before { content: 'SQL'; }
|
||||
pre.src-sqlite:before { content: 'SQLite'; }
|
||||
/* additional languages in org.el's org-babel-load-languages alist */
|
||||
pre.src-forth:before { content: 'Forth'; }
|
||||
pre.src-io:before { content: 'IO'; }
|
||||
pre.src-J:before { content: 'J'; }
|
||||
pre.src-makefile:before { content: 'Makefile'; }
|
||||
pre.src-maxima:before { content: 'Maxima'; }
|
||||
pre.src-perl:before { content: 'Perl'; }
|
||||
pre.src-picolisp:before { content: 'Pico Lisp'; }
|
||||
pre.src-scala:before { content: 'Scala'; }
|
||||
pre.src-shell:before { content: 'Shell Script'; }
|
||||
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
|
||||
/* additional language identifiers per "defun org-babel-execute"
|
||||
in ob-*.el */
|
||||
pre.src-cpp:before { content: 'C++'; }
|
||||
pre.src-abc:before { content: 'ABC'; }
|
||||
pre.src-coq:before { content: 'Coq'; }
|
||||
pre.src-groovy:before { content: 'Groovy'; }
|
||||
/* additional language identifiers from org-babel-shell-names in
|
||||
ob-shell.el: ob-shell is the only babel language using a lambda to put
|
||||
the execution function name together. */
|
||||
pre.src-bash:before { content: 'bash'; }
|
||||
pre.src-csh:before { content: 'csh'; }
|
||||
pre.src-ash:before { content: 'ash'; }
|
||||
pre.src-dash:before { content: 'dash'; }
|
||||
pre.src-ksh:before { content: 'ksh'; }
|
||||
pre.src-mksh:before { content: 'mksh'; }
|
||||
pre.src-posh:before { content: 'posh'; }
|
||||
/* Additional Emacs modes also supported by the LaTeX listings package */
|
||||
pre.src-ada:before { content: 'Ada'; }
|
||||
pre.src-asm:before { content: 'Assembler'; }
|
||||
pre.src-caml:before { content: 'Caml'; }
|
||||
pre.src-delphi:before { content: 'Delphi'; }
|
||||
pre.src-html:before { content: 'HTML'; }
|
||||
pre.src-idl:before { content: 'IDL'; }
|
||||
pre.src-mercury:before { content: 'Mercury'; }
|
||||
pre.src-metapost:before { content: 'MetaPost'; }
|
||||
pre.src-modula-2:before { content: 'Modula-2'; }
|
||||
pre.src-pascal:before { content: 'Pascal'; }
|
||||
pre.src-ps:before { content: 'PostScript'; }
|
||||
pre.src-prolog:before { content: 'Prolog'; }
|
||||
pre.src-simula:before { content: 'Simula'; }
|
||||
pre.src-tcl:before { content: 'tcl'; }
|
||||
pre.src-tex:before { content: 'TeX'; }
|
||||
pre.src-plain-tex:before { content: 'Plain TeX'; }
|
||||
pre.src-verilog:before { content: 'Verilog'; }
|
||||
pre.src-vhdl:before { content: 'VHDL'; }
|
||||
pre.src-xml:before { content: 'XML'; }
|
||||
pre.src-nxml:before { content: 'XML'; }
|
||||
/* add a generic configuration mode; LaTeX export needs an additional
|
||||
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
|
||||
pre.src-conf:before { content: 'Configuration File'; }
|
||||
|
||||
table { border-collapse:collapse; }
|
||||
caption.t-above { caption-side: top; }
|
||||
caption.t-bottom { caption-side: bottom; }
|
||||
td, th { vertical-align:top; }
|
||||
th.org-right { text-align: center; }
|
||||
th.org-left { text-align: center; }
|
||||
th.org-center { text-align: center; }
|
||||
td.org-right { text-align: right; }
|
||||
td.org-left { text-align: left; }
|
||||
td.org-center { text-align: center; }
|
||||
dt { font-weight: bold; }
|
||||
.footpara { display: inline; }
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
margin: 10px;
|
||||
background: #ffffcc;
|
||||
}
|
||||
#org-div-home-and-up
|
||||
{ text-align: right; font-size: 70%; white-space: nowrap; }
|
||||
textarea { overflow-x: auto; }
|
||||
.linenr { font-size: smaller }
|
||||
.code-highlighted { background-color: #ffff00; }
|
||||
.org-info-js_info-navigation { border-style: none; }
|
||||
#org-info-js_console-label
|
||||
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
|
||||
.org-info-js_search-highlight
|
||||
{ background-color: #ffff00; color: #000000; font-weight: bold; }
|
||||
.org-svg { width: 90%; }
|
||||
/*]]>*/-->
|
||||
</style>
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<script type="text/javascript">
|
||||
/*
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
General Public License (GNU GPL) as published by the Free Software
|
||||
Foundation, either version 3 of the License, or (at your option)
|
||||
any later version. The code is distributed WITHOUT ANY WARRANTY;
|
||||
without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
|
||||
|
||||
As additional permission under GNU GPL version 3 section 7, you
|
||||
may distribute non-source (e.g., minimized or compacted) forms of
|
||||
that code without the copy of the GNU GPL normally required by
|
||||
section 4, provided you include this license notice and a URL
|
||||
through which recipients can access the Corresponding Source.
|
||||
|
||||
|
||||
@licend The above is the entire license notice
|
||||
for the JavaScript code in this tag.
|
||||
*/
|
||||
<!--/*--><![CDATA[/*><!--*/
|
||||
function CodeHighlightOn(elem, id)
|
||||
{
|
||||
var target = document.getElementById(id);
|
||||
if(null != target) {
|
||||
elem.cacheClassElem = elem.className;
|
||||
elem.cacheClassTarget = target.className;
|
||||
target.className = "code-highlighted";
|
||||
elem.className = "code-highlighted";
|
||||
}
|
||||
}
|
||||
function CodeHighlightOff(elem, id)
|
||||
{
|
||||
var target = document.getElementById(id);
|
||||
if(elem.cacheClassElem)
|
||||
elem.className = elem.cacheClassElem;
|
||||
if(elem.cacheClassTarget)
|
||||
target.className = elem.cacheClassTarget;
|
||||
}
|
||||
/*]]>*///-->
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -258,18 +22,18 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org38f8bff">List Desktops</a></li>
|
||||
<li><a href="#org47837f1">Basic Config</a></li>
|
||||
<li><a href="#orgfb29e3b">Colors</a></li>
|
||||
<li><a href="#org04a808f">Rules</a></li>
|
||||
<li><a href="#orgd001a1e">Run Polybar and SXHKD</a></li>
|
||||
<li><a href="#org7da674a">List Desktops</a></li>
|
||||
<li><a href="#org0c8adac">Basic Config</a></li>
|
||||
<li><a href="#org90ada71">Colors</a></li>
|
||||
<li><a href="#org7c7bf9b">Rules</a></li>
|
||||
<li><a href="#org0d9bead">Run Polybar and SXHKD</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org38f8bff" class="outline-2">
|
||||
<h2 id="org38f8bff">List Desktops</h2>
|
||||
<div class="outline-text-2" id="text-org38f8bff">
|
||||
<div id="outline-container-org7da674a" class="outline-2">
|
||||
<h2 id="org7da674a">List Desktops</h2>
|
||||
<div class="outline-text-2" id="text-org7da674a">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">bspc monitor -d code web mail misc figs
|
||||
</pre>
|
||||
@ -277,9 +41,9 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org47837f1" class="outline-2">
|
||||
<h2 id="org47837f1">Basic Config</h2>
|
||||
<div class="outline-text-2" id="text-org47837f1">
|
||||
<div id="outline-container-org0c8adac" class="outline-2">
|
||||
<h2 id="org0c8adac">Basic Config</h2>
|
||||
<div class="outline-text-2" id="text-org0c8adac">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">bspc config border_width <span class="org-highlight-numbers-number">1</span>
|
||||
bspc config window_gap <span class="org-highlight-numbers-number">8</span>
|
||||
@ -295,9 +59,9 @@ bspc config focus_follows_pointer true
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfb29e3b" class="outline-2">
|
||||
<h2 id="orgfb29e3b">Colors</h2>
|
||||
<div class="outline-text-2" id="text-orgfb29e3b">
|
||||
<div id="outline-container-org90ada71" class="outline-2">
|
||||
<h2 id="org90ada71">Colors</h2>
|
||||
<div class="outline-text-2" id="text-org90ada71">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">bspc config normal_border_color <span class="org-string">\#</span>32302f
|
||||
bspc config focused_border_color <span class="org-string">\#</span>bdae93
|
||||
@ -306,9 +70,9 @@ bspc config focused_border_color <span class="org-string">\#</span>bdae93
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org04a808f" class="outline-2">
|
||||
<h2 id="org04a808f">Rules</h2>
|
||||
<div class="outline-text-2" id="text-org04a808f">
|
||||
<div id="outline-container-org7c7bf9b" class="outline-2">
|
||||
<h2 id="org7c7bf9b">Rules</h2>
|
||||
<div class="outline-text-2" id="text-org7c7bf9b">
|
||||
<p>
|
||||
Use <code>xprop</code> to obtain information about the window.
|
||||
</p>
|
||||
@ -329,11 +93,11 @@ bspc rule --add Blueman-manager <span class="org-variable-name">state</span>=flo
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd001a1e" class="outline-2">
|
||||
<h2 id="orgd001a1e">Run Polybar and SXHKD</h2>
|
||||
<div class="outline-text-2" id="text-orgd001a1e">
|
||||
<div id="outline-container-org0d9bead" class="outline-2">
|
||||
<h2 id="org0d9bead">Run Polybar and SXHKD</h2>
|
||||
<div class="outline-text-2" id="text-org0d9bead">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">$<span class="org-variable-name">HOME</span>/.config/polybar/scripts/launch.sh
|
||||
<pre class="src src-bash">polybar top >>/tmp/polybar.log <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span> &
|
||||
sxhkd -m <span class="org-highlight-numbers-number">1</span> -c ~/.config/sxhkd/sxhkdrc.bspwm &
|
||||
</pre>
|
||||
</div>
|
||||
@ -342,7 +106,7 @@ sxhkd -m <span class="org-highlight-numbers-number">1</span> -c ~/.config/sxhkd/
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-01-11 sam. 22:19</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:09</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -3,17 +3,13 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-05-26 mar. 08:39 -->
|
||||
<!-- 2021-01-01 ven. 20:08 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Calendar Configuration</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -26,91 +22,91 @@
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org6792e9b">Vdirsyncer</a></li>
|
||||
<li><a href="#org481e0d6">Khal</a></li>
|
||||
<li><a href="#org5cdf1b8"><code>vdirsyncer</code> - Synchronize calendars and contacts</a></li>
|
||||
<li><a href="#org6838c88"><code>khal</code> - CLI calendar application</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6792e9b" class="outline-2">
|
||||
<h2 id="org6792e9b">Vdirsyncer</h2>
|
||||
<div class="outline-text-2" id="text-org6792e9b">
|
||||
<div id="outline-container-org5cdf1b8" class="outline-2">
|
||||
<h2 id="org5cdf1b8"><code>vdirsyncer</code> - Synchronize calendars and contacts</h2>
|
||||
<div class="outline-text-2" id="text-org5cdf1b8">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[general]
|
||||
status_path = "~/.config/vdirsyncer/status/"
|
||||
<pre class="src src-conf">[<span class="org-type">general</span>]
|
||||
<span class="org-variable-name">status_path</span> = <span class="org-string">"~/.config/vdirsyncer/status/"</span>
|
||||
|
||||
[pair google_calendar]
|
||||
a = "google_calendar_remote"
|
||||
b = "google_calendar_local"
|
||||
collections = ["dehaeze.thomas@gmail.com", "8kjmhe2ar0abnm054ill1fb0gc@group.calendar.google.com"]
|
||||
conflict_resolution = "a wins"
|
||||
[<span class="org-type">pair google_calendar</span>]
|
||||
<span class="org-variable-name">a</span> = <span class="org-string">"google_calendar_remote"</span>
|
||||
<span class="org-variable-name">b</span> = <span class="org-string">"google_calendar_local"</span>
|
||||
<span class="org-variable-name">collections</span> = [<span class="org-string">"dehaeze.thomas@gmail.com"</span>, <span class="org-string">"8kjmhe2ar0abnm054ill1fb0gc@group.calendar.google.com"</span>]
|
||||
<span class="org-variable-name">conflict_resolution</span> = <span class="org-string">"a wins"</span>
|
||||
|
||||
[storage google_calendar_remote]
|
||||
type = "google_calendar"
|
||||
token_file = "~/.config/dotfiles/private/token_file"
|
||||
client_id = "188415318767-802h28ig8gromo0f72blrbg6cgcop6m8.apps.googleusercontent.com"
|
||||
client_secret = "<<get-password(passname="calendar/google_client_secret")>>"
|
||||
[<span class="org-type">storage google_calendar_remote</span>]
|
||||
<span class="org-variable-name">type</span> = <span class="org-string">"google_calendar"</span>
|
||||
<span class="org-variable-name">token_file</span> = <span class="org-string">"~/.config/dotfiles/private/token_file"</span>
|
||||
<span class="org-variable-name">client_id</span> = <span class="org-string">"188415318767-802h28ig8gromo0f72blrbg6cgcop6m8.apps.googleusercontent.com"</span>
|
||||
<span class="org-variable-name">client_secret</span> = <span class="org-string">"<<get-password(passname="</span>calendar/google_client_secret<span class="org-string">")>>"</span>
|
||||
|
||||
[storage google_calendar_local]
|
||||
type = "filesystem"
|
||||
path = "~/.calendars/google/"
|
||||
fileext = ".ics"
|
||||
[<span class="org-type">storage google_calendar_local</span>]
|
||||
<span class="org-variable-name">type</span> = <span class="org-string">"filesystem"</span>
|
||||
<span class="org-variable-name">path</span> = <span class="org-string">"~/.calendars/google/"</span>
|
||||
<span class="org-variable-name">fileext</span> = <span class="org-string">".ics"</span>
|
||||
|
||||
|
||||
[pair google_contacts]
|
||||
a = "google_contacts_remote"
|
||||
b = "google_contacts_local"
|
||||
collections = ["from a", "from b"]
|
||||
conflict_resolution = "a wins"
|
||||
[<span class="org-type">pair google_contacts</span>]
|
||||
<span class="org-variable-name">a</span> = <span class="org-string">"google_contacts_remote"</span>
|
||||
<span class="org-variable-name">b</span> = <span class="org-string">"google_contacts_local"</span>
|
||||
<span class="org-variable-name">collections</span> = [<span class="org-string">"from a"</span>, <span class="org-string">"from b"</span>]
|
||||
<span class="org-variable-name">conflict_resolution</span> = <span class="org-string">"a wins"</span>
|
||||
|
||||
[storage google_contacts_local]
|
||||
type = "filesystem"
|
||||
path = "~/.contacts/"
|
||||
fileext = ".vcf"
|
||||
[<span class="org-type">storage google_contacts_local</span>]
|
||||
<span class="org-variable-name">type</span> = <span class="org-string">"filesystem"</span>
|
||||
<span class="org-variable-name">path</span> = <span class="org-string">"~/.contacts/"</span>
|
||||
<span class="org-variable-name">fileext</span> = <span class="org-string">".vcf"</span>
|
||||
|
||||
[storage google_contacts_remote]
|
||||
type = "google_contacts"
|
||||
token_file = "~/.config/dotfiles/private/token_file_carddav"
|
||||
client_id = "188415318767-802h28ig8gromo0f72blrbg6cgcop6m8.apps.googleusercontent.com"
|
||||
client_secret = "<<get-password(passname="contacts/google_client_secret")>>"
|
||||
[<span class="org-type">storage google_contacts_remote</span>]
|
||||
<span class="org-variable-name">type</span> = <span class="org-string">"google_contacts"</span>
|
||||
<span class="org-variable-name">token_file</span> = <span class="org-string">"~/.config/dotfiles/private/token_file_carddav"</span>
|
||||
<span class="org-variable-name">client_id</span> = <span class="org-string">"188415318767-802h28ig8gromo0f72blrbg6cgcop6m8.apps.googleusercontent.com"</span>
|
||||
<span class="org-variable-name">client_secret</span> = <span class="org-string">"<<get-password(passname="</span>contacts/google_client_secret<span class="org-string">")>>"</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org481e0d6" class="outline-2">
|
||||
<h2 id="org481e0d6">Khal</h2>
|
||||
<div class="outline-text-2" id="text-org481e0d6">
|
||||
<div id="outline-container-org6838c88" class="outline-2">
|
||||
<h2 id="org6838c88"><code>khal</code> - CLI calendar application</h2>
|
||||
<div class="outline-text-2" id="text-org6838c88">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[calendars]
|
||||
<pre class="src src-conf">[<span class="org-type">calendars</span>]
|
||||
|
||||
[[home]]
|
||||
path = ~/.calendars/google/dehaeze.thomas@gmail.com/
|
||||
color = "#B8BB26"
|
||||
[<span class="org-type">[home]</span>]
|
||||
<span class="org-variable-name">path</span> = ~/.calendars/google/dehaeze.thomas@gmail.com/
|
||||
<span class="org-variable-name">color</span> = <span class="org-string">"#B8BB26"</span>
|
||||
|
||||
[[work]]
|
||||
path = ~/.calendars/google/8kjmhe2ar0abnm054ill1fb0gc@group.calendar.google.com/
|
||||
color = "#FB4934"
|
||||
[<span class="org-type">[work]</span>]
|
||||
<span class="org-variable-name">path</span> = ~/.calendars/google/8kjmhe2ar0abnm054ill1fb0gc@group.calendar.google.com/
|
||||
<span class="org-variable-name">color</span> = <span class="org-string">"#FB4934"</span>
|
||||
|
||||
[highlight_days]
|
||||
multiple = "#FABD2F"
|
||||
[<span class="org-type">highlight_days</span>]
|
||||
<span class="org-variable-name">multiple</span> = <span class="org-string">"#FABD2F"</span>
|
||||
|
||||
[default]
|
||||
highlight_event_days = True
|
||||
[<span class="org-type">default</span>]
|
||||
<span class="org-variable-name">highlight_event_days</span> = True
|
||||
|
||||
[locale]
|
||||
local_timezone= Europe/Berlin
|
||||
default_timezone= Europe/Berlin
|
||||
timeformat= %H:%M
|
||||
dateformat= %d.%m.
|
||||
longdateformat= %d.%m.%Y
|
||||
datetimeformat= %d.%m. %H:%M
|
||||
longdatetimeformat= %d.%m.%Y %H:%M
|
||||
[<span class="org-type">locale</span>]
|
||||
<span class="org-variable-name">local_timezone</span>= Europe/Berlin
|
||||
<span class="org-variable-name">default_timezone</span>= Europe/Berlin
|
||||
<span class="org-variable-name">timeformat</span>= %H:%M
|
||||
<span class="org-variable-name">dateformat</span>= %d.%m.
|
||||
<span class="org-variable-name">longdateformat</span>= %d.%m.%Y
|
||||
<span class="org-variable-name">datetimeformat</span>= %d.%m. %H:%M
|
||||
<span class="org-variable-name">longdatetimeformat</span>= %d.%m.%Y %H:%M
|
||||
|
||||
[keybindings]
|
||||
delete = d
|
||||
today = .
|
||||
new = c
|
||||
[<span class="org-type">keybindings</span>]
|
||||
<span class="org-variable-name">delete</span> = d
|
||||
<span class="org-variable-name">today</span> = .
|
||||
<span class="org-variable-name">new</span> = c
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -118,7 +114,7 @@ new = c
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-05-26 mar. 08:39</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:08</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -3,17 +3,13 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-11-03 mar. 16:26 -->
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Picom (Compositor)</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -26,18 +22,18 @@
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org83d8ce7">Shadow</a></li>
|
||||
<li><a href="#org79d6699">Opacity</a></li>
|
||||
<li><a href="#org61a6af4">Fading</a></li>
|
||||
<li><a href="#org7c10dee">Other</a></li>
|
||||
<li><a href="#orgd16d016">Window Type Setting</a></li>
|
||||
<li><a href="#org202e265">Shadow</a></li>
|
||||
<li><a href="#org149e065">Opacity</a></li>
|
||||
<li><a href="#org7f92cb7">Fading</a></li>
|
||||
<li><a href="#orgc741707">Other</a></li>
|
||||
<li><a href="#org76e2225">Window Type Setting</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org83d8ce7" class="outline-2">
|
||||
<h2 id="org83d8ce7">Shadow</h2>
|
||||
<div class="outline-text-2" id="text-org83d8ce7">
|
||||
<div id="outline-container-org202e265" class="outline-2">
|
||||
<h2 id="org202e265">Shadow</h2>
|
||||
<div class="outline-text-2" id="text-org202e265">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-variable-name">shadow</span> = true;
|
||||
<span class="org-variable-name">shadow-radius</span> = <span class="org-highlight-numbers-number">12</span>;
|
||||
@ -57,9 +53,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org79d6699" class="outline-2">
|
||||
<h2 id="org79d6699">Opacity</h2>
|
||||
<div class="outline-text-2" id="text-org79d6699">
|
||||
<div id="outline-container-org149e065" class="outline-2">
|
||||
<h2 id="org149e065">Opacity</h2>
|
||||
<div class="outline-text-2" id="text-org149e065">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-variable-name">inactive-opacity</span> = <span class="org-highlight-numbers-number">1.0</span>;
|
||||
<span class="org-variable-name">frame-opacity</span> = <span class="org-highlight-numbers-number">1.0</span>;
|
||||
@ -69,9 +65,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org61a6af4" class="outline-2">
|
||||
<h2 id="org61a6af4">Fading</h2>
|
||||
<div class="outline-text-2" id="text-org61a6af4">
|
||||
<div id="outline-container-org7f92cb7" class="outline-2">
|
||||
<h2 id="org7f92cb7">Fading</h2>
|
||||
<div class="outline-text-2" id="text-org7f92cb7">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-variable-name">fading</span> = false;
|
||||
<span class="org-variable-name">fade-in-step</span> = <span class="org-highlight-numbers-number">0.03</span>;
|
||||
@ -81,9 +77,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7c10dee" class="outline-2">
|
||||
<h2 id="org7c10dee">Other</h2>
|
||||
<div class="outline-text-2" id="text-org7c10dee">
|
||||
<div id="outline-container-orgc741707" class="outline-2">
|
||||
<h2 id="orgc741707">Other</h2>
|
||||
<div class="outline-text-2" id="text-orgc741707">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-variable-name">backend</span> = <span class="org-string">"xrender"</span>;
|
||||
<span class="org-variable-name">mark-wmwin-focused</span> = true;
|
||||
@ -96,9 +92,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd16d016" class="outline-2">
|
||||
<h2 id="orgd16d016">Window Type Setting</h2>
|
||||
<div class="outline-text-2" id="text-orgd16d016">
|
||||
<div id="outline-container-org76e2225" class="outline-2">
|
||||
<h2 id="org76e2225">Window Type Setting</h2>
|
||||
<div class="outline-text-2" id="text-org76e2225">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">wintypes:
|
||||
{
|
||||
@ -113,7 +109,7 @@
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-11-03 mar. 16:26</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:09</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
102
docs/config.html
102
docs/config.html
@ -3,17 +3,13 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-11-03 mar. 16:26 -->
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Configuration Files</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -26,19 +22,20 @@
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org964079a">SSH</a></li>
|
||||
<li><a href="#org4d50f78">Font</a></li>
|
||||
<li><a href="#org5432d18">GnuPG</a></li>
|
||||
<li><a href="#orgb73fd39">Redshift</a></li>
|
||||
<li><a href="#org2836d2e">dmenu</a></li>
|
||||
<li><a href="#org4f16229">Locale</a></li>
|
||||
<li><a href="#org3f17b04">SSH</a></li>
|
||||
<li><a href="#org10b81df">Font</a></li>
|
||||
<li><a href="#orge8ba5b4">GnuPG</a></li>
|
||||
<li><a href="#org3a8118a">Redshift</a></li>
|
||||
<li><a href="#org91a7258">dmenu</a></li>
|
||||
<li><a href="#orge5eb33f">Locale</a></li>
|
||||
<li><a href="#orgd31ca2a"><code>bukurun</code> Rofi Frontend for Buku (Bookmark Manager)</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org964079a" class="outline-2">
|
||||
<h2 id="org964079a">SSH</h2>
|
||||
<div class="outline-text-2" id="text-org964079a">
|
||||
<div id="outline-container-org3f17b04" class="outline-2">
|
||||
<h2 id="org3f17b04">SSH</h2>
|
||||
<div class="outline-text-2" id="text-org3f17b04">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">AddKeysToAgent yes
|
||||
|
||||
@ -76,9 +73,9 @@ Host nas
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4d50f78" class="outline-2">
|
||||
<h2 id="org4d50f78">Font</h2>
|
||||
<div class="outline-text-2" id="text-org4d50f78">
|
||||
<div id="outline-container-org10b81df" class="outline-2">
|
||||
<h2 id="org10b81df">Font</h2>
|
||||
<div class="outline-text-2" id="text-org10b81df">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-variable-name"><?xml version</span>=<span class="org-string">'1.0'</span>?>
|
||||
<!DOCTYPE fontconfig SYSTEM <span class="org-string">'fonts.dtd'</span>>
|
||||
@ -107,9 +104,9 @@ Host nas
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5432d18" class="outline-2">
|
||||
<h2 id="org5432d18">GnuPG</h2>
|
||||
<div class="outline-text-2" id="text-org5432d18">
|
||||
<div id="outline-container-orge8ba5b4" class="outline-2">
|
||||
<h2 id="orge8ba5b4">GnuPG</h2>
|
||||
<div class="outline-text-2" id="text-orge8ba5b4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">default-cache-ttl <span class="org-highlight-numbers-number">60480000</span>
|
||||
max-cache-ttl <span class="org-highlight-numbers-number">60480000</span>
|
||||
@ -118,9 +115,9 @@ max-cache-ttl <span class="org-highlight-numbers-number">60480000</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb73fd39" class="outline-2">
|
||||
<h2 id="orgb73fd39">Redshift</h2>
|
||||
<div class="outline-text-2" id="text-orgb73fd39">
|
||||
<div id="outline-container-org3a8118a" class="outline-2">
|
||||
<h2 id="org3a8118a">Redshift</h2>
|
||||
<div class="outline-text-2" id="text-org3a8118a">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">redshift</span>]
|
||||
<span class="org-variable-name">temp-day</span>=<span class="org-highlight-numbers-number">5700</span>
|
||||
@ -143,9 +140,9 @@ max-cache-ttl <span class="org-highlight-numbers-number">60480000</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2836d2e" class="outline-2">
|
||||
<h2 id="org2836d2e">dmenu</h2>
|
||||
<div class="outline-text-2" id="text-org2836d2e">
|
||||
<div id="outline-container-org91a7258" class="outline-2">
|
||||
<h2 id="org91a7258">dmenu</h2>
|
||||
<div class="outline-text-2" id="text-org91a7258">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">define the font for dmenu to be used</span>
|
||||
<span class="org-variable-name">DMENU_FN</span>=<span class="org-string">"Hack Nerd Font 12"</span>
|
||||
@ -172,9 +169,9 @@ max-cache-ttl <span class="org-highlight-numbers-number">60480000</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4f16229" class="outline-2">
|
||||
<h2 id="org4f16229">Locale</h2>
|
||||
<div class="outline-text-2" id="text-org4f16229">
|
||||
<div id="outline-container-orge5eb33f" class="outline-2">
|
||||
<h2 id="orge5eb33f">Locale</h2>
|
||||
<div class="outline-text-2" id="text-orge5eb33f">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-variable-name">LANG</span>=en_US.UTF-8
|
||||
<span class="org-variable-name">LC_CTYPE</span>=<span class="org-string">"en_US.UTF-8"</span>
|
||||
@ -194,10 +191,51 @@ max-cache-ttl <span class="org-highlight-numbers-number">60480000</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd31ca2a" class="outline-2">
|
||||
<h2 id="orgd31ca2a"><code>bukurun</code> Rofi Frontend for Buku (Bookmark Manager)</h2>
|
||||
<div class="outline-text-2" id="text-orgd31ca2a">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-type">_rofi ()</span> {
|
||||
rofi -dmenu -i -no-levenshtein-sort -width <span class="org-highlight-numbers-number">1000</span> <span class="org-string">"$@"</span>
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
Display settings
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-variable-name">display_type</span>=<span class="org-highlight-numbers-number">1</span>
|
||||
<span class="org-variable-name">max_str_width</span>=<span class="org-highlight-numbers-number">80</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
Keybindings
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-variable-name">switch_view</span>=<span class="org-string">"Alt+Tab"</span>
|
||||
<span class="org-variable-name">new_bookmark</span>=<span class="org-string">"Alt+n"</span>
|
||||
<span class="org-variable-name">actions</span>=<span class="org-string">"Alt+a"</span>
|
||||
<span class="org-variable-name">edit</span>=<span class="org-string">"Alt+e"</span>
|
||||
<span class="org-variable-name">delete</span>=<span class="org-string">"Alt+d"</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
Colors
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-variable-name">help_color</span>=<span class="org-string">"#2d7ed8"</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-11-03 mar. 16:26</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:09</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,229 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-03-01 dim. 22:50 -->
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Calendar Configuration</title>
|
||||
<title>Contact Configuration</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<style type="text/css">
|
||||
<!--/*--><![CDATA[/*><!--*/
|
||||
.title { text-align: center;
|
||||
margin-bottom: .2em; }
|
||||
.subtitle { text-align: center;
|
||||
font-size: medium;
|
||||
font-weight: bold;
|
||||
margin-top:0; }
|
||||
.todo { font-family: monospace; color: red; }
|
||||
.done { font-family: monospace; color: green; }
|
||||
.priority { font-family: monospace; color: orange; }
|
||||
.tag { background-color: #eee; font-family: monospace;
|
||||
padding: 2px; font-size: 80%; font-weight: normal; }
|
||||
.timestamp { color: #bebebe; }
|
||||
.timestamp-kwd { color: #5f9ea0; }
|
||||
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
|
||||
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
|
||||
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
|
||||
.underline { text-decoration: underline; }
|
||||
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
|
||||
p.verse { margin-left: 3%; }
|
||||
pre {
|
||||
border: 1px solid #ccc;
|
||||
box-shadow: 3px 3px 3px #eee;
|
||||
padding: 8pt;
|
||||
font-family: monospace;
|
||||
overflow: auto;
|
||||
margin: 1.2em;
|
||||
}
|
||||
pre.src {
|
||||
position: relative;
|
||||
overflow: visible;
|
||||
padding-top: 1.2em;
|
||||
}
|
||||
pre.src:before {
|
||||
display: none;
|
||||
position: absolute;
|
||||
background-color: white;
|
||||
top: -10px;
|
||||
right: 10px;
|
||||
padding: 3px;
|
||||
border: 1px solid black;
|
||||
}
|
||||
pre.src:hover:before { display: inline;}
|
||||
/* Languages per Org manual */
|
||||
pre.src-asymptote:before { content: 'Asymptote'; }
|
||||
pre.src-awk:before { content: 'Awk'; }
|
||||
pre.src-C:before { content: 'C'; }
|
||||
/* pre.src-C++ doesn't work in CSS */
|
||||
pre.src-clojure:before { content: 'Clojure'; }
|
||||
pre.src-css:before { content: 'CSS'; }
|
||||
pre.src-D:before { content: 'D'; }
|
||||
pre.src-ditaa:before { content: 'ditaa'; }
|
||||
pre.src-dot:before { content: 'Graphviz'; }
|
||||
pre.src-calc:before { content: 'Emacs Calc'; }
|
||||
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
|
||||
pre.src-fortran:before { content: 'Fortran'; }
|
||||
pre.src-gnuplot:before { content: 'gnuplot'; }
|
||||
pre.src-haskell:before { content: 'Haskell'; }
|
||||
pre.src-hledger:before { content: 'hledger'; }
|
||||
pre.src-java:before { content: 'Java'; }
|
||||
pre.src-js:before { content: 'Javascript'; }
|
||||
pre.src-latex:before { content: 'LaTeX'; }
|
||||
pre.src-ledger:before { content: 'Ledger'; }
|
||||
pre.src-lisp:before { content: 'Lisp'; }
|
||||
pre.src-lilypond:before { content: 'Lilypond'; }
|
||||
pre.src-lua:before { content: 'Lua'; }
|
||||
pre.src-matlab:before { content: 'MATLAB'; }
|
||||
pre.src-mscgen:before { content: 'Mscgen'; }
|
||||
pre.src-ocaml:before { content: 'Objective Caml'; }
|
||||
pre.src-octave:before { content: 'Octave'; }
|
||||
pre.src-org:before { content: 'Org mode'; }
|
||||
pre.src-oz:before { content: 'OZ'; }
|
||||
pre.src-plantuml:before { content: 'Plantuml'; }
|
||||
pre.src-processing:before { content: 'Processing.js'; }
|
||||
pre.src-python:before { content: 'Python'; }
|
||||
pre.src-R:before { content: 'R'; }
|
||||
pre.src-ruby:before { content: 'Ruby'; }
|
||||
pre.src-sass:before { content: 'Sass'; }
|
||||
pre.src-scheme:before { content: 'Scheme'; }
|
||||
pre.src-screen:before { content: 'Gnu Screen'; }
|
||||
pre.src-sed:before { content: 'Sed'; }
|
||||
pre.src-sh:before { content: 'shell'; }
|
||||
pre.src-sql:before { content: 'SQL'; }
|
||||
pre.src-sqlite:before { content: 'SQLite'; }
|
||||
/* additional languages in org.el's org-babel-load-languages alist */
|
||||
pre.src-forth:before { content: 'Forth'; }
|
||||
pre.src-io:before { content: 'IO'; }
|
||||
pre.src-J:before { content: 'J'; }
|
||||
pre.src-makefile:before { content: 'Makefile'; }
|
||||
pre.src-maxima:before { content: 'Maxima'; }
|
||||
pre.src-perl:before { content: 'Perl'; }
|
||||
pre.src-picolisp:before { content: 'Pico Lisp'; }
|
||||
pre.src-scala:before { content: 'Scala'; }
|
||||
pre.src-shell:before { content: 'Shell Script'; }
|
||||
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
|
||||
/* additional language identifiers per "defun org-babel-execute"
|
||||
in ob-*.el */
|
||||
pre.src-cpp:before { content: 'C++'; }
|
||||
pre.src-abc:before { content: 'ABC'; }
|
||||
pre.src-coq:before { content: 'Coq'; }
|
||||
pre.src-groovy:before { content: 'Groovy'; }
|
||||
/* additional language identifiers from org-babel-shell-names in
|
||||
ob-shell.el: ob-shell is the only babel language using a lambda to put
|
||||
the execution function name together. */
|
||||
pre.src-bash:before { content: 'bash'; }
|
||||
pre.src-csh:before { content: 'csh'; }
|
||||
pre.src-ash:before { content: 'ash'; }
|
||||
pre.src-dash:before { content: 'dash'; }
|
||||
pre.src-ksh:before { content: 'ksh'; }
|
||||
pre.src-mksh:before { content: 'mksh'; }
|
||||
pre.src-posh:before { content: 'posh'; }
|
||||
/* Additional Emacs modes also supported by the LaTeX listings package */
|
||||
pre.src-ada:before { content: 'Ada'; }
|
||||
pre.src-asm:before { content: 'Assembler'; }
|
||||
pre.src-caml:before { content: 'Caml'; }
|
||||
pre.src-delphi:before { content: 'Delphi'; }
|
||||
pre.src-html:before { content: 'HTML'; }
|
||||
pre.src-idl:before { content: 'IDL'; }
|
||||
pre.src-mercury:before { content: 'Mercury'; }
|
||||
pre.src-metapost:before { content: 'MetaPost'; }
|
||||
pre.src-modula-2:before { content: 'Modula-2'; }
|
||||
pre.src-pascal:before { content: 'Pascal'; }
|
||||
pre.src-ps:before { content: 'PostScript'; }
|
||||
pre.src-prolog:before { content: 'Prolog'; }
|
||||
pre.src-simula:before { content: 'Simula'; }
|
||||
pre.src-tcl:before { content: 'tcl'; }
|
||||
pre.src-tex:before { content: 'TeX'; }
|
||||
pre.src-plain-tex:before { content: 'Plain TeX'; }
|
||||
pre.src-verilog:before { content: 'Verilog'; }
|
||||
pre.src-vhdl:before { content: 'VHDL'; }
|
||||
pre.src-xml:before { content: 'XML'; }
|
||||
pre.src-nxml:before { content: 'XML'; }
|
||||
/* add a generic configuration mode; LaTeX export needs an additional
|
||||
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
|
||||
pre.src-conf:before { content: 'Configuration File'; }
|
||||
|
||||
table { border-collapse:collapse; }
|
||||
caption.t-above { caption-side: top; }
|
||||
caption.t-bottom { caption-side: bottom; }
|
||||
td, th { vertical-align:top; }
|
||||
th.org-right { text-align: center; }
|
||||
th.org-left { text-align: center; }
|
||||
th.org-center { text-align: center; }
|
||||
td.org-right { text-align: right; }
|
||||
td.org-left { text-align: left; }
|
||||
td.org-center { text-align: center; }
|
||||
dt { font-weight: bold; }
|
||||
.footpara { display: inline; }
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
margin: 10px;
|
||||
background: #ffffcc;
|
||||
}
|
||||
#org-div-home-and-up
|
||||
{ text-align: right; font-size: 70%; white-space: nowrap; }
|
||||
textarea { overflow-x: auto; }
|
||||
.linenr { font-size: smaller }
|
||||
.code-highlighted { background-color: #ffff00; }
|
||||
.org-info-js_info-navigation { border-style: none; }
|
||||
#org-info-js_console-label
|
||||
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
|
||||
.org-info-js_search-highlight
|
||||
{ background-color: #ffff00; color: #000000; font-weight: bold; }
|
||||
.org-svg { width: 90%; }
|
||||
/*]]>*/-->
|
||||
</style>
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<script type="text/javascript">
|
||||
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
|
||||
<!--/*--><![CDATA[/*><!--*/
|
||||
function CodeHighlightOn(elem, id)
|
||||
{
|
||||
var target = document.getElementById(id);
|
||||
if(null != target) {
|
||||
elem.cacheClassElem = elem.className;
|
||||
elem.cacheClassTarget = target.className;
|
||||
target.className = "code-highlighted";
|
||||
elem.className = "code-highlighted";
|
||||
}
|
||||
}
|
||||
function CodeHighlightOff(elem, id)
|
||||
{
|
||||
var target = document.getElementById(id);
|
||||
if(elem.cacheClassElem)
|
||||
elem.className = elem.cacheClassElem;
|
||||
if(elem.cacheClassTarget)
|
||||
target.className = elem.cacheClassTarget;
|
||||
}
|
||||
/*]]>*///-->
|
||||
// @license-end
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -231,24 +17,21 @@
|
||||
|
|
||||
<a accesskey="H" href="./index.html"> HOME </a>
|
||||
</div><div id="content">
|
||||
<h1 class="title">Calendar Configuration</h1>
|
||||
<h1 class="title">Contact Configuration</h1>
|
||||
<div id="table-of-contents">
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgaf64b1d">Khard</a></li>
|
||||
<li><a href="#org4e975c8">Khard</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaf64b1d" class="outline-2">
|
||||
<h2 id="orgaf64b1d">Khard</h2>
|
||||
<div class="outline-text-2" id="text-orgaf64b1d">
|
||||
<div id="outline-container-org4e975c8" class="outline-2">
|
||||
<h2 id="org4e975c8">Khard</h2>
|
||||
<div class="outline-text-2" id="text-org4e975c8">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">example configuration file for khard version >= 0.13.0</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">place it under $HOME/.config/khard/khard.conf</span>
|
||||
|
||||
[<span class="org-type">addressbooks</span>]
|
||||
<pre class="src src-conf">[<span class="org-type">addressbooks</span>]
|
||||
[<span class="org-type">[google]</span>]
|
||||
<span class="org-variable-name">path</span> = ~/.contacts/default/
|
||||
|
||||
@ -300,7 +83,7 @@
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-03-01 dim. 22:50</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:09</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,145 +0,0 @@
|
||||
.org-bold { /* bold */ font-weight: bold; }
|
||||
.org-bold-italic { /* bold-italic */ font-weight: bold; font-style: italic; }
|
||||
.org-buffer-menu-buffer { /* buffer-menu-buffer */ font-weight: bold; }
|
||||
.org-builtin { /* font-lock-builtin-face */ color: #7a378b; }
|
||||
.org-button { /* button */ text-decoration: underline; }
|
||||
.org-calendar-today { /* calendar-today */ text-decoration: underline; }
|
||||
.org-change-log-acknowledgement { /* change-log-acknowledgement */ color: #b22222; }
|
||||
.org-change-log-conditionals { /* change-log-conditionals */ color: #a0522d; }
|
||||
.org-change-log-date { /* change-log-date */ color: #8b2252; }
|
||||
.org-change-log-email { /* change-log-email */ color: #a0522d; }
|
||||
.org-change-log-file { /* change-log-file */ color: #0000ff; }
|
||||
.org-change-log-function { /* change-log-function */ color: #a0522d; }
|
||||
.org-change-log-list { /* change-log-list */ color: #a020f0; }
|
||||
.org-change-log-name { /* change-log-name */ color: #008b8b; }
|
||||
.org-comint-highlight-input { /* comint-highlight-input */ font-weight: bold; }
|
||||
.org-comint-highlight-prompt { /* comint-highlight-prompt */ color: #00008b; }
|
||||
.org-comment { /* font-lock-comment-face */ color: #999988; font-style: italic; }
|
||||
.org-comment-delimiter { /* font-lock-comment-delimiter-face */ color: #999988; font-style: italic; }
|
||||
.org-completions-annotations { /* completions-annotations */ font-style: italic; }
|
||||
.org-completions-common-part { /* completions-common-part */ color: #000000; background-color: #ffffff; }
|
||||
.org-completions-first-difference { /* completions-first-difference */ font-weight: bold; }
|
||||
.org-constant { /* font-lock-constant-face */ color: #008b8b; }
|
||||
.org-diary { /* diary */ color: #ff0000; }
|
||||
.org-diff-context { /* diff-context */ color: #7f7f7f; }
|
||||
.org-diff-file-header { /* diff-file-header */ background-color: #b3b3b3; font-weight: bold; }
|
||||
.org-diff-function { /* diff-function */ background-color: #cccccc; }
|
||||
.org-diff-header { /* diff-header */ background-color: #cccccc; }
|
||||
.org-diff-hunk-header { /* diff-hunk-header */ background-color: #cccccc; }
|
||||
.org-diff-index { /* diff-index */ background-color: #b3b3b3; font-weight: bold; }
|
||||
.org-diff-nonexistent { /* diff-nonexistent */ background-color: #b3b3b3; font-weight: bold; }
|
||||
.org-diff-refine-change { /* diff-refine-change */ background-color: #d9d9d9; }
|
||||
.org-dired-directory { /* dired-directory */ color: #0000ff; }
|
||||
.org-dired-flagged { /* dired-flagged */ color: #ff0000; font-weight: bold; }
|
||||
.org-dired-header { /* dired-header */ color: #228b22; }
|
||||
.org-dired-ignored { /* dired-ignored */ color: #7f7f7f; }
|
||||
.org-dired-mark { /* dired-mark */ color: #008b8b; }
|
||||
.org-dired-marked { /* dired-marked */ color: #ff0000; font-weight: bold; }
|
||||
.org-dired-perm-write { /* dired-perm-write */ color: #b22222; }
|
||||
.org-dired-symlink { /* dired-symlink */ color: #a020f0; }
|
||||
.org-dired-warning { /* dired-warning */ color: #ff0000; font-weight: bold; }
|
||||
.org-doc { /* font-lock-doc-face */ color: #8b2252; }
|
||||
.org-escape-glyph { /* escape-glyph */ color: #a52a2a; }
|
||||
.org-file-name-shadow { /* file-name-shadow */ color: #7f7f7f; }
|
||||
.org-flyspell-duplicate { /* flyspell-duplicate */ color: #cdad00; font-weight: bold; text-decoration: underline; }
|
||||
.org-flyspell-incorrect { /* flyspell-incorrect */ color: #ff4500; font-weight: bold; text-decoration: underline; }
|
||||
.org-fringe { /* fringe */ background-color: #f2f2f2; }
|
||||
.org-function-name { /* font-lock-function-name-face */ color: teal; }
|
||||
.org-header-line { /* header-line */ color: #333333; background-color: #e5e5e5; }
|
||||
.org-help-argument-name { /* help-argument-name */ font-style: italic; }
|
||||
.org-highlight { /* highlight */ background-color: #b4eeb4; }
|
||||
.org-holiday { /* holiday */ background-color: #ffc0cb; }
|
||||
.org-isearch { /* isearch */ color: #b0e2ff; background-color: #cd00cd; }
|
||||
.org-isearch-fail { /* isearch-fail */ background-color: #ffc1c1; }
|
||||
.org-italic { /* italic */ font-style: italic; }
|
||||
.org-keyword { /* font-lock-keyword-face */ color: #0086b3; }
|
||||
.org-lazy-highlight { /* lazy-highlight */ background-color: #afeeee; }
|
||||
.org-link { /* link */ color: #0000ff; text-decoration: underline; }
|
||||
.org-link-visited { /* link-visited */ color: #8b008b; text-decoration: underline; }
|
||||
.org-log-edit-header { /* log-edit-header */ color: #a020f0; }
|
||||
.org-log-edit-summary { /* log-edit-summary */ color: #0000ff; }
|
||||
.org-log-edit-unknown-header { /* log-edit-unknown-header */ color: #b22222; }
|
||||
.org-match { /* match */ background-color: #ffff00; }
|
||||
.org-next-error { /* next-error */ background-color: #eedc82; }
|
||||
.org-nobreak-space { /* nobreak-space */ color: #a52a2a; text-decoration: underline; }
|
||||
.org-org-archived { /* org-archived */ color: #7f7f7f; }
|
||||
.org-org-block { /* org-block */ color: #7f7f7f; }
|
||||
.org-org-block-begin-line { /* org-block-begin-line */ color: #b22222; }
|
||||
.org-org-block-end-line { /* org-block-end-line */ color: #b22222; }
|
||||
.org-org-checkbox { /* org-checkbox */ font-weight: bold; }
|
||||
.org-org-checkbox-statistics-done { /* org-checkbox-statistics-done */ color: #228b22; font-weight: bold; }
|
||||
.org-org-checkbox-statistics-todo { /* org-checkbox-statistics-todo */ color: #ff0000; font-weight: bold; }
|
||||
.org-org-clock-overlay { /* org-clock-overlay */ background-color: #ffff00; }
|
||||
.org-org-code { /* org-code */ color: #7f7f7f; }
|
||||
.org-org-column { /* org-column */ background-color: #e5e5e5; }
|
||||
.org-org-column-title { /* org-column-title */ background-color: #e5e5e5; font-weight: bold; text-decoration: underline; }
|
||||
.org-org-date { /* org-date */ color: #a020f0; text-decoration: underline; }
|
||||
.org-org-document-info { /* org-document-info */ color: #191970; }
|
||||
.org-org-document-info-keyword { /* org-document-info-keyword */ color: #7f7f7f; }
|
||||
.org-org-document-title { /* org-document-title */ color: #191970; font-size: 144%; font-weight: bold; }
|
||||
.org-org-done { /* org-done */ color: #228b22; font-weight: bold; }
|
||||
.org-org-drawer { /* org-drawer */ color: #0000ff; }
|
||||
.org-org-ellipsis { /* org-ellipsis */ color: #b8860b; text-decoration: underline; }
|
||||
.org-org-footnote { /* org-footnote */ color: #a020f0; text-decoration: underline; }
|
||||
.org-org-formula { /* org-formula */ color: #b22222; }
|
||||
.org-org-headline-done { /* org-headline-done */ color: #bc8f8f; }
|
||||
.org-org-hide { /* org-hide */ color: #ffffff; }
|
||||
.org-org-latex-and-export-specials { /* org-latex-and-export-specials */ color: #8b4513; }
|
||||
.org-org-level-1 { /* org-level-1 */ color: #0000ff; }
|
||||
.org-org-level-2 { /* org-level-2 */ color: #a0522d; }
|
||||
.org-org-level-3 { /* org-level-3 */ color: #a020f0; }
|
||||
.org-org-level-4 { /* org-level-4 */ color: #b22222; }
|
||||
.org-org-level-5 { /* org-level-5 */ color: #228b22; }
|
||||
.org-org-level-6 { /* org-level-6 */ color: #008b8b; }
|
||||
.org-org-level-7 { /* org-level-7 */ color: #7a378b; }
|
||||
.org-org-level-8 { /* org-level-8 */ color: #8b2252; }
|
||||
.org-org-link { /* org-link */ color: #0000ff; text-decoration: underline; }
|
||||
.org-org-meta-line { /* org-meta-line */ color: #b22222; }
|
||||
.org-org-mode-line-clock { /* org-mode-line-clock */ color: #000000; background-color: #bfbfbf; }
|
||||
.org-org-mode-line-clock-overrun { /* org-mode-line-clock-overrun */ color: #000000; background-color: #ff0000; }
|
||||
.org-org-quote { /* org-quote */ color: #7f7f7f; }
|
||||
.org-org-scheduled { /* org-scheduled */ color: #006400; }
|
||||
.org-org-scheduled-previously { /* org-scheduled-previously */ color: #b22222; }
|
||||
.org-org-scheduled-today { /* org-scheduled-today */ color: #006400; }
|
||||
.org-org-sexp-date { /* org-sexp-date */ color: #a020f0; }
|
||||
.org-org-special-keyword { /* org-special-keyword */ color: #a020f0; }
|
||||
.org-org-table { /* org-table */ color: #0000ff; }
|
||||
.org-org-tag { /* org-tag */ font-weight: bold; }
|
||||
.org-org-target { /* org-target */ text-decoration: underline; }
|
||||
.org-org-time-grid { /* org-time-grid */ color: #b8860b; }
|
||||
.org-org-todo { /* org-todo */ color: #ff0000; font-weight: bold; }
|
||||
.org-org-upcoming-deadline { /* org-upcoming-deadline */ color: #b22222; }
|
||||
.org-org-verbatim { /* org-verbatim */ color: #7f7f7f; }
|
||||
.org-org-verse { /* org-verse */ color: #7f7f7f; }
|
||||
.org-org-warning { /* org-warning */ color: #ff0000; font-weight: bold; }
|
||||
.org-outline-1 { /* outline-1 */ color: #0000ff; }
|
||||
.org-outline-2 { /* outline-2 */ color: #a0522d; }
|
||||
.org-outline-3 { /* outline-3 */ color: #a020f0; }
|
||||
.org-outline-4 { /* outline-4 */ color: #b22222; }
|
||||
.org-outline-5 { /* outline-5 */ color: #228b22; }
|
||||
.org-outline-6 { /* outline-6 */ color: #008b8b; }
|
||||
.org-outline-7 { /* outline-7 */ color: #7a378b; }
|
||||
.org-outline-8 { /* outline-8 */ color: #8b2252; }
|
||||
.org-preprocessor { /* font-lock-preprocessor-face */ color: #7a378b; }
|
||||
.org-query-replace { /* query-replace */ color: #b0e2ff; background-color: #cd00cd; }
|
||||
.org-regexp-grouping-backslash { /* font-lock-regexp-grouping-backslash */ font-weight: bold; }
|
||||
.org-regexp-grouping-construct { /* font-lock-regexp-grouping-construct */ font-weight: bold; }
|
||||
.org-region { /* region */ background-color: #eedc82; }
|
||||
.org-secondary-selection { /* secondary-selection */ background-color: #ffff00; }
|
||||
.org-shadow { /* shadow */ color: #7f7f7f; }
|
||||
.org-show-paren-match { /* show-paren-match */ background-color: #40e0d0; }
|
||||
.org-show-paren-mismatch { /* show-paren-mismatch */ color: #ffffff; background-color: #a020f0; }
|
||||
.org-string { /* font-lock-string-face */ color: #dd1144; }
|
||||
.org-tool-bar { /* tool-bar */ color: #000000; background-color: #bfbfbf; }
|
||||
.org-tooltip { /* tooltip */ color: #000000; background-color: #ffffe0; }
|
||||
.org-trailing-whitespace { /* trailing-whitespace */ background-color: #ff0000; }
|
||||
.org-type { /* font-lock-type-face */ color: #228b22; }
|
||||
.org-underline { /* underline */ text-decoration: underline; }
|
||||
.org-variable-name { /* font-lock-variable-name-face */ color: teal; }
|
||||
.org-warning { /* font-lock-warning-face */ color: #ff0000; font-weight: bold; }
|
||||
.org-widget-button { /* widget-button */ font-weight: bold; }
|
||||
.org-widget-button-pressed { /* widget-button-pressed */ color: #ff0000; }
|
||||
.org-widget-documentation { /* widget-documentation */ color: #006400; }
|
||||
.org-widget-field { /* widget-field */ background-color: #d9d9d9; }
|
||||
.org-widget-inactive { /* widget-inactive */ color: #7f7f7f; }
|
||||
.org-widget-single-line-field { /* widget-single-line-field */ background-color: #d9d9d9; }
|
File diff suppressed because it is too large
Load Diff
10245
docs/data.html
10245
docs/data.html
File diff suppressed because it is too large
Load Diff
258
docs/dist/script.js
vendored
Normal file
258
docs/dist/script.js
vendored
Normal file
@ -0,0 +1,258 @@
|
||||
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
||||
"use strict";
|
||||
|
||||
function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
||||
|
||||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
||||
|
||||
// Blocks
|
||||
docReady(function () {
|
||||
var boxesNames = {
|
||||
"seealso": "See also",
|
||||
"definition": "Definition",
|
||||
"exampl": "Example",
|
||||
"exercice": "Exercice",
|
||||
"question": "Question",
|
||||
"summary": "Summary",
|
||||
"note": "Note",
|
||||
"answer": "Answer",
|
||||
"hint": "Hint",
|
||||
"important": "Important",
|
||||
"caution": "Caution",
|
||||
"warning": "Warning"
|
||||
};
|
||||
|
||||
for (var className in boxesNames) {
|
||||
var boxes = document.querySelectorAll('div.' + className);
|
||||
|
||||
var _iterator = _createForOfIteratorHelper(boxes),
|
||||
_step;
|
||||
|
||||
try {
|
||||
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
||||
var box = _step.value;
|
||||
var boxTitle = document.createElement('p');
|
||||
boxTitle.className = "admonition-title " + className;
|
||||
boxTitle.textContent = boxesNames[className];
|
||||
box.parentNode.insertBefore(boxTitle, box);
|
||||
}
|
||||
} catch (err) {
|
||||
_iterator.e(err);
|
||||
} finally {
|
||||
_iterator.f();
|
||||
}
|
||||
}
|
||||
}); // Copy Source Block
|
||||
|
||||
docReady(function () {
|
||||
var srcContainers = document.querySelectorAll('pre.src');
|
||||
|
||||
function copyClickFunction() {
|
||||
var boxCopy = this; // Create a clone the node to not affect the original one
|
||||
|
||||
var nodeClone = boxCopy.parentNode.cloneNode(true); // Remove Line Numbers and Copy Button
|
||||
|
||||
var linenumNodes = nodeClone.querySelectorAll('.linenr,.src-copy');
|
||||
|
||||
for (var i = linenumNodes.length - 1; i >= 0; --i) {
|
||||
nodeClone.removeChild(linenumNodes[i]);
|
||||
} // Copy the filetered content to the clipboard
|
||||
|
||||
|
||||
var srcText = nodeClone.textContent;
|
||||
navigator.clipboard.writeText(srcText).then(function () {
|
||||
boxCopy.textContent = "Copied";
|
||||
boxCopy.classList.add("src-copied");
|
||||
setTimeout(function () {
|
||||
boxCopy.textContent = "Copy";
|
||||
boxCopy.classList.remove("src-copied");
|
||||
}, 2000);
|
||||
});
|
||||
}
|
||||
|
||||
var _iterator2 = _createForOfIteratorHelper(srcContainers),
|
||||
_step2;
|
||||
|
||||
try {
|
||||
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
||||
var srcContrainer = _step2.value;
|
||||
var boxCopy = document.createElement('div');
|
||||
boxCopy.className = "src-copy";
|
||||
boxCopy.textContent = "Copy";
|
||||
boxCopy.onclick = copyClickFunction;
|
||||
srcContrainer.prepend(boxCopy);
|
||||
}
|
||||
} catch (err) {
|
||||
_iterator2.e(err);
|
||||
} finally {
|
||||
_iterator2.f();
|
||||
}
|
||||
}); // Wrap Images and Tables
|
||||
|
||||
docReady(function () {
|
||||
var wrap_elements = document.querySelectorAll('[float=wrap-right]');
|
||||
|
||||
var _iterator3 = _createForOfIteratorHelper(wrap_elements),
|
||||
_step3;
|
||||
|
||||
try {
|
||||
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
||||
var wrap_el = _step3.value;
|
||||
wrap_el.closest('.figure').classList.add('wrap-right');
|
||||
}
|
||||
} catch (err) {
|
||||
_iterator3.e(err);
|
||||
} finally {
|
||||
_iterator3.f();
|
||||
}
|
||||
|
||||
wrap_elements = document.querySelectorAll('[float=wrap-left]');
|
||||
|
||||
var _iterator4 = _createForOfIteratorHelper(wrap_elements),
|
||||
_step4;
|
||||
|
||||
try {
|
||||
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
||||
var _wrap_el = _step4.value;
|
||||
|
||||
_wrap_el.closest('.figure').classList.add('wrap-left');
|
||||
}
|
||||
} catch (err) {
|
||||
_iterator4.e(err);
|
||||
} finally {
|
||||
_iterator4.f();
|
||||
}
|
||||
}); // Equivalent of Jquery $.ready
|
||||
|
||||
function docReady(fn) {
|
||||
// see if DOM is already available
|
||||
if (document.readyState === "complete" || document.readyState === "interactive") {
|
||||
// call on next available tick
|
||||
setTimeout(fn, 1);
|
||||
} else {
|
||||
document.addEventListener("DOMContentLoaded", fn);
|
||||
}
|
||||
} // Load Jquery
|
||||
|
||||
|
||||
var scr = document.createElement('script'),
|
||||
head = document.head || document.getElementsByTagName('head')[0];
|
||||
scr.src = 'https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js';
|
||||
scr.async = false; // optionally
|
||||
|
||||
head.insertBefore(scr, head.firstChild); // Load Bootstrap.js
|
||||
|
||||
var scr = document.createElement('script'),
|
||||
head = document.head || document.getElementsByTagName('head')[0];
|
||||
scr.src = 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js';
|
||||
scr.async = false; // optionally
|
||||
|
||||
head.insertBefore(scr, head.firstChild); // After it is loaded
|
||||
|
||||
scr.addEventListener('load', function () {
|
||||
$(document).ready(function () {
|
||||
$('#text-table-of-contents ul').first().addClass('nav'); // ScrollSpy also requires that we use
|
||||
// a Bootstrap nav component.
|
||||
|
||||
$('body').scrollspy({
|
||||
target: '#text-table-of-contents'
|
||||
}); // set the height of tableOfContents
|
||||
|
||||
var $postamble = $('#postamble');
|
||||
var $tableOfContents = $('#table-of-contents');
|
||||
$tableOfContents.css({
|
||||
paddingBottom: $postamble.outerHeight()
|
||||
}); // add TOC button
|
||||
|
||||
var toggleSidebar = $('<div id="toggle-sidebar"><a href="#table-of-contents"><h2>Table of Contents</h2></a></div>');
|
||||
$('#content').prepend(toggleSidebar); // add close button when sidebar showed in mobile screen
|
||||
|
||||
var closeBtn = $('<a class="close-sidebar" href="#">Close</a>');
|
||||
var tocTitle = $('#table-of-contents').find('h2');
|
||||
tocTitle.append(closeBtn);
|
||||
});
|
||||
}); // function collapse_toc_elements_on_click (nav_li_a){
|
||||
// /*
|
||||
// When an `a' element in the TOC is clicked, its parent
|
||||
// `li' element's active attribute is toggled. This causes
|
||||
// the element to toggle between minimized and maximized
|
||||
// states. The active attribute is documented in bootstrap.
|
||||
// https://getbootstrap.com/docs/4.0/components/navbar/#nav
|
||||
// */
|
||||
// $(nav_li_a).parent().toggleClass("active");
|
||||
// }
|
||||
// $( document ).ready(function() {
|
||||
// // When the document is loaded and ready, bind the
|
||||
// // function `collapse_toc_elements_on_click' to the
|
||||
// // `a' elements in the table of contents.
|
||||
// $("#text-table-of-contents a").click(function() {
|
||||
// collapse_toc_elements_on_click(this);
|
||||
// });
|
||||
// });
|
||||
// $( document ).ready(function() {
|
||||
// // Shift nav in mobile when clicking the menu.
|
||||
// $(document).on('click', "[data-toggle='wy-nav-top']", function() {
|
||||
// $("[data-toggle='wy-nav-shift']").toggleClass("shift");
|
||||
// $("[data-toggle='rst-versions']").toggleClass("shift");
|
||||
// });
|
||||
// // Close menu when you click a link.
|
||||
// $(document).on('click', ".wy-menu-vertical .current ul li a", function() {
|
||||
// $("[data-toggle='wy-nav-shift']").removeClass("shift");
|
||||
// $("[data-toggle='rst-versions']").toggleClass("shift");
|
||||
// });
|
||||
// $(document).on('click', "[data-toggle='rst-current-version']", function() {
|
||||
// $("[data-toggle='rst-versions']").toggleClass("shift-up");
|
||||
// });
|
||||
// // Make tables responsive
|
||||
// $("table.docutils:not(.field-list)").wrap("<div class='wy-table-responsive'></div>");
|
||||
// });
|
||||
// $( document ).ready(function() {
|
||||
// $('#text-table-of-contents ul').first().addClass('nav');
|
||||
// // ScrollSpy also requires that we use
|
||||
// // a Bootstrap nav component.
|
||||
// $('body').scrollspy({target: '#text-table-of-contents'});
|
||||
// // set the height of tableOfContents
|
||||
// var $postamble = $('#postamble');
|
||||
// var $tableOfContents = $('#table-of-contents');
|
||||
// $tableOfContents.css({paddingBottom: $postamble.outerHeight()});
|
||||
// // add TOC button
|
||||
// var toggleSidebar = $('<div id="toggle-sidebar"><a href="#table-of-contents"><h2>Table of Contents</h2></a></div>');
|
||||
// $('#content').prepend(toggleSidebar);
|
||||
// // add close button when sidebar showed in mobile screen
|
||||
// var closeBtn = $('<a class="close-sidebar" href="#">Close</a>');
|
||||
// var tocTitle = $('#table-of-contents').find('h2');
|
||||
// tocTitle.append(closeBtn);
|
||||
// });
|
||||
// window.SphinxRtdTheme = (function (jquery) {
|
||||
// var stickyNav = (function () {
|
||||
// var navBar,
|
||||
// win,
|
||||
// stickyNavCssClass = 'stickynav',
|
||||
// applyStickNav = function () {
|
||||
// if (navBar.height() <= win.height()) {
|
||||
// navBar.addClass(stickyNavCssClass);
|
||||
// } else {
|
||||
// navBar.removeClass(stickyNavCssClass);
|
||||
// }
|
||||
// },
|
||||
// enable = function () {
|
||||
// applyStickNav();
|
||||
// win.on('resize', applyStickNav);
|
||||
// },
|
||||
// init = function () {
|
||||
// navBar = jquery('nav.wy-nav-side:first');
|
||||
// win = jquery(window);
|
||||
// };
|
||||
// jquery(init);
|
||||
// return {
|
||||
// enable : enable
|
||||
// };
|
||||
// }());
|
||||
// return {
|
||||
// StickyNav : stickyNav
|
||||
// };
|
||||
// }($));
|
||||
|
||||
},{}]},{},[1]);
|
1
docs/dist/style.css
vendored
Normal file
1
docs/dist/style.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1407
docs/doom.html
1407
docs/doom.html
File diff suppressed because it is too large
Load Diff
@ -3,86 +3,92 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-05-26 mar. 08:39 -->
|
||||
<!-- 2021-01-01 ven. 20:08 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>My Own Library of Babel</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Thomas Dehaeze" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="content">
|
||||
<div id="org-div-home-and-up">
|
||||
<a accesskey="h" href="./index.html"> UP </a>
|
||||
|
|
||||
<a accesskey="H" href="./index.html"> HOME </a>
|
||||
</div><div id="content">
|
||||
<h1 class="title">My Own Library of Babel</h1>
|
||||
<div id="table-of-contents">
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org71b708a"><code>get-password</code> - Get Password from <code>pass</code></a></li>
|
||||
<li><a href="#org79b9e08"><code>pdf2svg</code> - Export to pdf/png/svg at the same time</a></li>
|
||||
<li><a href="#org6ba9d05"><code>addhdr</code> - Add hline to tables</a></li>
|
||||
<li><a href="#org7b7c23f">Matlab Related</a>
|
||||
<li><a href="#org6748865"><code>get-password</code> - Get Password from <code>pass</code></a></li>
|
||||
<li><a href="#orga14277a"><code>pdf2svg</code> - Export to pdf/png/svg at the same time</a></li>
|
||||
<li><a href="#orgca0df99"><code>addhdr</code> - Add hline to tables</a></li>
|
||||
<li><a href="#org7f58498">Matlab Related</a>
|
||||
<ul>
|
||||
<li><a href="#orgd33f90b"><code>matlab-dir</code> Go to current directory</a></li>
|
||||
<li><a href="#org408551b"><code>matlab-init</code> Initialize matlab</a></li>
|
||||
<li><a href="#orgf9fe5d3"><code>plt-matlab</code> Plot figures</a></li>
|
||||
<li><a href="#org0dc80bc"><code>matlab-dir</code> Go to current directory</a></li>
|
||||
<li><a href="#orge3957c3"><code>matlab-init</code> Initialize matlab</a></li>
|
||||
<li><a href="#orgcdf63af"><code>plt-matlab</code> Plot figures</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org71b708a" class="outline-2">
|
||||
<h2 id="org71b708a"><code>get-password</code> - Get Password from <code>pass</code></h2>
|
||||
<div class="outline-text-2" id="text-org71b708a">
|
||||
<div id="outline-container-org6748865" class="outline-2">
|
||||
<h2 id="org6748865"><code>get-password</code> - Get Password from <code>pass</code></h2>
|
||||
<div class="outline-text-2" id="text-org6748865">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash" id="org8e7df7d">pass $passname | sed -n 1p
|
||||
<pre class="src src-bash" id="org907ee3f">pass $<span class="org-variable-name">passname</span> | sed -n 1p
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org79b9e08" class="outline-2">
|
||||
<h2 id="org79b9e08"><code>pdf2svg</code> - Export to pdf/png/svg at the same time</h2>
|
||||
<div class="outline-text-2" id="text-org79b9e08">
|
||||
<div id="outline-container-orga14277a" class="outline-2">
|
||||
<h2 id="orga14277a"><code>pdf2svg</code> - Export to pdf/png/svg at the same time</h2>
|
||||
<div class="outline-text-2" id="text-orga14277a">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-sh" id="org2d9e76a">_mydir="$(pwd)";
|
||||
file=$(echo "$file" | cut -f 2- -d ':');
|
||||
_figdir=$(dirname "$file");
|
||||
cd $_figdir;
|
||||
filename=$(echo "${file##*/}" | cut -f 1 -d '.');
|
||||
pdftocairo -png -transp -singlefile "$filename.pdf";
|
||||
pdftocairo -svg "$filename.pdf";
|
||||
cd "$_mydir";
|
||||
echo "[[file:$_figdir/$filename.$ext]]"
|
||||
<pre class="src src-sh" id="org9f7b2d6"><span class="org-variable-name">_mydir</span>=<span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">pwd</span><span class="org-string"><span class="org-sh-quoted-exec">)</span></span><span class="org-string">"</span>;
|
||||
<span class="org-variable-name">file</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">file</span></span><span class="org-string">"</span> | cut -f 2- -d <span class="org-string">':'</span><span class="org-rainbow-delimiters-depth-1">)</span>;
|
||||
<span class="org-variable-name">_figdir</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">dirname</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">file</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-1">)</span>;
|
||||
<span class="org-type">cd</span> $<span class="org-variable-name">_figdir</span>;
|
||||
<span class="org-variable-name">filename</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{file##*/}</span></span><span class="org-string">"</span> | cut -f <span class="org-highlight-numbers-number">1</span> -d <span class="org-string">'.'</span><span class="org-rainbow-delimiters-depth-1">)</span>;
|
||||
pdftocairo -png -transp -singlefile <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">filename</span></span><span class="org-string">.pdf"</span>;
|
||||
pdftocairo -svg <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">filename</span></span><span class="org-string">.pdf"</span>;
|
||||
<span class="org-type">cd</span> <span class="org-string">"$_mydir"</span>;
|
||||
<span class="org-type">echo</span> <span class="org-string">"[[file:$_figdir/</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">filename</span></span><span class="org-string">.</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">ext</span></span><span class="org-string">]]"</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6ba9d05" class="outline-2">
|
||||
<h2 id="org6ba9d05"><code>addhdr</code> - Add hline to tables</h2>
|
||||
<div class="outline-text-2" id="text-org6ba9d05">
|
||||
<div id="outline-container-orgca0df99" class="outline-2">
|
||||
<h2 id="orgca0df99"><code>addhdr</code> - Add hline to tables</h2>
|
||||
<div class="outline-text-2" id="text-orgca0df99">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-emacs-lisp" id="orgf8eebf6">(cons (car tbl) (cons 'hline (cdr tbl)))
|
||||
<pre class="src src-emacs-lisp" id="orgc589733"><span class="org-rainbow-delimiters-depth-1">(</span><span class="org-constant">cons</span> <span class="org-rainbow-delimiters-depth-2">(</span><span class="org-constant">car</span> tbl<span class="org-rainbow-delimiters-depth-2">)</span> <span class="org-rainbow-delimiters-depth-2">(</span><span class="org-constant">cons</span> <span class="org-highlight-quoted-quote">'</span><span class="org-highlight-quoted-symbol">hline</span> <span class="org-rainbow-delimiters-depth-3">(</span><span class="org-constant">cdr</span> tbl<span class="org-rainbow-delimiters-depth-3">)</span><span class="org-rainbow-delimiters-depth-2">)</span><span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7b7c23f" class="outline-2">
|
||||
<h2 id="org7b7c23f">Matlab Related</h2>
|
||||
<div class="outline-text-2" id="text-org7b7c23f">
|
||||
<div id="outline-container-org7f58498" class="outline-2">
|
||||
<h2 id="org7f58498">Matlab Related</h2>
|
||||
<div class="outline-text-2" id="text-org7f58498">
|
||||
</div>
|
||||
<div id="outline-container-orgd33f90b" class="outline-3">
|
||||
<h3 id="orgd33f90b"><code>matlab-dir</code> Go to current directory</h3>
|
||||
<div id="outline-container-org0dc80bc" class="outline-3">
|
||||
<h3 id="org0dc80bc"><code>matlab-dir</code> Go to current directory</h3>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org408551b" class="outline-3">
|
||||
<h3 id="org408551b"><code>matlab-init</code> Initialize matlab</h3>
|
||||
<div id="outline-container-orge3957c3" class="outline-3">
|
||||
<h3 id="orge3957c3"><code>matlab-init</code> Initialize matlab</h3>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf9fe5d3" class="outline-3">
|
||||
<h3 id="orgf9fe5d3"><code>plt-matlab</code> Plot figures</h3>
|
||||
<div class="outline-text-3" id="text-orgf9fe5d3">
|
||||
<div id="outline-container-orgcdf63af" class="outline-3">
|
||||
<h3 id="orgcdf63af"><code>plt-matlab</code> Plot figures</h3>
|
||||
<div class="outline-text-3" id="text-orgcdf63af">
|
||||
<p>
|
||||
Some variable can be set by block that expands this org source code block:
|
||||
</p>
|
||||
@ -92,15 +98,15 @@ Some variable can be set by block that expands this org source code block:
|
||||
</ul>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-matlab" id="org035555e">if ~exist('filepath') || length(filepath) < 2
|
||||
symbols = ['a':'z' 'A':'Z' '0':'9'];
|
||||
<pre class="src src-matlab" id="org7fa148b"><span class="org-keyword">if</span> <span class="org-type">~</span>exist(<span class="org-string">'filepath'</span>) <span class="org-type">||</span> length(filepath) <span class="org-type"><</span> 2
|
||||
symbols = [<span class="org-string">'a'</span><span class="org-type">:</span><span class="org-string">'z'</span> <span class="org-string">'A'</span><span class="org-type">:</span><span class="org-string">'Z'</span> <span class="org-string">'0'</span><span class="org-type">:</span><span class="org-string">'9'</span>];
|
||||
random_string = symbols(randi(numel(symbols),[1 5]));
|
||||
filepath = ['/tmp/matlab-fig-', random_string];
|
||||
end
|
||||
filepath = [<span class="org-string">'/tmp/matlab-fig-'</span>, random_string];
|
||||
<span class="org-keyword">end</span>
|
||||
|
||||
size_strings = strsplit(figsize, '-');
|
||||
size_strings = strsplit(figsize, <span class="org-string">'-'</span>);
|
||||
|
||||
ans = exportFig(filepath, 'width', size_strings{1}, 'height', size_strings{2});
|
||||
<span class="org-constant">ans</span> = exportFig(filepath, <span class="org-string">'width'</span>, size_strings{1}, <span class="org-string">'height'</span>, size_strings{2});
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -108,8 +114,8 @@ ans = exportFig(filepath, 'width', size_strings{1}, 'height', size_strings{2});
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Thomas Dehaeze</p>
|
||||
<p class="date">Created: 2020-05-26 mar. 08:39</p>
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:08</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -3,17 +3,13 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-11-03 mar. 16:26 -->
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Doom Emacs Configuration</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -26,72 +22,75 @@
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org2d95028">LaTeX</a>
|
||||
<li><a href="#orga3bc01e">LaTeX</a>
|
||||
<ul>
|
||||
<li><a href="#org8474362">Coordinate</a></li>
|
||||
<li><a href="#org59ecb26">Draw</a></li>
|
||||
<li><a href="#org7d9566f">Node</a></li>
|
||||
<li><a href="#org2bf4fa9">Path</a></li>
|
||||
<li><a href="#org50ac3ef">Coordinate</a></li>
|
||||
<li><a href="#org8ca867b">Draw</a></li>
|
||||
<li><a href="#orgd5ec64e">Node</a></li>
|
||||
<li><a href="#orgd2a36e9">Path</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org184a71b">Matlab</a>
|
||||
<li><a href="#org5abed78">Matlab</a>
|
||||
<ul>
|
||||
<li><a href="#org57b4acd">Clear</a></li>
|
||||
<li><a href="#org2e18b5b">Function</a></li>
|
||||
<li><a href="#org6bd1003">Clear</a></li>
|
||||
<li><a href="#orgc90b35e">Function</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1d5c56b">Org Mode</a>
|
||||
<li><a href="#org4a9de72">Org Mode</a>
|
||||
<ul>
|
||||
<li><a href="#orge6f2295">Begin</a></li>
|
||||
<li><a href="#orge3638b9">Caption</a></li>
|
||||
<li><a href="#org5baebfd">Block</a></li>
|
||||
<li><a href="#org5af680d">Custom Box</a></li>
|
||||
<li><a href="#orgbc9e91e">Latex Class</a></li>
|
||||
<li><a href="#org44e3f97">Bibliography with completion</a></li>
|
||||
<li><a href="#orgff33361">Cite</a></li>
|
||||
<li><a href="#org2596a7d">Ref</a></li>
|
||||
<li><a href="#orgad4ea52">Beamer - CBOX</a></li>
|
||||
<li><a href="#orgeceea05">Code</a></li>
|
||||
<li><a href="#org07c50c9">Equation</a></li>
|
||||
<li><a href="#orgc8d9a5f">Figure</a></li>
|
||||
<li><a href="#org110ed8f">Frac</a></li>
|
||||
<li><a href="#orgd3f3c7d">Left</a></li>
|
||||
<li><a href="#org7443b06">Minipage</a></li>
|
||||
<li><a href="#org23a68e2">Minipage Figures</a></li>
|
||||
<li><a href="#orgeef052f">Wrap Figure</a></li>
|
||||
<li><a href="#orgeb4af43">Multicolumn</a></li>
|
||||
<li><a href="#org88c6f73">Subfigure</a></li>
|
||||
<li><a href="#orgc411771">Table</a></li>
|
||||
<li><a href="#org9f4cd61">Tikz</a></li>
|
||||
<li><a href="#org354eeb6">Tikzfig</a></li>
|
||||
<li><a href="#org82996fc">Tikzheader</a></li>
|
||||
<li><a href="#orge0d83c7">User-config</a></li>
|
||||
<li><a href="#orgdd8424a">User-init</a></li>
|
||||
<li><a href="#orgfd7122c">Wrap</a></li>
|
||||
<li><a href="#orgca596d4">Matlab Specific</a>
|
||||
<li><a href="#org7220f49">Begin</a></li>
|
||||
<li><a href="#orgde0f79b">Caption</a></li>
|
||||
<li><a href="#org7942249">Block</a></li>
|
||||
<li><a href="#org0dd9c10">Custom Box</a></li>
|
||||
<li><a href="#org3c7a0a0">Latex Class</a></li>
|
||||
<li><a href="#orgf59b249">Bibliography with completion</a></li>
|
||||
<li><a href="#orgd88407c">Cite</a></li>
|
||||
<li><a href="#orgb1f5cdc">Ref</a></li>
|
||||
<li><a href="#org8b9dce1">Beamer - CBOX</a></li>
|
||||
<li><a href="#org68eb2b6">HTML Details</a></li>
|
||||
<li><a href="#orgc76873e">Code</a></li>
|
||||
<li><a href="#orgf39e79c">Equation</a></li>
|
||||
<li><a href="#orge17a1a2">Figure</a></li>
|
||||
<li><a href="#org1ddfd44">Frac</a></li>
|
||||
<li><a href="#org400ff8e">Left</a></li>
|
||||
<li><a href="#org234e84f">Minipage</a></li>
|
||||
<li><a href="#orgb7becfc">Minipage Figures</a></li>
|
||||
<li><a href="#org630b3de">Wrap Figure</a></li>
|
||||
<li><a href="#org8aa2d33">Multicolumn</a></li>
|
||||
<li><a href="#orgb5c8c67">Subfigure</a></li>
|
||||
<li><a href="#orga9aa801">Table</a></li>
|
||||
<li><a href="#org2604457">Tikz</a></li>
|
||||
<li><a href="#orgf6eeddb">Tikzfig</a></li>
|
||||
<li><a href="#orgba1d993">Tikzheader</a></li>
|
||||
<li><a href="#org040faef">User-config</a></li>
|
||||
<li><a href="#org349c757">User-init</a></li>
|
||||
<li><a href="#org951f3c0">Wrap</a></li>
|
||||
<li><a href="#orgbd116e3">Matlab Specific</a>
|
||||
<ul>
|
||||
<li><a href="#org8ec12f3">Mconfig</a></li>
|
||||
<li><a href="#orge7bcf86">Mdescription</a></li>
|
||||
<li><a href="#orgbc46c85">Mfigure</a></li>
|
||||
<li><a href="#orgab32029">Mfunction</a></li>
|
||||
<li><a href="#orgc44afd5">Mheader</a></li>
|
||||
<li><a href="#orga9eb6ca">Minit</a></li>
|
||||
<li><a href="#org3ccf909">Mtable</a></li>
|
||||
<li><a href="#orge0eecad">Mconfig</a></li>
|
||||
<li><a href="#org494be3f">Mdescription</a></li>
|
||||
<li><a href="#org2c8a3d2">Mfigure</a></li>
|
||||
<li><a href="#org21ef93d">Mfunction</a></li>
|
||||
<li><a href="#org8920992">Mheader</a></li>
|
||||
<li><a href="#orgec784e2">Minit</a></li>
|
||||
<li><a href="#org27df014">Mtable</a></li>
|
||||
<li><a href="#org31ef31f">Mvalue</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org143de42">Binary</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2d95028" class="outline-2">
|
||||
<h2 id="org2d95028">LaTeX</h2>
|
||||
<div class="outline-text-2" id="text-org2d95028">
|
||||
<div id="outline-container-orga3bc01e" class="outline-2">
|
||||
<h2 id="orga3bc01e">LaTeX</h2>
|
||||
<div class="outline-text-2" id="text-orga3bc01e">
|
||||
</div>
|
||||
<div id="outline-container-org8474362" class="outline-3">
|
||||
<h3 id="org8474362">Coordinate</h3>
|
||||
<div class="outline-text-3" id="text-org8474362">
|
||||
<div id="outline-container-org50ac3ef" class="outline-3">
|
||||
<h3 id="org50ac3ef">Coordinate</h3>
|
||||
<div class="outline-text-3" id="text-org50ac3ef">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :coordinate</span>
|
||||
@ -103,9 +102,9 @@ $0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org59ecb26" class="outline-3">
|
||||
<h3 id="org59ecb26">Draw</h3>
|
||||
<div class="outline-text-3" id="text-org59ecb26">
|
||||
<div id="outline-container-org8ca867b" class="outline-3">
|
||||
<h3 id="org8ca867b">Draw</h3>
|
||||
<div class="outline-text-3" id="text-org8ca867b">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :draw</span>
|
||||
@ -117,9 +116,9 @@ $0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7d9566f" class="outline-3">
|
||||
<h3 id="org7d9566f">Node</h3>
|
||||
<div class="outline-text-3" id="text-org7d9566f">
|
||||
<div id="outline-container-orgd5ec64e" class="outline-3">
|
||||
<h3 id="orgd5ec64e">Node</h3>
|
||||
<div class="outline-text-3" id="text-orgd5ec64e">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :node</span>
|
||||
@ -131,9 +130,9 @@ $0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2bf4fa9" class="outline-3">
|
||||
<h3 id="org2bf4fa9">Path</h3>
|
||||
<div class="outline-text-3" id="text-org2bf4fa9">
|
||||
<div id="outline-container-orgd2a36e9" class="outline-3">
|
||||
<h3 id="orgd2a36e9">Path</h3>
|
||||
<div class="outline-text-3" id="text-orgd2a36e9">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :path</span>
|
||||
@ -146,13 +145,13 @@ $0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org184a71b" class="outline-2">
|
||||
<h2 id="org184a71b">Matlab</h2>
|
||||
<div class="outline-text-2" id="text-org184a71b">
|
||||
<div id="outline-container-org5abed78" class="outline-2">
|
||||
<h2 id="org5abed78">Matlab</h2>
|
||||
<div class="outline-text-2" id="text-org5abed78">
|
||||
</div>
|
||||
<div id="outline-container-org57b4acd" class="outline-3">
|
||||
<h3 id="org57b4acd">Clear</h3>
|
||||
<div class="outline-text-3" id="text-org57b4acd">
|
||||
<div id="outline-container-org6bd1003" class="outline-3">
|
||||
<h3 id="org6bd1003">Clear</h3>
|
||||
<div class="outline-text-3" id="text-org6bd1003">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :clear and close all</span>
|
||||
@ -164,9 +163,9 @@ $0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2e18b5b" class="outline-3">
|
||||
<h3 id="org2e18b5b">Function</h3>
|
||||
<div class="outline-text-3" id="text-org2e18b5b">
|
||||
<div id="outline-container-orgc90b35e" class="outline-3">
|
||||
<h3 id="orgc90b35e">Function</h3>
|
||||
<div class="outline-text-3" id="text-orgc90b35e">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :function</span>
|
||||
@ -206,13 +205,13 @@ if exist(<span class="org-string">'opts_param'</span>,<span class="org-string">'
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1d5c56b" class="outline-2">
|
||||
<h2 id="org1d5c56b">Org Mode</h2>
|
||||
<div class="outline-text-2" id="text-org1d5c56b">
|
||||
<div id="outline-container-org4a9de72" class="outline-2">
|
||||
<h2 id="org4a9de72">Org Mode</h2>
|
||||
<div class="outline-text-2" id="text-org4a9de72">
|
||||
</div>
|
||||
<div id="outline-container-orge6f2295" class="outline-3">
|
||||
<h3 id="orge6f2295">Begin</h3>
|
||||
<div class="outline-text-3" id="text-orge6f2295">
|
||||
<div id="outline-container-org7220f49" class="outline-3">
|
||||
<h3 id="org7220f49">Begin</h3>
|
||||
<div class="outline-text-3" id="text-org7220f49">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :LaTeX Environment</span>
|
||||
@ -225,9 +224,9 @@ if exist(<span class="org-string">'opts_param'</span>,<span class="org-string">'
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge3638b9" class="outline-3">
|
||||
<h3 id="orge3638b9">Caption</h3>
|
||||
<div class="outline-text-3" id="text-orge3638b9">
|
||||
<div id="outline-container-orgde0f79b" class="outline-3">
|
||||
<h3 id="orgde0f79b">Caption</h3>
|
||||
<div class="outline-text-3" id="text-orgde0f79b">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Caption</span>
|
||||
@ -238,9 +237,9 @@ if exist(<span class="org-string">'opts_param'</span>,<span class="org-string">'
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5baebfd" class="outline-3">
|
||||
<h3 id="org5baebfd">Block</h3>
|
||||
<div class="outline-text-3" id="text-org5baebfd">
|
||||
<div id="outline-container-org7942249" class="outline-3">
|
||||
<h3 id="org7942249">Block</h3>
|
||||
<div class="outline-text-3" id="text-org7942249">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Org-Mode Block</span>
|
||||
@ -256,9 +255,9 @@ if exist(<span class="org-string">'opts_param'</span>,<span class="org-string">'
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5af680d" class="outline-3">
|
||||
<h3 id="org5af680d">Custom Box</h3>
|
||||
<div class="outline-text-3" id="text-org5af680d">
|
||||
<div id="outline-container-org0dd9c10" class="outline-3">
|
||||
<h3 id="org0dd9c10">Custom Box</h3>
|
||||
<div class="outline-text-3" id="text-org0dd9c10">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Custom Box</span>
|
||||
@ -272,9 +271,9 @@ $0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbc9e91e" class="outline-3">
|
||||
<h3 id="orgbc9e91e">Latex Class</h3>
|
||||
<div class="outline-text-3" id="text-orgbc9e91e">
|
||||
<div id="outline-container-org3c7a0a0" class="outline-3">
|
||||
<h3 id="org3c7a0a0">Latex Class</h3>
|
||||
<div class="outline-text-3" id="text-org3c7a0a0">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">name: latex-class</span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">key: lc</span>
|
||||
@ -287,9 +286,9 @@ $0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org44e3f97" class="outline-3">
|
||||
<h3 id="org44e3f97">Bibliography with completion</h3>
|
||||
<div class="outline-text-3" id="text-org44e3f97">
|
||||
<div id="outline-container-orgf59b249" class="outline-3">
|
||||
<h3 id="orgf59b249">Bibliography with completion</h3>
|
||||
<div class="outline-text-3" id="text-orgf59b249">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">name: bibliography with completion</span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">key: bib</span>
|
||||
@ -300,9 +299,9 @@ bibliography:${<span class="org-highlight-numbers-number">1</span>:$$(yas-choose
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgff33361" class="outline-3">
|
||||
<h3 id="orgff33361">Cite</h3>
|
||||
<div class="outline-text-3" id="text-orgff33361">
|
||||
<div id="outline-container-orgd88407c" class="outline-3">
|
||||
<h3 id="orgd88407c">Cite</h3>
|
||||
<div class="outline-text-3" id="text-orgd88407c">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">name: org-ref cite link</span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">key: cite</span>
|
||||
@ -315,9 +314,9 @@ cite:${<span class="org-highlight-numbers-number">1</span>:$$(completing-read
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2596a7d" class="outline-3">
|
||||
<h3 id="org2596a7d">Ref</h3>
|
||||
<div class="outline-text-3" id="text-org2596a7d">
|
||||
<div id="outline-container-orgb1f5cdc" class="outline-3">
|
||||
<h3 id="orgb1f5cdc">Ref</h3>
|
||||
<div class="outline-text-3" id="text-orgb1f5cdc">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">name: org-ref ref link with completion</span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">key: ref</span>
|
||||
@ -328,9 +327,9 @@ ref:${<span class="org-highlight-numbers-number">1</span>:$$(completing-read <sp
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgad4ea52" class="outline-3">
|
||||
<h3 id="orgad4ea52">Beamer - CBOX</h3>
|
||||
<div class="outline-text-3" id="text-orgad4ea52">
|
||||
<div id="outline-container-org8b9dce1" class="outline-3">
|
||||
<h3 id="org8b9dce1">Beamer - CBOX</h3>
|
||||
<div class="outline-text-3" id="text-org8b9dce1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Beamer Custom Box</span>
|
||||
@ -347,9 +346,25 @@ $0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgeceea05" class="outline-3">
|
||||
<h3 id="orgeceea05">Code</h3>
|
||||
<div class="outline-text-3" id="text-orgeceea05">
|
||||
<div id="outline-container-org68eb2b6" class="outline-3">
|
||||
<h3 id="org68eb2b6">HTML Details</h3>
|
||||
<div class="outline-text-3" id="text-org68eb2b6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :details</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
|
||||
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">+HTML: <details><summary>${1:Figure}</summary></span>
|
||||
$0
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">+HTML: </details></span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc76873e" class="outline-3">
|
||||
<h3 id="orgc76873e">Code</h3>
|
||||
<div class="outline-text-3" id="text-orgc76873e">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Code</span>
|
||||
@ -364,9 +379,9 @@ $0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org07c50c9" class="outline-3">
|
||||
<h3 id="org07c50c9">Equation</h3>
|
||||
<div class="outline-text-3" id="text-org07c50c9">
|
||||
<div id="outline-container-orgf39e79c" class="outline-3">
|
||||
<h3 id="orgf39e79c">Equation</h3>
|
||||
<div class="outline-text-3" id="text-orgf39e79c">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Equation</span>
|
||||
@ -380,9 +395,9 @@ $0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc8d9a5f" class="outline-3">
|
||||
<h3 id="orgc8d9a5f">Figure</h3>
|
||||
<div class="outline-text-3" id="text-orgc8d9a5f">
|
||||
<div id="outline-container-orge17a1a2" class="outline-3">
|
||||
<h3 id="orge17a1a2">Figure</h3>
|
||||
<div class="outline-text-3" id="text-orge17a1a2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Figure</span>
|
||||
@ -396,9 +411,9 @@ $0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org110ed8f" class="outline-3">
|
||||
<h3 id="org110ed8f">Frac</h3>
|
||||
<div class="outline-text-3" id="text-org110ed8f">
|
||||
<div id="outline-container-org1ddfd44" class="outline-3">
|
||||
<h3 id="org1ddfd44">Frac</h3>
|
||||
<div class="outline-text-3" id="text-org1ddfd44">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :LaTeX Fraction</span>
|
||||
@ -409,9 +424,9 @@ $0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd3f3c7d" class="outline-3">
|
||||
<h3 id="orgd3f3c7d">Left</h3>
|
||||
<div class="outline-text-3" id="text-orgd3f3c7d">
|
||||
<div id="outline-container-org400ff8e" class="outline-3">
|
||||
<h3 id="org400ff8e">Left</h3>
|
||||
<div class="outline-text-3" id="text-org400ff8e">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Left Right mathematical delimitations</span>
|
||||
@ -422,9 +437,9 @@ $0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7443b06" class="outline-3">
|
||||
<h3 id="org7443b06">Minipage</h3>
|
||||
<div class="outline-text-3" id="text-org7443b06">
|
||||
<div id="outline-container-org234e84f" class="outline-3">
|
||||
<h3 id="org234e84f">Minipage</h3>
|
||||
<div class="outline-text-3" id="text-org234e84f">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :minipage</span>
|
||||
@ -452,9 +467,9 @@ $0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org23a68e2" class="outline-3">
|
||||
<h3 id="org23a68e2">Minipage Figures</h3>
|
||||
<div class="outline-text-3" id="text-org23a68e2">
|
||||
<div id="outline-container-orgb7becfc" class="outline-3">
|
||||
<h3 id="orgb7becfc">Minipage Figures</h3>
|
||||
<div class="outline-text-3" id="text-orgb7becfc">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Minipage with Figures</span>
|
||||
@ -480,9 +495,9 @@ $0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgeef052f" class="outline-3">
|
||||
<h3 id="orgeef052f">Wrap Figure</h3>
|
||||
<div class="outline-text-3" id="text-orgeef052f">
|
||||
<div id="outline-container-org630b3de" class="outline-3">
|
||||
<h3 id="org630b3de">Wrap Figure</h3>
|
||||
<div class="outline-text-3" id="text-org630b3de">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Wrap Figure</span>
|
||||
@ -498,9 +513,9 @@ $0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgeb4af43" class="outline-3">
|
||||
<h3 id="orgeb4af43">Multicolumn</h3>
|
||||
<div class="outline-text-3" id="text-orgeb4af43">
|
||||
<div id="outline-container-org8aa2d33" class="outline-3">
|
||||
<h3 id="org8aa2d33">Multicolumn</h3>
|
||||
<div class="outline-text-3" id="text-org8aa2d33">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Multcolumn</span>
|
||||
@ -512,9 +527,9 @@ $0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org88c6f73" class="outline-3">
|
||||
<h3 id="org88c6f73">Subfigure</h3>
|
||||
<div class="outline-text-3" id="text-org88c6f73">
|
||||
<div id="outline-container-orgb5c8c67" class="outline-3">
|
||||
<h3 id="orgb5c8c67">Subfigure</h3>
|
||||
<div class="outline-text-3" id="text-orgb5c8c67">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Subfigure</span>
|
||||
@ -530,9 +545,9 @@ $0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc411771" class="outline-3">
|
||||
<h3 id="orgc411771">Table</h3>
|
||||
<div class="outline-text-3" id="text-orgc411771">
|
||||
<div id="outline-container-orga9aa801" class="outline-3">
|
||||
<h3 id="orga9aa801">Table</h3>
|
||||
<div class="outline-text-3" id="text-orga9aa801">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Table</span>
|
||||
@ -549,9 +564,9 @@ $0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9f4cd61" class="outline-3">
|
||||
<h3 id="org9f4cd61">Tikz</h3>
|
||||
<div class="outline-text-3" id="text-org9f4cd61">
|
||||
<div id="outline-container-org2604457" class="outline-3">
|
||||
<h3 id="org2604457">Tikz</h3>
|
||||
<div class="outline-text-3" id="text-org2604457">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Tikz figure</span>
|
||||
@ -566,9 +581,9 @@ $0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org354eeb6" class="outline-3">
|
||||
<h3 id="org354eeb6">Tikzfig</h3>
|
||||
<div class="outline-text-3" id="text-org354eeb6">
|
||||
<div id="outline-container-orgf6eeddb" class="outline-3">
|
||||
<h3 id="orgf6eeddb">Tikzfig</h3>
|
||||
<div class="outline-text-3" id="text-orgf6eeddb">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Tikz Figure</span>
|
||||
@ -592,9 +607,9 @@ $0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org82996fc" class="outline-3">
|
||||
<h3 id="org82996fc">Tikzheader</h3>
|
||||
<div class="outline-text-3" id="text-org82996fc">
|
||||
<div id="outline-container-orgba1d993" class="outline-3">
|
||||
<h3 id="orgba1d993">Tikzheader</h3>
|
||||
<div class="outline-text-3" id="text-orgba1d993">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Tikz Header</span>
|
||||
@ -615,9 +630,9 @@ $0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge0d83c7" class="outline-3">
|
||||
<h3 id="orge0d83c7">User-config</h3>
|
||||
<div class="outline-text-3" id="text-orge0d83c7">
|
||||
<div id="outline-container-org040faef" class="outline-3">
|
||||
<h3 id="org040faef">User-config</h3>
|
||||
<div class="outline-text-3" id="text-org040faef">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">-*- mode: snippet -*-</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">name: user-config</span>
|
||||
@ -631,9 +646,9 @@ $1
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdd8424a" class="outline-3">
|
||||
<h3 id="orgdd8424a">User-init</h3>
|
||||
<div class="outline-text-3" id="text-orgdd8424a">
|
||||
<div id="outline-container-org349c757" class="outline-3">
|
||||
<h3 id="org349c757">User-init</h3>
|
||||
<div class="outline-text-3" id="text-org349c757">
|
||||
<p>
|
||||
#+begin_src conf :tangle ~/.config/doom/snippets/org-mode/user-init
|
||||
</p>
|
||||
@ -647,9 +662,9 @@ $1
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfd7122c" class="outline-3">
|
||||
<h3 id="orgfd7122c">Wrap</h3>
|
||||
<div class="outline-text-3" id="text-orgfd7122c">
|
||||
<div id="outline-container-org951f3c0" class="outline-3">
|
||||
<h3 id="org951f3c0">Wrap</h3>
|
||||
<div class="outline-text-3" id="text-org951f3c0">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Wrap</span>
|
||||
@ -661,13 +676,13 @@ $0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgca596d4" class="outline-3">
|
||||
<h3 id="orgca596d4">Matlab Specific</h3>
|
||||
<div class="outline-text-3" id="text-orgca596d4">
|
||||
<div id="outline-container-orgbd116e3" class="outline-3">
|
||||
<h3 id="orgbd116e3">Matlab Specific</h3>
|
||||
<div class="outline-text-3" id="text-orgbd116e3">
|
||||
</div>
|
||||
<div id="outline-container-org8ec12f3" class="outline-4">
|
||||
<h4 id="org8ec12f3">Mconfig</h4>
|
||||
<div class="outline-text-4" id="text-org8ec12f3">
|
||||
<div id="outline-container-orge0eecad" class="outline-4">
|
||||
<h4 id="orge0eecad">Mconfig</h4>
|
||||
<div class="outline-text-4" id="text-orge0eecad">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Matlab-Configuration-Header</span>
|
||||
@ -687,9 +702,9 @@ $0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge7bcf86" class="outline-4">
|
||||
<h4 id="orge7bcf86">Mdescription</h4>
|
||||
<div class="outline-text-4" id="text-orge7bcf86">
|
||||
<div id="outline-container-org494be3f" class="outline-4">
|
||||
<h4 id="org494be3f">Mdescription</h4>
|
||||
<div class="outline-text-4" id="text-org494be3f">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Measurement-Description</span>
|
||||
@ -722,9 +737,9 @@ $0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbc46c85" class="outline-4">
|
||||
<h4 id="orgbc46c85">Mfigure</h4>
|
||||
<div class="outline-text-4" id="text-orgbc46c85">
|
||||
<div id="outline-container-org2c8a3d2" class="outline-4">
|
||||
<h4 id="org2c8a3d2">Mfigure</h4>
|
||||
<div class="outline-text-4" id="text-org2c8a3d2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Matlab-Figure</span>
|
||||
@ -742,9 +757,9 @@ $0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgab32029" class="outline-4">
|
||||
<h4 id="orgab32029">Mfunction</h4>
|
||||
<div class="outline-text-4" id="text-orgab32029">
|
||||
<div id="outline-container-org21ef93d" class="outline-4">
|
||||
<h4 id="org21ef93d">Mfunction</h4>
|
||||
<div class="outline-text-4" id="text-org21ef93d">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Matlab-Function</span>
|
||||
@ -777,9 +792,9 @@ This Matlab function is accessible [[file:src/$2.m][here]].
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc44afd5" class="outline-4">
|
||||
<h4 id="orgc44afd5">Mheader</h4>
|
||||
<div class="outline-text-4" id="text-orgc44afd5">
|
||||
<div id="outline-container-org8920992" class="outline-4">
|
||||
<h4 id="org8920992">Mheader</h4>
|
||||
<div class="outline-text-4" id="text-org8920992">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Matlab-Header</span>
|
||||
@ -812,9 +827,9 @@ $0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga9eb6ca" class="outline-4">
|
||||
<h4 id="orga9eb6ca">Minit</h4>
|
||||
<div class="outline-text-4" id="text-orga9eb6ca">
|
||||
<div id="outline-container-orgec784e2" class="outline-4">
|
||||
<h4 id="orgec784e2">Minit</h4>
|
||||
<div class="outline-text-4" id="text-orgec784e2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Matlab-Init</span>
|
||||
@ -834,9 +849,9 @@ $0
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3ccf909" class="outline-4">
|
||||
<h4 id="org3ccf909">Mtable</h4>
|
||||
<div class="outline-text-4" id="text-org3ccf909">
|
||||
<div id="outline-container-org27df014" class="outline-4">
|
||||
<h4 id="org27df014">Mtable</h4>
|
||||
<div class="outline-text-4" id="text-org27df014">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Matlab-Table</span>
|
||||
@ -849,12 +864,48 @@ $0
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org31ef31f" class="outline-4">
|
||||
<h4 id="org31ef31f">Mvalue</h4>
|
||||
<div class="outline-text-4" id="text-org31ef31f">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Matlab-Value</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_src matlab :results value replace :exports results :tangle no</span>
|
||||
sprintf(<span class="org-string">'x = %.2g'</span>, x);
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
|
||||
$0
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org143de42" class="outline-3">
|
||||
<h3 id="org143de42">Binary</h3>
|
||||
<div class="outline-text-3" id="text-org143de42">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com"><dehaeze.thomas@gmail.com></a></span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Binary</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
|
||||
<span class="org-variable-name">*</span> =${<span class="org-highlight-numbers-number">1</span>:binary-name}= - ${<span class="org-highlight-numbers-number">2</span>:Description}
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: $1
|
||||
:END:
|
||||
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_src bash :tangle ~/.local/bin/$1</span>
|
||||
$0
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-11-03 mar. 16:26</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:09</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
119
docs/git.html
119
docs/git.html
@ -3,17 +3,13 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-11-03 mar. 16:26 -->
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Git Configuration</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -26,34 +22,34 @@
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org41626fa">Gitconfig</a>
|
||||
<li><a href="#org5614967"><code>~/.gitconfig</code></a>
|
||||
<ul>
|
||||
<li><a href="#org9dadb2d">Aliases</a></li>
|
||||
<li><a href="#org9891923">Apply</a></li>
|
||||
<li><a href="#org3d3c60c">Colors</a></li>
|
||||
<li><a href="#org005e9ea">Default Remote</a></li>
|
||||
<li><a href="#org27b5c46">Push Configuration</a></li>
|
||||
<li><a href="#org8e4fe7a">User</a></li>
|
||||
<li><a href="#org437daae">Core configuration</a></li>
|
||||
<li><a href="#org39b3cb9">Credentials using pass</a></li>
|
||||
<li><a href="#org02367c3">Diff-so-fancy</a></li>
|
||||
<li><a href="#org599c398">Github</a></li>
|
||||
<li><a href="#orgf8c42c0">Aliases</a></li>
|
||||
<li><a href="#org68a5de1">Apply</a></li>
|
||||
<li><a href="#org9b46df2">Colors</a></li>
|
||||
<li><a href="#org5369e22">Default Remote</a></li>
|
||||
<li><a href="#orgf523602">Push Configuration</a></li>
|
||||
<li><a href="#org72a2b70">User</a></li>
|
||||
<li><a href="#orgf768784">Core configuration</a></li>
|
||||
<li><a href="#org5cda35d">Credentials using pass</a></li>
|
||||
<li><a href="#orgae60316">Diff-so-fancy</a></li>
|
||||
<li><a href="#orgdcb66f1">Github</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org3e19276">Global Git Ignore</a></li>
|
||||
<li><a href="#org62a061b">Pass Git Helper</a></li>
|
||||
<li><a href="#orgf329fb1"><code>~/.gitignore_global</code> - Global Git Ignore</a></li>
|
||||
<li><a href="#org5af3f72"><code>pass-git-helper</code> - Use <code>pass</code> for git passwords</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org41626fa" class="outline-2">
|
||||
<h2 id="org41626fa">Gitconfig</h2>
|
||||
<div class="outline-text-2" id="text-org41626fa">
|
||||
<div id="outline-container-org5614967" class="outline-2">
|
||||
<h2 id="org5614967"><code>~/.gitconfig</code></h2>
|
||||
<div class="outline-text-2" id="text-org5614967">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9dadb2d" class="outline-3">
|
||||
<h3 id="org9dadb2d">Aliases</h3>
|
||||
<div class="outline-text-3" id="text-org9dadb2d">
|
||||
<div id="outline-container-orgf8c42c0" class="outline-3">
|
||||
<h3 id="orgf8c42c0">Aliases</h3>
|
||||
<div class="outline-text-3" id="text-orgf8c42c0">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">alias</span>]
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">View abbreviated SHA, description, and history graph of the latest 20 commits</span>
|
||||
@ -130,9 +126,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9891923" class="outline-3">
|
||||
<h3 id="org9891923">Apply</h3>
|
||||
<div class="outline-text-3" id="text-org9891923">
|
||||
<div id="outline-container-org68a5de1" class="outline-3">
|
||||
<h3 id="org68a5de1">Apply</h3>
|
||||
<div class="outline-text-3" id="text-org68a5de1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">apply</span>]
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Detect whitespace errors when applying a patch</span>
|
||||
@ -142,9 +138,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3d3c60c" class="outline-3">
|
||||
<h3 id="org3d3c60c">Colors</h3>
|
||||
<div class="outline-text-3" id="text-org3d3c60c">
|
||||
<div id="outline-container-org9b46df2" class="outline-3">
|
||||
<h3 id="org9b46df2">Colors</h3>
|
||||
<div class="outline-text-3" id="text-org9b46df2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">color</span>]
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Use colors in Git commands that are capable of colored output when outputting to the terminal</span>
|
||||
@ -178,9 +174,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org005e9ea" class="outline-3">
|
||||
<h3 id="org005e9ea">Default Remote</h3>
|
||||
<div class="outline-text-3" id="text-org005e9ea">
|
||||
<div id="outline-container-org5369e22" class="outline-3">
|
||||
<h3 id="org5369e22">Default Remote</h3>
|
||||
<div class="outline-text-3" id="text-org5369e22">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Use `origin` as the default remote on the `master` branch in all cases</span>
|
||||
[branch <span class="org-string">"master"</span>]
|
||||
@ -191,9 +187,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org27b5c46" class="outline-3">
|
||||
<h3 id="org27b5c46">Push Configuration</h3>
|
||||
<div class="outline-text-3" id="text-org27b5c46">
|
||||
<div id="outline-container-orgf523602" class="outline-3">
|
||||
<h3 id="orgf523602">Push Configuration</h3>
|
||||
<div class="outline-text-3" id="text-orgf523602">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">push</span>]
|
||||
<span class="org-variable-name">default</span> = matching
|
||||
@ -204,9 +200,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8e4fe7a" class="outline-3">
|
||||
<h3 id="org8e4fe7a">User</h3>
|
||||
<div class="outline-text-3" id="text-org8e4fe7a">
|
||||
<div id="outline-container-org72a2b70" class="outline-3">
|
||||
<h3 id="org72a2b70">User</h3>
|
||||
<div class="outline-text-3" id="text-org72a2b70">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">user</span>]
|
||||
<span class="org-variable-name">name</span> = Thomas Dehaeze
|
||||
@ -216,9 +212,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org437daae" class="outline-3">
|
||||
<h3 id="org437daae">Core configuration</h3>
|
||||
<div class="outline-text-3" id="text-org437daae">
|
||||
<div id="outline-container-orgf768784" class="outline-3">
|
||||
<h3 id="orgf768784">Core configuration</h3>
|
||||
<div class="outline-text-3" id="text-orgf768784">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">core</span>]
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Use custom `.gitignore` and `.gitattributes`</span>
|
||||
@ -244,9 +240,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org39b3cb9" class="outline-3">
|
||||
<h3 id="org39b3cb9">Credentials using pass</h3>
|
||||
<div class="outline-text-3" id="text-org39b3cb9">
|
||||
<div id="outline-container-org5cda35d" class="outline-3">
|
||||
<h3 id="org5cda35d">Credentials using pass</h3>
|
||||
<div class="outline-text-3" id="text-org5cda35d">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">credential</span>]
|
||||
<span class="org-variable-name">helper</span> = !pass-git-helper $@
|
||||
@ -256,14 +252,17 @@
|
||||
|
||||
[credential <span class="org-string">"https://git.tdehaeze.xyz"</span>]
|
||||
<span class="org-variable-name">username</span> = tdehaeze
|
||||
|
||||
[credential <span class="org-string">"https://gitlab.esrf.fr"</span>]
|
||||
<span class="org-variable-name">username</span> = dehaeze
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org02367c3" class="outline-3">
|
||||
<h3 id="org02367c3">Diff-so-fancy</h3>
|
||||
<div class="outline-text-3" id="text-org02367c3">
|
||||
<div id="outline-container-orgae60316" class="outline-3">
|
||||
<h3 id="orgae60316">Diff-so-fancy</h3>
|
||||
<div class="outline-text-3" id="text-orgae60316">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">diff-so-fancy</span>]
|
||||
<span class="org-variable-name">markEmptyLines</span> = false
|
||||
@ -272,9 +271,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org599c398" class="outline-3">
|
||||
<h3 id="org599c398">Github</h3>
|
||||
<div class="outline-text-3" id="text-org599c398">
|
||||
<div id="outline-container-orgdcb66f1" class="outline-3">
|
||||
<h3 id="orgdcb66f1">Github</h3>
|
||||
<div class="outline-text-3" id="text-orgdcb66f1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">github</span>]
|
||||
<span class="org-variable-name">user</span> = tdehaeze
|
||||
@ -285,9 +284,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3e19276" class="outline-2">
|
||||
<h2 id="org3e19276">Global Git Ignore</h2>
|
||||
<div class="outline-text-2" id="text-org3e19276">
|
||||
<div id="outline-container-orgf329fb1" class="outline-2">
|
||||
<h2 id="orgf329fb1"><code>~/.gitignore_global</code> - Global Git Ignore</h2>
|
||||
<div class="outline-text-2" id="text-orgf329fb1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">*~
|
||||
.DS_Store
|
||||
@ -297,9 +296,9 @@ Session.vim
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org62a061b" class="outline-2">
|
||||
<h2 id="org62a061b">Pass Git Helper</h2>
|
||||
<div class="outline-text-2" id="text-org62a061b">
|
||||
<div id="outline-container-org5af3f72" class="outline-2">
|
||||
<h2 id="org5af3f72"><code>pass-git-helper</code> - Use <code>pass</code> for git passwords</h2>
|
||||
<div class="outline-text-2" id="text-org5af3f72">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">github.com*</span>]
|
||||
<span class="org-variable-name">target</span>=github.com/tdehaeze
|
||||
@ -316,7 +315,7 @@ Session.vim
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-11-03 mar. 16:26</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:09</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
260
docs/gtk.html
260
docs/gtk.html
@ -1,251 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-01-11 sam. 22:19 -->
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>GTK Configuration</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<style type="text/css">
|
||||
<!--/*--><![CDATA[/*><!--*/
|
||||
.title { text-align: center;
|
||||
margin-bottom: .2em; }
|
||||
.subtitle { text-align: center;
|
||||
font-size: medium;
|
||||
font-weight: bold;
|
||||
margin-top:0; }
|
||||
.todo { font-family: monospace; color: red; }
|
||||
.done { font-family: monospace; color: green; }
|
||||
.priority { font-family: monospace; color: orange; }
|
||||
.tag { background-color: #eee; font-family: monospace;
|
||||
padding: 2px; font-size: 80%; font-weight: normal; }
|
||||
.timestamp { color: #bebebe; }
|
||||
.timestamp-kwd { color: #5f9ea0; }
|
||||
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
|
||||
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
|
||||
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
|
||||
.underline { text-decoration: underline; }
|
||||
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
|
||||
p.verse { margin-left: 3%; }
|
||||
pre {
|
||||
border: 1px solid #ccc;
|
||||
box-shadow: 3px 3px 3px #eee;
|
||||
padding: 8pt;
|
||||
font-family: monospace;
|
||||
overflow: auto;
|
||||
margin: 1.2em;
|
||||
}
|
||||
pre.src {
|
||||
position: relative;
|
||||
overflow: visible;
|
||||
padding-top: 1.2em;
|
||||
}
|
||||
pre.src:before {
|
||||
display: none;
|
||||
position: absolute;
|
||||
background-color: white;
|
||||
top: -10px;
|
||||
right: 10px;
|
||||
padding: 3px;
|
||||
border: 1px solid black;
|
||||
}
|
||||
pre.src:hover:before { display: inline;}
|
||||
/* Languages per Org manual */
|
||||
pre.src-asymptote:before { content: 'Asymptote'; }
|
||||
pre.src-awk:before { content: 'Awk'; }
|
||||
pre.src-C:before { content: 'C'; }
|
||||
/* pre.src-C++ doesn't work in CSS */
|
||||
pre.src-clojure:before { content: 'Clojure'; }
|
||||
pre.src-css:before { content: 'CSS'; }
|
||||
pre.src-D:before { content: 'D'; }
|
||||
pre.src-ditaa:before { content: 'ditaa'; }
|
||||
pre.src-dot:before { content: 'Graphviz'; }
|
||||
pre.src-calc:before { content: 'Emacs Calc'; }
|
||||
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
|
||||
pre.src-fortran:before { content: 'Fortran'; }
|
||||
pre.src-gnuplot:before { content: 'gnuplot'; }
|
||||
pre.src-haskell:before { content: 'Haskell'; }
|
||||
pre.src-hledger:before { content: 'hledger'; }
|
||||
pre.src-java:before { content: 'Java'; }
|
||||
pre.src-js:before { content: 'Javascript'; }
|
||||
pre.src-latex:before { content: 'LaTeX'; }
|
||||
pre.src-ledger:before { content: 'Ledger'; }
|
||||
pre.src-lisp:before { content: 'Lisp'; }
|
||||
pre.src-lilypond:before { content: 'Lilypond'; }
|
||||
pre.src-lua:before { content: 'Lua'; }
|
||||
pre.src-matlab:before { content: 'MATLAB'; }
|
||||
pre.src-mscgen:before { content: 'Mscgen'; }
|
||||
pre.src-ocaml:before { content: 'Objective Caml'; }
|
||||
pre.src-octave:before { content: 'Octave'; }
|
||||
pre.src-org:before { content: 'Org mode'; }
|
||||
pre.src-oz:before { content: 'OZ'; }
|
||||
pre.src-plantuml:before { content: 'Plantuml'; }
|
||||
pre.src-processing:before { content: 'Processing.js'; }
|
||||
pre.src-python:before { content: 'Python'; }
|
||||
pre.src-R:before { content: 'R'; }
|
||||
pre.src-ruby:before { content: 'Ruby'; }
|
||||
pre.src-sass:before { content: 'Sass'; }
|
||||
pre.src-scheme:before { content: 'Scheme'; }
|
||||
pre.src-screen:before { content: 'Gnu Screen'; }
|
||||
pre.src-sed:before { content: 'Sed'; }
|
||||
pre.src-sh:before { content: 'shell'; }
|
||||
pre.src-sql:before { content: 'SQL'; }
|
||||
pre.src-sqlite:before { content: 'SQLite'; }
|
||||
/* additional languages in org.el's org-babel-load-languages alist */
|
||||
pre.src-forth:before { content: 'Forth'; }
|
||||
pre.src-io:before { content: 'IO'; }
|
||||
pre.src-J:before { content: 'J'; }
|
||||
pre.src-makefile:before { content: 'Makefile'; }
|
||||
pre.src-maxima:before { content: 'Maxima'; }
|
||||
pre.src-perl:before { content: 'Perl'; }
|
||||
pre.src-picolisp:before { content: 'Pico Lisp'; }
|
||||
pre.src-scala:before { content: 'Scala'; }
|
||||
pre.src-shell:before { content: 'Shell Script'; }
|
||||
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
|
||||
/* additional language identifiers per "defun org-babel-execute"
|
||||
in ob-*.el */
|
||||
pre.src-cpp:before { content: 'C++'; }
|
||||
pre.src-abc:before { content: 'ABC'; }
|
||||
pre.src-coq:before { content: 'Coq'; }
|
||||
pre.src-groovy:before { content: 'Groovy'; }
|
||||
/* additional language identifiers from org-babel-shell-names in
|
||||
ob-shell.el: ob-shell is the only babel language using a lambda to put
|
||||
the execution function name together. */
|
||||
pre.src-bash:before { content: 'bash'; }
|
||||
pre.src-csh:before { content: 'csh'; }
|
||||
pre.src-ash:before { content: 'ash'; }
|
||||
pre.src-dash:before { content: 'dash'; }
|
||||
pre.src-ksh:before { content: 'ksh'; }
|
||||
pre.src-mksh:before { content: 'mksh'; }
|
||||
pre.src-posh:before { content: 'posh'; }
|
||||
/* Additional Emacs modes also supported by the LaTeX listings package */
|
||||
pre.src-ada:before { content: 'Ada'; }
|
||||
pre.src-asm:before { content: 'Assembler'; }
|
||||
pre.src-caml:before { content: 'Caml'; }
|
||||
pre.src-delphi:before { content: 'Delphi'; }
|
||||
pre.src-html:before { content: 'HTML'; }
|
||||
pre.src-idl:before { content: 'IDL'; }
|
||||
pre.src-mercury:before { content: 'Mercury'; }
|
||||
pre.src-metapost:before { content: 'MetaPost'; }
|
||||
pre.src-modula-2:before { content: 'Modula-2'; }
|
||||
pre.src-pascal:before { content: 'Pascal'; }
|
||||
pre.src-ps:before { content: 'PostScript'; }
|
||||
pre.src-prolog:before { content: 'Prolog'; }
|
||||
pre.src-simula:before { content: 'Simula'; }
|
||||
pre.src-tcl:before { content: 'tcl'; }
|
||||
pre.src-tex:before { content: 'TeX'; }
|
||||
pre.src-plain-tex:before { content: 'Plain TeX'; }
|
||||
pre.src-verilog:before { content: 'Verilog'; }
|
||||
pre.src-vhdl:before { content: 'VHDL'; }
|
||||
pre.src-xml:before { content: 'XML'; }
|
||||
pre.src-nxml:before { content: 'XML'; }
|
||||
/* add a generic configuration mode; LaTeX export needs an additional
|
||||
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
|
||||
pre.src-conf:before { content: 'Configuration File'; }
|
||||
|
||||
table { border-collapse:collapse; }
|
||||
caption.t-above { caption-side: top; }
|
||||
caption.t-bottom { caption-side: bottom; }
|
||||
td, th { vertical-align:top; }
|
||||
th.org-right { text-align: center; }
|
||||
th.org-left { text-align: center; }
|
||||
th.org-center { text-align: center; }
|
||||
td.org-right { text-align: right; }
|
||||
td.org-left { text-align: left; }
|
||||
td.org-center { text-align: center; }
|
||||
dt { font-weight: bold; }
|
||||
.footpara { display: inline; }
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
margin: 10px;
|
||||
background: #ffffcc;
|
||||
}
|
||||
#org-div-home-and-up
|
||||
{ text-align: right; font-size: 70%; white-space: nowrap; }
|
||||
textarea { overflow-x: auto; }
|
||||
.linenr { font-size: smaller }
|
||||
.code-highlighted { background-color: #ffff00; }
|
||||
.org-info-js_info-navigation { border-style: none; }
|
||||
#org-info-js_console-label
|
||||
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
|
||||
.org-info-js_search-highlight
|
||||
{ background-color: #ffff00; color: #000000; font-weight: bold; }
|
||||
.org-svg { width: 90%; }
|
||||
/*]]>*/-->
|
||||
</style>
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<script type="text/javascript">
|
||||
/*
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
General Public License (GNU GPL) as published by the Free Software
|
||||
Foundation, either version 3 of the License, or (at your option)
|
||||
any later version. The code is distributed WITHOUT ANY WARRANTY;
|
||||
without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
|
||||
|
||||
As additional permission under GNU GPL version 3 section 7, you
|
||||
may distribute non-source (e.g., minimized or compacted) forms of
|
||||
that code without the copy of the GNU GPL normally required by
|
||||
section 4, provided you include this license notice and a URL
|
||||
through which recipients can access the Corresponding Source.
|
||||
|
||||
|
||||
@licend The above is the entire license notice
|
||||
for the JavaScript code in this tag.
|
||||
*/
|
||||
<!--/*--><![CDATA[/*><!--*/
|
||||
function CodeHighlightOn(elem, id)
|
||||
{
|
||||
var target = document.getElementById(id);
|
||||
if(null != target) {
|
||||
elem.cacheClassElem = elem.className;
|
||||
elem.cacheClassTarget = target.className;
|
||||
target.className = "code-highlighted";
|
||||
elem.className = "code-highlighted";
|
||||
}
|
||||
}
|
||||
function CodeHighlightOff(elem, id)
|
||||
{
|
||||
var target = document.getElementById(id);
|
||||
if(elem.cacheClassElem)
|
||||
elem.className = elem.cacheClassElem;
|
||||
if(elem.cacheClassTarget)
|
||||
target.className = elem.cacheClassTarget;
|
||||
}
|
||||
/*]]>*///-->
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -258,15 +22,15 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org52b8984">GTK-2.0</a></li>
|
||||
<li><a href="#orgd55a07a">GTK-3.0</a></li>
|
||||
<li><a href="#org2335e48">GTK-2.0</a></li>
|
||||
<li><a href="#org1e15503">GTK-3.0</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org52b8984" class="outline-2">
|
||||
<h2 id="org52b8984">GTK-2.0</h2>
|
||||
<div class="outline-text-2" id="text-org52b8984">
|
||||
<div id="outline-container-org2335e48" class="outline-2">
|
||||
<h2 id="org2335e48">GTK-2.0</h2>
|
||||
<div class="outline-text-2" id="text-org2335e48">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-variable-name">gtk-theme-name</span>=<span class="org-string">"Arc-Dark"</span>
|
||||
<span class="org-variable-name">gtk-icon-theme-name</span>=<span class="org-string">"Arc"</span>
|
||||
@ -288,9 +52,9 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd55a07a" class="outline-2">
|
||||
<h2 id="orgd55a07a">GTK-3.0</h2>
|
||||
<div class="outline-text-2" id="text-orgd55a07a">
|
||||
<div id="outline-container-org1e15503" class="outline-2">
|
||||
<h2 id="org1e15503">GTK-3.0</h2>
|
||||
<div class="outline-text-2" id="text-org1e15503">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">Settings</span>]
|
||||
<span class="org-variable-name">gtk-theme-name</span>=Arc-Dark
|
||||
@ -315,7 +79,7 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-01-11 sam. 22:19</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:09</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
249
docs/i3.html
249
docs/i3.html
@ -3,17 +3,13 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-05-26 mar. 08:40 -->
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>I3 Configuration</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -26,36 +22,36 @@
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgfa3a84a">Mod Key</a></li>
|
||||
<li><a href="#org6e4f11a">Border Style</a></li>
|
||||
<li><a href="#orgb3d9c62">Font for window titles</a></li>
|
||||
<li><a href="#orge2dfbd2">Colors Variables</a></li>
|
||||
<li><a href="#orgec5c654">Theme colors</a></li>
|
||||
<li><a href="#orgc470b91">Various Config</a></li>
|
||||
<li><a href="#orgb1cbca7">Border</a></li>
|
||||
<li><a href="#org92d84a9">Settings for i3-gaps</a></li>
|
||||
<li><a href="#org1a7f35c">Workspace names</a></li>
|
||||
<li><a href="#orgf10c4f1">Use Mouse+$mod to drag floating windows</a></li>
|
||||
<li><a href="#org445b64b">Back and Forth</a></li>
|
||||
<li><a href="#orgccf5527">Application Specific</a>
|
||||
<li><a href="#org603bb02">Mod Key</a></li>
|
||||
<li><a href="#org2de16b4">Border Style</a></li>
|
||||
<li><a href="#org27e86ae">Font for window titles</a></li>
|
||||
<li><a href="#org4f1f60d">Colors Variables</a></li>
|
||||
<li><a href="#org8584048">Theme colors</a></li>
|
||||
<li><a href="#org18772b2">Various Config</a></li>
|
||||
<li><a href="#orgf5906b7">Border</a></li>
|
||||
<li><a href="#org62f5712">Settings for i3-gaps</a></li>
|
||||
<li><a href="#org1cf1b72">Workspace names</a></li>
|
||||
<li><a href="#orgf10019f">Use Mouse+$mod to drag floating windows</a></li>
|
||||
<li><a href="#orgfacf655">Back and Forth</a></li>
|
||||
<li><a href="#org4ec8a79">Application Specific</a>
|
||||
<ul>
|
||||
<li><a href="#orgec227a1">Open applications on specific workspaces</a></li>
|
||||
<li><a href="#org05defe1">Open specific applications in floating mode</a></li>
|
||||
<li><a href="#org0d33818">Open applications on specific workspaces</a></li>
|
||||
<li><a href="#org859f93b">Open specific applications in floating mode</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6aa38e9">Scratchpad</a></li>
|
||||
<li><a href="#orgff12892">Run Polybar and SXHKD</a></li>
|
||||
<li><a href="#org9247875">Scratchpad</a></li>
|
||||
<li><a href="#org416cf01">Run Polybar and SXHKD</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"># i3 config file (v4)
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">i3 config file (v4)</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfa3a84a" class="outline-2">
|
||||
<h2 id="orgfa3a84a">Mod Key</h2>
|
||||
<div class="outline-text-2" id="text-orgfa3a84a">
|
||||
<div id="outline-container-org603bb02" class="outline-2">
|
||||
<h2 id="org603bb02">Mod Key</h2>
|
||||
<div class="outline-text-2" id="text-org603bb02">
|
||||
<p>
|
||||
Set mod key (Mod1=<Alt>, Mod4=<Super>)
|
||||
</p>
|
||||
@ -66,12 +62,12 @@ Set mod key (Mod1=<Alt>, Mod4=<Super>)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6e4f11a" class="outline-2">
|
||||
<h2 id="org6e4f11a">Border Style</h2>
|
||||
<div class="outline-text-2" id="text-org6e4f11a">
|
||||
<div id="outline-container-org2de16b4" class="outline-2">
|
||||
<h2 id="org2de16b4">Border Style</h2>
|
||||
<div class="outline-text-2" id="text-org2de16b4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"># Use custom colors for black
|
||||
new_window pixel 1
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Use custom colors for black</span>
|
||||
new_window pixel <span class="org-highlight-numbers-number">1</span>
|
||||
new_float normal
|
||||
</pre>
|
||||
</div>
|
||||
@ -86,46 +82,46 @@ Hide borders
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb3d9c62" class="outline-2">
|
||||
<h2 id="orgb3d9c62">Font for window titles</h2>
|
||||
<div class="outline-text-2" id="text-orgb3d9c62">
|
||||
<div id="outline-container-org27e86ae" class="outline-2">
|
||||
<h2 id="org27e86ae">Font for window titles</h2>
|
||||
<div class="outline-text-2" id="text-org27e86ae">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">font Hack Nerd Font 11
|
||||
<pre class="src src-conf">font Hack Nerd Font <span class="org-highlight-numbers-number">11</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge2dfbd2" class="outline-2">
|
||||
<h2 id="orge2dfbd2">Colors Variables</h2>
|
||||
<div class="outline-text-2" id="text-orge2dfbd2">
|
||||
<div id="outline-container-org4f1f60d" class="outline-2">
|
||||
<h2 id="org4f1f60d">Colors Variables</h2>
|
||||
<div class="outline-text-2" id="text-org4f1f60d">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">set_from_resource $bg color0 #000000
|
||||
set_from_resource $darkred color1 #000000
|
||||
set_from_resource $darkgreen color2 #000000
|
||||
set_from_resource $darkyellow color3 #000000
|
||||
set_from_resource $darkblue color4 #000000
|
||||
set_from_resource $darkpurple color5 #000000
|
||||
set_from_resource $darkaqua color6 #000000
|
||||
set_from_resource $darkgray color7 #000000
|
||||
set_from_resource $gray color8 #000000
|
||||
set_from_resource $red color9 #000000
|
||||
set_from_resource $green color10 #000000
|
||||
set_from_resource $yellow color11 #000000
|
||||
set_from_resource $blue color12 #000000
|
||||
set_from_resource $purple color13 #000000
|
||||
set_from_resource $aqua color14 #000000
|
||||
set_from_resource $fg color15 #000000
|
||||
<pre class="src src-conf">set_from_resource $bg color0 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
|
||||
set_from_resource $darkred color1 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
|
||||
set_from_resource $darkgreen color2 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
|
||||
set_from_resource $darkyellow color3 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
|
||||
set_from_resource $darkblue color4 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
|
||||
set_from_resource $darkpurple color5 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
|
||||
set_from_resource $darkaqua color6 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
|
||||
set_from_resource $darkgray color7 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
|
||||
set_from_resource $gray color8 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
|
||||
set_from_resource $red color9 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
|
||||
set_from_resource $green color10 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
|
||||
set_from_resource $yellow color11 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
|
||||
set_from_resource $blue color12 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
|
||||
set_from_resource $purple color13 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
|
||||
set_from_resource $aqua color14 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
|
||||
set_from_resource $fg color15 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgec5c654" class="outline-2">
|
||||
<h2 id="orgec5c654">Theme colors</h2>
|
||||
<div class="outline-text-2" id="text-orgec5c654">
|
||||
<div id="outline-container-org8584048" class="outline-2">
|
||||
<h2 id="org8584048">Theme colors</h2>
|
||||
<div class="outline-text-2" id="text-org8584048">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"># class border backgr. text indic. child_border
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">class border backgr. text indic. child_border</span>
|
||||
client.focused $darkaqua $darkaqua $fg $bg
|
||||
client.focused_inactive $bg $bg $fg $bg
|
||||
client.unfocused $bg $bg $fg $bg
|
||||
@ -137,9 +133,9 @@ client.background $bg
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc470b91" class="outline-2">
|
||||
<h2 id="orgc470b91">Various Config</h2>
|
||||
<div class="outline-text-2" id="text-orgc470b91">
|
||||
<div id="outline-container-org18772b2" class="outline-2">
|
||||
<h2 id="org18772b2">Various Config</h2>
|
||||
<div class="outline-text-2" id="text-org18772b2">
|
||||
<p>
|
||||
Layout mode for new containers
|
||||
</p>
|
||||
@ -155,56 +151,51 @@ Layout mode for new containers
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb1cbca7" class="outline-2">
|
||||
<h2 id="orgb1cbca7">Border</h2>
|
||||
<div class="outline-text-2" id="text-orgb1cbca7">
|
||||
<div id="outline-container-orgf5906b7" class="outline-2">
|
||||
<h2 id="orgf5906b7">Border</h2>
|
||||
<div class="outline-text-2" id="text-orgf5906b7">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">default_border pixel 1
|
||||
<pre class="src src-conf">default_border pixel <span class="org-highlight-numbers-number">1</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org92d84a9" class="outline-2">
|
||||
<h2 id="org92d84a9">Settings for i3-gaps</h2>
|
||||
<div class="outline-text-2" id="text-org92d84a9">
|
||||
<div id="outline-container-org62f5712" class="outline-2">
|
||||
<h2 id="org62f5712">Settings for i3-gaps</h2>
|
||||
<div class="outline-text-2" id="text-org62f5712">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"># for_window [class=".*"] border pixel 0
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">gaps inner 10
|
||||
gaps outer 2
|
||||
<pre class="src src-conf">gaps inner <span class="org-highlight-numbers-number">10</span>
|
||||
gaps outer <span class="org-highlight-numbers-number">2</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1a7f35c" class="outline-2">
|
||||
<h2 id="org1a7f35c">Workspace names</h2>
|
||||
<div class="outline-text-2" id="text-org1a7f35c">
|
||||
<div id="outline-container-org1cf1b72" class="outline-2">
|
||||
<h2 id="org1cf1b72">Workspace names</h2>
|
||||
<div class="outline-text-2" id="text-org1cf1b72">
|
||||
<p>
|
||||
To display names or symbols instead of plain workspace numbers you can use something like: <code>set $ws1 1:mail</code> and <code>set $ws2 2:</code>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">set $ws1 1
|
||||
set $ws2 2
|
||||
set $ws3 3
|
||||
set $ws4 4
|
||||
set $ws5 5
|
||||
set $ws6 6
|
||||
set $ws7 7
|
||||
set $ws8 8
|
||||
<pre class="src src-conf">set $ws1 <span class="org-highlight-numbers-number">1</span>
|
||||
set $ws2 <span class="org-highlight-numbers-number">2</span>
|
||||
set $ws3 <span class="org-highlight-numbers-number">3</span>
|
||||
set $ws4 <span class="org-highlight-numbers-number">4</span>
|
||||
set $ws5 <span class="org-highlight-numbers-number">5</span>
|
||||
set $ws6 <span class="org-highlight-numbers-number">6</span>
|
||||
set $ws7 <span class="org-highlight-numbers-number">7</span>
|
||||
set $ws8 <span class="org-highlight-numbers-number">8</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf10c4f1" class="outline-2">
|
||||
<h2 id="orgf10c4f1">Use Mouse+$mod to drag floating windows</h2>
|
||||
<div class="outline-text-2" id="text-orgf10c4f1">
|
||||
<div id="outline-container-orgf10019f" class="outline-2">
|
||||
<h2 id="orgf10019f">Use Mouse+$mod to drag floating windows</h2>
|
||||
<div class="outline-text-2" id="text-orgf10019f">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">floating_modifier $mod
|
||||
</pre>
|
||||
@ -212,9 +203,9 @@ set $ws8 8
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org445b64b" class="outline-2">
|
||||
<h2 id="org445b64b">Back and Forth</h2>
|
||||
<div class="outline-text-2" id="text-org445b64b">
|
||||
<div id="outline-container-orgfacf655" class="outline-2">
|
||||
<h2 id="orgfacf655">Back and Forth</h2>
|
||||
<div class="outline-text-2" id="text-orgfacf655">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">workspace_auto_back_and_forth yes
|
||||
</pre>
|
||||
@ -222,51 +213,49 @@ set $ws8 8
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgccf5527" class="outline-2">
|
||||
<h2 id="orgccf5527">Application Specific</h2>
|
||||
<div class="outline-text-2" id="text-orgccf5527">
|
||||
<div id="outline-container-org4ec8a79" class="outline-2">
|
||||
<h2 id="org4ec8a79">Application Specific</h2>
|
||||
<div class="outline-text-2" id="text-org4ec8a79">
|
||||
</div>
|
||||
<div id="outline-container-orgec227a1" class="outline-3">
|
||||
<h3 id="orgec227a1">Open applications on specific workspaces</h3>
|
||||
<div class="outline-text-3" id="text-orgec227a1">
|
||||
<div id="outline-container-org0d33818" class="outline-3">
|
||||
<h3 id="org0d33818">Open applications on specific workspaces</h3>
|
||||
<div class="outline-text-3" id="text-org0d33818">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">assign[title="^Fig"] $ws6 # Matlab Figures
|
||||
for_window [title="^Fig"] layout tabbed
|
||||
assign[title="^HG_Peer"] $ws6 # Name of window when export figure with matlab
|
||||
<pre class="src src-conf"><span class="org-variable-name">assign[title</span>=<span class="org-string">"^Fig"</span>] $ws6 <span class="org-comment-delimiter"># </span><span class="org-comment">Matlab Figures</span>
|
||||
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"^Fig"</span>] layout tabbed
|
||||
<span class="org-variable-name">assign[title</span>=<span class="org-string">"^HG_Peer"</span>] $ws6 <span class="org-comment-delimiter"># </span><span class="org-comment">Name of window when export figure with matlab</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org05defe1" class="outline-3">
|
||||
<h3 id="org05defe1">Open specific applications in floating mode</h3>
|
||||
<div class="outline-text-3" id="text-org05defe1">
|
||||
<div id="outline-container-org859f93b" class="outline-3">
|
||||
<h3 id="org859f93b">Open specific applications in floating mode</h3>
|
||||
<div class="outline-text-3" id="text-org859f93b">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">for_window [title="File Transfer*"] floating enable
|
||||
for_window [class="GParted"] floating enable border normal
|
||||
for_window [class="Lightdm-settings"] floating enable
|
||||
for_window [class="Lxappearance"] floating enable sticky enable border normal
|
||||
for_window [class="Pavucontrol"] floating enable
|
||||
for_window [class="Arandr"] floating enable
|
||||
for_window [class="Simple-scan"] floating enable border normal
|
||||
for_window [class="(?i)System-config-printer.py"] floating enable border normal
|
||||
for_window [class="Xfburn"] floating enable
|
||||
for_window [title="^Documentation -"] floating enable border normal
|
||||
for_window [class="Yad"] floating enable
|
||||
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="Sxiv"] floating enable, resize set 800 600, move position center
|
||||
for_window [title="nmtui"] floating enable, resize set 800 600
|
||||
<pre class="src src-conf"><span class="org-variable-name">for_window [title</span>=<span class="org-string">"File Transfer*"</span>] floating enable
|
||||
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"GParted"</span>] floating enable border normal
|
||||
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Lxappearance"</span>] floating enable sticky enable border normal
|
||||
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Pavucontrol"</span>] floating enable
|
||||
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Arandr"</span>] floating enable
|
||||
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Simple-scan"</span>] floating enable border normal
|
||||
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"(?i)System-config-printer.py"</span>] floating enable border normal
|
||||
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"^Documentation -"</span>] floating enable border normal
|
||||
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Yad"</span>] floating enable
|
||||
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"Bluetooth Devices"</span>] floating enable
|
||||
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"Simulink Library Browser"</span>] floating enable
|
||||
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Floating"</span>] floating enable, resize set <span class="org-highlight-numbers-number">800</span> <span class="org-highlight-numbers-number">600</span>, move position <span class="org-highlight-numbers-number">1100</span> <span class="org-highlight-numbers-number">460</span>
|
||||
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Sxiv"</span>] floating enable, resize set <span class="org-highlight-numbers-number">800</span> <span class="org-highlight-numbers-number">600</span>, move position center
|
||||
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"nmtui"</span>] floating enable, resize set <span class="org-highlight-numbers-number">800</span> <span class="org-highlight-numbers-number">600</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6aa38e9" class="outline-2">
|
||||
<h2 id="org6aa38e9">Scratchpad</h2>
|
||||
<div class="outline-text-2" id="text-org6aa38e9">
|
||||
<div id="outline-container-org9247875" class="outline-2">
|
||||
<h2 id="org9247875">Scratchpad</h2>
|
||||
<div class="outline-text-2" id="text-org9247875">
|
||||
<p>
|
||||
Move the currently focused window to the scratchpad
|
||||
</p>
|
||||
@ -286,12 +275,12 @@ If there are multiple scratchpad windows, this command cycles through them.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgff12892" class="outline-2">
|
||||
<h2 id="orgff12892">Run Polybar and SXHKD</h2>
|
||||
<div class="outline-text-2" id="text-orgff12892">
|
||||
<div id="outline-container-org416cf01" class="outline-2">
|
||||
<h2 id="org416cf01">Run Polybar and SXHKD</h2>
|
||||
<div class="outline-text-2" id="text-org416cf01">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">exec --no-startup-id sxhkd -m 1 -c ~/.config/sxhkd/sxhkdrc.i3
|
||||
exec --no-startup-id $HOME/.config/polybar/scripts/launch.sh
|
||||
<pre class="src src-conf">exec --no-startup-id sxhkd -m <span class="org-highlight-numbers-number">1</span> -c ~/.config/sxhkd/sxhkdrc.i3
|
||||
exec --no-startup-id polybar top >>/tmp/polybar.log 2>&1 &
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -299,7 +288,7 @@ exec --no-startup-id $HOME/.config/polybar/scripts/launch.sh
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-05-26 mar. 08:40</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:09</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -3,17 +3,13 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-11-03 mar. 16:26 -->
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>SXIV Configuration</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -43,7 +39,7 @@ done
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-11-03 mar. 16:26</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:09</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -3,17 +3,13 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-05-26 mar. 08:40 -->
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Dotfiles - Manjaro Linux</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -26,15 +22,15 @@
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org89a0ea9">Desktop Configuration</a></li>
|
||||
<li><a href="#org22f70c7">Editors</a></li>
|
||||
<li><a href="#org99ffc6f">Command Line</a></li>
|
||||
<li><a href="#org6ff2572">Multimedia</a></li>
|
||||
<li><a href="#org6a08a41">Internet Related</a></li>
|
||||
<li><a href="#org9464949">PDF Reader</a></li>
|
||||
<li><a href="#org646a012">File Managers</a></li>
|
||||
<li><a href="#orgbbc0114">Organization</a></li>
|
||||
<li><a href="#orgcc9e876">Others</a></li>
|
||||
<li><a href="#orgd79ce2e">Desktop Configuration</a></li>
|
||||
<li><a href="#org462d26f">Editors</a></li>
|
||||
<li><a href="#org18da288">Command Line</a></li>
|
||||
<li><a href="#org44757cd">Multimedia</a></li>
|
||||
<li><a href="#org4d5c16c">Internet Related</a></li>
|
||||
<li><a href="#org573d686">PDF Reader</a></li>
|
||||
<li><a href="#org868e93b">File Managers</a></li>
|
||||
<li><a href="#org63ac801">Organization</a></li>
|
||||
<li><a href="#orgd2e1086">Others</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@ -42,9 +38,9 @@
|
||||
The general installation process is described <a href="install.html">here</a>.
|
||||
</p>
|
||||
|
||||
<div id="outline-container-org89a0ea9" class="outline-2">
|
||||
<h2 id="org89a0ea9">Desktop Configuration</h2>
|
||||
<div class="outline-text-2" id="text-org89a0ea9">
|
||||
<div id="outline-container-orgd79ce2e" class="outline-2">
|
||||
<h2 id="orgd79ce2e">Desktop Configuration</h2>
|
||||
<div class="outline-text-2" id="text-orgd79ce2e">
|
||||
<ul class="org-ul">
|
||||
<li><b>Windows Manager</b>: <a href="bspwm.html">BSPWM</a> and <a href="i3.html">I3</a></li>
|
||||
<li><b>Hotkey Manager</b>: <a href="sxhkd.html">SXHKD</a></li>
|
||||
@ -58,9 +54,9 @@ The general installation process is described <a href="install.html">here</a>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org22f70c7" class="outline-2">
|
||||
<h2 id="org22f70c7">Editors</h2>
|
||||
<div class="outline-text-2" id="text-org22f70c7">
|
||||
<div id="outline-container-org462d26f" class="outline-2">
|
||||
<h2 id="org462d26f">Editors</h2>
|
||||
<div class="outline-text-2" id="text-org462d26f">
|
||||
<ul class="org-ul">
|
||||
<li><a href="vim.html">Vim</a></li>
|
||||
<li><a href="./doom.html">Doom Emacs</a></li>
|
||||
@ -68,9 +64,9 @@ The general installation process is described <a href="install.html">here</a>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org99ffc6f" class="outline-2">
|
||||
<h2 id="org99ffc6f">Command Line</h2>
|
||||
<div class="outline-text-2" id="text-org99ffc6f">
|
||||
<div id="outline-container-org18da288" class="outline-2">
|
||||
<h2 id="org18da288">Command Line</h2>
|
||||
<div class="outline-text-2" id="text-org18da288">
|
||||
<ul class="org-ul">
|
||||
<li><a href="bash.html">Bash</a> and <a href="zsh.html">ZSH</a></li>
|
||||
<li>Terminal: <a href="termite.html">Termite</a></li>
|
||||
@ -79,9 +75,9 @@ The general installation process is described <a href="install.html">here</a>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6ff2572" class="outline-2">
|
||||
<h2 id="org6ff2572">Multimedia</h2>
|
||||
<div class="outline-text-2" id="text-org6ff2572">
|
||||
<div id="outline-container-org44757cd" class="outline-2">
|
||||
<h2 id="org44757cd">Multimedia</h2>
|
||||
<div class="outline-text-2" id="text-org44757cd">
|
||||
<ul class="org-ul">
|
||||
<li><a href="image.html">Image</a></li>
|
||||
<li><a href="music.html">Music</a></li>
|
||||
@ -90,9 +86,9 @@ The general installation process is described <a href="install.html">here</a>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6a08a41" class="outline-2">
|
||||
<h2 id="org6a08a41">Internet Related</h2>
|
||||
<div class="outline-text-2" id="text-org6a08a41">
|
||||
<div id="outline-container-org4d5c16c" class="outline-2">
|
||||
<h2 id="org4d5c16c">Internet Related</h2>
|
||||
<div class="outline-text-2" id="text-org4d5c16c">
|
||||
<ul class="org-ul">
|
||||
<li>Web Browser: <a href="qutebrowser.html">Qutebrowser</a></li>
|
||||
<li>Bookmark Manager: <a href="bookmarks.html">Buku</a></li>
|
||||
@ -100,18 +96,18 @@ The general installation process is described <a href="install.html">here</a>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9464949" class="outline-2">
|
||||
<h2 id="org9464949">PDF Reader</h2>
|
||||
<div class="outline-text-2" id="text-org9464949">
|
||||
<div id="outline-container-org573d686" class="outline-2">
|
||||
<h2 id="org573d686">PDF Reader</h2>
|
||||
<div class="outline-text-2" id="text-org573d686">
|
||||
<ul class="org-ul">
|
||||
<li><a href="zathura.html">Zathura</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org646a012" class="outline-2">
|
||||
<h2 id="org646a012">File Managers</h2>
|
||||
<div class="outline-text-2" id="text-org646a012">
|
||||
<div id="outline-container-org868e93b" class="outline-2">
|
||||
<h2 id="org868e93b">File Managers</h2>
|
||||
<div class="outline-text-2" id="text-org868e93b">
|
||||
<ul class="org-ul">
|
||||
<li>GUI: <a href="pcmanfm.html">Pcmanfm</a></li>
|
||||
<li>Terminal based: <a href="ranger.html">Ranger</a></li>
|
||||
@ -119,9 +115,9 @@ The general installation process is described <a href="install.html">here</a>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbbc0114" class="outline-2">
|
||||
<h2 id="orgbbc0114">Organization</h2>
|
||||
<div class="outline-text-2" id="text-orgbbc0114">
|
||||
<div id="outline-container-org63ac801" class="outline-2">
|
||||
<h2 id="org63ac801">Organization</h2>
|
||||
<div class="outline-text-2" id="text-org63ac801">
|
||||
<ul class="org-ul">
|
||||
<li><a href="calendar.html">Calendar</a></li>
|
||||
<li><a href="mail.html">Mail</a></li>
|
||||
@ -131,9 +127,9 @@ The general installation process is described <a href="install.html">here</a>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcc9e876" class="outline-2">
|
||||
<h2 id="orgcc9e876">Others</h2>
|
||||
<div class="outline-text-2" id="text-orgcc9e876">
|
||||
<div id="outline-container-orgd2e1086" class="outline-2">
|
||||
<h2 id="orgd2e1086">Others</h2>
|
||||
<div class="outline-text-2" id="text-orgd2e1086">
|
||||
<ul class="org-ul">
|
||||
<li><a href="applications.html">Desktop Applications</a></li>
|
||||
<li><a href="matlab.html">Matlab</a></li>
|
||||
@ -147,7 +143,7 @@ The general installation process is described <a href="install.html">here</a>.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-05-26 mar. 08:40</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:09</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -3,17 +3,13 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-11-03 mar. 16:26 -->
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Inkscape</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -26,23 +22,23 @@
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org5e44ded">Save Selection to SVG extension</a>
|
||||
<li><a href="#orge5e47be">Save Selection to SVG extension</a>
|
||||
<ul>
|
||||
<li><a href="#org698faee"><code>ink</code> file</a></li>
|
||||
<li><a href="#org9bd357b"><code>py</code> file</a></li>
|
||||
<li><a href="#org74c03e7"><code>ink</code> file</a></li>
|
||||
<li><a href="#org7f93603"><code>py</code> file</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5e44ded" class="outline-2">
|
||||
<h2 id="org5e44ded">Save Selection to SVG extension</h2>
|
||||
<div class="outline-text-2" id="text-org5e44ded">
|
||||
<div id="outline-container-orge5e47be" class="outline-2">
|
||||
<h2 id="orge5e47be">Save Selection to SVG extension</h2>
|
||||
<div class="outline-text-2" id="text-orge5e47be">
|
||||
</div>
|
||||
<div id="outline-container-org698faee" class="outline-3">
|
||||
<h3 id="org698faee"><code>ink</code> file</h3>
|
||||
<div class="outline-text-3" id="text-org698faee">
|
||||
<div id="outline-container-org74c03e7" class="outline-3">
|
||||
<h3 id="org74c03e7"><code>ink</code> file</h3>
|
||||
<div class="outline-text-3" id="text-org74c03e7">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-xml"><span class="org-nxml-processing-instruction-delimiter"><?</span><span class="org-nxml-processing-instruction-target">xml</span> <span class="org-nxml-processing-instruction-content">version="1.0" encoding="utf-8"</span><span class="org-nxml-processing-instruction-delimiter">?></span>
|
||||
<span class="org-nxml-processing-instruction-delimiter"><?</span><span class="org-nxml-processing-instruction-target">xml</span> <span class="org-nxml-processing-instruction-content">version="1.0" encoding="UTF-8"</span><span class="org-nxml-processing-instruction-delimiter">?></span>
|
||||
@ -77,9 +73,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9bd357b" class="outline-3">
|
||||
<h3 id="org9bd357b"><code>py</code> file</h3>
|
||||
<div class="outline-text-3" id="text-org9bd357b">
|
||||
<div id="outline-container-org7f93603" class="outline-3">
|
||||
<h3 id="org7f93603"><code>py</code> file</h3>
|
||||
<div class="outline-text-3" id="text-org7f93603">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python"><span class="org-keyword">import</span> os
|
||||
<span class="org-keyword">import</span> inkex
|
||||
@ -128,7 +124,7 @@
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-11-03 mar. 16:26</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:09</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
2537
docs/install.html
2537
docs/install.html
File diff suppressed because it is too large
Load Diff
7
docs/js/bootstrap.min.js
vendored
7
docs/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
4
docs/js/jquery.min.js
vendored
4
docs/js/jquery.min.js
vendored
File diff suppressed because one or more lines are too long
1
docs/js/jquery.stickytableheaders.min.js
vendored
1
docs/js/jquery.stickytableheaders.min.js
vendored
@ -1 +0,0 @@
|
||||
!function(a,b){"use strict";function c(c,g){var h=this;h.$el=a(c),h.el=c,h.id=e++,h.$window=a(b),h.$document=a(document),h.$el.bind("destroyed",a.proxy(h.teardown,h)),h.$clonedHeader=null,h.$originalHeader=null,h.isSticky=!1,h.hasBeenSticky=!1,h.leftOffset=null,h.topOffset=null,h.init=function(){h.$el.each(function(){var b=a(this);b.css("padding",0),h.$originalHeader=a("thead:first",this),h.$clonedHeader=h.$originalHeader.clone(),b.trigger("clonedHeader."+d,[h.$clonedHeader]),h.$clonedHeader.addClass("tableFloatingHeader"),h.$clonedHeader.css("display","none"),h.$originalHeader.addClass("tableFloatingHeaderOriginal"),h.$originalHeader.after(h.$clonedHeader),h.$printStyle=a('<style type="text/css" media="print">.tableFloatingHeader{display:none !important;}.tableFloatingHeaderOriginal{position:static !important;}</style>'),a("head").append(h.$printStyle)}),h.setOptions(g),h.updateWidth(),h.toggleHeaders(),h.bind()},h.destroy=function(){h.$el.unbind("destroyed",h.teardown),h.teardown()},h.teardown=function(){h.isSticky&&h.$originalHeader.css("position","static"),a.removeData(h.el,"plugin_"+d),h.unbind(),h.$clonedHeader.remove(),h.$originalHeader.removeClass("tableFloatingHeaderOriginal"),h.$originalHeader.css("visibility","visible"),h.$printStyle.remove(),h.el=null,h.$el=null},h.bind=function(){h.$scrollableArea.on("scroll."+d,h.toggleHeaders),h.isWindowScrolling||(h.$window.on("scroll."+d+h.id,h.setPositionValues),h.$window.on("resize."+d+h.id,h.toggleHeaders)),h.$scrollableArea.on("resize."+d,h.toggleHeaders),h.$scrollableArea.on("resize."+d,h.updateWidth)},h.unbind=function(){h.$scrollableArea.off("."+d,h.toggleHeaders),h.isWindowScrolling||(h.$window.off("."+d+h.id,h.setPositionValues),h.$window.off("."+d+h.id,h.toggleHeaders)),h.$scrollableArea.off("."+d,h.updateWidth)},h.toggleHeaders=function(){h.$el&&h.$el.each(function(){var b,c=a(this),d=h.isWindowScrolling?isNaN(h.options.fixedOffset)?h.options.fixedOffset.outerHeight():h.options.fixedOffset:h.$scrollableArea.offset().top+(isNaN(h.options.fixedOffset)?0:h.options.fixedOffset),e=c.offset(),f=h.$scrollableArea.scrollTop()+d,g=h.$scrollableArea.scrollLeft(),i=h.isWindowScrolling?f>e.top:d>e.top,j=(h.isWindowScrolling?f:0)<e.top+c.height()-h.$clonedHeader.height()-(h.isWindowScrolling?0:d);i&&j?(b=e.left-g+h.options.leftOffset,h.$originalHeader.css({position:"fixed","margin-top":h.options.marginTop,left:b,"z-index":3}),h.leftOffset=b,h.topOffset=d,h.$clonedHeader.css("display",""),h.isSticky||(h.isSticky=!0,h.updateWidth()),h.setPositionValues()):h.isSticky&&(h.$originalHeader.css("position","static"),h.$clonedHeader.css("display","none"),h.isSticky=!1,h.resetWidth(a("td,th",h.$clonedHeader),a("td,th",h.$originalHeader)))})},h.setPositionValues=function(){var a=h.$window.scrollTop(),b=h.$window.scrollLeft();!h.isSticky||0>a||a+h.$window.height()>h.$document.height()||0>b||b+h.$window.width()>h.$document.width()||h.$originalHeader.css({top:h.topOffset-(h.isWindowScrolling?0:a),left:h.leftOffset-(h.isWindowScrolling?0:b)})},h.updateWidth=function(){if(h.isSticky){h.$originalHeaderCells||(h.$originalHeaderCells=a("th,td",h.$originalHeader)),h.$clonedHeaderCells||(h.$clonedHeaderCells=a("th,td",h.$clonedHeader));var b=h.getWidth(h.$clonedHeaderCells);h.setWidth(b,h.$clonedHeaderCells,h.$originalHeaderCells),h.$originalHeader.css("width",h.$clonedHeader.width())}},h.getWidth=function(c){var d=[];return c.each(function(c){var e,f=a(this);if("border-box"===f.css("box-sizing"))e=f[0].getBoundingClientRect().width;else{var g=a("th",h.$originalHeader);if("collapse"===g.css("border-collapse"))if(b.getComputedStyle)e=parseFloat(b.getComputedStyle(this,null).width);else{var i=parseFloat(f.css("padding-left")),j=parseFloat(f.css("padding-right")),k=parseFloat(f.css("border-width"));e=f.outerWidth()-i-j-k}else e=f.width()}d[c]=e}),d},h.setWidth=function(a,b,c){b.each(function(b){var d=a[b];c.eq(b).css({"min-width":d,"max-width":d})})},h.resetWidth=function(b,c){b.each(function(b){var d=a(this);c.eq(b).css({"min-width":d.css("min-width"),"max-width":d.css("max-width")})})},h.setOptions=function(c){h.options=a.extend({},f,c),h.$scrollableArea=a(h.options.scrollableArea),h.isWindowScrolling=h.$scrollableArea[0]===b},h.updateOptions=function(a){h.setOptions(a),h.unbind(),h.bind(),h.updateWidth(),h.toggleHeaders()},h.init()}var d="stickyTableHeaders",e=0,f={fixedOffset:0,leftOffset:0,marginTop:0,scrollableArea:b};a.fn[d]=function(b){return this.each(function(){var e=a.data(this,"plugin_"+d);e?"string"==typeof b?e[b].apply(e):e.updateOptions(b):"destroy"!==b&&a.data(this,"plugin_"+d,new c(this,b))})}}(jQuery,window);
|
@ -1,85 +0,0 @@
|
||||
$(function() {
|
||||
$('.note').before("<p class='admonition-title note'>Note</p>");
|
||||
$('.seealso').before("<p class='admonition-title seealso'>See also</p>");
|
||||
$('.warning').before("<p class='admonition-title warning'>Warning</p>");
|
||||
$('.caution').before("<p class='admonition-title caution'>Caution</p>");
|
||||
$('.attention').before("<p class='admonition-title attention'>Attention</p>");
|
||||
$('.tip').before("<p class='admonition-title tip'>Tip</p>");
|
||||
$('.important').before("<p class='admonition-title important'>Important</p>");
|
||||
$('.hint').before("<p class='admonition-title hint'>Hint</p>");
|
||||
$('.error').before("<p class='admonition-title error'>Error</p>");
|
||||
$('.danger').before("<p class='admonition-title danger'>Danger</p>");
|
||||
});
|
||||
|
||||
$( document ).ready(function() {
|
||||
|
||||
// Shift nav in mobile when clicking the menu.
|
||||
$(document).on('click', "[data-toggle='wy-nav-top']", function() {
|
||||
$("[data-toggle='wy-nav-shift']").toggleClass("shift");
|
||||
$("[data-toggle='rst-versions']").toggleClass("shift");
|
||||
});
|
||||
// Close menu when you click a link.
|
||||
$(document).on('click', ".wy-menu-vertical .current ul li a", function() {
|
||||
$("[data-toggle='wy-nav-shift']").removeClass("shift");
|
||||
$("[data-toggle='rst-versions']").toggleClass("shift");
|
||||
});
|
||||
$(document).on('click', "[data-toggle='rst-current-version']", function() {
|
||||
$("[data-toggle='rst-versions']").toggleClass("shift-up");
|
||||
});
|
||||
// Make tables responsive
|
||||
$("table.docutils:not(.field-list)").wrap("<div class='wy-table-responsive'></div>");
|
||||
});
|
||||
|
||||
$( document ).ready(function() {
|
||||
$('#text-table-of-contents ul').first().addClass('nav');
|
||||
// ScrollSpy also requires that we use
|
||||
// a Bootstrap nav component.
|
||||
$('body').scrollspy({target: '#text-table-of-contents'});
|
||||
|
||||
// add sticky table headers
|
||||
$('table').stickyTableHeaders();
|
||||
|
||||
// set the height of tableOfContents
|
||||
var $postamble = $('#postamble');
|
||||
var $tableOfContents = $('#table-of-contents');
|
||||
$tableOfContents.css({paddingBottom: $postamble.outerHeight()});
|
||||
|
||||
// add TOC button
|
||||
var toggleSidebar = $('<div id="toggle-sidebar"><a href="#table-of-contents"><h2>Table of Contents</h2></a></div>');
|
||||
$('#content').prepend(toggleSidebar);
|
||||
|
||||
// add close button when sidebar showed in mobile screen
|
||||
var closeBtn = $('<a class="close-sidebar" href="#">Close</a>');
|
||||
var tocTitle = $('#table-of-contents').find('h2');
|
||||
tocTitle.append(closeBtn);
|
||||
});
|
||||
|
||||
window.SphinxRtdTheme = (function (jquery) {
|
||||
var stickyNav = (function () {
|
||||
var navBar,
|
||||
win,
|
||||
stickyNavCssClass = 'stickynav',
|
||||
applyStickNav = function () {
|
||||
if (navBar.height() <= win.height()) {
|
||||
navBar.addClass(stickyNavCssClass);
|
||||
} else {
|
||||
navBar.removeClass(stickyNavCssClass);
|
||||
}
|
||||
},
|
||||
enable = function () {
|
||||
applyStickNav();
|
||||
win.on('resize', applyStickNav);
|
||||
},
|
||||
init = function () {
|
||||
navBar = jquery('nav.wy-nav-side:first');
|
||||
win = jquery(window);
|
||||
};
|
||||
jquery(init);
|
||||
return {
|
||||
enable : enable
|
||||
};
|
||||
}());
|
||||
return {
|
||||
StickyNav : stickyNav
|
||||
};
|
||||
}($));
|
@ -3,17 +3,13 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-11-03 mar. 16:48 -->
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>LaTeX Configuration</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -26,25 +22,25 @@
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org3c03d57">Awesome LaTeX</a></li>
|
||||
<li><a href="#org3a604eb">Learn LaTeX</a></li>
|
||||
<li><a href="#org098361f">Tools</a></li>
|
||||
<li><a href="#orgc4aaec4">Theme/class</a></li>
|
||||
<li><a href="#orgf721c92">Beamer</a></li>
|
||||
<li><a href="#org3db1bd2">Tikz</a></li>
|
||||
<li><a href="#org6569e04">Packages</a></li>
|
||||
<li><a href="#org50e1ef0">Snippets</a>
|
||||
<li><a href="#org55e901a">Awesome LaTeX</a></li>
|
||||
<li><a href="#orgef9bd32">Learn LaTeX</a></li>
|
||||
<li><a href="#org4efc949">Tools</a></li>
|
||||
<li><a href="#org9043e21">Theme/class</a></li>
|
||||
<li><a href="#orgc77243a">Beamer</a></li>
|
||||
<li><a href="#org07d5f7a">Tikz</a></li>
|
||||
<li><a href="#orgeafcabf">Packages</a></li>
|
||||
<li><a href="#org6238db5">Snippets</a>
|
||||
<ul>
|
||||
<li><a href="#org79bb836">Make arrows with text above and bellow</a></li>
|
||||
<li><a href="#org830279f">Make arrows with text above and bellow</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3c03d57" class="outline-2">
|
||||
<h2 id="org3c03d57">Awesome LaTeX</h2>
|
||||
<div class="outline-text-2" id="text-org3c03d57">
|
||||
<div id="outline-container-org55e901a" class="outline-2">
|
||||
<h2 id="org55e901a">Awesome LaTeX</h2>
|
||||
<div class="outline-text-2" id="text-org55e901a">
|
||||
<ul class="org-ul">
|
||||
<li><a href="https://github.com/cmichi/latex-template-collection">https://github.com/cmichi/latex-template-collection</a></li>
|
||||
<li><a href="https://github.com/latex3/latex3">https://github.com/latex3/latex3</a></li>
|
||||
@ -55,18 +51,18 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3a604eb" class="outline-2">
|
||||
<h2 id="org3a604eb">Learn LaTeX</h2>
|
||||
<div class="outline-text-2" id="text-org3a604eb">
|
||||
<div id="outline-container-orgef9bd32" class="outline-2">
|
||||
<h2 id="orgef9bd32">Learn LaTeX</h2>
|
||||
<div class="outline-text-2" id="text-orgef9bd32">
|
||||
<ul class="org-ul">
|
||||
<li><a href="https://www.youtube.com/user/AlainOlivetti/playlists">https://www.youtube.com/user/AlainOlivetti/playlists</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org098361f" class="outline-2">
|
||||
<h2 id="org098361f">Tools</h2>
|
||||
<div class="outline-text-2" id="text-org098361f">
|
||||
<div id="outline-container-org4efc949" class="outline-2">
|
||||
<h2 id="org4efc949">Tools</h2>
|
||||
<div class="outline-text-2" id="text-org4efc949">
|
||||
<ul class="org-ul">
|
||||
<li><a href="https://tectonic-typesetting.github.io/en-US/">https://tectonic-typesetting.github.io/en-US/</a></li>
|
||||
<li><a href="https://github.com/gpoore/minted">https://github.com/gpoore/minted</a></li>
|
||||
@ -74,9 +70,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc4aaec4" class="outline-2">
|
||||
<h2 id="orgc4aaec4">Theme/class</h2>
|
||||
<div class="outline-text-2" id="text-orgc4aaec4">
|
||||
<div id="outline-container-org9043e21" class="outline-2">
|
||||
<h2 id="org9043e21">Theme/class</h2>
|
||||
<div class="outline-text-2" id="text-org9043e21">
|
||||
<ul class="org-ul">
|
||||
<li><a href="https://github.com/derric/cleanthesis">https://github.com/derric/cleanthesis</a></li>
|
||||
<li><a href="https://github.com/tdehaeze/clean-latex-template">https://github.com/tdehaeze/clean-latex-template</a></li>
|
||||
@ -86,9 +82,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf721c92" class="outline-2">
|
||||
<h2 id="orgf721c92">Beamer</h2>
|
||||
<div class="outline-text-2" id="text-orgf721c92">
|
||||
<div id="outline-container-orgc77243a" class="outline-2">
|
||||
<h2 id="orgc77243a">Beamer</h2>
|
||||
<div class="outline-text-2" id="text-orgc77243a">
|
||||
<ul class="org-ul">
|
||||
<li><a href="https://github.com/josephwright/beamer">https://github.com/josephwright/beamer</a></li>
|
||||
</ul>
|
||||
@ -103,9 +99,9 @@ Themes:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3db1bd2" class="outline-2">
|
||||
<h2 id="org3db1bd2">Tikz</h2>
|
||||
<div class="outline-text-2" id="text-org3db1bd2">
|
||||
<div id="outline-container-org07d5f7a" class="outline-2">
|
||||
<h2 id="org07d5f7a">Tikz</h2>
|
||||
<div class="outline-text-2" id="text-org07d5f7a">
|
||||
<ul class="org-ul">
|
||||
<li><a href="https://github.com/walmes/Tikz">https://github.com/walmes/Tikz</a></li>
|
||||
<li><a href="https://github.com/xiaohanyu/awesome-tikz">https://github.com/xiaohanyu/awesome-tikz</a></li>
|
||||
@ -117,27 +113,27 @@ Themes:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6569e04" class="outline-2">
|
||||
<h2 id="org6569e04">Packages</h2>
|
||||
<div class="outline-text-2" id="text-org6569e04">
|
||||
<div id="outline-container-orgeafcabf" class="outline-2">
|
||||
<h2 id="orgeafcabf">Packages</h2>
|
||||
<div class="outline-text-2" id="text-orgeafcabf">
|
||||
<ul class="org-ul">
|
||||
<li><a href="https://github.com/T-F-S/tcolorbox">https://github.com/T-F-S/tcolorbox</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org50e1ef0" class="outline-2">
|
||||
<h2 id="org50e1ef0">Snippets</h2>
|
||||
<div class="outline-text-2" id="text-org50e1ef0">
|
||||
<div id="outline-container-org6238db5" class="outline-2">
|
||||
<h2 id="org6238db5">Snippets</h2>
|
||||
<div class="outline-text-2" id="text-org6238db5">
|
||||
</div>
|
||||
<div id="outline-container-org79bb836" class="outline-3">
|
||||
<h3 id="org79bb836">Make arrows with text above and bellow</h3>
|
||||
<div id="outline-container-org830279f" class="outline-3">
|
||||
<h3 id="org830279f">Make arrows with text above and bellow</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-11-03 mar. 16:48</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:09</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
700
docs/mail.html
700
docs/mail.html
File diff suppressed because it is too large
Load Diff
140
docs/matlab.html
140
docs/matlab.html
@ -3,17 +3,13 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-11-03 mar. 16:26 -->
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Matlab Configuration</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -26,36 +22,36 @@
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org157998a">Startup</a>
|
||||
<li><a href="#orga81f527">Startup</a>
|
||||
<ul>
|
||||
<li><a href="#orgf6d1f33">Setup LaTeX as a default interpreter</a></li>
|
||||
<li><a href="#org4d6a4e5">Default Line Width</a></li>
|
||||
<li><a href="#org14081cd">Default grids on all axis</a></li>
|
||||
<li><a href="#org3406bd4">Default Font Size</a></li>
|
||||
<li><a href="#org6451de0">Default Fonts</a></li>
|
||||
<li><a href="#orgad9e350">Make figures into a Box</a></li>
|
||||
<li><a href="#org9a40d31">Default Colors</a></li>
|
||||
<li><a href="#org64d60de">Default Plot Colors</a></li>
|
||||
<li><a href="#org27ce6db">Figure paper and window style</a></li>
|
||||
<li><a href="#orgd711b41">Set the display format</a></li>
|
||||
<li><a href="#orga60f640">Home Path</a></li>
|
||||
<li><a href="#org83d6337">Add to path</a></li>
|
||||
<li><a href="#orgbc34538">Clear</a></li>
|
||||
<li><a href="#orgadff39b">Setup LaTeX as a default interpreter</a></li>
|
||||
<li><a href="#orga7cc243">Default Line Width</a></li>
|
||||
<li><a href="#org9bcf5b6">Default grids on all axis</a></li>
|
||||
<li><a href="#orgcda5566">Default Font Size</a></li>
|
||||
<li><a href="#org0a7bfe6">Default Fonts</a></li>
|
||||
<li><a href="#orgced64b8">Make figures into a Box</a></li>
|
||||
<li><a href="#org731843c">Default Colors</a></li>
|
||||
<li><a href="#orgc91b474">Default Plot Colors</a></li>
|
||||
<li><a href="#orgc0980a1">Figure paper and window style</a></li>
|
||||
<li><a href="#org7ed9ec6">Set the display format</a></li>
|
||||
<li><a href="#orgafda72c">Home Path</a></li>
|
||||
<li><a href="#orgfcd649d">Add to path</a></li>
|
||||
<li><a href="#org1b5f37b">Clear</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org20ac1e5">Setup</a></li>
|
||||
<li><a href="#orgfcee066">Setup</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org157998a" class="outline-2">
|
||||
<h2 id="org157998a">Startup</h2>
|
||||
<div class="outline-text-2" id="text-org157998a">
|
||||
<div id="outline-container-orga81f527" class="outline-2">
|
||||
<h2 id="orga81f527">Startup</h2>
|
||||
<div class="outline-text-2" id="text-orga81f527">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf6d1f33" class="outline-3">
|
||||
<h3 id="orgf6d1f33">Setup LaTeX as a default interpreter</h3>
|
||||
<div class="outline-text-3" id="text-orgf6d1f33">
|
||||
<div id="outline-container-orgadff39b" class="outline-3">
|
||||
<h3 id="orgadff39b">Setup LaTeX as a default interpreter</h3>
|
||||
<div class="outline-text-3" id="text-orgadff39b">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-matlab"><span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultTextInterpreter'</span>, <span class="org-string">'LaTeX'</span>);
|
||||
<span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesTickLabelInterpreter'</span>, <span class="org-string">'LaTeX'</span>);
|
||||
@ -66,9 +62,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4d6a4e5" class="outline-3">
|
||||
<h3 id="org4d6a4e5">Default Line Width</h3>
|
||||
<div class="outline-text-3" id="text-org4d6a4e5">
|
||||
<div id="outline-container-orga7cc243" class="outline-3">
|
||||
<h3 id="orga7cc243">Default Line Width</h3>
|
||||
<div class="outline-text-3" id="text-orga7cc243">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-matlab"><span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultLineLineWidth'</span>, 1.5);
|
||||
<span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesLineWidth'</span>, 0.5);
|
||||
@ -77,9 +73,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org14081cd" class="outline-3">
|
||||
<h3 id="org14081cd">Default grids on all axis</h3>
|
||||
<div class="outline-text-3" id="text-org14081cd">
|
||||
<div id="outline-container-org9bcf5b6" class="outline-3">
|
||||
<h3 id="org9bcf5b6">Default grids on all axis</h3>
|
||||
<div class="outline-text-3" id="text-org9bcf5b6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-matlab"><span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesXGrid'</span>,<span class="org-string">'on'</span>);
|
||||
<span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesYGrid'</span>,<span class="org-string">'on'</span>);
|
||||
@ -89,9 +85,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3406bd4" class="outline-3">
|
||||
<h3 id="org3406bd4">Default Font Size</h3>
|
||||
<div class="outline-text-3" id="text-org3406bd4">
|
||||
<div id="outline-container-orgcda5566" class="outline-3">
|
||||
<h3 id="orgcda5566">Default Font Size</h3>
|
||||
<div class="outline-text-3" id="text-orgcda5566">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-matlab"><span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultTextFontUnits'</span>, <span class="org-string">'points'</span>);
|
||||
<span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultTextFontSize'</span>, 10);
|
||||
@ -103,9 +99,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6451de0" class="outline-3">
|
||||
<h3 id="org6451de0">Default Fonts</h3>
|
||||
<div class="outline-text-3" id="text-org6451de0">
|
||||
<div id="outline-container-org0a7bfe6" class="outline-3">
|
||||
<h3 id="org0a7bfe6">Default Fonts</h3>
|
||||
<div class="outline-text-3" id="text-org0a7bfe6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-matlab"><span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesFontName'</span>, <span class="org-string">'Helvetica'</span>);
|
||||
<span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultTextFontName'</span>, <span class="org-string">'Helvetica'</span>);
|
||||
@ -114,9 +110,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgad9e350" class="outline-3">
|
||||
<h3 id="orgad9e350">Make figures into a Box</h3>
|
||||
<div class="outline-text-3" id="text-orgad9e350">
|
||||
<div id="outline-container-orgced64b8" class="outline-3">
|
||||
<h3 id="orgced64b8">Make figures into a Box</h3>
|
||||
<div class="outline-text-3" id="text-orgced64b8">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-matlab"><span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesBox'</span>, <span class="org-string">'on'</span>);
|
||||
</pre>
|
||||
@ -124,9 +120,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9a40d31" class="outline-3">
|
||||
<h3 id="org9a40d31">Default Colors</h3>
|
||||
<div class="outline-text-3" id="text-org9a40d31">
|
||||
<div id="outline-container-org731843c" class="outline-3">
|
||||
<h3 id="org731843c">Default Colors</h3>
|
||||
<div class="outline-text-3" id="text-org731843c">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-matlab"><span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesColor'</span>, <span class="org-string">'w'</span>);
|
||||
<span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesXColor'</span>, <span class="org-string">'k'</span>);
|
||||
@ -138,9 +134,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org64d60de" class="outline-3">
|
||||
<h3 id="org64d60de">Default Plot Colors</h3>
|
||||
<div class="outline-text-3" id="text-org64d60de">
|
||||
<div id="outline-container-orgc91b474" class="outline-3">
|
||||
<h3 id="orgc91b474">Default Plot Colors</h3>
|
||||
<div class="outline-text-3" id="text-orgc91b474">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-matlab">c1 = [ 0 0.4470 0.7410]; <span class="org-comment">% Blue</span>
|
||||
c2 = [0.8500 0.3250 0.0980]; <span class="org-comment">% Orange</span>
|
||||
@ -156,9 +152,9 @@ c7 = [0.6350 0.0780 0.1840]; <span class="org-comment">% Red</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org27ce6db" class="outline-3">
|
||||
<h3 id="org27ce6db">Figure paper and window style</h3>
|
||||
<div class="outline-text-3" id="text-org27ce6db">
|
||||
<div id="outline-container-orgc0980a1" class="outline-3">
|
||||
<h3 id="orgc0980a1">Figure paper and window style</h3>
|
||||
<div class="outline-text-3" id="text-orgc0980a1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-matlab"><span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultFigurePaperType'</span>, <span class="org-string">'A4'</span>);
|
||||
<span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultFigureWindowStyle'</span>, <span class="org-string">'normal'</span>);
|
||||
@ -167,9 +163,9 @@ c7 = [0.6350 0.0780 0.1840]; <span class="org-comment">% Red</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd711b41" class="outline-3">
|
||||
<h3 id="orgd711b41">Set the display format</h3>
|
||||
<div class="outline-text-3" id="text-orgd711b41">
|
||||
<div id="outline-container-org7ed9ec6" class="outline-3">
|
||||
<h3 id="org7ed9ec6">Set the display format</h3>
|
||||
<div class="outline-text-3" id="text-org7ed9ec6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-matlab">format compact;
|
||||
format long g;
|
||||
@ -178,9 +174,9 @@ format long g;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga60f640" class="outline-3">
|
||||
<h3 id="orga60f640">Home Path</h3>
|
||||
<div class="outline-text-3" id="text-orga60f640">
|
||||
<div id="outline-container-orgafda72c" class="outline-3">
|
||||
<h3 id="orgafda72c">Home Path</h3>
|
||||
<div class="outline-text-3" id="text-orgafda72c">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-matlab">toolboxes_path = <span class="org-string">'~/Cloud/thesis/matlab/toolboxes/'</span>;
|
||||
</pre>
|
||||
@ -188,9 +184,9 @@ format long g;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org83d6337" class="outline-3">
|
||||
<h3 id="org83d6337">Add to path</h3>
|
||||
<div class="outline-text-3" id="text-org83d6337">
|
||||
<div id="outline-container-orgfcd649d" class="outline-3">
|
||||
<h3 id="orgfcd649d">Add to path</h3>
|
||||
<div class="outline-text-3" id="text-orgfcd649d">
|
||||
<p>
|
||||
Provides <code>vecfig3</code> for FRF fitting (<a href="https://www.sintef.no/projectweb/vectorfitting/downloads/">link</a>).
|
||||
</p>
|
||||
@ -270,12 +266,20 @@ Toolbox to work with Finite Element Models (<a href="https://github.com/tdehaeze
|
||||
<pre class="src src-matlab">addpath([toolboxes_path <span class="org-string">'fem_toolbox/src'</span>])
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
Toolbox to work with fractional order models (<a href="https://github.com/extall/fomcon-matlab">link</a>).
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-matlab">addpath(genpath([toolboxes_path <span class="org-string">'fomcon-matlab'</span>]))
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbc34538" class="outline-3">
|
||||
<h3 id="orgbc34538">Clear</h3>
|
||||
<div class="outline-text-3" id="text-orgbc34538">
|
||||
<div id="outline-container-org1b5f37b" class="outline-3">
|
||||
<h3 id="org1b5f37b">Clear</h3>
|
||||
<div class="outline-text-3" id="text-org1b5f37b">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-matlab">clear;
|
||||
</pre>
|
||||
@ -284,9 +288,9 @@ Toolbox to work with Finite Element Models (<a href="https://github.com/tdehaeze
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org20ac1e5" class="outline-2">
|
||||
<h2 id="org20ac1e5">Setup</h2>
|
||||
<div class="outline-text-2" id="text-org20ac1e5">
|
||||
<div id="outline-container-orgfcee066" class="outline-2">
|
||||
<h2 id="orgfcee066">Setup</h2>
|
||||
<div class="outline-text-2" id="text-orgfcee066">
|
||||
<p>
|
||||
This script should be run once after Matlab is installed.
|
||||
</p>
|
||||
@ -303,7 +307,7 @@ Import a nice color scheme.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-11-03 mar. 16:26</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:09</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
188
docs/music.html
188
docs/music.html
@ -3,17 +3,13 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-11-03 mar. 16:26 -->
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Music/Sound Configuration</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -26,23 +22,23 @@
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org1984a25">Pavu Control</a></li>
|
||||
<li><a href="#orga2274a9">NCMPCPP</a>
|
||||
<li><a href="#pavucontrol"><code>pavucontrol</code> - Volume Control</a></li>
|
||||
<li><a href="#mopidy"><code>mopidy</code> - Music Server</a></li>
|
||||
<li><a href="#ncmpcpp"><code>ncmpcpp</code> - Ncurses based MPD client</a>
|
||||
<ul>
|
||||
<li><a href="#orgc496501">Config</a></li>
|
||||
<li><a href="#orgef62173">Bindings</a></li>
|
||||
<li><a href="#orga510c77">Config</a></li>
|
||||
<li><a href="#orga43b7ae">Bindings</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org4ad4c04">Beets</a></li>
|
||||
<li><a href="#org887303a">Mopidy</a></li>
|
||||
<li><a href="#org6b37adb">Radio with curseradio</a></li>
|
||||
<li><a href="#beets"><code>beets</code> - Media library management</a></li>
|
||||
<li><a href="#curseradio"><code>curseradio</code> - Radio with curseradio</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1984a25" class="outline-2">
|
||||
<h2 id="org1984a25">Pavu Control</h2>
|
||||
<div class="outline-text-2" id="text-org1984a25">
|
||||
<div id="outline-container-pavucontrol" class="outline-2">
|
||||
<h2 id="pavucontrol"><code>pavucontrol</code> - Volume Control</h2>
|
||||
<div class="outline-text-2" id="text-pavucontrol">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">window</span>]
|
||||
<span class="org-variable-name">width</span>=<span class="org-highlight-numbers-number">500</span>
|
||||
@ -57,18 +53,68 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga2274a9" class="outline-2">
|
||||
<h2 id="orga2274a9">NCMPCPP</h2>
|
||||
<div class="outline-text-2" id="text-orga2274a9">
|
||||
<div id="outline-container-mopidy" class="outline-2">
|
||||
<h2 id="mopidy"><code>mopidy</code> - Music Server</h2>
|
||||
<div class="outline-text-2" id="text-mopidy">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">spotify</span>]
|
||||
<span class="org-variable-name">username</span> = dehaeze.thomas@gmail.com
|
||||
<span class="org-variable-name">password</span> = <<get-password(passname=<span class="org-string">"spotify.com/dehaeze.thomas@gmail.com"</span>)>>
|
||||
<span class="org-variable-name">client_id</span> = 9dd02534-f038-46d8-946e-bfe72498204e
|
||||
<span class="org-variable-name">client_secret</span> = <<get-password(passname=<span class="org-string">"spotify/client_secret"</span>)>>
|
||||
<span class="org-variable-name">bitrate</span> = <span class="org-highlight-numbers-number">320</span>
|
||||
|
||||
[<span class="org-type">mpd</span>]
|
||||
<span class="org-variable-name">enabled</span> = true
|
||||
<span class="org-variable-name">hostname</span> = 127.0.0.1
|
||||
<span class="org-variable-name">port</span> = <span class="org-highlight-numbers-number">6600</span>
|
||||
<span class="org-variable-name">password</span> =
|
||||
<span class="org-variable-name">max_connections</span> = <span class="org-highlight-numbers-number">20</span>
|
||||
<span class="org-variable-name">connection_timeout</span> = <span class="org-highlight-numbers-number">60</span>
|
||||
<span class="org-variable-name">zeroconf</span> = Mopidy MPD server on $hostname
|
||||
<span class="org-variable-name">command_blacklist</span> = listall,listallinfo
|
||||
<span class="org-variable-name">default_playlist_scheme</span> = m3u
|
||||
|
||||
[<span class="org-type">jellyfin</span>]
|
||||
<span class="org-variable-name">hostname</span> = https://jellyfin.tdehaeze.xyz/
|
||||
<span class="org-variable-name">username</span> = tdehaeze
|
||||
<span class="org-variable-name">password</span> = <<get-password(passname=<span class="org-string">"music.tdehaeze.xyz/tdehaeze"</span>)>>
|
||||
<span class="org-variable-name">libraries</span> = Music
|
||||
<span class="org-variable-name">albumartistsort</span> = True
|
||||
<span class="org-variable-name">album_format</span> = {ProductionYear} - {Name}
|
||||
|
||||
[<span class="org-type">file</span>]
|
||||
<span class="org-variable-name">enabled</span> = true
|
||||
<span class="org-variable-name">media_dirs</span> = /home/thomas/Music
|
||||
<span class="org-variable-name">excluded_file_extensions</span> =
|
||||
.db
|
||||
.directory
|
||||
.html
|
||||
.jpeg
|
||||
.jpg
|
||||
.log
|
||||
.nfo
|
||||
.pdf
|
||||
.png
|
||||
.txt
|
||||
.zip
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-ncmpcpp" class="outline-2">
|
||||
<h2 id="ncmpcpp"><code>ncmpcpp</code> - Ncurses based MPD client</h2>
|
||||
<div class="outline-text-2" id="text-ncmpcpp">
|
||||
<p>
|
||||
<a href="https://rybczak.net/ncmpcpp/">https://rybczak.net/ncmpcpp/</a>
|
||||
Cheatsheet: <a href="https://pkgbuild.com/~jelle/ncmpcpp/">https://pkgbuild.com/~jelle/ncmpcpp/</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc496501" class="outline-3">
|
||||
<h3 id="orgc496501">Config</h3>
|
||||
<div class="outline-text-3" id="text-orgc496501">
|
||||
<div id="outline-container-orga510c77" class="outline-3">
|
||||
<h3 id="orga510c77">Config</h3>
|
||||
<div class="outline-text-3" id="text-orga510c77">
|
||||
<p>
|
||||
Configuration directory.
|
||||
</p>
|
||||
@ -94,12 +140,38 @@ Notification of song change.
|
||||
<pre class="src src-conf"><span class="org-variable-name">execute_on_song_change</span> = dunstify --replace=<span class="org-highlight-numbers-number">19845</span> <span class="org-string">"Now Playing ♫"</span> <span class="org-string">"$(mpc current)"</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
Better user interface
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-variable-name">user_interface</span> = <span class="org-string">"alternative"</span>
|
||||
<span class="org-variable-name">playlist_editor_display_mode</span> = <span class="org-string">"columns"</span>
|
||||
<span class="org-variable-name">search_engine_display_mode</span> = <span class="org-string">"columns"</span>
|
||||
<span class="org-variable-name">browser_display_mode</span> = <span class="org-string">"columns"</span>
|
||||
<span class="org-variable-name">playlist_display_mode</span> = <span class="org-string">"columns"</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
Sorting by tracking number and then title
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-variable-name">browser_sort_mode</span> = <span class="org-string">"format"</span>
|
||||
<span class="org-variable-name">browser_sort_format</span> = <span class="org-string">'{%n - %t}|{%t}'</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-variable-name">ask_before_clearing_playlists</span> = <span class="org-string">"no"</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgef62173" class="outline-3">
|
||||
<h3 id="orgef62173">Bindings</h3>
|
||||
<div class="outline-text-3" id="text-orgef62173">
|
||||
<div id="outline-container-orga43b7ae" class="outline-3">
|
||||
<h3 id="orga43b7ae">Bindings</h3>
|
||||
<div class="outline-text-3" id="text-orga43b7ae">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">def_key <span class="org-string">"q"</span>
|
||||
run_external_command <span class="org-string">"if [ $TMUX ]; then tmux detach; fi"</span>
|
||||
@ -144,9 +216,9 @@ def_key <span class="org-string">"-"</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4ad4c04" class="outline-2">
|
||||
<h2 id="org4ad4c04">Beets</h2>
|
||||
<div class="outline-text-2" id="text-org4ad4c04">
|
||||
<div id="outline-container-beets" class="outline-2">
|
||||
<h2 id="beets"><code>beets</code> - Media library management</h2>
|
||||
<div class="outline-text-2" id="text-beets">
|
||||
<p>
|
||||
<a href="http://beets.io/">http://beets.io/</a>
|
||||
</p>
|
||||
@ -165,59 +237,9 @@ plugins: fromfilename discogs
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org887303a" class="outline-2">
|
||||
<h2 id="org887303a">Mopidy</h2>
|
||||
<div class="outline-text-2" id="text-org887303a">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">spotify</span>]
|
||||
<span class="org-variable-name">username</span> = dehaeze.thomas@gmail.com
|
||||
<span class="org-variable-name">password</span> = <<get-password(passname=<span class="org-string">"spotify.com/dehaeze.thomas@gmail.com"</span>)>>
|
||||
<span class="org-variable-name">client_id</span> = 9dd02534-f038-46d8-946e-bfe72498204e
|
||||
<span class="org-variable-name">client_secret</span> = <<get-password(passname=<span class="org-string">"spotify/client_secret"</span>)>>
|
||||
<span class="org-variable-name">bitrate</span> = <span class="org-highlight-numbers-number">320</span>
|
||||
|
||||
[<span class="org-type">mpd</span>]
|
||||
<span class="org-variable-name">enabled</span> = true
|
||||
<span class="org-variable-name">hostname</span> = 127.0.0.1
|
||||
<span class="org-variable-name">port</span> = <span class="org-highlight-numbers-number">6600</span>
|
||||
<span class="org-variable-name">password</span> =
|
||||
<span class="org-variable-name">max_connections</span> = <span class="org-highlight-numbers-number">20</span>
|
||||
<span class="org-variable-name">connection_timeout</span> = <span class="org-highlight-numbers-number">60</span>
|
||||
<span class="org-variable-name">zeroconf</span> = Mopidy MPD server on $hostname
|
||||
<span class="org-variable-name">command_blacklist</span> = listall,listallinfo
|
||||
<span class="org-variable-name">default_playlist_scheme</span> = m3u
|
||||
|
||||
[<span class="org-type">jellyfin</span>]
|
||||
<span class="org-variable-name">hostname</span> = https://jellyfin.tdehaeze.xyz/
|
||||
<span class="org-variable-name">username</span> = tdehaeze
|
||||
<span class="org-variable-name">password</span> = <<get-password(passname=<span class="org-string">"music.tdehaeze.xyz/tdehaeze"</span>)>>
|
||||
<span class="org-variable-name">libraries</span> = Music
|
||||
<span class="org-variable-name">albumartistsort</span> = True
|
||||
<span class="org-variable-name">album_format</span> = {ProductionYear} - {Name}
|
||||
|
||||
[<span class="org-type">file</span>]
|
||||
<span class="org-variable-name">enabled</span> = true
|
||||
<span class="org-variable-name">media_dirs</span> = /home/thomas/Music
|
||||
<span class="org-variable-name">excluded_file_extensions</span> =
|
||||
.db
|
||||
.directory
|
||||
.html
|
||||
.jpeg
|
||||
.jpg
|
||||
.log
|
||||
.nfo
|
||||
.pdf
|
||||
.png
|
||||
.txt
|
||||
.zip
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6b37adb" class="outline-2">
|
||||
<h2 id="org6b37adb">Radio with curseradio</h2>
|
||||
<div class="outline-text-2" id="text-org6b37adb">
|
||||
<div id="outline-container-curseradio" class="outline-2">
|
||||
<h2 id="curseradio"><code>curseradio</code> - Radio with curseradio</h2>
|
||||
<div class="outline-text-2" id="text-curseradio">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">opml</span>]
|
||||
<span class="org-variable-name">root</span> = http://opml.radiotime.com/
|
||||
@ -246,7 +268,7 @@ plugins: fromfilename discogs
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-11-03 mar. 16:26</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:09</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -3,17 +3,13 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-11-03 mar. 16:26 -->
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Newsboat Configuration</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -26,55 +22,55 @@
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org478f10b">Config</a>
|
||||
<li><a href="#org9f60482">Config</a>
|
||||
<ul>
|
||||
<li><a href="#orgc984740">Reload configuration</a></li>
|
||||
<li><a href="#org0ec3f69">Basic configuration</a></li>
|
||||
<li><a href="#orgc14210b">Queries</a></li>
|
||||
<li><a href="#org72757a8">Filters</a></li>
|
||||
<li><a href="#orga70d8cc">Notifications</a>
|
||||
<li><a href="#org15af5e2">Reload configuration</a></li>
|
||||
<li><a href="#org0933803">Basic configuration</a></li>
|
||||
<li><a href="#orgdae59c9">Queries</a></li>
|
||||
<li><a href="#org78e6566">Filters</a></li>
|
||||
<li><a href="#orga4e2295">Notifications</a>
|
||||
<ul>
|
||||
<li><a href="#orgc06be83">Notification Script</a></li>
|
||||
<li><a href="#org1a70b02">Notification Script</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgfe2fbd1">Bindings</a></li>
|
||||
<li><a href="#org0719b73">Bookmarking</a>
|
||||
<li><a href="#orgde1cb8f">Bindings</a></li>
|
||||
<li><a href="#org072313d">Bookmarking</a>
|
||||
<ul>
|
||||
<li><a href="#org6578584">Buku Scripts</a></li>
|
||||
<li><a href="#org3f3350e">Buku Scripts</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7887446">Macros - Starts with , key</a></li>
|
||||
<li><a href="#org469467d">hide articles matching</a></li>
|
||||
<li><a href="#orgbf81af1">Feedlist and Article Format</a></li>
|
||||
<li><a href="#orgbf90580">Color Scheme</a></li>
|
||||
<li><a href="#orgce6d980">Macros - Starts with , key</a></li>
|
||||
<li><a href="#orgc09c767">hide articles matching</a></li>
|
||||
<li><a href="#org3bfe48f">Feedlist and Article Format</a></li>
|
||||
<li><a href="#org11be094">Color Scheme</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org387f622">Colors</a></li>
|
||||
<li><a href="#orgd487b2a">URLS</a>
|
||||
<li><a href="#org93d44b0">Colors</a></li>
|
||||
<li><a href="#org59167cc">URLS</a>
|
||||
<ul>
|
||||
<li><a href="#org8b49d38">Queries</a></li>
|
||||
<li><a href="#org45abfcc">Newsfeeds</a>
|
||||
<li><a href="#org5e10a81">Queries</a></li>
|
||||
<li><a href="#org4f78bf6">Newsfeeds</a>
|
||||
<ul>
|
||||
<li><a href="#org805a48a">Matlab and Control</a></li>
|
||||
<li><a href="#org5f8d4f1">Audio and Electronics</a></li>
|
||||
<li><a href="#orgd0563c1">Science</a></li>
|
||||
<li><a href="#orge3477b8">Linux, Emacs and Computer Science</a></li>
|
||||
<li><a href="#org65f538d">Matlab and Control</a></li>
|
||||
<li><a href="#orga44173e">Audio and Electronics</a></li>
|
||||
<li><a href="#org891f073">Science</a></li>
|
||||
<li><a href="#orgc4d4a9a">Linux, Emacs and Computer Science</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7904544">Youtube</a>
|
||||
<li><a href="#orgf0d875f">Youtube</a>
|
||||
<ul>
|
||||
<li><a href="#orgcf96296">Matlab and Control</a></li>
|
||||
<li><a href="#orgefd2c7d">Audio and Electronics</a></li>
|
||||
<li><a href="#org2438845">Linux, Emacs and Computer Science</a></li>
|
||||
<li><a href="#orge2c8c59">3D-Printing and DIY</a></li>
|
||||
<li><a href="#orgbea3691">Engineering</a></li>
|
||||
<li><a href="#org426724f">Interesting - General</a></li>
|
||||
<li><a href="#orga5f3663">Science</a></li>
|
||||
<li><a href="#orgbb9674d">Keyboard</a></li>
|
||||
<li><a href="#org69e71c9">Music</a></li>
|
||||
<li><a href="#org51994a1">Space</a></li>
|
||||
<li><a href="#orgd65a3b5">Engineering</a></li>
|
||||
<li><a href="#org990625b">Random - Fun - Others</a></li>
|
||||
<li><a href="#orgeac6141">Matlab and Control</a></li>
|
||||
<li><a href="#org6f1ade4">Audio and Electronics</a></li>
|
||||
<li><a href="#org413eed9">Linux, Emacs and Computer Science</a></li>
|
||||
<li><a href="#org91da714">3D-Printing and DIY</a></li>
|
||||
<li><a href="#org14e89b6">Engineering</a></li>
|
||||
<li><a href="#org6816bbf">Interesting - General</a></li>
|
||||
<li><a href="#org3fb022a">Science</a></li>
|
||||
<li><a href="#org5f8cf93">Keyboard</a></li>
|
||||
<li><a href="#org09e27a9">Music</a></li>
|
||||
<li><a href="#org3943d30">Space</a></li>
|
||||
<li><a href="#orgcc26d24">Engineering</a></li>
|
||||
<li><a href="#orgb54aeea">Random - Fun - Others</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -87,14 +83,14 @@
|
||||
<a href="https://newsboat.org/releases/2.12/docs/newsboat.html">https://newsboat.org/releases/2.12/docs/newsboat.html</a>
|
||||
</p>
|
||||
|
||||
<div id="outline-container-org478f10b" class="outline-2">
|
||||
<h2 id="org478f10b">Config</h2>
|
||||
<div class="outline-text-2" id="text-org478f10b">
|
||||
<div id="outline-container-org9f60482" class="outline-2">
|
||||
<h2 id="org9f60482">Config</h2>
|
||||
<div class="outline-text-2" id="text-org9f60482">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc984740" class="outline-3">
|
||||
<h3 id="orgc984740">Reload configuration</h3>
|
||||
<div class="outline-text-3" id="text-orgc984740">
|
||||
<div id="outline-container-org15af5e2" class="outline-3">
|
||||
<h3 id="org15af5e2">Reload configuration</h3>
|
||||
<div class="outline-text-3" id="text-org15af5e2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">All feeds will be automatically reloaded after a certain time has passed</span>
|
||||
auto-reload yes
|
||||
@ -112,9 +108,9 @@ suppress-first-reload yes
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0ec3f69" class="outline-3">
|
||||
<h3 id="org0ec3f69">Basic configuration</h3>
|
||||
<div class="outline-text-3" id="text-org0ec3f69">
|
||||
<div id="outline-container-org0933803" class="outline-3">
|
||||
<h3 id="org0933803">Basic configuration</h3>
|
||||
<div class="outline-text-3" id="text-org0933803">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">confirm-exit no
|
||||
|
||||
@ -135,9 +131,9 @@ player <span class="org-string">"mpv"</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc14210b" class="outline-3">
|
||||
<h3 id="orgc14210b">Queries</h3>
|
||||
<div class="outline-text-3" id="text-orgc14210b">
|
||||
<div id="outline-container-orgdae59c9" class="outline-3">
|
||||
<h3 id="orgdae59c9">Queries</h3>
|
||||
<div class="outline-text-3" id="text-orgdae59c9">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">prepopulate-query-feeds yes
|
||||
</pre>
|
||||
@ -145,9 +141,9 @@ player <span class="org-string">"mpv"</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org72757a8" class="outline-3">
|
||||
<h3 id="org72757a8">Filters</h3>
|
||||
<div class="outline-text-3" id="text-org72757a8">
|
||||
<div id="outline-container-org78e6566" class="outline-3">
|
||||
<h3 id="org78e6566">Filters</h3>
|
||||
<div class="outline-text-3" id="text-org78e6566">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">define-filter <span class="org-string">"Unread Articles"</span> <span class="org-string">"unread = \"yes\""</span>
|
||||
</pre>
|
||||
@ -155,9 +151,9 @@ player <span class="org-string">"mpv"</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga70d8cc" class="outline-3">
|
||||
<h3 id="orga70d8cc">Notifications</h3>
|
||||
<div class="outline-text-3" id="text-orga70d8cc">
|
||||
<div id="outline-container-orga4e2295" class="outline-3">
|
||||
<h3 id="orga4e2295">Notifications</h3>
|
||||
<div class="outline-text-3" id="text-orga4e2295">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">notify-format <span class="org-string">"%n unread articles"</span>
|
||||
notify-program ~/.config/newsboat/scripts/newsboat-notify.sh
|
||||
@ -166,9 +162,9 @@ notify-always no
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc06be83" class="outline-4">
|
||||
<h4 id="orgc06be83">Notification Script</h4>
|
||||
<div class="outline-text-4" id="text-orgc06be83">
|
||||
<div id="outline-container-org1a70b02" class="outline-4">
|
||||
<h4 id="org1a70b02">Notification Script</h4>
|
||||
<div class="outline-text-4" id="text-org1a70b02">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">dunstify --replace=<span class="org-highlight-numbers-number">38492</span> <span class="org-string">"Newsboat "</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span>
|
||||
</pre>
|
||||
@ -177,9 +173,9 @@ notify-always no
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfe2fbd1" class="outline-3">
|
||||
<h3 id="orgfe2fbd1">Bindings</h3>
|
||||
<div class="outline-text-3" id="text-orgfe2fbd1">
|
||||
<div id="outline-container-orgde1cb8f" class="outline-3">
|
||||
<h3 id="orgde1cb8f">Bindings</h3>
|
||||
<div class="outline-text-3" id="text-orgde1cb8f">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">bind-key j down
|
||||
bind-key k up
|
||||
@ -217,9 +213,9 @@ bind-key R reload-all <span class="org-comment-delimiter"># </span><span class="
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0719b73" class="outline-3">
|
||||
<h3 id="org0719b73">Bookmarking</h3>
|
||||
<div class="outline-text-3" id="text-org0719b73">
|
||||
<div id="outline-container-org072313d" class="outline-3">
|
||||
<h3 id="org072313d">Bookmarking</h3>
|
||||
<div class="outline-text-3" id="text-org072313d">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">bookmark-autopilot no
|
||||
bookmark-cmd <span class="org-string">"~/.config/newsboat/scripts/buku-add.sh"</span>
|
||||
@ -228,9 +224,9 @@ bookmark-interactive no
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6578584" class="outline-4">
|
||||
<h4 id="org6578584">Buku Scripts</h4>
|
||||
<div class="outline-text-4" id="text-org6578584">
|
||||
<div id="outline-container-org3f3350e" class="outline-4">
|
||||
<h4 id="org3f3350e">Buku Scripts</h4>
|
||||
<div class="outline-text-4" id="text-org3f3350e">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">buku --add <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> --title <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">2</span></span><span class="org-string">"</span> --comment <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">3</span></span><span class="org-string">"</span> && <span class="org-sh-escaped-newline">\</span>
|
||||
dunstify <span class="org-string">"Buku"</span> <span class="org-string">"Bookmark Added"</span> && <span class="org-sh-escaped-newline">\</span>
|
||||
@ -241,9 +237,9 @@ bookmark-interactive no
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7887446" class="outline-3">
|
||||
<h3 id="org7887446">Macros - Starts with , key</h3>
|
||||
<div class="outline-text-3" id="text-org7887446">
|
||||
<div id="outline-container-orgce6d980" class="outline-3">
|
||||
<h3 id="orgce6d980">Macros - Starts with , key</h3>
|
||||
<div class="outline-text-3" id="text-orgce6d980">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Default Browser</span>
|
||||
browser linkhandler
|
||||
@ -273,9 +269,9 @@ macro q set browser <span class="org-string">"tmux detach"</span> ; open-in-brow
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org469467d" class="outline-3">
|
||||
<h3 id="org469467d">hide articles matching</h3>
|
||||
<div class="outline-text-3" id="text-org469467d">
|
||||
<div id="outline-container-orgc09c767" class="outline-3">
|
||||
<h3 id="orgc09c767">hide articles matching</h3>
|
||||
<div class="outline-text-3" id="text-orgc09c767">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">ignore-article <span class="org-string">"*"</span> <span class="org-string">"title =~ \"Sponsor\""</span>
|
||||
ignore-article <span class="org-string">"*"</span> <span class="org-string">"title =~ \"Advertisement\""</span>
|
||||
@ -285,9 +281,9 @@ ignore-mode <span class="org-string">"display"</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbf81af1" class="outline-3">
|
||||
<h3 id="orgbf81af1">Feedlist and Article Format</h3>
|
||||
<div class="outline-text-3" id="text-orgbf81af1">
|
||||
<div id="outline-container-org3bfe48f" class="outline-3">
|
||||
<h3 id="org3bfe48f">Feedlist and Article Format</h3>
|
||||
<div class="outline-text-3" id="text-org3bfe48f">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">feedlist-format <span class="org-string">"%4i %n %11u %t"</span>
|
||||
feedlist-title-format <span class="org-string">"N %V - Your feeds (%u unread, %t total)%?T? - tag `%T'&?"</span>
|
||||
@ -301,9 +297,9 @@ itemview-title-format <span class="org-string">"Article '%T'"</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbf90580" class="outline-3">
|
||||
<h3 id="orgbf90580">Color Scheme</h3>
|
||||
<div class="outline-text-3" id="text-orgbf90580">
|
||||
<div id="outline-container-org11be094" class="outline-3">
|
||||
<h3 id="org11be094">Color Scheme</h3>
|
||||
<div class="outline-text-3" id="text-org11be094">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">include <span class="org-string">"~/.config/newsboat/colors"</span>
|
||||
</pre>
|
||||
@ -312,9 +308,9 @@ itemview-title-format <span class="org-string">"Article '%T'"</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org387f622" class="outline-2">
|
||||
<h2 id="org387f622">Colors</h2>
|
||||
<div class="outline-text-2" id="text-org387f622">
|
||||
<div id="outline-container-org93d44b0" class="outline-2">
|
||||
<h2 id="org93d44b0">Colors</h2>
|
||||
<div class="outline-text-2" id="text-org93d44b0">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">color background default default
|
||||
color listnormal default default
|
||||
@ -333,14 +329,14 @@ highlight article <span class="org-string">"\\[image\\ [0-9]+\\]"</span> green d
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd487b2a" class="outline-2">
|
||||
<h2 id="orgd487b2a">URLS</h2>
|
||||
<div class="outline-text-2" id="text-orgd487b2a">
|
||||
<div id="outline-container-org59167cc" class="outline-2">
|
||||
<h2 id="org59167cc">URLS</h2>
|
||||
<div class="outline-text-2" id="text-org59167cc">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8b49d38" class="outline-3">
|
||||
<h3 id="org8b49d38">Queries</h3>
|
||||
<div class="outline-text-3" id="text-org8b49d38">
|
||||
<div id="outline-container-org5e10a81" class="outline-3">
|
||||
<h3 id="org5e10a81">Queries</h3>
|
||||
<div class="outline-text-3" id="text-org5e10a81">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-string">"query:Unread:unread = \"yes\""</span>
|
||||
<span class="org-string">"query:Unwatch - Youtube:unread = \"yes\" and tags # \"youtube\""</span>
|
||||
@ -352,13 +348,13 @@ highlight article <span class="org-string">"\\[image\\ [0-9]+\\]"</span> green d
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org45abfcc" class="outline-3">
|
||||
<h3 id="org45abfcc">Newsfeeds</h3>
|
||||
<div class="outline-text-3" id="text-org45abfcc">
|
||||
<div id="outline-container-org4f78bf6" class="outline-3">
|
||||
<h3 id="org4f78bf6">Newsfeeds</h3>
|
||||
<div class="outline-text-3" id="text-org4f78bf6">
|
||||
</div>
|
||||
<div id="outline-container-org805a48a" class="outline-4">
|
||||
<h4 id="org805a48a">Matlab and Control</h4>
|
||||
<div class="outline-text-4" id="text-org805a48a">
|
||||
<div id="outline-container-org65f538d" class="outline-4">
|
||||
<h4 id="org65f538d">Matlab and Control</h4>
|
||||
<div class="outline-text-4" id="text-org65f538d">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">https://undocumentedmatlab.com/feed/ <span class="org-string">"~RSS undocumentedmatlab"</span> matlab
|
||||
http://blogs.mathworks.com/seth/feed/ <span class="org-string">"~RSS Guy on Simulink"</span> matlab control
|
||||
@ -373,9 +369,9 @@ https://medium.com/feed/@mithi <span cla
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5f8d4f1" class="outline-4">
|
||||
<h4 id="org5f8d4f1">Audio and Electronics</h4>
|
||||
<div class="outline-text-4" id="text-org5f8d4f1">
|
||||
<div id="outline-container-orga44173e" class="outline-4">
|
||||
<h4 id="orga44173e">Audio and Electronics</h4>
|
||||
<div class="outline-text-4" id="text-orga44173e">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">http://jipihorn.wordpress.com/feed/ <span class="org-string">"~RSS Jipihorn's Blog"</span> electronics audio
|
||||
https://quantasylum.com/blogs/news.atom <span class="org-string">"~RSS QuantAsylum"</span> audio
|
||||
@ -385,9 +381,9 @@ https://www.scrample.xyz/index.xml <span cla
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd0563c1" class="outline-4">
|
||||
<h4 id="orgd0563c1">Science</h4>
|
||||
<div class="outline-text-4" id="text-orgd0563c1">
|
||||
<div id="outline-container-org891f073" class="outline-4">
|
||||
<h4 id="org891f073">Science</h4>
|
||||
<div class="outline-text-4" id="text-org891f073">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">http://sciencetonnante.wordpress.com/feed/ <span class="org-string">"~RSS Science étonnante"</span> science
|
||||
https://brushingupscience.com/feed/ <span class="org-string">"~RSS Brushing Up Science"</span> science
|
||||
@ -396,9 +392,9 @@ https://brushingupscience.com/feed/ <span cla
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge3477b8" class="outline-4">
|
||||
<h4 id="orge3477b8">Linux, Emacs and Computer Science</h4>
|
||||
<div class="outline-text-4" id="text-orge3477b8">
|
||||
<div id="outline-container-orgc4d4a9a" class="outline-4">
|
||||
<h4 id="orgc4d4a9a">Linux, Emacs and Computer Science</h4>
|
||||
<div class="outline-text-4" id="text-orgc4d4a9a">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">https://yiufung.net/index.xml <span class="org-string">"~RSS yiufung"</span> emacs
|
||||
https://bzg.fr/index.xml <span class="org-string">"~RSS bzg"</span> emacs
|
||||
@ -459,13 +455,13 @@ https://ag91.github.io/rss.xml <span cla
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7904544" class="outline-3">
|
||||
<h3 id="org7904544">Youtube</h3>
|
||||
<div class="outline-text-3" id="text-org7904544">
|
||||
<div id="outline-container-orgf0d875f" class="outline-3">
|
||||
<h3 id="orgf0d875f">Youtube</h3>
|
||||
<div class="outline-text-3" id="text-orgf0d875f">
|
||||
</div>
|
||||
<div id="outline-container-orgcf96296" class="outline-4">
|
||||
<h4 id="orgcf96296">Matlab and Control</h4>
|
||||
<div class="outline-text-4" id="text-orgcf96296">
|
||||
<div id="outline-container-orgeac6141" class="outline-4">
|
||||
<h4 id="orgeac6141">Matlab and Control</h4>
|
||||
<div class="outline-text-4" id="text-orgeac6141">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UCm5mt-A4w61lknZ9lCsZtBw <span class="org-string">"~YT Steve Brunton"</span> youtube control science
|
||||
<span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UCoUOaSVYkTV6W4uLvxvgiFA <span class="org-string">"~YT Nathan Kutz"</span> youtube science control
|
||||
@ -483,9 +479,9 @@ https://ag91.github.io/rss.xml <span cla
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgefd2c7d" class="outline-4">
|
||||
<h4 id="orgefd2c7d">Audio and Electronics</h4>
|
||||
<div class="outline-text-4" id="text-orgefd2c7d">
|
||||
<div id="outline-container-org6f1ade4" class="outline-4">
|
||||
<h4 id="org6f1ade4">Audio and Electronics</h4>
|
||||
<div class="outline-text-4" id="text-org6f1ade4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UCI-FgEdZQxBASsm3HNcWKxQ <span class="org-string">"~YT Red Robbo's Workshop"</span> youtube linux audio
|
||||
<span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UCtpB66XKjAtFZfZyzmC-_Cg <span class="org-string">"~YT HexiBase"</span> youtube audio
|
||||
@ -508,9 +504,9 @@ https://ag91.github.io/rss.xml <span cla
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2438845" class="outline-4">
|
||||
<h4 id="org2438845">Linux, Emacs and Computer Science</h4>
|
||||
<div class="outline-text-4" id="text-org2438845">
|
||||
<div id="outline-container-org413eed9" class="outline-4">
|
||||
<h4 id="org413eed9">Linux, Emacs and Computer Science</h4>
|
||||
<div class="outline-text-4" id="text-org413eed9">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UCNqFXwI5gNcyxt2c1zTQAKw <span class="org-string">"~YT Yisrael Dov L"</span> youtube emacs
|
||||
<span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UC2eYFnH61tmytImy1mTYvhA <span class="org-string">"~YT Luke Smith"</span> youtube linux
|
||||
@ -556,9 +552,9 @@ https://ag91.github.io/rss.xml <span cla
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge2c8c59" class="outline-4">
|
||||
<h4 id="orge2c8c59">3D-Printing and DIY</h4>
|
||||
<div class="outline-text-4" id="text-orge2c8c59">
|
||||
<div id="outline-container-org91da714" class="outline-4">
|
||||
<h4 id="org91da714">3D-Printing and DIY</h4>
|
||||
<div class="outline-text-4" id="text-org91da714">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UCGEBcDJ7QIY1LuEddDM9x9Q <span class="org-string">"~YT Oldies"</span> youtube 3d-printing
|
||||
<span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UCqdRx3JV3xRchi4_xwFJUTA <span class="org-string">"~YT 8FabLab"</span> youtube diy
|
||||
@ -579,9 +575,9 @@ https://ag91.github.io/rss.xml <span cla
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbea3691" class="outline-4">
|
||||
<h4 id="orgbea3691">Engineering</h4>
|
||||
<div class="outline-text-4" id="text-orgbea3691">
|
||||
<div id="outline-container-org14e89b6" class="outline-4">
|
||||
<h4 id="org14e89b6">Engineering</h4>
|
||||
<div class="outline-text-4" id="text-org14e89b6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">
|
||||
</pre>
|
||||
@ -589,9 +585,9 @@ https://ag91.github.io/rss.xml <span cla
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org426724f" class="outline-4">
|
||||
<h4 id="org426724f">Interesting - General</h4>
|
||||
<div class="outline-text-4" id="text-org426724f">
|
||||
<div id="outline-container-org6816bbf" class="outline-4">
|
||||
<h4 id="org6816bbf">Interesting - General</h4>
|
||||
<div class="outline-text-4" id="text-org6816bbf">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UC5eOLQO5VUEFJukNg9cl5jg <span class="org-string">"~YT Histoire Brève"</span> youtube interesting
|
||||
<span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UCMFcMhePnH4onVHt2-ItPZw <span class="org-string">"~YT Hygiène Mentale"</span> youtube interesting
|
||||
@ -607,9 +603,9 @@ https://ag91.github.io/rss.xml <span cla
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga5f3663" class="outline-4">
|
||||
<h4 id="orga5f3663">Science</h4>
|
||||
<div class="outline-text-4" id="text-orga5f3663">
|
||||
<div id="outline-container-org3fb022a" class="outline-4">
|
||||
<h4 id="org3fb022a">Science</h4>
|
||||
<div class="outline-text-4" id="text-org3fb022a">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UCwgqYNmYaij2_8hq_tOFyZw <span class="org-string">"~YT Aurelien Barrau"</span> youtube science
|
||||
<span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UCeR8BYZS7IHYjk_9Mh5JgkA <span class="org-string">"~YT Scilabus"</span> youtube science
|
||||
@ -637,9 +633,9 @@ https://ag91.github.io/rss.xml <span cla
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbb9674d" class="outline-4">
|
||||
<h4 id="orgbb9674d">Keyboard</h4>
|
||||
<div class="outline-text-4" id="text-orgbb9674d">
|
||||
<div id="outline-container-org5f8cf93" class="outline-4">
|
||||
<h4 id="org5f8cf93">Keyboard</h4>
|
||||
<div class="outline-text-4" id="text-org5f8cf93">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UC5ClFK9Ko4ACRgXjRZc_GfA <span class="org-string">"~YT Rhinofeed"</span> youtube keyboards
|
||||
<span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UC2yitP8oH86YBRVU4anycoA <span class="org-string">"~YT Quentin Lebastard"</span> youtube keyboards
|
||||
@ -648,9 +644,9 @@ https://ag91.github.io/rss.xml <span cla
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org69e71c9" class="outline-4">
|
||||
<h4 id="org69e71c9">Music</h4>
|
||||
<div class="outline-text-4" id="text-org69e71c9">
|
||||
<div id="outline-container-org09e27a9" class="outline-4">
|
||||
<h4 id="org09e27a9">Music</h4>
|
||||
<div class="outline-text-4" id="text-org09e27a9">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">
|
||||
<span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UC3gZqwD45zGCsduBn-Q2lew <span class="org-string">"~YT Gabrielle Grau"</span> youtube music
|
||||
@ -663,9 +659,9 @@ https://ag91.github.io/rss.xml <span cla
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org51994a1" class="outline-4">
|
||||
<h4 id="org51994a1">Space</h4>
|
||||
<div class="outline-text-4" id="text-org51994a1">
|
||||
<div id="outline-container-org3943d30" class="outline-4">
|
||||
<h4 id="org3943d30">Space</h4>
|
||||
<div class="outline-text-4" id="text-org3943d30">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UCdL3UpiseRlvxXuORJjmqZw <span class="org-string">"~YT Stardust"</span> youtube space
|
||||
<span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UC5X4e8ScZI2AFd_vkjSoyoQ <span class="org-string">"~YT AstronoGeek"</span> youtube space
|
||||
@ -674,9 +670,9 @@ https://ag91.github.io/rss.xml <span cla
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd65a3b5" class="outline-4">
|
||||
<h4 id="orgd65a3b5">Engineering</h4>
|
||||
<div class="outline-text-4" id="text-orgd65a3b5">
|
||||
<div id="outline-container-orgcc26d24" class="outline-4">
|
||||
<h4 id="orgcc26d24">Engineering</h4>
|
||||
<div class="outline-text-4" id="text-orgcc26d24">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UCotwjyJnb-4KW7bmsOoLfkg <span class="org-string">"~YT Art of the Problem"</span> youtube engineering
|
||||
<span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UCR1IuLEqb6UEA_zQ81kwXfg <span class="org-string">"~YT Real Engineering"</span> youtube engineering
|
||||
@ -689,9 +685,9 @@ https://ag91.github.io/rss.xml <span cla
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org990625b" class="outline-4">
|
||||
<h4 id="org990625b">Random - Fun - Others</h4>
|
||||
<div class="outline-text-4" id="text-org990625b">
|
||||
<div id="outline-container-orgb54aeea" class="outline-4">
|
||||
<h4 id="orgb54aeea">Random - Fun - Others</h4>
|
||||
<div class="outline-text-4" id="text-orgb54aeea">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UCJM10Rp7G0h9j5S92QszJ5Q <span class="org-string">"~YT Tales From The Click"</span> youtube random
|
||||
<span class="org-variable-name">https://www.youtube.com/feeds/videos.xml?channel_id</span>=UCCMxHHciWRBBouzk-PGzmtQ <span class="org-string">"~YT Bazar du Grenier"</span> youtube random
|
||||
@ -735,7 +731,7 @@ https://ag91.github.io/rss.xml <span cla
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-11-03 mar. 16:26</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:09</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,251 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-01-11 sam. 22:20 -->
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>PCMANFM</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<style type="text/css">
|
||||
<!--/*--><![CDATA[/*><!--*/
|
||||
.title { text-align: center;
|
||||
margin-bottom: .2em; }
|
||||
.subtitle { text-align: center;
|
||||
font-size: medium;
|
||||
font-weight: bold;
|
||||
margin-top:0; }
|
||||
.todo { font-family: monospace; color: red; }
|
||||
.done { font-family: monospace; color: green; }
|
||||
.priority { font-family: monospace; color: orange; }
|
||||
.tag { background-color: #eee; font-family: monospace;
|
||||
padding: 2px; font-size: 80%; font-weight: normal; }
|
||||
.timestamp { color: #bebebe; }
|
||||
.timestamp-kwd { color: #5f9ea0; }
|
||||
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
|
||||
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
|
||||
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
|
||||
.underline { text-decoration: underline; }
|
||||
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
|
||||
p.verse { margin-left: 3%; }
|
||||
pre {
|
||||
border: 1px solid #ccc;
|
||||
box-shadow: 3px 3px 3px #eee;
|
||||
padding: 8pt;
|
||||
font-family: monospace;
|
||||
overflow: auto;
|
||||
margin: 1.2em;
|
||||
}
|
||||
pre.src {
|
||||
position: relative;
|
||||
overflow: visible;
|
||||
padding-top: 1.2em;
|
||||
}
|
||||
pre.src:before {
|
||||
display: none;
|
||||
position: absolute;
|
||||
background-color: white;
|
||||
top: -10px;
|
||||
right: 10px;
|
||||
padding: 3px;
|
||||
border: 1px solid black;
|
||||
}
|
||||
pre.src:hover:before { display: inline;}
|
||||
/* Languages per Org manual */
|
||||
pre.src-asymptote:before { content: 'Asymptote'; }
|
||||
pre.src-awk:before { content: 'Awk'; }
|
||||
pre.src-C:before { content: 'C'; }
|
||||
/* pre.src-C++ doesn't work in CSS */
|
||||
pre.src-clojure:before { content: 'Clojure'; }
|
||||
pre.src-css:before { content: 'CSS'; }
|
||||
pre.src-D:before { content: 'D'; }
|
||||
pre.src-ditaa:before { content: 'ditaa'; }
|
||||
pre.src-dot:before { content: 'Graphviz'; }
|
||||
pre.src-calc:before { content: 'Emacs Calc'; }
|
||||
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
|
||||
pre.src-fortran:before { content: 'Fortran'; }
|
||||
pre.src-gnuplot:before { content: 'gnuplot'; }
|
||||
pre.src-haskell:before { content: 'Haskell'; }
|
||||
pre.src-hledger:before { content: 'hledger'; }
|
||||
pre.src-java:before { content: 'Java'; }
|
||||
pre.src-js:before { content: 'Javascript'; }
|
||||
pre.src-latex:before { content: 'LaTeX'; }
|
||||
pre.src-ledger:before { content: 'Ledger'; }
|
||||
pre.src-lisp:before { content: 'Lisp'; }
|
||||
pre.src-lilypond:before { content: 'Lilypond'; }
|
||||
pre.src-lua:before { content: 'Lua'; }
|
||||
pre.src-matlab:before { content: 'MATLAB'; }
|
||||
pre.src-mscgen:before { content: 'Mscgen'; }
|
||||
pre.src-ocaml:before { content: 'Objective Caml'; }
|
||||
pre.src-octave:before { content: 'Octave'; }
|
||||
pre.src-org:before { content: 'Org mode'; }
|
||||
pre.src-oz:before { content: 'OZ'; }
|
||||
pre.src-plantuml:before { content: 'Plantuml'; }
|
||||
pre.src-processing:before { content: 'Processing.js'; }
|
||||
pre.src-python:before { content: 'Python'; }
|
||||
pre.src-R:before { content: 'R'; }
|
||||
pre.src-ruby:before { content: 'Ruby'; }
|
||||
pre.src-sass:before { content: 'Sass'; }
|
||||
pre.src-scheme:before { content: 'Scheme'; }
|
||||
pre.src-screen:before { content: 'Gnu Screen'; }
|
||||
pre.src-sed:before { content: 'Sed'; }
|
||||
pre.src-sh:before { content: 'shell'; }
|
||||
pre.src-sql:before { content: 'SQL'; }
|
||||
pre.src-sqlite:before { content: 'SQLite'; }
|
||||
/* additional languages in org.el's org-babel-load-languages alist */
|
||||
pre.src-forth:before { content: 'Forth'; }
|
||||
pre.src-io:before { content: 'IO'; }
|
||||
pre.src-J:before { content: 'J'; }
|
||||
pre.src-makefile:before { content: 'Makefile'; }
|
||||
pre.src-maxima:before { content: 'Maxima'; }
|
||||
pre.src-perl:before { content: 'Perl'; }
|
||||
pre.src-picolisp:before { content: 'Pico Lisp'; }
|
||||
pre.src-scala:before { content: 'Scala'; }
|
||||
pre.src-shell:before { content: 'Shell Script'; }
|
||||
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
|
||||
/* additional language identifiers per "defun org-babel-execute"
|
||||
in ob-*.el */
|
||||
pre.src-cpp:before { content: 'C++'; }
|
||||
pre.src-abc:before { content: 'ABC'; }
|
||||
pre.src-coq:before { content: 'Coq'; }
|
||||
pre.src-groovy:before { content: 'Groovy'; }
|
||||
/* additional language identifiers from org-babel-shell-names in
|
||||
ob-shell.el: ob-shell is the only babel language using a lambda to put
|
||||
the execution function name together. */
|
||||
pre.src-bash:before { content: 'bash'; }
|
||||
pre.src-csh:before { content: 'csh'; }
|
||||
pre.src-ash:before { content: 'ash'; }
|
||||
pre.src-dash:before { content: 'dash'; }
|
||||
pre.src-ksh:before { content: 'ksh'; }
|
||||
pre.src-mksh:before { content: 'mksh'; }
|
||||
pre.src-posh:before { content: 'posh'; }
|
||||
/* Additional Emacs modes also supported by the LaTeX listings package */
|
||||
pre.src-ada:before { content: 'Ada'; }
|
||||
pre.src-asm:before { content: 'Assembler'; }
|
||||
pre.src-caml:before { content: 'Caml'; }
|
||||
pre.src-delphi:before { content: 'Delphi'; }
|
||||
pre.src-html:before { content: 'HTML'; }
|
||||
pre.src-idl:before { content: 'IDL'; }
|
||||
pre.src-mercury:before { content: 'Mercury'; }
|
||||
pre.src-metapost:before { content: 'MetaPost'; }
|
||||
pre.src-modula-2:before { content: 'Modula-2'; }
|
||||
pre.src-pascal:before { content: 'Pascal'; }
|
||||
pre.src-ps:before { content: 'PostScript'; }
|
||||
pre.src-prolog:before { content: 'Prolog'; }
|
||||
pre.src-simula:before { content: 'Simula'; }
|
||||
pre.src-tcl:before { content: 'tcl'; }
|
||||
pre.src-tex:before { content: 'TeX'; }
|
||||
pre.src-plain-tex:before { content: 'Plain TeX'; }
|
||||
pre.src-verilog:before { content: 'Verilog'; }
|
||||
pre.src-vhdl:before { content: 'VHDL'; }
|
||||
pre.src-xml:before { content: 'XML'; }
|
||||
pre.src-nxml:before { content: 'XML'; }
|
||||
/* add a generic configuration mode; LaTeX export needs an additional
|
||||
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
|
||||
pre.src-conf:before { content: 'Configuration File'; }
|
||||
|
||||
table { border-collapse:collapse; }
|
||||
caption.t-above { caption-side: top; }
|
||||
caption.t-bottom { caption-side: bottom; }
|
||||
td, th { vertical-align:top; }
|
||||
th.org-right { text-align: center; }
|
||||
th.org-left { text-align: center; }
|
||||
th.org-center { text-align: center; }
|
||||
td.org-right { text-align: right; }
|
||||
td.org-left { text-align: left; }
|
||||
td.org-center { text-align: center; }
|
||||
dt { font-weight: bold; }
|
||||
.footpara { display: inline; }
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
margin: 10px;
|
||||
background: #ffffcc;
|
||||
}
|
||||
#org-div-home-and-up
|
||||
{ text-align: right; font-size: 70%; white-space: nowrap; }
|
||||
textarea { overflow-x: auto; }
|
||||
.linenr { font-size: smaller }
|
||||
.code-highlighted { background-color: #ffff00; }
|
||||
.org-info-js_info-navigation { border-style: none; }
|
||||
#org-info-js_console-label
|
||||
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
|
||||
.org-info-js_search-highlight
|
||||
{ background-color: #ffff00; color: #000000; font-weight: bold; }
|
||||
.org-svg { width: 90%; }
|
||||
/*]]>*/-->
|
||||
</style>
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<script type="text/javascript">
|
||||
/*
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
General Public License (GNU GPL) as published by the Free Software
|
||||
Foundation, either version 3 of the License, or (at your option)
|
||||
any later version. The code is distributed WITHOUT ANY WARRANTY;
|
||||
without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
|
||||
|
||||
As additional permission under GNU GPL version 3 section 7, you
|
||||
may distribute non-source (e.g., minimized or compacted) forms of
|
||||
that code without the copy of the GNU GPL normally required by
|
||||
section 4, provided you include this license notice and a URL
|
||||
through which recipients can access the Corresponding Source.
|
||||
|
||||
|
||||
@licend The above is the entire license notice
|
||||
for the JavaScript code in this tag.
|
||||
*/
|
||||
<!--/*--><![CDATA[/*><!--*/
|
||||
function CodeHighlightOn(elem, id)
|
||||
{
|
||||
var target = document.getElementById(id);
|
||||
if(null != target) {
|
||||
elem.cacheClassElem = elem.className;
|
||||
elem.cacheClassTarget = target.className;
|
||||
target.className = "code-highlighted";
|
||||
elem.className = "code-highlighted";
|
||||
}
|
||||
}
|
||||
function CodeHighlightOff(elem, id)
|
||||
{
|
||||
var target = document.getElementById(id);
|
||||
if(elem.cacheClassElem)
|
||||
elem.className = elem.cacheClassElem;
|
||||
if(elem.cacheClassTarget)
|
||||
target.className = elem.cacheClassTarget;
|
||||
}
|
||||
/*]]>*///-->
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -258,16 +22,16 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org7cb35ab">Config</a></li>
|
||||
<li><a href="#org9e44fa8">Volume</a></li>
|
||||
<li><a href="#orgb150f41">UI</a></li>
|
||||
<li><a href="#org0ad1961">Config</a></li>
|
||||
<li><a href="#org9ed27d2">Volume</a></li>
|
||||
<li><a href="#org8c3fa60">UI</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7cb35ab" class="outline-2">
|
||||
<h2 id="org7cb35ab">Config</h2>
|
||||
<div class="outline-text-2" id="text-org7cb35ab">
|
||||
<div id="outline-container-org0ad1961" class="outline-2">
|
||||
<h2 id="org0ad1961">Config</h2>
|
||||
<div class="outline-text-2" id="text-org0ad1961">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">config</span>]
|
||||
<span class="org-variable-name">bm_open_method</span>=<span class="org-highlight-numbers-number">0</span>
|
||||
@ -276,9 +40,9 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9e44fa8" class="outline-2">
|
||||
<h2 id="org9e44fa8">Volume</h2>
|
||||
<div class="outline-text-2" id="text-org9e44fa8">
|
||||
<div id="outline-container-org9ed27d2" class="outline-2">
|
||||
<h2 id="org9ed27d2">Volume</h2>
|
||||
<div class="outline-text-2" id="text-org9ed27d2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">volume</span>]
|
||||
<span class="org-variable-name">mount_on_startup</span>=<span class="org-highlight-numbers-number">0</span>
|
||||
@ -289,9 +53,9 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb150f41" class="outline-2">
|
||||
<h2 id="orgb150f41">UI</h2>
|
||||
<div class="outline-text-2" id="text-orgb150f41">
|
||||
<div id="outline-container-org8c3fa60" class="outline-2">
|
||||
<h2 id="org8c3fa60">UI</h2>
|
||||
<div class="outline-text-2" id="text-org8c3fa60">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">ui</span>]
|
||||
<span class="org-variable-name">always_show_tabs</span>=<span class="org-highlight-numbers-number">0</span>
|
||||
@ -318,7 +82,7 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-01-11 sam. 22:20</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:09</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -3,17 +3,13 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-11-03 mar. 16:26 -->
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Polybar Configuration</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -26,97 +22,103 @@
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orge45175a">Colors</a></li>
|
||||
<li><a href="#orgc8fe72e">VM</a></li>
|
||||
<li><a href="#org821ed7b">Top Bar</a></li>
|
||||
<li><a href="#orgb4f58e5">Show Windows Title</a></li>
|
||||
<li><a href="#org00bf733">I3 - Information about workspaces and active one</a></li>
|
||||
<li><a href="#orgf6d52fa">BSPWM</a></li>
|
||||
<li><a href="#org937d151">Music using MPD</a></li>
|
||||
<li><a href="#orgd7ff37b">Backlight level</a></li>
|
||||
<li><a href="#orgbb0a618">CPU Usage</a></li>
|
||||
<li><a href="#orgf6c3b32">Date</a></li>
|
||||
<li><a href="#orgd1c922e">Sound Volume</a></li>
|
||||
<li><a href="#orgfdbbed3">Battery</a></li>
|
||||
<li><a href="#orgc01c036">Temperature</a></li>
|
||||
<li><a href="#org1e00bc3">Unread Mails</a>
|
||||
<li><a href="#org3781e1e">Colors</a></li>
|
||||
<li><a href="#org445e1c9">VM</a></li>
|
||||
<li><a href="#org4821d11">Top Bar</a></li>
|
||||
<li><a href="#orgf8c6a7f">Show Windows Title</a></li>
|
||||
<li><a href="#org094ba94">I3 - Information about workspaces and active one</a></li>
|
||||
<li><a href="#org3d63ec8">BSPWM</a></li>
|
||||
<li><a href="#org9a4155c">Music using MPD</a></li>
|
||||
<li><a href="#org3d0e06d">Backlight level</a></li>
|
||||
<li><a href="#orgca1fe67">CPU Usage</a></li>
|
||||
<li><a href="#org0e67661">Date</a></li>
|
||||
<li><a href="#org557cf0e">Sound Volume</a></li>
|
||||
<li><a href="#orgfca1780">Battery</a></li>
|
||||
<li><a href="#org7a087c2">Temperature</a></li>
|
||||
<li><a href="#orgc54e0a9">Unread Mails</a>
|
||||
<ul>
|
||||
<li><a href="#org2c713a7">Unread Mail Scripts</a></li>
|
||||
<li><a href="#org61e09e9">Refresh Mail Scripts</a></li>
|
||||
<li><a href="#orgd0fb5fc">Open Mails</a></li>
|
||||
<li><a href="#org3c6d643">Unread Mail Scripts</a></li>
|
||||
<li><a href="#org5774795">Refresh Mail Scripts</a></li>
|
||||
<li><a href="#org892ac5a">Open Mails</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgbf8122f">Unread News</a>
|
||||
<li><a href="#org239a736">Unread News</a>
|
||||
<ul>
|
||||
<li><a href="#orgc9bda50">Unread News Scripts</a></li>
|
||||
<li><a href="#org5fbaf38">Refresh News Scripts</a></li>
|
||||
<li><a href="#org3459140">Open Newsboat</a></li>
|
||||
<li><a href="#orgab7b816">Unread News Scripts</a></li>
|
||||
<li><a href="#orgb3629f6">Refresh News Scripts</a></li>
|
||||
<li><a href="#org4b2dabe">Open Newsboat</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org87f3575">Calendar</a>
|
||||
<li><a href="#orgf87e470">Calendar</a>
|
||||
<ul>
|
||||
<li><a href="#org7058c70">Calendar Status Scripts</a></li>
|
||||
<li><a href="#orgb67d0d9">Open Calendar</a></li>
|
||||
<li><a href="#orgbc1d594">Calendar Status Scripts</a></li>
|
||||
<li><a href="#org8c169a3">Open Calendar</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8bc0735">Redshift</a>
|
||||
<li><a href="#org3d13512">Redshift</a>
|
||||
<ul>
|
||||
<li><a href="#orgc95d065">Redshift - Status</a></li>
|
||||
<li><a href="#org5f3dbe0">Toggle Redshift</a></li>
|
||||
<li><a href="#org00942a2">Redshift - Status</a></li>
|
||||
<li><a href="#org42979cb">Toggle Redshift</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org10f4424">NordVPN</a>
|
||||
<li><a href="#org6f8b363">NordVPN</a>
|
||||
<ul>
|
||||
<li><a href="#org1858160">Nordvpn Status script</a></li>
|
||||
<li><a href="#orgfb45dca">Nordvpn Toggle</a></li>
|
||||
<li><a href="#org4effa5e">Nordvpn Status script</a></li>
|
||||
<li><a href="#org4e1d6b0">Nordvpn Toggle</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org3734bc8">Packages</a>
|
||||
<li><a href="#orgaca766b">Packages</a>
|
||||
<ul>
|
||||
<li><a href="#org9b8a9c8">Packages Status script</a></li>
|
||||
<li><a href="#orgb8c1426">Refresh New Packages script</a></li>
|
||||
<li><a href="#orgb3e71da">Packages Update</a></li>
|
||||
<li><a href="#org3d928b2">Packages Status script</a></li>
|
||||
<li><a href="#org90118f0">Refresh New Packages script</a></li>
|
||||
<li><a href="#org9a148af">Packages Update</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga78a541">Dunst</a>
|
||||
<li><a href="#orgb0dd4b9">Dunst</a>
|
||||
<ul>
|
||||
<li><a href="#org05dbfd7">Dunst Status script</a></li>
|
||||
<li><a href="#org8b69076">Dunst Toggle</a></li>
|
||||
<li><a href="#orga70d12f">Dunst Status script</a></li>
|
||||
<li><a href="#orgd512f93">Dunst Toggle</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org47fb977">Lock Screen</a>
|
||||
<li><a href="#org4b27499">Lock Screen</a>
|
||||
<ul>
|
||||
<li><a href="#orgba19d9f">Lock screen Status script</a></li>
|
||||
<li><a href="#org8891736">Toggle Automatic Lock Screen</a></li>
|
||||
<li><a href="#org6059ab7">Lock screen Status script</a></li>
|
||||
<li><a href="#orgdb07c1d">Toggle Automatic Lock Screen</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7b140fd">Network</a></li>
|
||||
<li><a href="#org8c39876">Wireguard</a>
|
||||
<li><a href="#org5dd1b17">Network</a>
|
||||
<ul>
|
||||
<li><a href="#org5fe71f8">Wireguard Connection Status</a></li>
|
||||
<li><a href="#orgad2cf0d">Toggle Wireguard Connection</a></li>
|
||||
<li><a href="#org4f57e9b">Run Network Manager</a></li>
|
||||
<li><a href="#org32bdecf">Toggle Wifi or Ethernet</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1abb101">Microphone loopback</a>
|
||||
<li><a href="#org02c08ea">Bluetooth</a>
|
||||
<ul>
|
||||
<li><a href="#orgd343aa5">Loopback Status</a></li>
|
||||
<li><a href="#org417e5fc">Toggle Loopback</a></li>
|
||||
<li><a href="#org6e014b9"><code>bluetooth-run.sh</code> - Bluetooth Run Manager</a></li>
|
||||
<li><a href="#org6db713c"><code>bluetooth-status.sh</code> - Bluetooth Connection Status</a></li>
|
||||
<li><a href="#orgac4e24e"><code>bluetooth-toggle.sh</code> - Toggle Bluetooth Connection</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org726272d">Screenshot</a></li>
|
||||
<li><a href="#orgc30611d">Scripts</a>
|
||||
<li><a href="#orgb2ea4f9">Wireguard</a>
|
||||
<ul>
|
||||
<li><a href="#orgfa1b0fe">Launch</a></li>
|
||||
<li><a href="#org56bb827">Toggle</a></li>
|
||||
<li><a href="#orgab5de35">Wireguard Connection Status</a></li>
|
||||
<li><a href="#org50d7715">Toggle Wireguard Connection</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2c20f99">Microphone loopback</a>
|
||||
<ul>
|
||||
<li><a href="#orgd4b550f">Loopback Status</a></li>
|
||||
<li><a href="#orgf2e2fb0">Toggle Loopback</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1243118">Screenshot</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge45175a" class="outline-2">
|
||||
<h2 id="orge45175a">Colors</h2>
|
||||
<div class="outline-text-2" id="text-orge45175a">
|
||||
<div id="outline-container-org3781e1e" class="outline-2">
|
||||
<h2 id="org3781e1e">Colors</h2>
|
||||
<div class="outline-text-2" id="text-org3781e1e">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">colors</span>]
|
||||
<span class="org-variable-name">bg</span> = ${xrdb:background}
|
||||
@ -140,9 +142,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc8fe72e" class="outline-2">
|
||||
<h2 id="orgc8fe72e">VM</h2>
|
||||
<div class="outline-text-2" id="text-orgc8fe72e">
|
||||
<div id="outline-container-org445e1c9" class="outline-2">
|
||||
<h2 id="org445e1c9">VM</h2>
|
||||
<div class="outline-text-2" id="text-org445e1c9">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">global/wm</span>]
|
||||
<span class="org-variable-name">margin-top</span> = <span class="org-highlight-numbers-number">0</span>
|
||||
@ -152,9 +154,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org821ed7b" class="outline-2">
|
||||
<h2 id="org821ed7b">Top Bar</h2>
|
||||
<div class="outline-text-2" id="text-org821ed7b">
|
||||
<div id="outline-container-org4821d11" class="outline-2">
|
||||
<h2 id="org4821d11">Top Bar</h2>
|
||||
<div class="outline-text-2" id="text-org4821d11">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">bar/top</span>]
|
||||
<span class="org-variable-name">enable-ipc</span> = true
|
||||
@ -185,7 +187,7 @@
|
||||
|
||||
<span class="org-variable-name">modules-left</span> = i3 bspwm xwindow
|
||||
<span class="org-variable-name">modules-center</span> =
|
||||
<span class="org-variable-name">modules-right</span> = pulseaudio wired-network wireless-network wireguard nordvpn loopback redshift lockscreen dunst packages unread_news unread_mail calendar temperature battery date
|
||||
<span class="org-variable-name">modules-right</span> = pulseaudio wired-network wireless-network nordvpn bluetooth redshift lockscreen dunst packages unread_news unread_mail calendar temperature battery date
|
||||
|
||||
<span class="org-variable-name">wm-restack</span> = i3
|
||||
|
||||
@ -198,9 +200,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb4f58e5" class="outline-2">
|
||||
<h2 id="orgb4f58e5">Show Windows Title</h2>
|
||||
<div class="outline-text-2" id="text-orgb4f58e5">
|
||||
<div id="outline-container-orgf8c6a7f" class="outline-2">
|
||||
<h2 id="orgf8c6a7f">Show Windows Title</h2>
|
||||
<div class="outline-text-2" id="text-orgf8c6a7f">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">module/xwindow</span>]
|
||||
<span class="org-variable-name">type</span> = internal/xwindow
|
||||
@ -210,9 +212,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org00bf733" class="outline-2">
|
||||
<h2 id="org00bf733">I3 - Information about workspaces and active one</h2>
|
||||
<div class="outline-text-2" id="text-org00bf733">
|
||||
<div id="outline-container-org094ba94" class="outline-2">
|
||||
<h2 id="org094ba94">I3 - Information about workspaces and active one</h2>
|
||||
<div class="outline-text-2" id="text-org094ba94">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">module/i3</span>]
|
||||
<span class="org-variable-name">type</span> = internal/i3
|
||||
@ -262,9 +264,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf6d52fa" class="outline-2">
|
||||
<h2 id="orgf6d52fa">BSPWM</h2>
|
||||
<div class="outline-text-2" id="text-orgf6d52fa">
|
||||
<div id="outline-container-org3d63ec8" class="outline-2">
|
||||
<h2 id="org3d63ec8">BSPWM</h2>
|
||||
<div class="outline-text-2" id="text-org3d63ec8">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">module/bspwm</span>]
|
||||
<span class="org-variable-name">type</span> = internal/bspwm
|
||||
@ -309,9 +311,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org937d151" class="outline-2">
|
||||
<h2 id="org937d151">Music using MPD</h2>
|
||||
<div class="outline-text-2" id="text-org937d151">
|
||||
<div id="outline-container-org9a4155c" class="outline-2">
|
||||
<h2 id="org9a4155c">Music using MPD</h2>
|
||||
<div class="outline-text-2" id="text-org9a4155c">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">module/mpd</span>]
|
||||
<span class="org-variable-name">type</span> = internal/mpd
|
||||
@ -350,9 +352,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd7ff37b" class="outline-2">
|
||||
<h2 id="orgd7ff37b">Backlight level</h2>
|
||||
<div class="outline-text-2" id="text-orgd7ff37b">
|
||||
<div id="outline-container-org3d0e06d" class="outline-2">
|
||||
<h2 id="org3d0e06d">Backlight level</h2>
|
||||
<div class="outline-text-2" id="text-org3d0e06d">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">module/xbacklight</span>]
|
||||
<span class="org-variable-name">type</span> = internal/xbacklight
|
||||
@ -375,9 +377,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbb0a618" class="outline-2">
|
||||
<h2 id="orgbb0a618">CPU Usage</h2>
|
||||
<div class="outline-text-2" id="text-orgbb0a618">
|
||||
<div id="outline-container-orgca1fe67" class="outline-2">
|
||||
<h2 id="orgca1fe67">CPU Usage</h2>
|
||||
<div class="outline-text-2" id="text-orgca1fe67">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">module/cpu</span>]
|
||||
<span class="org-variable-name">type</span> = internal/cpu
|
||||
@ -392,9 +394,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf6c3b32" class="outline-2">
|
||||
<h2 id="orgf6c3b32">Date</h2>
|
||||
<div class="outline-text-2" id="text-orgf6c3b32">
|
||||
<div id="outline-container-org0e67661" class="outline-2">
|
||||
<h2 id="org0e67661">Date</h2>
|
||||
<div class="outline-text-2" id="text-org0e67661">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">module/date</span>]
|
||||
<span class="org-variable-name">type</span> = internal/date
|
||||
@ -413,9 +415,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd1c922e" class="outline-2">
|
||||
<h2 id="orgd1c922e">Sound Volume</h2>
|
||||
<div class="outline-text-2" id="text-orgd1c922e">
|
||||
<div id="outline-container-org557cf0e" class="outline-2">
|
||||
<h2 id="org557cf0e">Sound Volume</h2>
|
||||
<div class="outline-text-2" id="text-org557cf0e">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">module/pulseaudio</span>]
|
||||
<span class="org-variable-name">type</span> = internal/pulseaudio
|
||||
@ -451,9 +453,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfdbbed3" class="outline-2">
|
||||
<h2 id="orgfdbbed3">Battery</h2>
|
||||
<div class="outline-text-2" id="text-orgfdbbed3">
|
||||
<div id="outline-container-orgfca1780" class="outline-2">
|
||||
<h2 id="orgfca1780">Battery</h2>
|
||||
<div class="outline-text-2" id="text-orgfca1780">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">module/battery</span>]
|
||||
<span class="org-variable-name">type</span> = internal/battery
|
||||
@ -481,9 +483,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc01c036" class="outline-2">
|
||||
<h2 id="orgc01c036">Temperature</h2>
|
||||
<div class="outline-text-2" id="text-orgc01c036">
|
||||
<div id="outline-container-org7a087c2" class="outline-2">
|
||||
<h2 id="org7a087c2">Temperature</h2>
|
||||
<div class="outline-text-2" id="text-org7a087c2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">module/temperature</span>]
|
||||
<span class="org-variable-name">type</span> = internal/temperature
|
||||
@ -509,9 +511,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1e00bc3" class="outline-2">
|
||||
<h2 id="org1e00bc3">Unread Mails</h2>
|
||||
<div class="outline-text-2" id="text-org1e00bc3">
|
||||
<div id="outline-container-orgc54e0a9" class="outline-2">
|
||||
<h2 id="orgc54e0a9">Unread Mails</h2>
|
||||
<div class="outline-text-2" id="text-orgc54e0a9">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">module/unread_mail</span>]
|
||||
<span class="org-variable-name">type</span> = custom/script
|
||||
@ -526,9 +528,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2c713a7" class="outline-3">
|
||||
<h3 id="org2c713a7">Unread Mail Scripts</h3>
|
||||
<div class="outline-text-3" id="text-org2c713a7">
|
||||
<div id="outline-container-org3c6d643" class="outline-3">
|
||||
<h3 id="org3c6d643">Unread Mail Scripts</h3>
|
||||
<div class="outline-text-3" id="text-org3c6d643">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">mail_nb</span>=<span class="org-sh-quoted-exec">`du -a ~/.mail/*/Inbox/new/* 2>/dev/null | wc -l`</span>
|
||||
|
||||
@ -542,9 +544,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org61e09e9" class="outline-3">
|
||||
<h3 id="org61e09e9">Refresh Mail Scripts</h3>
|
||||
<div class="outline-text-3" id="text-org61e09e9">
|
||||
<div id="outline-container-org5774795" class="outline-3">
|
||||
<h3 id="org5774795">Refresh Mail Scripts</h3>
|
||||
<div class="outline-text-3" id="text-org5774795">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">dunstify --replace=<span class="org-highlight-numbers-number">98465</span> <span class="org-string">"Mails "</span> <span class="org-string">"Syncing..."</span>;
|
||||
checkmail -q && <span class="org-sh-escaped-newline">\</span>
|
||||
@ -557,9 +559,9 @@ checkmail -q && <span class="org-sh-escaped-newline">\</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd0fb5fc" class="outline-3">
|
||||
<h3 id="orgd0fb5fc">Open Mails</h3>
|
||||
<div class="outline-text-3" id="text-orgd0fb5fc">
|
||||
<div id="outline-container-org892ac5a" class="outline-3">
|
||||
<h3 id="org892ac5a">Open Mails</h3>
|
||||
<div class="outline-text-3" id="text-org892ac5a">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">$<span class="org-variable-name">TERMINAL</span> -e <span class="org-string">"tmux new-session -A -s neomutt neomutt"</span>
|
||||
</pre>
|
||||
@ -568,9 +570,9 @@ checkmail -q && <span class="org-sh-escaped-newline">\</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbf8122f" class="outline-2">
|
||||
<h2 id="orgbf8122f">Unread News</h2>
|
||||
<div class="outline-text-2" id="text-orgbf8122f">
|
||||
<div id="outline-container-org239a736" class="outline-2">
|
||||
<h2 id="org239a736">Unread News</h2>
|
||||
<div class="outline-text-2" id="text-org239a736">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">module/unread_news</span>]
|
||||
<span class="org-variable-name">type</span> = custom/script
|
||||
@ -585,9 +587,9 @@ checkmail -q && <span class="org-sh-escaped-newline">\</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc9bda50" class="outline-3">
|
||||
<h3 id="orgc9bda50">Unread News Scripts</h3>
|
||||
<div class="outline-text-3" id="text-orgc9bda50">
|
||||
<div id="outline-container-orgab7b816" class="outline-3">
|
||||
<h3 id="orgab7b816">Unread News Scripts</h3>
|
||||
<div class="outline-text-3" id="text-orgab7b816">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"> <span class="org-variable-name">news_nb</span>=<span class="org-sh-quoted-exec">`newsboat -x print-unread 2>/dev/null | cut -d " " -f1`</span>
|
||||
|
||||
@ -601,9 +603,9 @@ checkmail -q && <span class="org-sh-escaped-newline">\</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5fbaf38" class="outline-3">
|
||||
<h3 id="org5fbaf38">Refresh News Scripts</h3>
|
||||
<div class="outline-text-3" id="text-org5fbaf38">
|
||||
<div id="outline-container-orgb3629f6" class="outline-3">
|
||||
<h3 id="orgb3629f6">Refresh News Scripts</h3>
|
||||
<div class="outline-text-3" id="text-orgb3629f6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">dunstify --replace=<span class="org-highlight-numbers-number">38492</span> <span class="org-string">"Newsboat "</span> <span class="org-string">"Reloading..."</span>;
|
||||
|
||||
@ -620,9 +622,9 @@ checkmail -q && <span class="org-sh-escaped-newline">\</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3459140" class="outline-3">
|
||||
<h3 id="org3459140">Open Newsboat</h3>
|
||||
<div class="outline-text-3" id="text-org3459140">
|
||||
<div id="outline-container-org4b2dabe" class="outline-3">
|
||||
<h3 id="org4b2dabe">Open Newsboat</h3>
|
||||
<div class="outline-text-3" id="text-org4b2dabe">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">$<span class="org-variable-name">TERMINAL</span> -e <span class="org-string">"tmux new-session -A -s newsboat newsboat"</span>
|
||||
</pre>
|
||||
@ -631,9 +633,9 @@ checkmail -q && <span class="org-sh-escaped-newline">\</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org87f3575" class="outline-2">
|
||||
<h2 id="org87f3575">Calendar</h2>
|
||||
<div class="outline-text-2" id="text-org87f3575">
|
||||
<div id="outline-container-orgf87e470" class="outline-2">
|
||||
<h2 id="orgf87e470">Calendar</h2>
|
||||
<div class="outline-text-2" id="text-orgf87e470">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">module/calendar</span>]
|
||||
<span class="org-variable-name">type</span> = custom/script
|
||||
@ -647,9 +649,9 @@ checkmail -q && <span class="org-sh-escaped-newline">\</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7058c70" class="outline-3">
|
||||
<h3 id="org7058c70">Calendar Status Scripts</h3>
|
||||
<div class="outline-text-3" id="text-org7058c70">
|
||||
<div id="outline-container-orgbc1d594" class="outline-3">
|
||||
<h3 id="orgbc1d594">Calendar Status Scripts</h3>
|
||||
<div class="outline-text-3" id="text-orgbc1d594">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">next_events</span>=<span class="org-sh-quoted-exec">$</span><span class="org-sh-quoted-exec"><span class="org-rainbow-delimiters-depth-1">(</span></span><span class="org-sh-quoted-exec">khal list </span><span class="org-string"><span class="org-sh-quoted-exec">"$(</span></span><span class="org-sh-quoted-exec">date</span><span class="org-string"><span class="org-sh-quoted-exec"> +"%H:%M")</span></span><span class="org-string">"</span> 23:59 --format <span class="org-string">"{start-time} - {title}"</span> -df <span class="org-string">'SKIPME'</span> | <span class="org-type">grep</span> -v <span class="org-string">'SKIPME'</span> | <span class="org-type">grep</span> -v <span class="org-string">'No events'</span><span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
|
||||
@ -679,9 +681,9 @@ checkmail -q && <span class="org-sh-escaped-newline">\</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb67d0d9" class="outline-3">
|
||||
<h3 id="orgb67d0d9">Open Calendar</h3>
|
||||
<div class="outline-text-3" id="text-orgb67d0d9">
|
||||
<div id="outline-container-org8c169a3" class="outline-3">
|
||||
<h3 id="org8c169a3">Open Calendar</h3>
|
||||
<div class="outline-text-3" id="text-org8c169a3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">$<span class="org-variable-name">TERMINAL</span> --class=<span class="org-string">"Floating"</span> -e <span class="org-string">"khal interactive"</span>
|
||||
</pre>
|
||||
@ -690,9 +692,9 @@ checkmail -q && <span class="org-sh-escaped-newline">\</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8bc0735" class="outline-2">
|
||||
<h2 id="org8bc0735">Redshift</h2>
|
||||
<div class="outline-text-2" id="text-org8bc0735">
|
||||
<div id="outline-container-org3d13512" class="outline-2">
|
||||
<h2 id="org3d13512">Redshift</h2>
|
||||
<div class="outline-text-2" id="text-org3d13512">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">module/redshift</span>]
|
||||
<span class="org-variable-name">type</span> = custom/script
|
||||
@ -706,9 +708,9 @@ checkmail -q && <span class="org-sh-escaped-newline">\</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc95d065" class="outline-3">
|
||||
<h3 id="orgc95d065">Redshift - Status</h3>
|
||||
<div class="outline-text-3" id="text-orgc95d065">
|
||||
<div id="outline-container-org00942a2" class="outline-3">
|
||||
<h3 id="org00942a2">Redshift - Status</h3>
|
||||
<div class="outline-text-3" id="text-org00942a2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-type">pgrep</span> -x <span class="org-string">"redshift"</span> >/dev/null; <span class="org-keyword">then</span>
|
||||
<span class="org-type">echo</span> <span class="org-string">"望"</span>;
|
||||
@ -720,9 +722,9 @@ checkmail -q && <span class="org-sh-escaped-newline">\</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5f3dbe0" class="outline-3">
|
||||
<h3 id="org5f3dbe0">Toggle Redshift</h3>
|
||||
<div class="outline-text-3" id="text-org5f3dbe0">
|
||||
<div id="outline-container-org42979cb" class="outline-3">
|
||||
<h3 id="org42979cb">Toggle Redshift</h3>
|
||||
<div class="outline-text-3" id="text-org42979cb">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-type">pgrep</span> -x <span class="org-string">"redshift"</span> >/dev/null; <span class="org-keyword">then</span>
|
||||
killall redshift && <span class="org-sh-escaped-newline">\</span>
|
||||
@ -737,15 +739,15 @@ checkmail -q && <span class="org-sh-escaped-newline">\</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org10f4424" class="outline-2">
|
||||
<h2 id="org10f4424">NordVPN</h2>
|
||||
<div class="outline-text-2" id="text-org10f4424">
|
||||
<div id="outline-container-org6f8b363" class="outline-2">
|
||||
<h2 id="org6f8b363">NordVPN</h2>
|
||||
<div class="outline-text-2" id="text-org6f8b363">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">module/nordvpn</span>]
|
||||
<span class="org-variable-name">type</span> = custom/script
|
||||
|
||||
<span class="org-variable-name">format-underline</span> = ${colors.bg}
|
||||
<span class="org-variable-name">click-left</span> = ~/.config/polybar/scripts/nordvpn-toggle.sh >/dev/null 2>%1 &
|
||||
<span class="org-variable-name">click-left</span> = ~/.local/bin/nordvpn-toggle >/dev/null 2>%1 &
|
||||
<span class="org-variable-name">format</span> = <label>
|
||||
<span class="org-variable-name">exec</span> = ~/.config/polybar/scripts/nordvpn-status.sh
|
||||
<span class="org-variable-name">interval</span> = <span class="org-highlight-numbers-number">2</span>
|
||||
@ -753,9 +755,9 @@ checkmail -q && <span class="org-sh-escaped-newline">\</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1858160" class="outline-3">
|
||||
<h3 id="org1858160">Nordvpn Status script</h3>
|
||||
<div class="outline-text-3" id="text-org1858160">
|
||||
<div id="outline-container-org4effa5e" class="outline-3">
|
||||
<h3 id="org4effa5e">Nordvpn Status script</h3>
|
||||
<div class="outline-text-3" id="text-org4effa5e">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">tmpfile</span>=<span class="org-string">"/tmp/vpnstatus"</span>;
|
||||
|
||||
@ -769,32 +771,19 @@ checkmail -q && <span class="org-sh-escaped-newline">\</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfb45dca" class="outline-3">
|
||||
<h3 id="orgfb45dca">Nordvpn Toggle</h3>
|
||||
<div class="outline-text-3" id="text-orgfb45dca">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">tmpfile</span>=<span class="org-string">"/tmp/vpnstatus"</span>;
|
||||
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -f $<span class="org-variable-name">tmpfile</span> <span class="org-rainbow-delimiters-depth-1">]</span> && <span class="org-type">grep</span> -q <span class="org-string">"on"</span> $<span class="org-variable-name">tmpfile</span>; <span class="org-keyword">then</span>
|
||||
nordvpn disconnect && <span class="org-sh-escaped-newline">\</span>
|
||||
dunstify --replace=<span class="org-highlight-numbers-number">23198</span> <span class="org-string">"VPN"</span> <span class="org-string">"Disconnected"</span> && <span class="org-sh-escaped-newline">\</span>
|
||||
<span class="org-type">echo</span> <span class="org-string">"off"</span> > $<span class="org-variable-name">tmpfile</span>;
|
||||
<span class="org-keyword">else</span>
|
||||
<span class="org-variable-name">country</span>=<span class="org-sh-quoted-exec">`</span><span class="org-type"><span class="org-sh-quoted-exec">cat</span></span><span class="org-sh-quoted-exec"> ~/.local/data/nordvpn_countries.txt | sed 's/\s*\t\s*/ /g ; s/\s/\n/g ; s/_/ /g ; /^[a-zA-Z]/!d ; s/\(.*\)/\L\1/' | rofi -i -dmenu | sed 's/\s/_/g'`</span>;
|
||||
dunstify --replace=<span class="org-highlight-numbers-number">23198</span> <span class="org-string">"VPN"</span> <span class="org-string">"Connecting to </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">country</span></span><span class="org-string">..."</span>;
|
||||
nordvpn connect $<span class="org-variable-name">country</span> && <span class="org-sh-escaped-newline">\</span>
|
||||
dunstify --replace=<span class="org-highlight-numbers-number">23198</span> <span class="org-string">"VPN"</span> <span class="org-string">"Connected to </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">country</span></span><span class="org-string">"</span> && <span class="org-sh-escaped-newline">\</span>
|
||||
<span class="org-type">echo</span> <span class="org-string">"on"</span> > $<span class="org-variable-name">tmpfile</span>;
|
||||
<span class="org-keyword">fi</span>
|
||||
</pre>
|
||||
</div>
|
||||
<div id="outline-container-org4e1d6b0" class="outline-3">
|
||||
<h3 id="org4e1d6b0">Nordvpn Toggle</h3>
|
||||
<div class="outline-text-3" id="text-org4e1d6b0">
|
||||
<p>
|
||||
The script is accessible <a href="binaries.html#nordvpn-toggle">here</a>.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3734bc8" class="outline-2">
|
||||
<h2 id="org3734bc8">Packages</h2>
|
||||
<div class="outline-text-2" id="text-org3734bc8">
|
||||
<div id="outline-container-orgaca766b" class="outline-2">
|
||||
<h2 id="orgaca766b">Packages</h2>
|
||||
<div class="outline-text-2" id="text-orgaca766b">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">module/packages</span>]
|
||||
<span class="org-variable-name">type</span> = custom/script
|
||||
@ -809,9 +798,9 @@ checkmail -q && <span class="org-sh-escaped-newline">\</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9b8a9c8" class="outline-3">
|
||||
<h3 id="org9b8a9c8">Packages Status script</h3>
|
||||
<div class="outline-text-3" id="text-org9b8a9c8">
|
||||
<div id="outline-container-org3d928b2" class="outline-3">
|
||||
<h3 id="org3d928b2">Packages Status script</h3>
|
||||
<div class="outline-text-3" id="text-org3d928b2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">yay -Sy > /dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span> && <span class="org-sh-escaped-newline">\</span>
|
||||
<span class="org-variable-name">package_nb</span>=<span class="org-sh-quoted-exec">`yay -Qu 2> /dev/null | wc -l`</span> || <span class="org-sh-escaped-newline">\</span>
|
||||
@ -828,9 +817,9 @@ checkmail -q && <span class="org-sh-escaped-newline">\</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb8c1426" class="outline-3">
|
||||
<h3 id="orgb8c1426">Refresh New Packages script</h3>
|
||||
<div class="outline-text-3" id="text-orgb8c1426">
|
||||
<div id="outline-container-org90118f0" class="outline-3">
|
||||
<h3 id="org90118f0">Refresh New Packages script</h3>
|
||||
<div class="outline-text-3" id="text-org90118f0">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">dunstify --replace=<span class="org-highlight-numbers-number">64654</span> <span class="org-string">'Packages '</span> <span class="org-string">"Refreshing..."</span>
|
||||
|
||||
@ -847,9 +836,9 @@ yay -Sy > /dev/null <span class="org-highlight-numbers-number">2</span>>&a
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb3e71da" class="outline-3">
|
||||
<h3 id="orgb3e71da">Packages Update</h3>
|
||||
<div class="outline-text-3" id="text-orgb3e71da">
|
||||
<div id="outline-container-org9a148af" class="outline-3">
|
||||
<h3 id="org9a148af">Packages Update</h3>
|
||||
<div class="outline-text-3" id="text-org9a148af">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">$<span class="org-variable-name">TERMINAL</span> -e <span class="org-string">"yay"</span>
|
||||
</pre>
|
||||
@ -858,9 +847,9 @@ yay -Sy > /dev/null <span class="org-highlight-numbers-number">2</span>>&a
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga78a541" class="outline-2">
|
||||
<h2 id="orga78a541">Dunst</h2>
|
||||
<div class="outline-text-2" id="text-orga78a541">
|
||||
<div id="outline-container-orgb0dd4b9" class="outline-2">
|
||||
<h2 id="orgb0dd4b9">Dunst</h2>
|
||||
<div class="outline-text-2" id="text-orgb0dd4b9">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">module/dunst</span>]
|
||||
<span class="org-variable-name">type</span> = custom/script
|
||||
@ -874,9 +863,9 @@ yay -Sy > /dev/null <span class="org-highlight-numbers-number">2</span>>&a
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org05dbfd7" class="outline-3">
|
||||
<h3 id="org05dbfd7">Dunst Status script</h3>
|
||||
<div class="outline-text-3" id="text-org05dbfd7">
|
||||
<div id="outline-container-orga70d12f" class="outline-3">
|
||||
<h3 id="orga70d12f">Dunst Status script</h3>
|
||||
<div class="outline-text-3" id="text-orga70d12f">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">tmpfile</span>=<span class="org-string">"/tmp/dunststatus"</span>;
|
||||
|
||||
@ -894,9 +883,9 @@ yay -Sy > /dev/null <span class="org-highlight-numbers-number">2</span>>&a
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8b69076" class="outline-3">
|
||||
<h3 id="org8b69076">Dunst Toggle</h3>
|
||||
<div class="outline-text-3" id="text-org8b69076">
|
||||
<div id="outline-container-orgd512f93" class="outline-3">
|
||||
<h3 id="orgd512f93">Dunst Toggle</h3>
|
||||
<div class="outline-text-3" id="text-orgd512f93">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">tmpfile</span>=<span class="org-string">"/tmp/dunststatus"</span>;
|
||||
|
||||
@ -916,9 +905,9 @@ yay -Sy > /dev/null <span class="org-highlight-numbers-number">2</span>>&a
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org47fb977" class="outline-2">
|
||||
<h2 id="org47fb977">Lock Screen</h2>
|
||||
<div class="outline-text-2" id="text-org47fb977">
|
||||
<div id="outline-container-org4b27499" class="outline-2">
|
||||
<h2 id="org4b27499">Lock Screen</h2>
|
||||
<div class="outline-text-2" id="text-org4b27499">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">module/lockscreen</span>]
|
||||
<span class="org-variable-name">type</span> = custom/script
|
||||
@ -934,9 +923,9 @@ yay -Sy > /dev/null <span class="org-highlight-numbers-number">2</span>>&a
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgba19d9f" class="outline-3">
|
||||
<h3 id="orgba19d9f">Lock screen Status script</h3>
|
||||
<div class="outline-text-3" id="text-orgba19d9f">
|
||||
<div id="outline-container-org6059ab7" class="outline-3">
|
||||
<h3 id="org6059ab7">Lock screen Status script</h3>
|
||||
<div class="outline-text-3" id="text-org6059ab7">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-type">pgrep</span> -x <span class="org-string">"xautolock"</span> >/dev/null
|
||||
<span class="org-keyword">then</span>
|
||||
@ -949,9 +938,9 @@ yay -Sy > /dev/null <span class="org-highlight-numbers-number">2</span>>&a
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8891736" class="outline-3">
|
||||
<h3 id="org8891736">Toggle Automatic Lock Screen</h3>
|
||||
<div class="outline-text-3" id="text-org8891736">
|
||||
<div id="outline-container-orgdb07c1d" class="outline-3">
|
||||
<h3 id="orgdb07c1d">Toggle Automatic Lock Screen</h3>
|
||||
<div class="outline-text-3" id="text-orgdb07c1d">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-type">pgrep</span> -x <span class="org-string">"xautolock"</span> >/dev/null ; <span class="org-keyword">then</span>
|
||||
<span class="org-type">pkill</span> xautolock && <span class="org-sh-escaped-newline">\</span>
|
||||
@ -966,18 +955,18 @@ yay -Sy > /dev/null <span class="org-highlight-numbers-number">2</span>>&a
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7b140fd" class="outline-2">
|
||||
<h2 id="org7b140fd">Network</h2>
|
||||
<div class="outline-text-2" id="text-org7b140fd">
|
||||
<div id="outline-container-org5dd1b17" class="outline-2">
|
||||
<h2 id="org5dd1b17">Network</h2>
|
||||
<div class="outline-text-2" id="text-org5dd1b17">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">module/wired-network</span>]
|
||||
<span class="org-variable-name">type</span> = internal/network
|
||||
<span class="org-variable-name">interface</span> = enp0s20f0u6u4
|
||||
<span class="org-variable-name">interface</span> = enp57s0u2u4u4
|
||||
|
||||
<span class="org-variable-name">label-connected</span> =  %local_ip%
|
||||
<span class="org-variable-name">label-connected</span> = %{A3:bash ~/.config/polybar/scripts/connection-manager.sh >/dev/null 2>%1 &:}%{A1:bash ~/.config/polybar/scripts/connection-toggle.sh enp57s0u2u4u4 >/dev/null 2>%1 &:} %local_ip%%{A}%{A}
|
||||
<span class="org-variable-name">label-connected-foreground</span> = ${colors.fg}
|
||||
|
||||
<span class="org-variable-name">label-disconnected</span> = 
|
||||
<span class="org-variable-name">label-disconnected</span> = %{A3:bash ~/.config/polybar/scripts/connection-manager.sh >/dev/null 2>%1 &:}%{A1:bash ~/.config/polybar/scripts/connection-toggle.sh enp57s0u2u4u4 >/dev/null 2>%1 &:}%{A}%{A}
|
||||
<span class="org-variable-name">label-disconnected-foreground</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">777</span>
|
||||
</pre>
|
||||
</div>
|
||||
@ -990,19 +979,125 @@ yay -Sy > /dev/null <span class="org-highlight-numbers-number">2</span>>&a
|
||||
<span class="org-variable-name">format-connected</span> = <label-connected>
|
||||
<span class="org-variable-name">format-disconnected</span> = <label-disconnected>
|
||||
|
||||
<span class="org-variable-name">label-connected</span> = 直 %essid%
|
||||
<span class="org-variable-name">label-connected</span> = %{A3:bash ~/.config/polybar/scripts/connection-manager.sh >/dev/null 2>%1 &:}%{A1:bash ~/.config/polybar/scripts/connection-toggle.sh wlp2s0 >/dev/null 2>%1 &:}直 %essid%%{A}%{A}
|
||||
<span class="org-variable-name">label-connected-foreground</span> = ${colors.fg}
|
||||
|
||||
<span class="org-variable-name">label-disconnected</span> = 睊
|
||||
<span class="org-variable-name">label-disconnected</span> = %{A3:bash ~/.config/polybar/scripts/connection-manager.sh >/dev/null 2>%1 &:}%{A1:bash ~/.config/polybar/scripts/connection-toggle.sh wlp2s0 >/dev/null 2>%1 &:}直%{A}%{A}
|
||||
<span class="org-variable-name">label-disconnected-foreground</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">777</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4f57e9b" class="outline-3">
|
||||
<h3 id="org4f57e9b">Run Network Manager</h3>
|
||||
<div class="outline-text-3" id="text-org4f57e9b">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">$<span class="org-variable-name">TERMINAL</span> -e <span class="org-string">'</span><span class="org-type"><span class="org-string">sudo</span></span><span class="org-string"> nmtui'</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8c39876" class="outline-2">
|
||||
<h2 id="org8c39876">Wireguard</h2>
|
||||
<div class="outline-text-2" id="text-org8c39876">
|
||||
<div id="outline-container-org32bdecf" class="outline-3">
|
||||
<h3 id="org32bdecf">Toggle Wifi or Ethernet</h3>
|
||||
<div class="outline-text-3" id="text-org32bdecf">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Check if an argument is passed</span>
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>
|
||||
<span class="org-keyword">then</span>
|
||||
<span class="org-keyword">exit</span> <span class="org-highlight-numbers-number">1</span>
|
||||
<span class="org-keyword">fi</span>
|
||||
|
||||
<span class="org-variable-name">isdevicedown</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">nmcli</span> device status | <span class="org-type">grep</span> ^$<span class="org-highlight-numbers-number">1</span> | <span class="org-type">grep</span> disconnected<span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">isdevicedown</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>
|
||||
<span class="org-keyword">then</span>
|
||||
dunstify --replace=<span class="org-highlight-numbers-number">84847</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> <span class="org-string">"Disconnecting..."</span> && <span class="org-sh-escaped-newline">\</span>
|
||||
nmcli device disconnect $<span class="org-highlight-numbers-number">1</span> && <span class="org-sh-escaped-newline">\</span>
|
||||
dunstify --replace=<span class="org-highlight-numbers-number">84847</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> <span class="org-string">"Disconnected"</span>
|
||||
<span class="org-keyword">else</span>
|
||||
dunstify --replace=<span class="org-highlight-numbers-number">84847</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> <span class="org-string">"Connection..."</span> && <span class="org-sh-escaped-newline">\</span>
|
||||
nmcli device connect $<span class="org-highlight-numbers-number">1</span> && <span class="org-sh-escaped-newline">\</span>
|
||||
dunstify --replace=<span class="org-highlight-numbers-number">84847</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> <span class="org-string">"Connected"</span>
|
||||
<span class="org-keyword">fi</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org02c08ea" class="outline-2">
|
||||
<h2 id="org02c08ea">Bluetooth</h2>
|
||||
<div class="outline-text-2" id="text-org02c08ea">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">module/bluetooth</span>]
|
||||
<span class="org-variable-name">type</span> = custom/script
|
||||
|
||||
<span class="org-variable-name">format-underline</span> = ${colors.bg}
|
||||
<span class="org-variable-name">click-left</span> = ~/.config/polybar/scripts/bluetooth-toggle.sh >/dev/null 2>%1 &
|
||||
<span class="org-variable-name">click-right</span> = ~/.config/polybar/scripts/bluetooth-run.sh >/dev/null 2>%1 &
|
||||
<span class="org-variable-name">format</span> = <label>
|
||||
<span class="org-variable-name">exec</span> = ~/.config/polybar/scripts/bluetooth-status.sh
|
||||
|
||||
<span class="org-variable-name">interval</span> = <span class="org-highlight-numbers-number">2</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6e014b9" class="outline-3">
|
||||
<h3 id="org6e014b9"><code>bluetooth-run.sh</code> - Bluetooth Run Manager</h3>
|
||||
<div class="outline-text-3" id="text-org6e014b9">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">blueman-manager && <span class="org-type">pkill</span> blueman-applet
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6db713c" class="outline-3">
|
||||
<h3 id="org6db713c"><code>bluetooth-status.sh</code> - Bluetooth Connection Status</h3>
|
||||
<div class="outline-text-3" id="text-org6db713c">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">controllerid</span>=<span class="org-string">"9C:B6:D0:96:6E:C0"</span>
|
||||
|
||||
<span class="org-variable-name">isconnected</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">bluetoothctl</span> show $<span class="org-variable-name">controllerid</span> | <span class="org-type">grep</span> Powered | <span class="org-type">grep</span> yes<span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">isconnected</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>
|
||||
<span class="org-keyword">then</span>
|
||||
<span class="org-type">echo</span> <span class="org-string">""</span>
|
||||
<span class="org-keyword">else</span>
|
||||
<span class="org-type">echo</span> <span class="org-string">"%{F#859900}%{F-}"</span>
|
||||
<span class="org-keyword">fi</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgac4e24e" class="outline-3">
|
||||
<h3 id="orgac4e24e"><code>bluetooth-toggle.sh</code> - Toggle Bluetooth Connection</h3>
|
||||
<div class="outline-text-3" id="text-orgac4e24e">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">controllerid</span>=<span class="org-string">"9C:B6:D0:96:6E:C0"</span>
|
||||
|
||||
<span class="org-variable-name">isconnected</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">bluetoothctl</span> show $<span class="org-variable-name">controllerid</span> | <span class="org-type">grep</span> Powered | <span class="org-type">grep</span> yes<span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">isconnected</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>
|
||||
<span class="org-keyword">then</span>
|
||||
bluetoothctl power on && <span class="org-sh-escaped-newline">\</span>
|
||||
dunstify --replace=<span class="org-highlight-numbers-number">88498</span> <span class="org-string">"Bluetooth"</span> <span class="org-string">"Power ON"</span>
|
||||
<span class="org-keyword">else</span>
|
||||
bluetoothctl power off && <span class="org-sh-escaped-newline">\</span>
|
||||
dunstify --replace=<span class="org-highlight-numbers-number">88498</span> <span class="org-string">"Bluetooth"</span> <span class="org-string">"Power OFF"</span>
|
||||
<span class="org-keyword">fi</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb2ea4f9" class="outline-2">
|
||||
<h2 id="orgb2ea4f9">Wireguard</h2>
|
||||
<div class="outline-text-2" id="text-orgb2ea4f9">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">module/wireguard</span>]
|
||||
<span class="org-variable-name">type</span> = custom/script
|
||||
@ -1017,9 +1112,9 @@ yay -Sy > /dev/null <span class="org-highlight-numbers-number">2</span>>&a
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5fe71f8" class="outline-3">
|
||||
<h3 id="org5fe71f8">Wireguard Connection Status</h3>
|
||||
<div class="outline-text-3" id="text-org5fe71f8">
|
||||
<div id="outline-container-orgab5de35" class="outline-3">
|
||||
<h3 id="orgab5de35">Wireguard Connection Status</h3>
|
||||
<div class="outline-text-3" id="text-orgab5de35">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">config</span>=<span class="org-string">"homelab"</span>
|
||||
|
||||
@ -1035,9 +1130,9 @@ yay -Sy > /dev/null <span class="org-highlight-numbers-number">2</span>>&a
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgad2cf0d" class="outline-3">
|
||||
<h3 id="orgad2cf0d">Toggle Wireguard Connection</h3>
|
||||
<div class="outline-text-3" id="text-orgad2cf0d">
|
||||
<div id="outline-container-org50d7715" class="outline-3">
|
||||
<h3 id="org50d7715">Toggle Wireguard Connection</h3>
|
||||
<div class="outline-text-3" id="text-org50d7715">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">config</span>=<span class="org-string">"homelab"</span>
|
||||
|
||||
@ -1056,9 +1151,9 @@ yay -Sy > /dev/null <span class="org-highlight-numbers-number">2</span>>&a
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1abb101" class="outline-2">
|
||||
<h2 id="org1abb101">Microphone loopback</h2>
|
||||
<div class="outline-text-2" id="text-org1abb101">
|
||||
<div id="outline-container-org2c20f99" class="outline-2">
|
||||
<h2 id="org2c20f99">Microphone loopback</h2>
|
||||
<div class="outline-text-2" id="text-org2c20f99">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">module/loopback</span>]
|
||||
<span class="org-variable-name">type</span> = custom/script
|
||||
@ -1073,9 +1168,9 @@ yay -Sy > /dev/null <span class="org-highlight-numbers-number">2</span>>&a
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd343aa5" class="outline-3">
|
||||
<h3 id="orgd343aa5">Loopback Status</h3>
|
||||
<div class="outline-text-3" id="text-orgd343aa5">
|
||||
<div id="outline-container-orgd4b550f" class="outline-3">
|
||||
<h3 id="orgd4b550f">Loopback Status</h3>
|
||||
<div class="outline-text-3" id="text-orgd4b550f">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">loopback</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">pactl</span> list <span class="org-highlight-numbers-number">2</span>>/dev/null | <span class="org-type">grep</span> module-loopback | wc -l<span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
|
||||
@ -1089,9 +1184,9 @@ yay -Sy > /dev/null <span class="org-highlight-numbers-number">2</span>>&a
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org417e5fc" class="outline-3">
|
||||
<h3 id="org417e5fc">Toggle Loopback</h3>
|
||||
<div class="outline-text-3" id="text-org417e5fc">
|
||||
<div id="outline-container-orgf2e2fb0" class="outline-3">
|
||||
<h3 id="orgf2e2fb0">Toggle Loopback</h3>
|
||||
<div class="outline-text-3" id="text-orgf2e2fb0">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">loopback</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">pactl</span> list <span class="org-highlight-numbers-number">2</span>>/dev/null | <span class="org-type">grep</span> module-loopback | wc -l<span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
|
||||
@ -1109,9 +1204,9 @@ yay -Sy > /dev/null <span class="org-highlight-numbers-number">2</span>>&a
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org726272d" class="outline-2">
|
||||
<h2 id="org726272d">Screenshot</h2>
|
||||
<div class="outline-text-2" id="text-org726272d">
|
||||
<div id="outline-container-org1243118" class="outline-2">
|
||||
<h2 id="org1243118">Screenshot</h2>
|
||||
<div class="outline-text-2" id="text-org1243118">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">module/screenshot</span>]
|
||||
<span class="org-variable-name">type</span> = custom/text
|
||||
@ -1121,51 +1216,10 @@ yay -Sy > /dev/null <span class="org-highlight-numbers-number">2</span>>&a
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc30611d" class="outline-2">
|
||||
<h2 id="orgc30611d">Scripts</h2>
|
||||
<div class="outline-text-2" id="text-orgc30611d">
|
||||
</div>
|
||||
<div id="outline-container-orgfa1b0fe" class="outline-3">
|
||||
<h3 id="orgfa1b0fe">Launch</h3>
|
||||
<div class="outline-text-3" id="text-orgfa1b0fe">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Terminate already running bar instances</span>
|
||||
killall -q polybar
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Wait until the processes have been shut down</span>
|
||||
<span class="org-keyword">while</span> <span class="org-type">pgrep</span> -u $<span class="org-variable-name">UID</span> -x polybar >/dev/null; <span class="org-keyword">do</span> <span class="org-type">sleep</span> <span class="org-highlight-numbers-number">1</span>; <span class="org-keyword">done</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Launch Polybar, using default config location ~/.config/polybar/config</span>
|
||||
polybar top >>/tmp/polybar.log <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span> &
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">polybar bottom &</span>
|
||||
|
||||
<span class="org-type">echo</span> <span class="org-string">"Polybar launched..."</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org56bb827" class="outline-3">
|
||||
<h3 id="org56bb827">Toggle</h3>
|
||||
<div class="outline-text-3" id="text-org56bb827">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Usage : toggle.sh top</span>
|
||||
|
||||
<span class="org-variable-name">pid</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">pgrep</span> -f <span class="org-string">"polybar </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> <span class="org-negation-char">!</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">pid</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
||||
polybar-msg -p $<span class="org-variable-name">pid</span> cmd toggle >/dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span>
|
||||
<span class="org-keyword">fi</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-11-03 mar. 16:26</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:09</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -3,17 +3,13 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-11-03 mar. 16:26 -->
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Qutebrowser Configuration</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -26,42 +22,44 @@
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org22d9ea5">Import</a></li>
|
||||
<li><a href="#org89786f6">General config</a></li>
|
||||
<li><a href="#org870403a">Content</a></li>
|
||||
<li><a href="#orgdefaa05">Editor</a></li>
|
||||
<li><a href="#org409baa5">Downloads</a></li>
|
||||
<li><a href="#orgdc50649">Fonts</a></li>
|
||||
<li><a href="#orge859d77">Input</a></li>
|
||||
<li><a href="#org6a05c89">New Instance Options</a></li>
|
||||
<li><a href="#orgc336fd6">Spell Check</a></li>
|
||||
<li><a href="#org1d64606">Status Bar</a></li>
|
||||
<li><a href="#org7638343">Tabs</a></li>
|
||||
<li><a href="#orge28bc93">Urls and Search Engines</a></li>
|
||||
<li><a href="#orge8e8001">Normal Bindings</a></li>
|
||||
<li><a href="#orga6ae0da">Custom Bindings</a></li>
|
||||
<li><a href="#org3991a6c">Userscripts</a>
|
||||
<li><a href="#orgbf1db67">Import</a></li>
|
||||
<li><a href="#org5c0c4c4">General config</a></li>
|
||||
<li><a href="#org0471984">Content</a></li>
|
||||
<li><a href="#org9d328f1">Editor</a></li>
|
||||
<li><a href="#org2f9fab8">Downloads</a></li>
|
||||
<li><a href="#org8e4c9d3">Colors</a></li>
|
||||
<li><a href="#org945a9d5">Fonts</a></li>
|
||||
<li><a href="#org9d6e7d9">Input</a></li>
|
||||
<li><a href="#orgf8a9f79">New Instance Options</a></li>
|
||||
<li><a href="#org843b551">Spell Check</a></li>
|
||||
<li><a href="#orgab02456">Status Bar</a></li>
|
||||
<li><a href="#org5603d6f">Tabs</a></li>
|
||||
<li><a href="#orgc00c6db">Urls and Search Engines</a></li>
|
||||
<li><a href="#org5fbacda">Normal Bindings</a></li>
|
||||
<li><a href="#orgd5cf604">Custom Bindings</a></li>
|
||||
<li><a href="#org1668b62">Userscripts</a>
|
||||
<ul>
|
||||
<li><a href="#org6be4b76">Create a new password</a></li>
|
||||
<li><a href="#orge348df2">Download Youtube Video</a></li>
|
||||
<li><a href="#orgb8e61c0">Password_fill_rc</a></li>
|
||||
<li><a href="#org58d6993">Org-Capture</a></li>
|
||||
<li><a href="#org988c9e3">Org-Protocol-Capture-HTML</a></li>
|
||||
<li><a href="#org63ffcb4">Add Url to Buku using Rofi</a></li>
|
||||
<li><a href="#org0a503bf">Add Url to Buku without asking for information</a></li>
|
||||
<li><a href="#orga1def86">Download with aria2c</a></li>
|
||||
<li><a href="#orgf64e9d0">Download with aria2c on the Homelab</a></li>
|
||||
<li><a href="#orge0bf594">Screenshot</a></li>
|
||||
<li><a href="#orge050cda">Save to PDF</a></li>
|
||||
<li><a href="#org1453ee9">Create a new password</a></li>
|
||||
<li><a href="#orgeb0ef66">Download Youtube Video</a></li>
|
||||
<li><a href="#org38a2899">Password_fill_rc</a></li>
|
||||
<li><a href="#org5b8c3ce">Org-Capture</a></li>
|
||||
<li><a href="#org244788b">Org-Protocol-Capture-HTML</a></li>
|
||||
<li><a href="#org153f69f">Add Url to Buku using Rofi</a></li>
|
||||
<li><a href="#orgfe64fed">Add Url to Buku without asking for information</a></li>
|
||||
<li><a href="#orgf02d7da">Download with aria2c</a></li>
|
||||
<li><a href="#orgfcd3553">Download with aria2c on the Homelab</a></li>
|
||||
<li><a href="#orgcd649c5">Screenshot</a></li>
|
||||
<li><a href="#org13f7ed3">Save to PDF</a></li>
|
||||
<li><a href="#org0d058a3">Download AES video</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org22d9ea5" class="outline-2">
|
||||
<h2 id="org22d9ea5">Import</h2>
|
||||
<div class="outline-text-2" id="text-org22d9ea5">
|
||||
<div id="outline-container-orgbf1db67" class="outline-2">
|
||||
<h2 id="orgbf1db67">Import</h2>
|
||||
<div class="outline-text-2" id="text-orgbf1db67">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python"><span class="org-keyword">from</span> qutebrowser.config.configfiles <span class="org-keyword">import</span> ConfigAPI
|
||||
<span class="org-keyword">from</span> qutebrowser.config.config <span class="org-keyword">import</span> ConfigContainer
|
||||
@ -72,9 +70,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org89786f6" class="outline-2">
|
||||
<h2 id="org89786f6">General config</h2>
|
||||
<div class="outline-text-2" id="text-org89786f6">
|
||||
<div id="outline-container-org5c0c4c4" class="outline-2">
|
||||
<h2 id="org5c0c4c4">General config</h2>
|
||||
<div class="outline-text-2" id="text-org5c0c4c4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python"><span class="org-variable-name">c.aliases</span> = {<span class="org-string">'w'</span>: <span class="org-string">'session-save'</span>, <span class="org-string">'q'</span>: <span class="org-string">'quit'</span>, <span class="org-string">'wq'</span>: <span class="org-string">'quit --save'</span>}
|
||||
<span class="org-variable-name">c.auto_save.session</span> = <span class="org-constant">False</span>
|
||||
@ -85,16 +83,15 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org870403a" class="outline-2">
|
||||
<h2 id="org870403a">Content</h2>
|
||||
<div class="outline-text-2" id="text-org870403a">
|
||||
<div id="outline-container-org0471984" class="outline-2">
|
||||
<h2 id="org0471984">Content</h2>
|
||||
<div class="outline-text-2" id="text-org0471984">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python"><span class="org-variable-name">c.content.autoplay</span> = <span class="org-constant">False</span>
|
||||
<span class="org-variable-name">c.content.notifications</span> = <span class="org-constant">False</span>
|
||||
<span class="org-variable-name">c.content.geolocation</span> = <span class="org-string">'ask'</span>
|
||||
<span class="org-variable-name">c.content.javascript.alert</span> = <span class="org-constant">True</span>
|
||||
<span class="org-variable-name">c.content.javascript.can_access_clipboard</span> = <span class="org-constant">True</span>
|
||||
<span class="org-variable-name">c.content.media_capture</span> = <span class="org-string">'ask'</span>
|
||||
<span class="org-variable-name">c.content.pdfjs</span> = <span class="org-constant">False</span>
|
||||
<span class="org-variable-name">c.content.proxy</span> = <span class="org-string">'system'</span>
|
||||
</pre>
|
||||
@ -102,9 +99,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdefaa05" class="outline-2">
|
||||
<h2 id="orgdefaa05">Editor</h2>
|
||||
<div class="outline-text-2" id="text-orgdefaa05">
|
||||
<div id="outline-container-org9d328f1" class="outline-2">
|
||||
<h2 id="org9d328f1">Editor</h2>
|
||||
<div class="outline-text-2" id="text-org9d328f1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python"><span class="org-variable-name">c.editor.command</span> = [<span class="org-string">'/usr/bin/termite'</span>, <span class="org-string">'--class="Floating"'</span>, <span class="org-string">'-e'</span>, <span class="org-string">'nvim {}'</span>]
|
||||
</pre>
|
||||
@ -112,9 +109,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org409baa5" class="outline-2">
|
||||
<h2 id="org409baa5">Downloads</h2>
|
||||
<div class="outline-text-2" id="text-org409baa5">
|
||||
<div id="outline-container-org2f9fab8" class="outline-2">
|
||||
<h2 id="org2f9fab8">Downloads</h2>
|
||||
<div class="outline-text-2" id="text-org2f9fab8">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python"><span class="org-variable-name">c.downloads.location.directory</span> = <span class="org-string">'$HOME/Downloads/'</span>
|
||||
<span class="org-variable-name">c.downloads.location.prompt</span> = <span class="org-constant">True</span>
|
||||
@ -127,9 +124,19 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdc50649" class="outline-2">
|
||||
<h2 id="orgdc50649">Fonts</h2>
|
||||
<div class="outline-text-2" id="text-orgdc50649">
|
||||
<div id="outline-container-org8e4c9d3" class="outline-2">
|
||||
<h2 id="org8e4c9d3">Colors</h2>
|
||||
<div class="outline-text-2" id="text-org8e4c9d3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python"><span class="org-comment-delimiter"># </span><span class="org-comment">c.colors.webpage.darkmode.enabled = True</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org945a9d5" class="outline-2">
|
||||
<h2 id="org945a9d5">Fonts</h2>
|
||||
<div class="outline-text-2" id="text-org945a9d5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python"><span class="org-variable-name">c.fonts.default_family</span> = [<span class="org-string">"Hack Nerd Font Mono"</span>, <span class="org-string">"DejaVu Sans Mono"</span>, <span class="org-string">"Monaco"</span>]
|
||||
<span class="org-variable-name">c.fonts.prompts</span> = <span class="org-string">'10pt monospace'</span>
|
||||
@ -139,9 +146,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge859d77" class="outline-2">
|
||||
<h2 id="orge859d77">Input</h2>
|
||||
<div class="outline-text-2" id="text-orge859d77">
|
||||
<div id="outline-container-org9d6e7d9" class="outline-2">
|
||||
<h2 id="org9d6e7d9">Input</h2>
|
||||
<div class="outline-text-2" id="text-org9d6e7d9">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python">c.<span class="org-builtin">input</span>.insert_mode.auto_enter = <span class="org-constant">True</span>
|
||||
c.<span class="org-builtin">input</span>.insert_mode.auto_leave = <span class="org-constant">True</span>
|
||||
@ -152,9 +159,9 @@ c.<span class="org-builtin">input</span>.insert_mode.plugins = <span class="org-
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6a05c89" class="outline-2">
|
||||
<h2 id="org6a05c89">New Instance Options</h2>
|
||||
<div class="outline-text-2" id="text-org6a05c89">
|
||||
<div id="outline-container-orgf8a9f79" class="outline-2">
|
||||
<h2 id="orgf8a9f79">New Instance Options</h2>
|
||||
<div class="outline-text-2" id="text-orgf8a9f79">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python"><span class="org-variable-name">c.new_instance_open_target</span> = <span class="org-string">'tab'</span>
|
||||
<span class="org-variable-name">c.new_instance_open_target_window</span> = <span class="org-string">'last-focused'</span>
|
||||
@ -163,9 +170,9 @@ c.<span class="org-builtin">input</span>.insert_mode.plugins = <span class="org-
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc336fd6" class="outline-2">
|
||||
<h2 id="orgc336fd6">Spell Check</h2>
|
||||
<div class="outline-text-2" id="text-orgc336fd6">
|
||||
<div id="outline-container-org843b551" class="outline-2">
|
||||
<h2 id="org843b551">Spell Check</h2>
|
||||
<div class="outline-text-2" id="text-org843b551">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python"><span class="org-variable-name">c.spellcheck.languages</span> = [<span class="org-string">'en-US'</span>, <span class="org-string">'fr-FR'</span>]
|
||||
</pre>
|
||||
@ -173,9 +180,9 @@ c.<span class="org-builtin">input</span>.insert_mode.plugins = <span class="org-
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1d64606" class="outline-2">
|
||||
<h2 id="org1d64606">Status Bar</h2>
|
||||
<div class="outline-text-2" id="text-org1d64606">
|
||||
<div id="outline-container-orgab02456" class="outline-2">
|
||||
<h2 id="orgab02456">Status Bar</h2>
|
||||
<div class="outline-text-2" id="text-orgab02456">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python"><span class="org-comment-delimiter"># </span><span class="org-comment">Hide the statusbar unless a message is shown.</span>
|
||||
<span class="org-variable-name">c.statusbar.position</span> = <span class="org-string">'bottom'</span>
|
||||
@ -195,9 +202,9 @@ c.<span class="org-builtin">input</span>.insert_mode.plugins = <span class="org-
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7638343" class="outline-2">
|
||||
<h2 id="org7638343">Tabs</h2>
|
||||
<div class="outline-text-2" id="text-org7638343">
|
||||
<div id="outline-container-org5603d6f" class="outline-2">
|
||||
<h2 id="org5603d6f">Tabs</h2>
|
||||
<div class="outline-text-2" id="text-org5603d6f">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python"><span class="org-comment-delimiter"># </span><span class="org-comment">Open new tabs (middleclick/ctrl+click) in the background.</span>
|
||||
<span class="org-variable-name">c.tabs.background</span> = <span class="org-constant">True</span>
|
||||
@ -243,9 +250,9 @@ c.<span class="org-builtin">input</span>.insert_mode.plugins = <span class="org-
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge28bc93" class="outline-2">
|
||||
<h2 id="orge28bc93">Urls and Search Engines</h2>
|
||||
<div class="outline-text-2" id="text-orge28bc93">
|
||||
<div id="outline-container-orgc00c6db" class="outline-2">
|
||||
<h2 id="orgc00c6db">Urls and Search Engines</h2>
|
||||
<div class="outline-text-2" id="text-orgc00c6db">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python"><span class="org-variable-name">c.url.searchengines</span> = {
|
||||
<span class="org-string">'DEFAULT'</span>: <span class="org-string">'https://www.duckduckgo.org/?q={}'</span>,
|
||||
@ -271,14 +278,15 @@ c.<span class="org-builtin">input</span>.insert_mode.plugins = <span class="org-
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python"><span class="org-variable-name">c.url.start_pages</span> = [<span class="org-string">'https://homer.tdehaeze.xyz/'</span>]
|
||||
<span class="org-variable-name">c.url.default_page</span> = <span class="org-string">'https://homer.tdehaeze.xyz/'</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge8e8001" class="outline-2">
|
||||
<h2 id="orge8e8001">Normal Bindings</h2>
|
||||
<div class="outline-text-2" id="text-orge8e8001">
|
||||
<div id="outline-container-org5fbacda" class="outline-2">
|
||||
<h2 id="org5fbacda">Normal Bindings</h2>
|
||||
<div class="outline-text-2" id="text-org5fbacda">
|
||||
<p>
|
||||
Zooming
|
||||
</p>
|
||||
@ -390,9 +398,9 @@ config.bind(<span class="org-string">'gs'</span>, <span class="org-string">'open
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga6ae0da" class="outline-2">
|
||||
<h2 id="orga6ae0da">Custom Bindings</h2>
|
||||
<div class="outline-text-2" id="text-orga6ae0da">
|
||||
<div id="outline-container-orgd5cf604" class="outline-2">
|
||||
<h2 id="orgd5cf604">Custom Bindings</h2>
|
||||
<div class="outline-text-2" id="text-orgd5cf604">
|
||||
<p>
|
||||
Create a Password for the current website
|
||||
</p>
|
||||
@ -471,6 +479,14 @@ config.bind(<span class="org-string">',S'</span>, <span class="org-string">'spaw
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
Download AES video
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python">config.bind(<span class="org-string">',E'</span>, <span class="org-string">'spawn --userscript ~/.config/qutebrowser/userscripts/aes-download.sh'</span>)
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
Download a torrent
|
||||
</p>
|
||||
@ -505,14 +521,14 @@ Org Roam Entry for the current page
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3991a6c" class="outline-2">
|
||||
<h2 id="org3991a6c">Userscripts</h2>
|
||||
<div class="outline-text-2" id="text-org3991a6c">
|
||||
<div id="outline-container-org1668b62" class="outline-2">
|
||||
<h2 id="org1668b62">Userscripts</h2>
|
||||
<div class="outline-text-2" id="text-org1668b62">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6be4b76" class="outline-3">
|
||||
<h3 id="org6be4b76">Create a new password</h3>
|
||||
<div class="outline-text-3" id="text-org6be4b76">
|
||||
<div id="outline-container-org1453ee9" class="outline-3">
|
||||
<h3 id="org1453ee9">Create a new password</h3>
|
||||
<div class="outline-text-3" id="text-org1453ee9">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">url</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_URL</span></span><span class="org-string">"</span> | awk -F<span class="org-rainbow-delimiters-depth-2">[</span>/:<span class="org-rainbow-delimiters-depth-2">]</span> <span class="org-string">'{print $4}'</span> | rofi -p <span class="org-string">"URL"</span> -dmenu -lines <span class="org-highlight-numbers-number">1</span><span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
<span class="org-variable-name">username</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"dehaeze.thomas@gmail.com\nthomas.dehaeze@esrf.fr\ntdehaeze"</span> | rofi -p <span class="org-string">"Username"</span> -dmenu -lines <span class="org-highlight-numbers-number">5</span><span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
@ -531,11 +547,11 @@ Org Roam Entry for the current page
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge348df2" class="outline-3">
|
||||
<h3 id="orge348df2">Download Youtube Video</h3>
|
||||
<div class="outline-text-3" id="text-orge348df2">
|
||||
<div id="outline-container-orgeb0ef66" class="outline-3">
|
||||
<h3 id="orgeb0ef66">Download Youtube Video</h3>
|
||||
<div class="outline-text-3" id="text-orgeb0ef66">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-type">cd</span> ~/Documents/to-watch/;
|
||||
<pre class="src src-bash"><span class="org-type">cd</span> ~/Documents/to-watch/ || <span class="org-keyword">exit</span>;
|
||||
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> == *<span class="org-string">"list"</span>* <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
||||
<span class="org-variable-name">choice</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"Video\nPlaylist"</span> | rofi -dmenu -only-match -i<span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
@ -557,9 +573,9 @@ Org Roam Entry for the current page
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb8e61c0" class="outline-3">
|
||||
<h3 id="orgb8e61c0">Password_fill_rc</h3>
|
||||
<div class="outline-text-3" id="text-orgb8e61c0">
|
||||
<div id="outline-container-org38a2899" class="outline-3">
|
||||
<h3 id="org38a2899">Password_fill_rc</h3>
|
||||
<div class="outline-text-3" id="text-org38a2899">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Show all password fields in the menu</span>
|
||||
<span class="org-function-name">query_entries</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
|
||||
@ -585,9 +601,9 @@ Org Roam Entry for the current page
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org58d6993" class="outline-3">
|
||||
<h3 id="org58d6993">Org-Capture</h3>
|
||||
<div class="outline-text-3" id="text-org58d6993">
|
||||
<div id="outline-container-org5b8c3ce" class="outline-3">
|
||||
<h3 id="org5b8c3ce">Org-Capture</h3>
|
||||
<div class="outline-text-3" id="text-org5b8c3ce">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">readonly</span> <span class="org-variable-name">CAPTURE_SCRIPT</span>=~/.config/qutebrowser/userscripts/org-protocol-capture-html.sh
|
||||
|
||||
@ -606,9 +622,9 @@ Org Roam Entry for the current page
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org988c9e3" class="outline-3">
|
||||
<h3 id="org988c9e3">Org-Protocol-Capture-HTML</h3>
|
||||
<div class="outline-text-3" id="text-org988c9e3">
|
||||
<div id="outline-container-org244788b" class="outline-3">
|
||||
<h3 id="org244788b">Org-Protocol-Capture-HTML</h3>
|
||||
<div class="outline-text-3" id="text-org244788b">
|
||||
<p>
|
||||
Defaults
|
||||
</p>
|
||||
@ -756,9 +772,9 @@ Send to Emacs
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org63ffcb4" class="outline-3">
|
||||
<h3 id="org63ffcb4">Add Url to Buku using Rofi</h3>
|
||||
<div class="outline-text-3" id="text-org63ffcb4">
|
||||
<div id="outline-container-org153f69f" class="outline-3">
|
||||
<h3 id="org153f69f">Add Url to Buku using Rofi</h3>
|
||||
<div class="outline-text-3" id="text-org153f69f">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">title</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_TITLE</span></span><span class="org-string">"</span> | rofi -p <span class="org-string">"Title"</span> -dmenu -lines <span class="org-highlight-numbers-number">1</span><span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
<span class="org-variable-name">tags</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">buku</span> -t --nc --np | sed -e <span class="org-string">'s/\s*[[:digit:]]*\.\s*\(.*\)\s*([[:digit:]]*)\s*/\1/'</span> -e <span class="org-string">'/^\s*$/d'</span> | sort | uniq | rofi -multi-select -p <span class="org-string">"Tags"</span> -dmenu | tr <span class="org-string">"\n"</span> <span class="org-string">","</span> | sed <span class="org-string">'s/\s*,\s*$//'</span><span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
@ -771,9 +787,9 @@ buku --add <span class="org-string">"</span><span class="org-string"><span class
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0a503bf" class="outline-3">
|
||||
<h3 id="org0a503bf">Add Url to Buku without asking for information</h3>
|
||||
<div class="outline-text-3" id="text-org0a503bf">
|
||||
<div id="outline-container-orgfe64fed" class="outline-3">
|
||||
<h3 id="orgfe64fed">Add Url to Buku without asking for information</h3>
|
||||
<div class="outline-text-3" id="text-orgfe64fed">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">buku --add $<span class="org-variable-name">QUTE_URL</span> --title <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_TITLE</span></span><span class="org-string">"</span> && <span class="org-sh-escaped-newline">\</span>
|
||||
dunstify <span class="org-string">"Buku"</span> <span class="org-string">"📑 Bookmark Added"</span>
|
||||
@ -782,9 +798,9 @@ buku --add <span class="org-string">"</span><span class="org-string"><span class
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga1def86" class="outline-3">
|
||||
<h3 id="orga1def86">Download with aria2c</h3>
|
||||
<div class="outline-text-3" id="text-orga1def86">
|
||||
<div id="outline-container-orgf02d7da" class="outline-3">
|
||||
<h3 id="orgf02d7da">Download with aria2c</h3>
|
||||
<div class="outline-text-3" id="text-orgf02d7da">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">aria2p add <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> && <span class="org-sh-escaped-newline">\</span>
|
||||
dunstify <span class="org-string">"Aria2"</span> <span class="org-string">"Download Started"</span> || <span class="org-sh-escaped-newline">\</span>
|
||||
@ -794,14 +810,11 @@ buku --add <span class="org-string">"</span><span class="org-string"><span class
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf64e9d0" class="outline-3">
|
||||
<h3 id="orgf64e9d0">Download with aria2c on the Homelab</h3>
|
||||
<div class="outline-text-3" id="text-orgf64e9d0">
|
||||
<div id="outline-container-orgfcd3553" class="outline-3">
|
||||
<h3 id="orgfcd3553">Download with aria2c on the Homelab</h3>
|
||||
<div class="outline-text-3" id="text-orgfcd3553">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Remove the =&af= from 1fichier.</span>
|
||||
$<span class="org-variable-name">url</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> | sed <span class="org-string">'s/\&af=.*$//g'</span><span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
|
||||
dlab add <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">url</span></span><span class="org-string">"</span> && <span class="org-sh-escaped-newline">\</span>
|
||||
<pre class="src src-bash">dl-add $<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> | sed <span class="org-string">'s/\&af=.*$//g'</span><span class="org-rainbow-delimiters-depth-1">)</span> && <span class="org-sh-escaped-newline">\</span>
|
||||
dunstify <span class="org-string">"Aria2"</span> <span class="org-string">"Download Started"</span> || <span class="org-sh-escaped-newline">\</span>
|
||||
dunstify <span class="org-string">"Aria2"</span> <span class="org-string">"Error"</span>
|
||||
</pre>
|
||||
@ -809,9 +822,9 @@ dlab add <span class="org-string">"</span><span class="org-string"><span class="
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge0bf594" class="outline-3">
|
||||
<h3 id="orge0bf594">Screenshot</h3>
|
||||
<div class="outline-text-3" id="text-orge0bf594">
|
||||
<div id="outline-container-orgcd649c5" class="outline-3">
|
||||
<h3 id="orgcd649c5">Screenshot</h3>
|
||||
<div class="outline-text-3" id="text-orgcd649c5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">filename</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">rofi</span> -p <span class="org-string">"filename"</span> -dmenu -lines <span class="org-highlight-numbers-number">1</span><span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
|
||||
@ -825,9 +838,9 @@ dlab add <span class="org-string">"</span><span class="org-string"><span class="
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge050cda" class="outline-3">
|
||||
<h3 id="orge050cda">Save to PDF</h3>
|
||||
<div class="outline-text-3" id="text-orge050cda">
|
||||
<div id="outline-container-org13f7ed3" class="outline-3">
|
||||
<h3 id="org13f7ed3">Save to PDF</h3>
|
||||
<div class="outline-text-3" id="text-org13f7ed3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">filename</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">rofi</span> -p <span class="org-string">"filename"</span> -dmenu -lines <span class="org-highlight-numbers-number">1</span><span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
|
||||
@ -840,11 +853,30 @@ dlab add <span class="org-string">"</span><span class="org-string"><span class="
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0d058a3" class="outline-3">
|
||||
<h3 id="org0d058a3">Download AES video</h3>
|
||||
<div class="outline-text-3" id="text-org0d058a3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">m3u8_path</span>=<span class="org-sh-quoted-exec">`</span><span class="org-type"><span class="org-sh-quoted-exec">curl</span></span><span class="org-sh-quoted-exec"> -L -s "$QUTE_URL" | pcregrep -o1 "file = \"\/(.*aes.*mp4)\""`</span>
|
||||
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">m3u8_path</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
||||
dunstify --urgency=critical <span class="org-string">"Qutebrowser"</span> <span class="org-string">"No m3u8 playlist found"</span>
|
||||
<span class="org-keyword">else</span>
|
||||
dunstify <span class="org-string">"Qutebrowser"</span> <span class="org-string">"Downloads..."</span> && <span class="org-sh-escaped-newline">\</span>
|
||||
<span class="org-type">cd</span> ~/Downloads/ && <span class="org-sh-escaped-newline">\</span>
|
||||
ffmpeg -user_agent <span class="org-string">"Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0"</span> -referer <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_URL</span></span><span class="org-string">"</span> -i <span class="org-string">"https://cdn2.digitellinc.com/play/_definst_/mp4:</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">m3u8_path</span></span><span class="org-string">/playlist.m3u8"</span> -c copy <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_TITLE</span></span><span class="org-string">.mp4"</span> && <span class="org-sh-escaped-newline">\</span>
|
||||
dunstify <span class="org-string">"Qutebrowser"</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">QUTE_TITLE</span></span><span class="org-string"> Downloaded"</span>
|
||||
<span class="org-keyword">fi</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-11-03 mar. 16:26</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:09</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
327
docs/ranger.html
327
docs/ranger.html
@ -3,17 +3,13 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-11-03 mar. 16:26 -->
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Ranger Configuration</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -26,67 +22,67 @@
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org03d9ae0">Documentation</a></li>
|
||||
<li><a href="#orgb698ce8">Config</a>
|
||||
<li><a href="#org55987ce">Documentation</a></li>
|
||||
<li><a href="#org986b109">Config</a>
|
||||
<ul>
|
||||
<li><a href="#orgb7bec10">Options</a></li>
|
||||
<li><a href="#org951cbf1">Command Aliases in the Console</a></li>
|
||||
<li><a href="#org100bad8">Some Custom Keybindings</a></li>
|
||||
<li><a href="#org02a57c0">Scripts</a>
|
||||
<li><a href="#orgd97cb82">Options</a></li>
|
||||
<li><a href="#org1ba2d9f">Command Aliases in the Console</a></li>
|
||||
<li><a href="#org7bcf949">Some Custom Keybindings</a></li>
|
||||
<li><a href="#orgfc90829">Scripts</a>
|
||||
<ul>
|
||||
<li><a href="#org8e29501">Extract Script</a></li>
|
||||
<li><a href="#org1847974">Compress Script</a></li>
|
||||
<li><a href="#org8d2106d">Backup to NAS</a></li>
|
||||
<li><a href="#org1380a63">Paste with Rsync</a></li>
|
||||
<li><a href="#org7681c16">Extract Script</a></li>
|
||||
<li><a href="#orgd110a48">Compress Script</a></li>
|
||||
<li><a href="#orgb94aa26">Backup to NAS</a></li>
|
||||
<li><a href="#org95969c5">Paste with Rsync</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd08d096">Define keys for the browser</a>
|
||||
<li><a href="#orgd57ea4e">Define keys for the browser</a>
|
||||
<ul>
|
||||
<li><a href="#org04d9a89">Basic</a></li>
|
||||
<li><a href="#org5904486">Open Shell in current directory</a></li>
|
||||
<li><a href="#org0c81d35">Open With</a></li>
|
||||
<li><a href="#orgada203d">Filter</a></li>
|
||||
<li><a href="#orgb764b86">Tagging / Marking</a></li>
|
||||
<li><a href="#orge2aa1a3">VIM-like</a></li>
|
||||
<li><a href="#orgffebb62">Jumping around</a></li>
|
||||
<li><a href="#orgd53d40d">Go to special folders</a></li>
|
||||
<li><a href="#orge844226">Get size of folders</a></li>
|
||||
<li><a href="#org09eae76">Yank path of directory/file</a></li>
|
||||
<li><a href="#orgf96f786">Drag and Drop</a></li>
|
||||
<li><a href="#org06db4c5">Rename files</a></li>
|
||||
<li><a href="#orgb374e3c">Paste files</a></li>
|
||||
<li><a href="#org2b7dea6">Delete and move files</a></li>
|
||||
<li><a href="#orgb3c7fc8">Copy files</a></li>
|
||||
<li><a href="#org71e2066">Searching</a></li>
|
||||
<li><a href="#org553185e">Tabs</a></li>
|
||||
<li><a href="#orgbaecc7e">Settings</a></li>
|
||||
<li><a href="#orgc0b9c58">Bookmarks</a></li>
|
||||
<li><a href="#org75b9bf9">FZF</a></li>
|
||||
<li><a href="#orgb8bf91c">Basic</a></li>
|
||||
<li><a href="#org1c6f91a">Open Shell in current directory</a></li>
|
||||
<li><a href="#orgdf72b75">Open With</a></li>
|
||||
<li><a href="#org8e148cf">Filter</a></li>
|
||||
<li><a href="#org29cf3e5">Tagging / Marking</a></li>
|
||||
<li><a href="#org8818767">VIM-like</a></li>
|
||||
<li><a href="#org093bc04">Jumping around</a></li>
|
||||
<li><a href="#org20acc37">Go to special folders</a></li>
|
||||
<li><a href="#orga3a9ba6">Get size of folders</a></li>
|
||||
<li><a href="#org8fee5b5">Yank path of directory/file</a></li>
|
||||
<li><a href="#orgf653bf2">Drag and Drop</a></li>
|
||||
<li><a href="#orgf520032">Rename files</a></li>
|
||||
<li><a href="#org402e074">Paste files</a></li>
|
||||
<li><a href="#org5c2f844">Delete and move files</a></li>
|
||||
<li><a href="#org8c6e09d">Copy files</a></li>
|
||||
<li><a href="#org9bae784">Searching</a></li>
|
||||
<li><a href="#org179497a">Tabs</a></li>
|
||||
<li><a href="#org9362376">Settings</a></li>
|
||||
<li><a href="#org3d82580">Bookmarks</a></li>
|
||||
<li><a href="#orgc3db4a0">FZF</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgdcee9fb">Define keys for the console</a>
|
||||
<li><a href="#org7e7a4ec">Define keys for the console</a>
|
||||
<ul>
|
||||
<li><a href="#orge103973">Basic</a></li>
|
||||
<li><a href="#orgb9d20bd">Move around</a></li>
|
||||
<li><a href="#org357eb3a">Line Editing</a></li>
|
||||
<li><a href="#org5ba4b89">Basic</a></li>
|
||||
<li><a href="#orga9f3972">Move around</a></li>
|
||||
<li><a href="#org6265874">Line Editing</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2e76cf4">Rifle</a></li>
|
||||
<li><a href="#orga4ef9e0">Ranger Commands</a>
|
||||
<li><a href="#org9007d23">Rifle</a></li>
|
||||
<li><a href="#org89bf721">Ranger Commands</a>
|
||||
<ul>
|
||||
<li><a href="#orgb5beb5c">Import</a></li>
|
||||
<li><a href="#org72e240f">fzf_select</a></li>
|
||||
<li><a href="#org58a0d43">Import</a></li>
|
||||
<li><a href="#orgb79cde7">fzf_select</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org03d9ae0" class="outline-2">
|
||||
<h2 id="org03d9ae0">Documentation</h2>
|
||||
<div class="outline-text-2" id="text-org03d9ae0">
|
||||
<div id="outline-container-org55987ce" class="outline-2">
|
||||
<h2 id="org55987ce">Documentation</h2>
|
||||
<div class="outline-text-2" id="text-org55987ce">
|
||||
<blockquote>
|
||||
<p>
|
||||
%f the highlighted file
|
||||
@ -100,14 +96,14 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb698ce8" class="outline-2">
|
||||
<h2 id="orgb698ce8">Config</h2>
|
||||
<div class="outline-text-2" id="text-orgb698ce8">
|
||||
<div id="outline-container-org986b109" class="outline-2">
|
||||
<h2 id="org986b109">Config</h2>
|
||||
<div class="outline-text-2" id="text-org986b109">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb7bec10" class="outline-3">
|
||||
<h3 id="orgb7bec10">Options</h3>
|
||||
<div class="outline-text-3" id="text-orgb7bec10">
|
||||
<div id="outline-container-orgd97cb82" class="outline-3">
|
||||
<h3 id="orgd97cb82">Options</h3>
|
||||
<div class="outline-text-3" id="text-orgd97cb82">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Which viewmode should be used? Possible values are:</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">miller: Use miller columns which show multiple levels of the hierarchy</span>
|
||||
@ -259,9 +255,9 @@ set line_numbers false
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org951cbf1" class="outline-3">
|
||||
<h3 id="org951cbf1">Command Aliases in the Console</h3>
|
||||
<div class="outline-text-3" id="text-org951cbf1">
|
||||
<div id="outline-container-org1ba2d9f" class="outline-3">
|
||||
<h3 id="org1ba2d9f">Command Aliases in the Console</h3>
|
||||
<div class="outline-text-3" id="text-org1ba2d9f">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">alias q quit
|
||||
|
||||
@ -277,9 +273,9 @@ alias travel scout -aefiklst
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org100bad8" class="outline-3">
|
||||
<h3 id="org100bad8">Some Custom Keybindings</h3>
|
||||
<div class="outline-text-3" id="text-org100bad8">
|
||||
<div id="outline-container-org7bcf949" class="outline-3">
|
||||
<h3 id="org7bcf949">Some Custom Keybindings</h3>
|
||||
<div class="outline-text-3" id="text-org7bcf949">
|
||||
<p>
|
||||
Extract
|
||||
</p>
|
||||
@ -313,10 +309,11 @@ Delete first page of pdf
|
||||
</div>
|
||||
|
||||
<p>
|
||||
Convert PDF to PNG
|
||||
Convert images/pdf/…
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">map ,cp shell pdf2png %f
|
||||
map ,cc shell convert-file %f
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@ -379,13 +376,13 @@ Backup to NAS
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org02a57c0" class="outline-3">
|
||||
<h3 id="org02a57c0">Scripts</h3>
|
||||
<div class="outline-text-3" id="text-org02a57c0">
|
||||
<div id="outline-container-orgfc90829" class="outline-3">
|
||||
<h3 id="orgfc90829">Scripts</h3>
|
||||
<div class="outline-text-3" id="text-orgfc90829">
|
||||
</div>
|
||||
<div id="outline-container-org8e29501" class="outline-4">
|
||||
<h4 id="org8e29501">Extract Script</h4>
|
||||
<div class="outline-text-4" id="text-org8e29501">
|
||||
<div id="outline-container-org7681c16" class="outline-4">
|
||||
<h4 id="org7681c16">Extract Script</h4>
|
||||
<div class="outline-text-4" id="text-org7681c16">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-variable-name">TMUX</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
||||
tmux split -v -l <span class="org-highlight-numbers-number">2</span> atool -x $<span class="org-highlight-numbers-number">1</span> && tmux select-pane -U
|
||||
@ -397,9 +394,9 @@ Backup to NAS
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1847974" class="outline-4">
|
||||
<h4 id="org1847974">Compress Script</h4>
|
||||
<div class="outline-text-4" id="text-org1847974">
|
||||
<div id="outline-container-orgd110a48" class="outline-4">
|
||||
<h4 id="orgd110a48">Compress Script</h4>
|
||||
<div class="outline-text-4" id="text-orgd110a48">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-variable-name">TMUX</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
||||
tmux split -v -l <span class="org-highlight-numbers-number">2</span> apack $<span class="org-rainbow-delimiters-depth-1">{</span><span class="org-variable-name">1</span>%.*<span class="org-rainbow-delimiters-depth-1">}</span>.zip $<span class="org-highlight-numbers-number">1</span> && tmux select-pane -U
|
||||
@ -412,9 +409,9 @@ Backup to NAS
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org8d2106d" class="outline-4">
|
||||
<h4 id="org8d2106d">Backup to NAS</h4>
|
||||
<div class="outline-text-4" id="text-org8d2106d">
|
||||
<div id="outline-container-orgb94aa26" class="outline-4">
|
||||
<h4 id="orgb94aa26">Backup to NAS</h4>
|
||||
<div class="outline-text-4" id="text-orgb94aa26">
|
||||
<ul class="org-ul">
|
||||
<li>Arguments are the files to be backup to the NAS</li>
|
||||
</ul>
|
||||
@ -430,9 +427,9 @@ Backup to NAS
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1380a63" class="outline-4">
|
||||
<h4 id="org1380a63">Paste with Rsync</h4>
|
||||
<div class="outline-text-4" id="text-org1380a63">
|
||||
<div id="outline-container-org95969c5" class="outline-4">
|
||||
<h4 id="org95969c5">Paste with Rsync</h4>
|
||||
<div class="outline-text-4" id="text-org95969c5">
|
||||
<ul class="org-ul">
|
||||
<li>First argument is the directory where to copy files</li>
|
||||
<li>All other arguments are files that are to be copied</li>
|
||||
@ -451,13 +448,13 @@ Backup to NAS
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgd08d096" class="outline-3">
|
||||
<h3 id="orgd08d096">Define keys for the browser</h3>
|
||||
<div class="outline-text-3" id="text-orgd08d096">
|
||||
<div id="outline-container-orgd57ea4e" class="outline-3">
|
||||
<h3 id="orgd57ea4e">Define keys for the browser</h3>
|
||||
<div class="outline-text-3" id="text-orgd57ea4e">
|
||||
</div>
|
||||
<div id="outline-container-org04d9a89" class="outline-4">
|
||||
<h4 id="org04d9a89">Basic</h4>
|
||||
<div class="outline-text-4" id="text-org04d9a89">
|
||||
<div id="outline-container-orgb8bf91c" class="outline-4">
|
||||
<h4 id="orgb8bf91c">Basic</h4>
|
||||
<div class="outline-text-4" id="text-orgb8bf91c">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">map Q quit!
|
||||
map q eval fm.execute_console(<span class="org-string">"shell tmux detach"</span>) if <span class="org-string">'TMUX'</span> in os.environ.keys() else fm.execute_console(<span class="org-string">"quit"</span>)
|
||||
@ -494,9 +491,9 @@ map ; console
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5904486" class="outline-4">
|
||||
<h4 id="org5904486">Open Shell in current directory</h4>
|
||||
<div class="outline-text-4" id="text-org5904486">
|
||||
<div id="outline-container-org1c6f91a" class="outline-4">
|
||||
<h4 id="org1c6f91a">Open Shell in current directory</h4>
|
||||
<div class="outline-text-4" id="text-org1c6f91a">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">map s shell $SHELL
|
||||
map S shell nohup $TERMINAL &
|
||||
@ -505,9 +502,9 @@ map S shell nohup $TERMINAL &
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0c81d35" class="outline-4">
|
||||
<h4 id="org0c81d35">Open With</h4>
|
||||
<div class="outline-text-4" id="text-org0c81d35">
|
||||
<div id="outline-container-orgdf72b75" class="outline-4">
|
||||
<h4 id="orgdf72b75">Open With</h4>
|
||||
<div class="outline-text-4" id="text-orgdf72b75">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">map O chain draw_possible_programs; console open_with%space
|
||||
</pre>
|
||||
@ -515,9 +512,9 @@ map S shell nohup $TERMINAL &
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgada203d" class="outline-4">
|
||||
<h4 id="orgada203d">Filter</h4>
|
||||
<div class="outline-text-4" id="text-orgada203d">
|
||||
<div id="outline-container-org8e148cf" class="outline-4">
|
||||
<h4 id="org8e148cf">Filter</h4>
|
||||
<div class="outline-text-4" id="text-org8e148cf">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">map f console filter%space
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Reset filter</span>
|
||||
@ -527,9 +524,9 @@ map F filter
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb764b86" class="outline-4">
|
||||
<h4 id="orgb764b86">Tagging / Marking</h4>
|
||||
<div class="outline-text-4" id="text-orgb764b86">
|
||||
<div id="outline-container-org29cf3e5" class="outline-4">
|
||||
<h4 id="org29cf3e5">Tagging / Marking</h4>
|
||||
<div class="outline-text-4" id="text-org29cf3e5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-variable-name">map <Space> mark_files toggle</span>=True
|
||||
<span class="org-variable-name">map v mark_files all</span>=True toggle=True
|
||||
@ -538,9 +535,9 @@ map F filter
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge2aa1a3" class="outline-4">
|
||||
<h4 id="orge2aa1a3">VIM-like</h4>
|
||||
<div class="outline-text-4" id="text-orge2aa1a3">
|
||||
<div id="outline-container-org8818767" class="outline-4">
|
||||
<h4 id="org8818767">VIM-like</h4>
|
||||
<div class="outline-text-4" id="text-org8818767">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">copymap <UP> k
|
||||
copymap <DOWN> j
|
||||
@ -553,9 +550,9 @@ copymap <END> G
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgffebb62" class="outline-4">
|
||||
<h4 id="orgffebb62">Jumping around</h4>
|
||||
<div class="outline-text-4" id="text-orgffebb62">
|
||||
<div id="outline-container-org093bc04" class="outline-4">
|
||||
<h4 id="org093bc04">Jumping around</h4>
|
||||
<div class="outline-text-4" id="text-org093bc04">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">map H history_go -1
|
||||
map L history_go <span class="org-highlight-numbers-number">1</span>
|
||||
@ -580,9 +577,9 @@ map [ move_parent -1
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd53d40d" class="outline-4">
|
||||
<h4 id="orgd53d40d">Go to special folders</h4>
|
||||
<div class="outline-text-4" id="text-orgd53d40d">
|
||||
<div id="outline-container-org20acc37" class="outline-4">
|
||||
<h4 id="org20acc37">Go to special folders</h4>
|
||||
<div class="outline-text-4" id="text-org20acc37">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">map gh cd ~/
|
||||
map gb cd ~/Cloud/brain
|
||||
@ -598,9 +595,9 @@ map gV cd ~/.config/literate-dotfiles
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge844226" class="outline-4">
|
||||
<h4 id="orge844226">Get size of folders</h4>
|
||||
<div class="outline-text-4" id="text-orge844226">
|
||||
<div id="outline-container-orga3a9ba6" class="outline-4">
|
||||
<h4 id="orga3a9ba6">Get size of folders</h4>
|
||||
<div class="outline-text-4" id="text-orga3a9ba6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Get size of all folders</span>
|
||||
<span class="org-variable-name">map du shell -p du --max-depth</span>=<span class="org-highlight-numbers-number">1</span> -h --apparent-size
|
||||
@ -611,9 +608,9 @@ map gV cd ~/.config/literate-dotfiles
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org09eae76" class="outline-4">
|
||||
<h4 id="org09eae76">Yank path of directory/file</h4>
|
||||
<div class="outline-text-4" id="text-org09eae76">
|
||||
<div id="outline-container-org8fee5b5" class="outline-4">
|
||||
<h4 id="org8fee5b5">Yank path of directory/file</h4>
|
||||
<div class="outline-text-4" id="text-org8fee5b5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Yank path of current directory/file</span>
|
||||
map yp shell -f echo -n %d/%f | xsel -i; xsel -o | xsel -i -b
|
||||
@ -626,9 +623,9 @@ map yn shell -f echo -n %f | xsel -i; xsel -o | xsel -i -b
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf96f786" class="outline-4">
|
||||
<h4 id="orgf96f786">Drag and Drop</h4>
|
||||
<div class="outline-text-4" id="text-orgf96f786">
|
||||
<div id="outline-container-orgf653bf2" class="outline-4">
|
||||
<h4 id="orgf653bf2">Drag and Drop</h4>
|
||||
<div class="outline-text-4" id="text-orgf653bf2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">map D shell dragon-drag-and-drop -a -x %p
|
||||
</pre>
|
||||
@ -636,9 +633,9 @@ map yn shell -f echo -n %f | xsel -i; xsel -o | xsel -i -b
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org06db4c5" class="outline-4">
|
||||
<h4 id="org06db4c5">Rename files</h4>
|
||||
<div class="outline-text-4" id="text-org06db4c5">
|
||||
<div id="outline-container-orgf520032" class="outline-4">
|
||||
<h4 id="orgf520032">Rename files</h4>
|
||||
<div class="outline-text-4" id="text-orgf520032">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">map a rename_append
|
||||
map C eval fm.execute_console(<span class="org-string">"bulkrename"</span>) if fm.thisdir.marked_items else fm.open_console(<span class="org-string">"rename "</span>)
|
||||
@ -649,9 +646,9 @@ map I eval fm.open_console(<span class="org-string">'rename '</span> + fm.thisf
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb374e3c" class="outline-4">
|
||||
<h4 id="orgb374e3c">Paste files</h4>
|
||||
<div class="outline-text-4" id="text-orgb374e3c">
|
||||
<div id="outline-container-org402e074" class="outline-4">
|
||||
<h4 id="org402e074">Paste files</h4>
|
||||
<div class="outline-text-4" id="text-org402e074">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">map pp paste
|
||||
<span class="org-variable-name">map po paste overwrite</span>=True
|
||||
@ -674,9 +671,9 @@ Paste with Rsync
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2b7dea6" class="outline-4">
|
||||
<h4 id="org2b7dea6">Delete and move files</h4>
|
||||
<div class="outline-text-4" id="text-org2b7dea6">
|
||||
<div id="outline-container-org5c2f844" class="outline-4">
|
||||
<h4 id="org5c2f844">Delete and move files</h4>
|
||||
<div class="outline-text-4" id="text-org5c2f844">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">map dD shell -s trash-put %s
|
||||
map dd cut
|
||||
@ -686,9 +683,9 @@ map du uncut
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb3c7fc8" class="outline-4">
|
||||
<h4 id="orgb3c7fc8">Copy files</h4>
|
||||
<div class="outline-text-4" id="text-orgb3c7fc8">
|
||||
<div id="outline-container-org8c6e09d" class="outline-4">
|
||||
<h4 id="org8c6e09d">Copy files</h4>
|
||||
<div class="outline-text-4" id="text-org8c6e09d">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">map yy copy
|
||||
map yu uncut
|
||||
@ -697,9 +694,9 @@ map yu uncut
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org71e2066" class="outline-4">
|
||||
<h4 id="org71e2066">Searching</h4>
|
||||
<div class="outline-text-4" id="text-org71e2066">
|
||||
<div id="outline-container-org9bae784" class="outline-4">
|
||||
<h4 id="org9bae784">Searching</h4>
|
||||
<div class="outline-text-4" id="text-org9bae784">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">map / console search%space
|
||||
map n search_next
|
||||
@ -709,9 +706,9 @@ map n search_next
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org553185e" class="outline-4">
|
||||
<h4 id="org553185e">Tabs</h4>
|
||||
<div class="outline-text-4" id="text-org553185e">
|
||||
<div id="outline-container-org179497a" class="outline-4">
|
||||
<h4 id="org179497a">Tabs</h4>
|
||||
<div class="outline-text-4" id="text-org179497a">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">map <C-n> tab_new ~
|
||||
map <C-w> tab_close
|
||||
@ -726,9 +723,9 @@ map gt tab_move <span class="org-highlight-numbers-number">1</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbaecc7e" class="outline-4">
|
||||
<h4 id="orgbaecc7e">Settings</h4>
|
||||
<div class="outline-text-4" id="text-orgbaecc7e">
|
||||
<div id="outline-container-org9362376" class="outline-4">
|
||||
<h4 id="org9362376">Settings</h4>
|
||||
<div class="outline-text-4" id="text-org9362376">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">map zh set show_hidden!
|
||||
|
||||
@ -739,9 +736,9 @@ map zv set use_preview_script!
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc0b9c58" class="outline-4">
|
||||
<h4 id="orgc0b9c58">Bookmarks</h4>
|
||||
<div class="outline-text-4" id="text-orgc0b9c58">
|
||||
<div id="outline-container-org3d82580" class="outline-4">
|
||||
<h4 id="org3d82580">Bookmarks</h4>
|
||||
<div class="outline-text-4" id="text-org3d82580">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">map `<any> enter_bookmark %any
|
||||
map <span class="org-string">'<any> enter_bookmark %any</span>
|
||||
@ -755,9 +752,9 @@ map <span class="org-string">'<any> enter_bookmark %any</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org75b9bf9" class="outline-4">
|
||||
<h4 id="org75b9bf9">FZF</h4>
|
||||
<div class="outline-text-4" id="text-org75b9bf9">
|
||||
<div id="outline-container-orgc3db4a0" class="outline-4">
|
||||
<h4 id="orgc3db4a0">FZF</h4>
|
||||
<div class="outline-text-4" id="text-orgc3db4a0">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">map <C-f> fzf_select
|
||||
</pre>
|
||||
@ -766,13 +763,13 @@ map <span class="org-string">'<any> enter_bookmark %any</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdcee9fb" class="outline-3">
|
||||
<h3 id="orgdcee9fb">Define keys for the console</h3>
|
||||
<div class="outline-text-3" id="text-orgdcee9fb">
|
||||
<div id="outline-container-org7e7a4ec" class="outline-3">
|
||||
<h3 id="org7e7a4ec">Define keys for the console</h3>
|
||||
<div class="outline-text-3" id="text-org7e7a4ec">
|
||||
</div>
|
||||
<div id="outline-container-orge103973" class="outline-4">
|
||||
<h4 id="orge103973">Basic</h4>
|
||||
<div class="outline-text-4" id="text-orge103973">
|
||||
<div id="outline-container-org5ba4b89" class="outline-4">
|
||||
<h4 id="org5ba4b89">Basic</h4>
|
||||
<div class="outline-text-4" id="text-org5ba4b89">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">cmap <tab> eval fm.ui.console.tab()
|
||||
cmap <s-tab> eval fm.ui.console.tab(-1)
|
||||
@ -787,9 +784,9 @@ copycmap <CR> <C-j>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb9d20bd" class="outline-4">
|
||||
<h4 id="orgb9d20bd">Move around</h4>
|
||||
<div class="outline-text-4" id="text-orgb9d20bd">
|
||||
<div id="outline-container-orga9f3972" class="outline-4">
|
||||
<h4 id="orga9f3972">Move around</h4>
|
||||
<div class="outline-text-4" id="text-orga9f3972">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">cmap <up> eval fm.ui.console.history_move(-1)
|
||||
cmap <down> eval fm.ui.console.history_move(<span class="org-highlight-numbers-number">1</span>)
|
||||
@ -802,9 +799,9 @@ cmap <down> eval fm.ui.console.history_move(<span class="org-highlight-nu
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org357eb3a" class="outline-4">
|
||||
<h4 id="org357eb3a">Line Editing</h4>
|
||||
<div class="outline-text-4" id="text-org357eb3a">
|
||||
<div id="outline-container-org6265874" class="outline-4">
|
||||
<h4 id="org6265874">Line Editing</h4>
|
||||
<div class="outline-text-4" id="text-org6265874">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">cmap <backspace> eval fm.ui.console.delete(-1)
|
||||
cmap <delete> eval fm.ui.console.delete(<span class="org-highlight-numbers-number">0</span>)
|
||||
@ -819,9 +816,9 @@ copycmap <end> <C-e>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2e76cf4" class="outline-2">
|
||||
<h2 id="org2e76cf4">Rifle</h2>
|
||||
<div class="outline-text-2" id="text-org2e76cf4">
|
||||
<div id="outline-container-org9007d23" class="outline-2">
|
||||
<h2 id="org9007d23">Rifle</h2>
|
||||
<div class="outline-text-2" id="text-org9007d23">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">This is the configuration file of "rifle", ranger's file executor/opener.</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Each line consists of conditions and a command. For each line the conditions</span>
|
||||
@ -1031,13 +1028,13 @@ label wallpaper, number <span class="org-highlight-numbers-number">14</span>, mi
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga4ef9e0" class="outline-2">
|
||||
<h2 id="orga4ef9e0">Ranger Commands</h2>
|
||||
<div class="outline-text-2" id="text-orga4ef9e0">
|
||||
<div id="outline-container-org89bf721" class="outline-2">
|
||||
<h2 id="org89bf721">Ranger Commands</h2>
|
||||
<div class="outline-text-2" id="text-org89bf721">
|
||||
</div>
|
||||
<div id="outline-container-orgb5beb5c" class="outline-3">
|
||||
<h3 id="orgb5beb5c">Import</h3>
|
||||
<div class="outline-text-3" id="text-orgb5beb5c">
|
||||
<div id="outline-container-org58a0d43" class="outline-3">
|
||||
<h3 id="org58a0d43">Import</h3>
|
||||
<div class="outline-text-3" id="text-org58a0d43">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python"><span class="org-keyword">from</span> ranger.api.commands <span class="org-keyword">import</span> *
|
||||
|
||||
@ -1047,9 +1044,9 @@ label wallpaper, number <span class="org-highlight-numbers-number">14</span>, mi
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org72e240f" class="outline-3">
|
||||
<h3 id="org72e240f">fzf_select</h3>
|
||||
<div class="outline-text-3" id="text-org72e240f">
|
||||
<div id="outline-container-orgb79cde7" class="outline-3">
|
||||
<h3 id="orgb79cde7">fzf_select</h3>
|
||||
<div class="outline-text-3" id="text-orgb79cde7">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python"><span class="org-keyword">class</span> <span class="org-type">fzf_select</span>(Command):
|
||||
<span class="org-doc">"""</span>
|
||||
@ -1088,7 +1085,7 @@ label wallpaper, number <span class="org-highlight-numbers-number">14</span>, mi
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-11-03 mar. 16:26</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:09</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
238
docs/rofi.html
238
docs/rofi.html
@ -1,229 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-03-01 dim. 22:50 -->
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Rofi Configuration</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<style type="text/css">
|
||||
<!--/*--><![CDATA[/*><!--*/
|
||||
.title { text-align: center;
|
||||
margin-bottom: .2em; }
|
||||
.subtitle { text-align: center;
|
||||
font-size: medium;
|
||||
font-weight: bold;
|
||||
margin-top:0; }
|
||||
.todo { font-family: monospace; color: red; }
|
||||
.done { font-family: monospace; color: green; }
|
||||
.priority { font-family: monospace; color: orange; }
|
||||
.tag { background-color: #eee; font-family: monospace;
|
||||
padding: 2px; font-size: 80%; font-weight: normal; }
|
||||
.timestamp { color: #bebebe; }
|
||||
.timestamp-kwd { color: #5f9ea0; }
|
||||
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
|
||||
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
|
||||
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
|
||||
.underline { text-decoration: underline; }
|
||||
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
|
||||
p.verse { margin-left: 3%; }
|
||||
pre {
|
||||
border: 1px solid #ccc;
|
||||
box-shadow: 3px 3px 3px #eee;
|
||||
padding: 8pt;
|
||||
font-family: monospace;
|
||||
overflow: auto;
|
||||
margin: 1.2em;
|
||||
}
|
||||
pre.src {
|
||||
position: relative;
|
||||
overflow: visible;
|
||||
padding-top: 1.2em;
|
||||
}
|
||||
pre.src:before {
|
||||
display: none;
|
||||
position: absolute;
|
||||
background-color: white;
|
||||
top: -10px;
|
||||
right: 10px;
|
||||
padding: 3px;
|
||||
border: 1px solid black;
|
||||
}
|
||||
pre.src:hover:before { display: inline;}
|
||||
/* Languages per Org manual */
|
||||
pre.src-asymptote:before { content: 'Asymptote'; }
|
||||
pre.src-awk:before { content: 'Awk'; }
|
||||
pre.src-C:before { content: 'C'; }
|
||||
/* pre.src-C++ doesn't work in CSS */
|
||||
pre.src-clojure:before { content: 'Clojure'; }
|
||||
pre.src-css:before { content: 'CSS'; }
|
||||
pre.src-D:before { content: 'D'; }
|
||||
pre.src-ditaa:before { content: 'ditaa'; }
|
||||
pre.src-dot:before { content: 'Graphviz'; }
|
||||
pre.src-calc:before { content: 'Emacs Calc'; }
|
||||
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
|
||||
pre.src-fortran:before { content: 'Fortran'; }
|
||||
pre.src-gnuplot:before { content: 'gnuplot'; }
|
||||
pre.src-haskell:before { content: 'Haskell'; }
|
||||
pre.src-hledger:before { content: 'hledger'; }
|
||||
pre.src-java:before { content: 'Java'; }
|
||||
pre.src-js:before { content: 'Javascript'; }
|
||||
pre.src-latex:before { content: 'LaTeX'; }
|
||||
pre.src-ledger:before { content: 'Ledger'; }
|
||||
pre.src-lisp:before { content: 'Lisp'; }
|
||||
pre.src-lilypond:before { content: 'Lilypond'; }
|
||||
pre.src-lua:before { content: 'Lua'; }
|
||||
pre.src-matlab:before { content: 'MATLAB'; }
|
||||
pre.src-mscgen:before { content: 'Mscgen'; }
|
||||
pre.src-ocaml:before { content: 'Objective Caml'; }
|
||||
pre.src-octave:before { content: 'Octave'; }
|
||||
pre.src-org:before { content: 'Org mode'; }
|
||||
pre.src-oz:before { content: 'OZ'; }
|
||||
pre.src-plantuml:before { content: 'Plantuml'; }
|
||||
pre.src-processing:before { content: 'Processing.js'; }
|
||||
pre.src-python:before { content: 'Python'; }
|
||||
pre.src-R:before { content: 'R'; }
|
||||
pre.src-ruby:before { content: 'Ruby'; }
|
||||
pre.src-sass:before { content: 'Sass'; }
|
||||
pre.src-scheme:before { content: 'Scheme'; }
|
||||
pre.src-screen:before { content: 'Gnu Screen'; }
|
||||
pre.src-sed:before { content: 'Sed'; }
|
||||
pre.src-sh:before { content: 'shell'; }
|
||||
pre.src-sql:before { content: 'SQL'; }
|
||||
pre.src-sqlite:before { content: 'SQLite'; }
|
||||
/* additional languages in org.el's org-babel-load-languages alist */
|
||||
pre.src-forth:before { content: 'Forth'; }
|
||||
pre.src-io:before { content: 'IO'; }
|
||||
pre.src-J:before { content: 'J'; }
|
||||
pre.src-makefile:before { content: 'Makefile'; }
|
||||
pre.src-maxima:before { content: 'Maxima'; }
|
||||
pre.src-perl:before { content: 'Perl'; }
|
||||
pre.src-picolisp:before { content: 'Pico Lisp'; }
|
||||
pre.src-scala:before { content: 'Scala'; }
|
||||
pre.src-shell:before { content: 'Shell Script'; }
|
||||
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
|
||||
/* additional language identifiers per "defun org-babel-execute"
|
||||
in ob-*.el */
|
||||
pre.src-cpp:before { content: 'C++'; }
|
||||
pre.src-abc:before { content: 'ABC'; }
|
||||
pre.src-coq:before { content: 'Coq'; }
|
||||
pre.src-groovy:before { content: 'Groovy'; }
|
||||
/* additional language identifiers from org-babel-shell-names in
|
||||
ob-shell.el: ob-shell is the only babel language using a lambda to put
|
||||
the execution function name together. */
|
||||
pre.src-bash:before { content: 'bash'; }
|
||||
pre.src-csh:before { content: 'csh'; }
|
||||
pre.src-ash:before { content: 'ash'; }
|
||||
pre.src-dash:before { content: 'dash'; }
|
||||
pre.src-ksh:before { content: 'ksh'; }
|
||||
pre.src-mksh:before { content: 'mksh'; }
|
||||
pre.src-posh:before { content: 'posh'; }
|
||||
/* Additional Emacs modes also supported by the LaTeX listings package */
|
||||
pre.src-ada:before { content: 'Ada'; }
|
||||
pre.src-asm:before { content: 'Assembler'; }
|
||||
pre.src-caml:before { content: 'Caml'; }
|
||||
pre.src-delphi:before { content: 'Delphi'; }
|
||||
pre.src-html:before { content: 'HTML'; }
|
||||
pre.src-idl:before { content: 'IDL'; }
|
||||
pre.src-mercury:before { content: 'Mercury'; }
|
||||
pre.src-metapost:before { content: 'MetaPost'; }
|
||||
pre.src-modula-2:before { content: 'Modula-2'; }
|
||||
pre.src-pascal:before { content: 'Pascal'; }
|
||||
pre.src-ps:before { content: 'PostScript'; }
|
||||
pre.src-prolog:before { content: 'Prolog'; }
|
||||
pre.src-simula:before { content: 'Simula'; }
|
||||
pre.src-tcl:before { content: 'tcl'; }
|
||||
pre.src-tex:before { content: 'TeX'; }
|
||||
pre.src-plain-tex:before { content: 'Plain TeX'; }
|
||||
pre.src-verilog:before { content: 'Verilog'; }
|
||||
pre.src-vhdl:before { content: 'VHDL'; }
|
||||
pre.src-xml:before { content: 'XML'; }
|
||||
pre.src-nxml:before { content: 'XML'; }
|
||||
/* add a generic configuration mode; LaTeX export needs an additional
|
||||
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
|
||||
pre.src-conf:before { content: 'Configuration File'; }
|
||||
|
||||
table { border-collapse:collapse; }
|
||||
caption.t-above { caption-side: top; }
|
||||
caption.t-bottom { caption-side: bottom; }
|
||||
td, th { vertical-align:top; }
|
||||
th.org-right { text-align: center; }
|
||||
th.org-left { text-align: center; }
|
||||
th.org-center { text-align: center; }
|
||||
td.org-right { text-align: right; }
|
||||
td.org-left { text-align: left; }
|
||||
td.org-center { text-align: center; }
|
||||
dt { font-weight: bold; }
|
||||
.footpara { display: inline; }
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
margin: 10px;
|
||||
background: #ffffcc;
|
||||
}
|
||||
#org-div-home-and-up
|
||||
{ text-align: right; font-size: 70%; white-space: nowrap; }
|
||||
textarea { overflow-x: auto; }
|
||||
.linenr { font-size: smaller }
|
||||
.code-highlighted { background-color: #ffff00; }
|
||||
.org-info-js_info-navigation { border-style: none; }
|
||||
#org-info-js_console-label
|
||||
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
|
||||
.org-info-js_search-highlight
|
||||
{ background-color: #ffff00; color: #000000; font-weight: bold; }
|
||||
.org-svg { width: 90%; }
|
||||
/*]]>*/-->
|
||||
</style>
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<script type="text/javascript">
|
||||
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
|
||||
<!--/*--><![CDATA[/*><!--*/
|
||||
function CodeHighlightOn(elem, id)
|
||||
{
|
||||
var target = document.getElementById(id);
|
||||
if(null != target) {
|
||||
elem.cacheClassElem = elem.className;
|
||||
elem.cacheClassTarget = target.className;
|
||||
target.className = "code-highlighted";
|
||||
elem.className = "code-highlighted";
|
||||
}
|
||||
}
|
||||
function CodeHighlightOff(elem, id)
|
||||
{
|
||||
var target = document.getElementById(id);
|
||||
if(elem.cacheClassElem)
|
||||
elem.className = elem.cacheClassElem;
|
||||
if(elem.cacheClassTarget)
|
||||
target.className = elem.cacheClassTarget;
|
||||
}
|
||||
/*]]>*///-->
|
||||
// @license-end
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -236,15 +22,15 @@
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgf46135a">Rofi</a></li>
|
||||
<li><a href="#org0c04f0a">Theme</a></li>
|
||||
<li><a href="#orgcda15fb">Rofi</a></li>
|
||||
<li><a href="#orged85414">Theme</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf46135a" class="outline-2">
|
||||
<h2 id="orgf46135a">Rofi</h2>
|
||||
<div class="outline-text-2" id="text-orgf46135a">
|
||||
<div id="outline-container-orgcda15fb" class="outline-2">
|
||||
<h2 id="orgcda15fb">Rofi</h2>
|
||||
<div class="outline-text-2" id="text-orgcda15fb">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-type">configuration</span> {
|
||||
modi: <span class="org-string">"window,run,ssh"</span>;
|
||||
@ -297,9 +83,9 @@ kb-cancel: <span class="org-string">"Escape,Control+g"</span>;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0c04f0a" class="outline-2">
|
||||
<h2 id="org0c04f0a">Theme</h2>
|
||||
<div class="outline-text-2" id="text-org0c04f0a">
|
||||
<div id="outline-container-orged85414" class="outline-2">
|
||||
<h2 id="orged85414">Theme</h2>
|
||||
<div class="outline-text-2" id="text-orged85414">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-type">configuration</span> {
|
||||
me-select-entry: <span class="org-string">"MouseSecondary"</span>;
|
||||
@ -488,7 +274,7 @@ element.normal.urgent,
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-03-01 dim. 22:50</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:09</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
589
docs/sxhkd.html
589
docs/sxhkd.html
@ -3,17 +3,13 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-05-26 mar. 08:39 -->
|
||||
<!-- 2021-01-01 ven. 20:08 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Simple X Hotkey Daemon</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -26,154 +22,108 @@
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org2fb1fb3">Basic</a></li>
|
||||
<li><a href="#org09132ec">Set shut down, restart and locking features</a></li>
|
||||
<li><a href="#orgbf890ea">Start Applications</a></li>
|
||||
<li><a href="#orga722b3c">Multimedia keys</a>
|
||||
<li><a href="#orgc1e18e6">Basic</a></li>
|
||||
<li><a href="#orgeadcbf4">Multimedia keys</a>
|
||||
<ul>
|
||||
<li><a href="#orgd2c2b8e">Sound</a></li>
|
||||
<li><a href="#orgfbf581a">Backlight</a></li>
|
||||
<li><a href="#org52b748d">Change Tracks</a></li>
|
||||
<li><a href="#org4be15b6">Print Screen</a></li>
|
||||
<li><a href="#orga6c4085">Other</a></li>
|
||||
<li><a href="#orgd68d181">Sound</a></li>
|
||||
<li><a href="#org24e45ab">Backlight</a></li>
|
||||
<li><a href="#org4c0670a">Change Tracks</a></li>
|
||||
<li><a href="#orgd572bed">Print Screen</a></li>
|
||||
<li><a href="#orga25cc09">Other</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org3ba2ae2">Command Mode</a></li>
|
||||
<li><a href="#org592413b">Change Keyboard Layout</a></li>
|
||||
<li><a href="#org9d0a9b9">BSPWM related</a>
|
||||
<li><a href="#orgfa5db4a"><code>Super + key</code> - Start Applications</a></li>
|
||||
<li><a href="#orgda8c5e4"><code>Super + Shift</code> - Managing Applications</a></li>
|
||||
<li><a href="#orgad54cb1"><code>Super + Space</code> - Command Mode</a></li>
|
||||
<li><a href="#org655f822">BSPWM related</a>
|
||||
<ul>
|
||||
<li><a href="#org97f0c44">BSPWM hotkeys</a></li>
|
||||
<li><a href="#org22b42d5">Monocle Layout</a></li>
|
||||
<li><a href="#org832c633">Set the window State</a></li>
|
||||
<li><a href="#org8464120">Sticky Window</a></li>
|
||||
<li><a href="#org33a7d86">Focus and Swap</a></li>
|
||||
<li><a href="#org64cc91f">Preselect</a></li>
|
||||
<li><a href="#org567d2ed">Resize</a></li>
|
||||
<li><a href="#orgb21b9fa">BSPWM hotkeys</a></li>
|
||||
<li><a href="#org7784897">Monocle Layout</a></li>
|
||||
<li><a href="#org7b07245">Set the window State</a></li>
|
||||
<li><a href="#org8a5891f">Sticky Window</a></li>
|
||||
<li><a href="#org9363f85">Focus and Swap</a></li>
|
||||
<li><a href="#orgad33cb8">Preselect</a></li>
|
||||
<li><a href="#orgfc80481">Resize</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org177f7f6">I3 related</a>
|
||||
<li><a href="#orgb8b77ba">I3 related</a>
|
||||
<ul>
|
||||
<li><a href="#org43a8bcb">Quit/Restart hotkeys</a></li>
|
||||
<li><a href="#org0592921">Set the window State</a></li>
|
||||
<li><a href="#orgd24232d">focus/swap</a></li>
|
||||
<li><a href="#org2ff4446">Preselect</a></li>
|
||||
<li><a href="#org1f53e51">Resize</a></li>
|
||||
<li><a href="#orgf0994dd">Kill Window</a></li>
|
||||
<li><a href="#orgca3bc33">Set the window State</a></li>
|
||||
<li><a href="#org993d527">focus/swap</a></li>
|
||||
<li><a href="#org544453b">Preselect</a></li>
|
||||
<li><a href="#org0dcf358">Resize</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2fb1fb3" class="outline-2">
|
||||
<h2 id="org2fb1fb3">Basic</h2>
|
||||
<div class="outline-text-2" id="text-org2fb1fb3">
|
||||
<div id="outline-container-orgc1e18e6" class="outline-2">
|
||||
<h2 id="orgc1e18e6">Basic</h2>
|
||||
<div class="outline-text-2" id="text-orgc1e18e6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">super + ctrl + x
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Kill Windows</span>
|
||||
super + ctrl + x
|
||||
xkill
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"># make sxhkd reload its configuration files:
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">make sxhkd reload its configuration files:</span>
|
||||
super + Escape
|
||||
pkill -USR1 -x sxhkd
|
||||
pkill -usr1 -x sxhkd; notify-send <span class="org-string">'sxhkd'</span> <span class="org-string">'Reloaded config'</span>
|
||||
|
||||
# Update Polybar
|
||||
super + r
|
||||
$HOME/.config/polybar/scripts/launch.sh
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Update Polybar</span>
|
||||
super + shift + r
|
||||
polybar-msg cmd restart
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org09132ec" class="outline-2">
|
||||
<h2 id="org09132ec">Set shut down, restart and locking features</h2>
|
||||
<div class="outline-text-2" id="text-org09132ec">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">XF86PowerOff
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Exit Screen</span>
|
||||
XF86PowerOff
|
||||
i3exit
|
||||
super + 0
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Exit Screen</span>
|
||||
super + <span class="org-highlight-numbers-number">0</span>
|
||||
i3exit
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbf890ea" class="outline-2">
|
||||
<h2 id="orgbf890ea">Start Applications</h2>
|
||||
<div class="outline-text-2" id="text-orgbf890ea">
|
||||
<p>
|
||||
Change Keyboard Layout:
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"># Start program launcher
|
||||
super + d
|
||||
rofi -show run
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Change keyboard to US-International layout</span>
|
||||
super + ctrl + d
|
||||
setxkbmap -layout us -variant intl -option caps:escape
|
||||
|
||||
# Launch categorized menu
|
||||
super + z
|
||||
rofi -show drun
|
||||
|
||||
# Start network manager
|
||||
super + w
|
||||
$TERMINAL -e 'sudo nmtui'
|
||||
|
||||
# Start Sound Manager
|
||||
super + shift + s
|
||||
pavucontrol
|
||||
|
||||
# Start Bluetooth Manager
|
||||
super + shift + b
|
||||
blueman-manager
|
||||
|
||||
# Windows Switch
|
||||
super + shift + w
|
||||
rofi -show window
|
||||
|
||||
# Bookmarks
|
||||
# super + shift + f
|
||||
# $HOME/bin/bukurun
|
||||
|
||||
# Passwords
|
||||
super + shift + p
|
||||
rofi-pass
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"># Start Terminal
|
||||
super + Return
|
||||
$TERMINAL
|
||||
|
||||
# Tmux Terminal
|
||||
super + shift + Return
|
||||
$TERMINAL -e 'tmux'
|
||||
|
||||
# Start Command line Calendar
|
||||
super + shift + c
|
||||
$TERMINAL -e "khal interactive"
|
||||
|
||||
# File Manager
|
||||
super + o
|
||||
$TERMINAL -e "tmux new-session -A -s ranger ranger"
|
||||
|
||||
# Browser
|
||||
super + i
|
||||
qutebrowser
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Change keyboard to US layout</span>
|
||||
super + shift + d
|
||||
setxkbmap -layout us -option caps:escape
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga722b3c" class="outline-2">
|
||||
<h2 id="orga722b3c">Multimedia keys</h2>
|
||||
<div class="outline-text-2" id="text-orga722b3c">
|
||||
<div id="outline-container-orgeadcbf4" class="outline-2">
|
||||
<h2 id="orgeadcbf4">Multimedia keys</h2>
|
||||
<div class="outline-text-2" id="text-orgeadcbf4">
|
||||
</div>
|
||||
<div id="outline-container-orgd2c2b8e" class="outline-3">
|
||||
<h3 id="orgd2c2b8e">Sound</h3>
|
||||
<div class="outline-text-3" id="text-orgd2c2b8e">
|
||||
<div id="outline-container-orgd68d181" class="outline-3">
|
||||
<h3 id="orgd68d181">Sound</h3>
|
||||
<div class="outline-text-3" id="text-orgd68d181">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">XF86AudioMute
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Mute/Unmute</span>
|
||||
XF86AudioMute
|
||||
amixer -D pulse sset Master toggle
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Increase Volume</span>
|
||||
XF86AudioRaiseVolume
|
||||
amixer -D pulse sset Master 2%+
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Decrease Volume</span>
|
||||
XF86AudioLowerVolume
|
||||
amixer -D pulse sset Master 2%-
|
||||
</pre>
|
||||
@ -181,60 +131,75 @@ XF86AudioLowerVolume
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfbf581a" class="outline-3">
|
||||
<h3 id="orgfbf581a">Backlight</h3>
|
||||
<div class="outline-text-3" id="text-orgfbf581a">
|
||||
<div id="outline-container-org24e45ab" class="outline-3">
|
||||
<h3 id="org24e45ab">Backlight</h3>
|
||||
<div class="outline-text-3" id="text-org24e45ab">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">XF86MonBrightnessUp
|
||||
xbacklight -inc 10
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Increase Backlight</span>
|
||||
XF86MonBrightnessUp
|
||||
xbacklight -inc <span class="org-highlight-numbers-number">10</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Descrease Backlight</span>
|
||||
XF86MonBrightnessDown
|
||||
xbacklight -dec 10
|
||||
xbacklight -dec <span class="org-highlight-numbers-number">10</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org52b748d" class="outline-3">
|
||||
<h3 id="org52b748d">Change Tracks</h3>
|
||||
<div class="outline-text-3" id="text-org52b748d">
|
||||
<div id="outline-container-org4c0670a" class="outline-3">
|
||||
<h3 id="org4c0670a">Change Tracks</h3>
|
||||
<div class="outline-text-3" id="text-org4c0670a">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">super + period
|
||||
mpc toggle
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Play/Pause music</span>
|
||||
super + period
|
||||
mpc toggle
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Previous/Next music</span>
|
||||
super + {greater,less}
|
||||
mpc {next,prev}
|
||||
mpc {next,prev}
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">XF86AudioPlay
|
||||
mpc toggle
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Play/Pause music</span>
|
||||
XF86AudioPlay
|
||||
mpc toggle
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Next music</span>
|
||||
XF86AudioNext
|
||||
mpc next
|
||||
mpc next
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Previous music</span>
|
||||
XF86AudioPrev
|
||||
mpc prev
|
||||
mpc prev
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4be15b6" class="outline-3">
|
||||
<h3 id="org4be15b6">Print Screen</h3>
|
||||
<div class="outline-text-3" id="text-org4be15b6">
|
||||
<div id="outline-container-orgd572bed" class="outline-3">
|
||||
<h3 id="orgd572bed">Print Screen</h3>
|
||||
<div class="outline-text-3" id="text-orgd572bed">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">Print
|
||||
~/.local/bin/screenshot
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Screenshot script</span>
|
||||
Print
|
||||
~/.local/bin/screenshot
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Switch Windows</span>
|
||||
XF86Display
|
||||
rofi -show window
|
||||
rofi -show window
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga6c4085" class="outline-3">
|
||||
<h3 id="orga6c4085">Other</h3>
|
||||
<div class="outline-text-3" id="text-orga6c4085">
|
||||
<div id="outline-container-orga25cc09" class="outline-3">
|
||||
<h3 id="orga25cc09">Other</h3>
|
||||
<div class="outline-text-3" id="text-orga25cc09">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">XF86Search
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Run Command</span>
|
||||
XF86Search
|
||||
rofi -show run
|
||||
</pre>
|
||||
</div>
|
||||
@ -242,70 +207,137 @@ XF86Display
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3ba2ae2" class="outline-2">
|
||||
<h2 id="org3ba2ae2">Command Mode</h2>
|
||||
<div class="outline-text-2" id="text-org3ba2ae2">
|
||||
<div id="outline-container-orgfa5db4a" class="outline-2">
|
||||
<h2 id="orgfa5db4a"><code>Super + key</code> - Start Applications</h2>
|
||||
<div class="outline-text-2" id="text-orgfa5db4a">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"># Command line Calendar Client (khal)
|
||||
super + space ; c
|
||||
$TERMINAL -e "khal interactive"
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Switch Windows</span>
|
||||
super + w
|
||||
rofi -show window
|
||||
|
||||
# GUI Calendar (Google Calendar)
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">program launcher</span>
|
||||
super + d
|
||||
rofi -show run
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">categorized menu</span>
|
||||
super + z
|
||||
rofi -show drun
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Start Terminal</span>
|
||||
super + Return
|
||||
$TERMINAL
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">File Manager</span>
|
||||
super + o
|
||||
$TERMINAL -e <span class="org-string">"tmux new-session -A -s ranger ranger"</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Browser</span>
|
||||
super + i
|
||||
qutebrowser
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Mails with neomutt</span>
|
||||
super + m
|
||||
$TERMINAL -e <span class="org-string">"tmux new-session -A -s neomutt neomutt"</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Emacs Client</span>
|
||||
super + e
|
||||
<span class="org-variable-name">emacsclient -create-frame --alternate-editor</span>=<span class="org-string">""</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgda8c5e4" class="outline-2">
|
||||
<h2 id="orgda8c5e4"><code>Super + Shift</code> - Managing Applications</h2>
|
||||
<div class="outline-text-2" id="text-orgda8c5e4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Network Manager</span>
|
||||
super + shift + w
|
||||
$TERMINAL -e <span class="org-string">'sudo nmtui'</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Bluetooth Manager</span>
|
||||
super + shift + b
|
||||
blueman-manager
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Sound Manager</span>
|
||||
super + shift + s
|
||||
pavucontrol
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Bookmarks</span>
|
||||
super + shift + f
|
||||
bukurun
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Passwords</span>
|
||||
super + shift + p
|
||||
rofi-pass
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgad54cb1" class="outline-2">
|
||||
<h2 id="orgad54cb1"><code>Super + Space</code> - Command Mode</h2>
|
||||
<div class="outline-text-2" id="text-orgad54cb1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Command line Calendar Client (khal)</span>
|
||||
super + space ; c
|
||||
$TERMINAL -e <span class="org-string">"khal interactive"</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">GUI Calendar (Google Calendar)</span>
|
||||
super + space ; shift + c
|
||||
$BROWSER https://calendar.google.com/
|
||||
|
||||
# pcmanfm: GUI file manager
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">pcmanfm: GUI file manager</span>
|
||||
super + space ; o
|
||||
pcmanfm;
|
||||
|
||||
# Download with Aria2c
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Download with Aria2c</span>
|
||||
super + space ; d
|
||||
$TERMINAL -e "tmux new-session -A -s aria2p aria2p"
|
||||
$TERMINAL -e <span class="org-string">"tmux new-session -A -s aria2p aria2p --port 6800 --host http://dl.tdehaeze.xyz --secret $(pass dl.tdehaeze.xyz/tdehaeze | sed -n 1p)"</span>
|
||||
|
||||
# Mails with neomutt
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Mails with neomutt</span>
|
||||
super + space ; m
|
||||
$TERMINAL -e "tmux new-session -A -s neomutt neomutt"
|
||||
$TERMINAL -e <span class="org-string">"tmux new-session -A -s neomutt neomutt"</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Run another instance of Neomutt in read-only mode</span>
|
||||
super + space ; shift + m
|
||||
$TERMINAL -e "neomutt -R"
|
||||
$TERMINAL -e <span class="org-string">"neomutt -R"</span>
|
||||
|
||||
# Weechat
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Weechat</span>
|
||||
super + space ; w
|
||||
$TERMINAL -e "tmux new-session -A -s weechat weechat"
|
||||
$TERMINAL -e <span class="org-string">"tmux new-session -A -s weechat weechat"</span>
|
||||
|
||||
# News with newsboat
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">News with newsboat</span>
|
||||
super + space ; n
|
||||
$TERMINAL -e "tmux new-session -A -s newsboat newsboat"
|
||||
$TERMINAL -e <span class="org-string">"tmux new-session -A -s newsboat newsboat"</span>
|
||||
|
||||
# Music with ncmpcpp
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Music with ncmpcpp</span>
|
||||
super + space ; p
|
||||
$TERMINAL -e "tmux new-session -A -s ncmpcpp ncmpcpp"
|
||||
$TERMINAL -e <span class="org-string">"tmux new-session -A -s ncmpcpp ncmpcpp"</span>
|
||||
|
||||
# Print Screen
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Print Screen</span>
|
||||
super + space ; shift + p
|
||||
$HOME/.local/bin/mopidy-restart
|
||||
|
||||
# Default Browser
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Default Browser</span>
|
||||
super + space ; i
|
||||
$BROWSER;
|
||||
|
||||
# Start Terminal Application
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Start Torrent Managaer</span>
|
||||
super + space ; t
|
||||
$TERMINAL -e "tremc"
|
||||
$TERMINAL -e <span class="org-string">"tremc"</span>
|
||||
|
||||
# Alternative Browser
|
||||
super + space ; shift + i
|
||||
brave;
|
||||
|
||||
# Emacs
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Emacs</span>
|
||||
super + space ; e
|
||||
emacs;
|
||||
|
||||
# Emacs Client
|
||||
super + space ; shift + e
|
||||
emacsclient -create-frame --alternate-editor=""
|
||||
|
||||
# Weather
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Weather</span>
|
||||
super + space ; shift + w
|
||||
weather;
|
||||
</pre>
|
||||
@ -313,33 +345,20 @@ super + space ; shift + w
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org592413b" class="outline-2">
|
||||
<h2 id="org592413b">Change Keyboard Layout</h2>
|
||||
<div class="outline-text-2" id="text-org592413b">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">super + ctrl + d
|
||||
setxkbmap -layout us -variant intl -option caps:escape
|
||||
super + shift + d
|
||||
setxkbmap -layout us -option caps:escape
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org655f822" class="outline-2">
|
||||
<h2 id="org655f822">BSPWM related</h2>
|
||||
<div class="outline-text-2" id="text-org655f822">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9d0a9b9" class="outline-2">
|
||||
<h2 id="org9d0a9b9">BSPWM related</h2>
|
||||
<div class="outline-text-2" id="text-org9d0a9b9">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org97f0c44" class="outline-3">
|
||||
<h3 id="org97f0c44">BSPWM hotkeys</h3>
|
||||
<div class="outline-text-3" id="text-org97f0c44">
|
||||
<div id="outline-container-orgb21b9fa" class="outline-3">
|
||||
<h3 id="orgb21b9fa">BSPWM hotkeys</h3>
|
||||
<div class="outline-text-3" id="text-orgb21b9fa">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"># quit/restart bspwm
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">quit/restart bspwm</span>
|
||||
super + alt + {q,r}
|
||||
bspc {quit,wm -r}
|
||||
|
||||
# close and kill
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">close and kill</span>
|
||||
super + {_,shift + }q
|
||||
bspc node -{c,k}
|
||||
</pre>
|
||||
@ -347,15 +366,15 @@ super + {_,shift + }q
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org22b42d5" class="outline-3">
|
||||
<h3 id="org22b42d5">Monocle Layout</h3>
|
||||
<div class="outline-text-3" id="text-org22b42d5">
|
||||
<div id="outline-container-org7784897" class="outline-3">
|
||||
<h3 id="org7784897">Monocle Layout</h3>
|
||||
<div class="outline-text-3" id="text-org7784897">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"># alternate between the tiled and monocle layout
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">alternate between the tiled and monocle layout</span>
|
||||
super + m
|
||||
bspc desktop -l next
|
||||
|
||||
# focus the next/previous node in the current desktop
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">focus the next/previous node in the current desktop</span>
|
||||
super + c
|
||||
bspc node -f next.local
|
||||
</pre>
|
||||
@ -363,26 +382,26 @@ super + c
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org832c633" class="outline-3">
|
||||
<h3 id="org832c633">Set the window State</h3>
|
||||
<div class="outline-text-3" id="text-org832c633">
|
||||
<div id="outline-container-org7b07245" class="outline-3">
|
||||
<h3 id="org7b07245">Set the window State</h3>
|
||||
<div class="outline-text-3" id="text-org7b07245">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"># Set the window state to tiled
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Set the window state to tiled</span>
|
||||
super + t
|
||||
bspc node -t tiled
|
||||
|
||||
|
||||
# Toggle Fullscreen State
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Toggle Fullscreen State</span>
|
||||
super + f
|
||||
if [ -z "$(bspc query -N -n focused.fullscreen)" ]; then \
|
||||
if [ -z <span class="org-string">"$(bspc query -N -n focused.fullscreen)"</span> ]; then \
|
||||
bspc node focused -t fullscreen; \
|
||||
else \
|
||||
bspc node focused -t tiled; \
|
||||
fi
|
||||
|
||||
# Toggle Floating State
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Toggle Floating State</span>
|
||||
super + s
|
||||
if [ -z "$(bspc query -N -n focused.floating)" ]; then \
|
||||
if [ -z <span class="org-string">"$(bspc query -N -n focused.floating)"</span> ]; then \
|
||||
bspc node focused -t floating; \
|
||||
else \
|
||||
bspc node focused -t tiled; \
|
||||
@ -392,11 +411,11 @@ super + s
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8464120" class="outline-3">
|
||||
<h3 id="org8464120">Sticky Window</h3>
|
||||
<div class="outline-text-3" id="text-org8464120">
|
||||
<div id="outline-container-org8a5891f" class="outline-3">
|
||||
<h3 id="org8a5891f">Sticky Window</h3>
|
||||
<div class="outline-text-3" id="text-org8a5891f">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"># set the node flags
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">set the node flags</span>
|
||||
super + ctrl + y
|
||||
bspc node -g sticky
|
||||
</pre>
|
||||
@ -404,54 +423,54 @@ super + ctrl + y
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org33a7d86" class="outline-3">
|
||||
<h3 id="org33a7d86">Focus and Swap</h3>
|
||||
<div class="outline-text-3" id="text-org33a7d86">
|
||||
<div id="outline-container-org9363f85" class="outline-3">
|
||||
<h3 id="org9363f85">Focus and Swap</h3>
|
||||
<div class="outline-text-3" id="text-org9363f85">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"># Focus/swap the node in the given direction
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Focus/swap the node in the given direction</span>
|
||||
super + {_,shift + }{h,j,k,l}
|
||||
bspc node -{f,s} {west,south,north,east}
|
||||
|
||||
# focus the last Node
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">focus the last Node</span>
|
||||
super + Tab
|
||||
bspc node -f last
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"># Focus the next/previous desktop in the current monitor
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Focus the next/previous desktop in the current monitor</span>
|
||||
super + {p,n}
|
||||
bspc desktop -f {prev,next}.local
|
||||
|
||||
# focus the last Desktop
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">focus the last Desktop</span>
|
||||
super + b
|
||||
bspc desktop -f last
|
||||
|
||||
# focus or send to the given desktop
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">focus or send to the given desktop</span>
|
||||
super + {_,ctrl + }{1-9}
|
||||
bspc {desktop -f,node -d} '^{1-9}'
|
||||
bspc {desktop -f,node -d} <span class="org-string">'^{1-9}'</span>
|
||||
|
||||
# Send and Focus to the given desktop
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Send and Focus to the given desktop</span>
|
||||
super + shift + {1-9}
|
||||
bspc node -d '^{1-9}' --follow
|
||||
bspc node -d <span class="org-string">'^{1-9}'</span> --follow
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org64cc91f" class="outline-3">
|
||||
<h3 id="org64cc91f">Preselect</h3>
|
||||
<div class="outline-text-3" id="text-org64cc91f">
|
||||
<div id="outline-container-orgad33cb8" class="outline-3">
|
||||
<h3 id="orgad33cb8">Preselect</h3>
|
||||
<div class="outline-text-3" id="text-orgad33cb8">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"># preselect the direction
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">preselect the direction</span>
|
||||
super + ctrl + {h,j,k,l}
|
||||
bspc node -p {west,south,north,east}
|
||||
|
||||
# preselect the ratio
|
||||
# super + ctrl + {1-9}
|
||||
# bspc node -o 0.{1-9}
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">preselect the ratio</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">super + ctrl + {1-9}</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">bspc node -o 0.{1-9}</span>
|
||||
|
||||
# cancel the preselection for the focused node
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">cancel the preselection for the focused node</span>
|
||||
super + ctrl + space
|
||||
bspc node -p cancel
|
||||
</pre>
|
||||
@ -459,72 +478,68 @@ super + ctrl + space
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org567d2ed" class="outline-3">
|
||||
<h3 id="org567d2ed">Resize</h3>
|
||||
<div class="outline-text-3" id="text-org567d2ed">
|
||||
<div id="outline-container-orgfc80481" class="outline-3">
|
||||
<h3 id="orgfc80481">Resize</h3>
|
||||
<div class="outline-text-3" id="text-orgfc80481">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"># expand a window by moving one of its side outward
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">expand a window by moving one of its side outward</span>
|
||||
super + alt + {h,j,k,l}
|
||||
bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
|
||||
bspc node -z {left -20 <span class="org-highlight-numbers-number">0</span>,bottom <span class="org-highlight-numbers-number">0</span> <span class="org-highlight-numbers-number">20</span>,top <span class="org-highlight-numbers-number">0</span> -20,right <span class="org-highlight-numbers-number">20</span> <span class="org-highlight-numbers-number">0</span>}
|
||||
|
||||
# contract a window by moving one of its side inward
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">contract a window by moving one of its side inward</span>
|
||||
super + alt + shift + {h,j,k,l}
|
||||
bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
|
||||
bspc node -z {right -20 <span class="org-highlight-numbers-number">0</span>,top <span class="org-highlight-numbers-number">0</span> <span class="org-highlight-numbers-number">20</span>,bottom <span class="org-highlight-numbers-number">0</span> -20,left <span class="org-highlight-numbers-number">20</span> <span class="org-highlight-numbers-number">0</span>}
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"># move a floating window
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">move a floating window</span>
|
||||
super + {Left,Down,Up,Right}
|
||||
bspc node -v {-20 0,0 20,0 -20,20 0}
|
||||
bspc node -v {-20 <span class="org-highlight-numbers-number">0</span>,<span class="org-highlight-numbers-number">0</span> <span class="org-highlight-numbers-number">20</span>,<span class="org-highlight-numbers-number">0</span> -20,<span class="org-highlight-numbers-number">20</span> <span class="org-highlight-numbers-number">0</span>}
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org177f7f6" class="outline-2">
|
||||
<h2 id="org177f7f6">I3 related</h2>
|
||||
<div class="outline-text-2" id="text-org177f7f6">
|
||||
<div id="outline-container-orgb8b77ba" class="outline-2">
|
||||
<h2 id="orgb8b77ba">I3 related</h2>
|
||||
<div class="outline-text-2" id="text-orgb8b77ba">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org43a8bcb" class="outline-3">
|
||||
<h3 id="org43a8bcb">Quit/Restart hotkeys</h3>
|
||||
<div class="outline-text-3" id="text-org43a8bcb">
|
||||
<div id="outline-container-orgf0994dd" class="outline-3">
|
||||
<h3 id="orgf0994dd">Kill Window</h3>
|
||||
<div class="outline-text-3" id="text-orgf0994dd">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"># quit/restart bspwm
|
||||
super + alt + {q,r}
|
||||
i3-msg {quit,restart}
|
||||
|
||||
# close and kill
|
||||
super + {_,shift + }q
|
||||
i3-msg {kill,kill}
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">close and kill</span>
|
||||
super + q
|
||||
i3-msg kill
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0592921" class="outline-3">
|
||||
<h3 id="org0592921">Set the window State</h3>
|
||||
<div class="outline-text-3" id="text-org0592921">
|
||||
<div id="outline-container-orgca3bc33" class="outline-3">
|
||||
<h3 id="orgca3bc33">Set the window State</h3>
|
||||
<div class="outline-text-3" id="text-orgca3bc33">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"># Set the window to full-screen
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Set the window to full-screen</span>
|
||||
super + f
|
||||
i3-msg fullscreen toggle
|
||||
|
||||
# Set the window to floating
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Set the window to floating</span>
|
||||
super + s
|
||||
i3-msg floating toggle
|
||||
|
||||
# Alternate between the tiled and normal layout
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Alternate between the tiled and normal layout</span>
|
||||
super + t
|
||||
i3-msg layout toggle tabbed split
|
||||
|
||||
# Change focus between tiling / floating windows
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Change focus between tiling / floating windows</span>
|
||||
super + c
|
||||
i3-msg focus mode_toggle
|
||||
|
||||
# Sticky window
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Sticky window</span>
|
||||
super + y
|
||||
i3-msg sticky toggle
|
||||
</pre>
|
||||
@ -532,11 +547,11 @@ super + y
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd24232d" class="outline-3">
|
||||
<h3 id="orgd24232d">focus/swap</h3>
|
||||
<div class="outline-text-3" id="text-orgd24232d">
|
||||
<div id="outline-container-org993d527" class="outline-3">
|
||||
<h3 id="org993d527">focus/swap</h3>
|
||||
<div class="outline-text-3" id="text-org993d527">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"># Focus/swap the node in the given direction
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Focus/swap the node in the given direction</span>
|
||||
super + {_,shift + }{h,Left}
|
||||
i3-msg {focus,move} left
|
||||
super + {_,shift + }{j,Down}
|
||||
@ -549,36 +564,42 @@ super + {_,shift + }{l,Right}
|
||||
</div>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"># Focus the next/previous desktop in the current monitor
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Focus the next/previous desktop in the current monitor</span>
|
||||
super + {p,n}
|
||||
i3-msg workspace {prev,next}
|
||||
|
||||
# focus the last Desktop
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Focus the last Desktop</span>
|
||||
super + b
|
||||
i3-msg workspace back_and_forth
|
||||
|
||||
# focus or send to the given desktop
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Focus to the given desktop</span>
|
||||
super + {1-9}
|
||||
i3-msg workspace '{1-9}'
|
||||
i3-msg workspace <span class="org-string">'{1-9}'</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Send to the given desktop</span>
|
||||
super + ctrl + {1-9}
|
||||
i3-msg move container to workspace '{1-9}'
|
||||
i3-msg move container to workspace <span class="org-string">'{1-9}'</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Focus and Send to the given desktop</span>
|
||||
super + shift + {1-9}
|
||||
WP={1-9} && i3-msg move container to workspace $WP && i3-msg workspace $WP
|
||||
<span class="org-variable-name">WP</span>={1-9} && i3-msg move container to workspace $WP && i3-msg workspace $WP
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2ff4446" class="outline-3">
|
||||
<h3 id="org2ff4446">Preselect</h3>
|
||||
<div class="outline-text-3" id="text-org2ff4446">
|
||||
<div id="outline-container-org544453b" class="outline-3">
|
||||
<h3 id="org544453b">Preselect</h3>
|
||||
<div class="outline-text-3" id="text-org544453b">
|
||||
<p>
|
||||
Preselect the direction
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">super + ctrl + {h,l,Left,Right}
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Set Horizontal Layout</span>
|
||||
super + ctrl + {h,l,Left,Right}
|
||||
i3-msg split h
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Set Vertical Layout</span>
|
||||
super + ctrl + {j,k,Up,Down}
|
||||
i3-msg split v
|
||||
</pre>
|
||||
@ -586,21 +607,25 @@ super + ctrl + {j,k,Up,Down}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1f53e51" class="outline-3">
|
||||
<h3 id="org1f53e51">Resize</h3>
|
||||
<div class="outline-text-3" id="text-org1f53e51">
|
||||
<div id="outline-container-org0dcf358" class="outline-3">
|
||||
<h3 id="org0dcf358">Resize</h3>
|
||||
<div class="outline-text-3" id="text-org0dcf358">
|
||||
<p>
|
||||
Expand/Shrink a window
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">super + alt + h
|
||||
i3-msg resize shrink width 10 px or 10 ppt
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Horizontal Shrink</span>
|
||||
super + alt + h
|
||||
i3-msg resize shrink width <span class="org-highlight-numbers-number">10</span> px or <span class="org-highlight-numbers-number">10</span> ppt
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Vertical Grow</span>
|
||||
super + alt + j
|
||||
i3-msg resize grow height 10 px or 10 ppt
|
||||
i3-msg resize grow height <span class="org-highlight-numbers-number">10</span> px or <span class="org-highlight-numbers-number">10</span> ppt
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Vertical Shrink</span>
|
||||
super + alt + k
|
||||
i3-msg resize shrink height 10 px or 10 ppt
|
||||
i3-msg resize shrink height <span class="org-highlight-numbers-number">10</span> px or <span class="org-highlight-numbers-number">10</span> ppt
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Horizontal Grow</span>
|
||||
super + alt + l
|
||||
i3-msg resize grow width 10 px or 10 ppt
|
||||
i3-msg resize grow width <span class="org-highlight-numbers-number">10</span> px or <span class="org-highlight-numbers-number">10</span> ppt
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
@ -609,7 +634,7 @@ super + alt + l
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-05-26 mar. 08:39</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:08</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -3,17 +3,13 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-11-03 mar. 16:26 -->
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Systemd services and timers</title>
|
||||
<title><code>systemd</code> services and timers</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -21,57 +17,52 @@
|
||||
|
|
||||
<a accesskey="H" href="./index.html"> HOME </a>
|
||||
</div><div id="content">
|
||||
<h1 class="title">Systemd services and timers</h1>
|
||||
<h1 class="title"><code>systemd</code> services and timers</h1>
|
||||
<div id="table-of-contents">
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org79abe94">Buku Git</a>
|
||||
<li><a href="#org9efc12d"><code>bukugit</code> - Automatic commit and push new bookmarks</a>
|
||||
<ul>
|
||||
<li><a href="#orgb1764a7">Service</a></li>
|
||||
<li><a href="#orgb5a6f5c">Timer</a></li>
|
||||
<li><a href="#orgea90a0b">Script</a></li>
|
||||
<li><a href="#org66d0b8b">Service</a></li>
|
||||
<li><a href="#org6446e63">Timer</a></li>
|
||||
<li><a href="#orge7172ba">Script</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1d68bb0">Check mail</a>
|
||||
<li><a href="#orga6ac362"><code>braingit</code> - Automatic commit and push new brain pages</a>
|
||||
<ul>
|
||||
<li><a href="#orgd709ba5">Service</a></li>
|
||||
<li><a href="#orgf92bdcb">Timer</a></li>
|
||||
<li><a href="#orgccb3216">Script</a></li>
|
||||
<li><a href="#orgaae4848">Service</a></li>
|
||||
<li><a href="#org6a6fc4a">Timer</a></li>
|
||||
<li><a href="#orgd894d23">Script</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgefb3320">Sync mail</a>
|
||||
<li><a href="#orgcd55ae1"><code>checkmail</code> - Check new mails</a>
|
||||
<ul>
|
||||
<li><a href="#orgcfd985d">Service</a></li>
|
||||
<li><a href="#org1367b93">Timer</a></li>
|
||||
<li><a href="#orgc063793">Service</a></li>
|
||||
<li><a href="#org81f3f11">Timer</a></li>
|
||||
<li><a href="#orga2cf44a">Script</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2ff1601">Vdirsyncer</a>
|
||||
<li><a href="#orgb4148ce"><code>syncmail</code> - Synchronize all mails</a>
|
||||
<ul>
|
||||
<li><a href="#orgbb80e97">Service</a></li>
|
||||
<li><a href="#org4c9436c">Timer</a></li>
|
||||
<li><a href="#orgab0dd46">Service</a></li>
|
||||
<li><a href="#org7b96d65">Timer</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb34591d">SSH Agent</a>
|
||||
<li><a href="#org64a5ff5"><code>vdirsyncer</code> - Synchronize calendar and contacts</a>
|
||||
<ul>
|
||||
<li><a href="#orgb0b42d7">Service</a></li>
|
||||
<li><a href="#orgf2c8322">Service</a></li>
|
||||
<li><a href="#org0f85a10">Timer</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge82b3ac">Powertop</a>
|
||||
<li><a href="#orgea6990c"><code>ssh-agent</code> - SSH Agent</a>
|
||||
<ul>
|
||||
<li><a href="#org88c131b">Service</a></li>
|
||||
<li><a href="#org4390641">Service</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd4b9d58">Mopidy</a>
|
||||
<li><a href="#org6c316cc"><code>powertop</code> - Powertop</a>
|
||||
<ul>
|
||||
<li><a href="#orgced338f">Service</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd17fb9d">Brain Website</a>
|
||||
<ul>
|
||||
<li><a href="#orga2a7998">Service</a></li>
|
||||
<li><a href="#org6d59851">Timer</a></li>
|
||||
<li><a href="#org8d0c564">Script</a></li>
|
||||
<li><a href="#org782b2ab">Service</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -81,13 +72,13 @@
|
||||
<a href="https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-systemd-services-and-units">https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-systemd-services-and-units</a>
|
||||
</p>
|
||||
|
||||
<div id="outline-container-org79abe94" class="outline-2">
|
||||
<h2 id="org79abe94">Buku Git</h2>
|
||||
<div class="outline-text-2" id="text-org79abe94">
|
||||
<div id="outline-container-org9efc12d" class="outline-2">
|
||||
<h2 id="org9efc12d"><code>bukugit</code> - Automatic commit and push new bookmarks</h2>
|
||||
<div class="outline-text-2" id="text-org9efc12d">
|
||||
</div>
|
||||
<div id="outline-container-orgb1764a7" class="outline-3">
|
||||
<h3 id="orgb1764a7">Service</h3>
|
||||
<div class="outline-text-3" id="text-orgb1764a7">
|
||||
<div id="outline-container-org66d0b8b" class="outline-3">
|
||||
<h3 id="org66d0b8b">Service</h3>
|
||||
<div class="outline-text-3" id="text-org66d0b8b">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
||||
<span class="org-variable-name">Description</span>=Sync Bookmarks every day
|
||||
@ -102,9 +93,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb5a6f5c" class="outline-3">
|
||||
<h3 id="orgb5a6f5c">Timer</h3>
|
||||
<div class="outline-text-3" id="text-orgb5a6f5c">
|
||||
<div id="outline-container-org6446e63" class="outline-3">
|
||||
<h3 id="org6446e63">Timer</h3>
|
||||
<div class="outline-text-3" id="text-org6446e63">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
||||
<span class="org-variable-name">Description</span>=Sync All Mails every x hours
|
||||
@ -125,9 +116,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgea90a0b" class="outline-3">
|
||||
<h3 id="orgea90a0b">Script</h3>
|
||||
<div class="outline-text-3" id="text-orgea90a0b">
|
||||
<div id="outline-container-orge7172ba" class="outline-3">
|
||||
<h3 id="orge7172ba">Script</h3>
|
||||
<div class="outline-text-3" id="text-orge7172ba">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-type">cd</span> ~/.local/share/buku/
|
||||
|
||||
@ -150,13 +141,75 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1d68bb0" class="outline-2">
|
||||
<h2 id="org1d68bb0">Check mail</h2>
|
||||
<div class="outline-text-2" id="text-org1d68bb0">
|
||||
<div id="outline-container-orga6ac362" class="outline-2">
|
||||
<h2 id="orga6ac362"><code>braingit</code> - Automatic commit and push new brain pages</h2>
|
||||
<div class="outline-text-2" id="text-orga6ac362">
|
||||
</div>
|
||||
<div id="outline-container-orgd709ba5" class="outline-3">
|
||||
<h3 id="orgd709ba5">Service</h3>
|
||||
<div class="outline-text-3" id="text-orgd709ba5">
|
||||
<div id="outline-container-orgaae4848" class="outline-3">
|
||||
<h3 id="orgaae4848">Service</h3>
|
||||
<div class="outline-text-3" id="text-orgaae4848">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
||||
<span class="org-variable-name">Description</span>=Sync Brain Website everyday
|
||||
<span class="org-variable-name">RefuseManualStart</span>=no
|
||||
<span class="org-variable-name">RefuseManualStop</span>=yes
|
||||
|
||||
[<span class="org-type">Service</span>]
|
||||
<span class="org-variable-name">Type</span>=oneshot
|
||||
<span class="org-variable-name">ExecStart</span>=%h/.local/bin/brain_git_push
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6a6fc4a" class="outline-3">
|
||||
<h3 id="org6a6fc4a">Timer</h3>
|
||||
<div class="outline-text-3" id="text-org6a6fc4a">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
||||
<span class="org-variable-name">Description</span>=Sync Brain Website everyday
|
||||
<span class="org-variable-name">RefuseManualStart</span>=no
|
||||
<span class="org-variable-name">RefuseManualStop</span>=no
|
||||
<span class="org-variable-name">Wants</span>=network-online.target
|
||||
<span class="org-variable-name">After</span>=network-online.target
|
||||
|
||||
[<span class="org-type">Timer</span>]
|
||||
<span class="org-variable-name">OnCalendar</span>=*-*-* <span class="org-highlight-numbers-number">16</span>:<span class="org-highlight-numbers-number">00</span>:<span class="org-highlight-numbers-number">00</span>
|
||||
<span class="org-variable-name">Persistent</span>=true
|
||||
<span class="org-variable-name">Unit</span>=braingit.service
|
||||
|
||||
[<span class="org-type">Install</span>]
|
||||
<span class="org-variable-name">WantedBy</span>=default.target
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd894d23" class="outline-3">
|
||||
<h3 id="orgd894d23">Script</h3>
|
||||
<div class="outline-text-3" id="text-orgd894d23">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-type">cd</span> ~/Cloud/brain-website/
|
||||
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> <span class="org-negation-char">!</span> -z $<span class="org-rainbow-delimiters-depth-3">(</span><span class="org-sh-quoted-exec">git</span> status -s content/<span class="org-rainbow-delimiters-depth-3">)</span> <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>
|
||||
<span class="org-keyword">then</span>
|
||||
<span class="org-type">git</span> add content static && <span class="org-sh-escaped-newline">\</span>
|
||||
<span class="org-type">git</span> commit -m <span class="org-string">"Update Content - </span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">date</span><span class="org-string"><span class="org-sh-quoted-exec"> +%F)</span></span><span class="org-string">"</span> && <span class="org-sh-escaped-newline">\</span>
|
||||
<span class="org-type">git</span> push
|
||||
<span class="org-keyword">exit</span>
|
||||
<span class="org-keyword">fi</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgcd55ae1" class="outline-2">
|
||||
<h2 id="orgcd55ae1"><code>checkmail</code> - Check new mails</h2>
|
||||
<div class="outline-text-2" id="text-orgcd55ae1">
|
||||
</div>
|
||||
<div id="outline-container-orgc063793" class="outline-3">
|
||||
<h3 id="orgc063793">Service</h3>
|
||||
<div class="outline-text-3" id="text-orgc063793">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
||||
<span class="org-variable-name">Description</span>=Check new mails
|
||||
@ -171,9 +224,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf92bdcb" class="outline-3">
|
||||
<h3 id="orgf92bdcb">Timer</h3>
|
||||
<div class="outline-text-3" id="text-orgf92bdcb">
|
||||
<div id="outline-container-org81f3f11" class="outline-3">
|
||||
<h3 id="org81f3f11">Timer</h3>
|
||||
<div class="outline-text-3" id="text-org81f3f11">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
||||
<span class="org-variable-name">Description</span>=Check Mail every x minutes
|
||||
@ -197,9 +250,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgccb3216" class="outline-3">
|
||||
<h3 id="orgccb3216">Script</h3>
|
||||
<div class="outline-text-3" id="text-orgccb3216">
|
||||
<div id="outline-container-orga2cf44a" class="outline-3">
|
||||
<h3 id="orga2cf44a">Script</h3>
|
||||
<div class="outline-text-3" id="text-orga2cf44a">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-keyword">while</span> <span class="org-rainbow-delimiters-depth-1">[</span> -n <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">do</span> <span class="org-comment-delimiter"># </span><span class="org-comment">while loop starts</span>
|
||||
<span class="org-keyword">case</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
|
||||
@ -260,13 +313,13 @@ mbsync $<span class="org-variable-name">opt_all</span> $<span class="org-variabl
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgefb3320" class="outline-2">
|
||||
<h2 id="orgefb3320">Sync mail</h2>
|
||||
<div class="outline-text-2" id="text-orgefb3320">
|
||||
<div id="outline-container-orgb4148ce" class="outline-2">
|
||||
<h2 id="orgb4148ce"><code>syncmail</code> - Synchronize all mails</h2>
|
||||
<div class="outline-text-2" id="text-orgb4148ce">
|
||||
</div>
|
||||
<div id="outline-container-orgcfd985d" class="outline-3">
|
||||
<h3 id="orgcfd985d">Service</h3>
|
||||
<div class="outline-text-3" id="text-orgcfd985d">
|
||||
<div id="outline-container-orgab0dd46" class="outline-3">
|
||||
<h3 id="orgab0dd46">Service</h3>
|
||||
<div class="outline-text-3" id="text-orgab0dd46">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
||||
<span class="org-variable-name">Description</span>=Sync all mails
|
||||
@ -281,9 +334,9 @@ mbsync $<span class="org-variable-name">opt_all</span> $<span class="org-variabl
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1367b93" class="outline-3">
|
||||
<h3 id="org1367b93">Timer</h3>
|
||||
<div class="outline-text-3" id="text-org1367b93">
|
||||
<div id="outline-container-org7b96d65" class="outline-3">
|
||||
<h3 id="org7b96d65">Timer</h3>
|
||||
<div class="outline-text-3" id="text-org7b96d65">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
||||
<span class="org-variable-name">Description</span>=Sync All Mails every x hours
|
||||
@ -308,13 +361,13 @@ mbsync $<span class="org-variable-name">opt_all</span> $<span class="org-variabl
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2ff1601" class="outline-2">
|
||||
<h2 id="org2ff1601">Vdirsyncer</h2>
|
||||
<div class="outline-text-2" id="text-org2ff1601">
|
||||
<div id="outline-container-org64a5ff5" class="outline-2">
|
||||
<h2 id="org64a5ff5"><code>vdirsyncer</code> - Synchronize calendar and contacts</h2>
|
||||
<div class="outline-text-2" id="text-org64a5ff5">
|
||||
</div>
|
||||
<div id="outline-container-orgbb80e97" class="outline-3">
|
||||
<h3 id="orgbb80e97">Service</h3>
|
||||
<div class="outline-text-3" id="text-orgbb80e97">
|
||||
<div id="outline-container-orgf2c8322" class="outline-3">
|
||||
<h3 id="orgf2c8322">Service</h3>
|
||||
<div class="outline-text-3" id="text-orgf2c8322">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
||||
<span class="org-variable-name">Description</span>=Synchronize calendars and contacts
|
||||
@ -330,9 +383,9 @@ mbsync $<span class="org-variable-name">opt_all</span> $<span class="org-variabl
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4c9436c" class="outline-3">
|
||||
<h3 id="org4c9436c">Timer</h3>
|
||||
<div class="outline-text-3" id="text-org4c9436c">
|
||||
<div id="outline-container-org0f85a10" class="outline-3">
|
||||
<h3 id="org0f85a10">Timer</h3>
|
||||
<div class="outline-text-3" id="text-org0f85a10">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
||||
<span class="org-variable-name">Description</span>=Synchronize vdirs
|
||||
@ -350,13 +403,13 @@ mbsync $<span class="org-variable-name">opt_all</span> $<span class="org-variabl
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb34591d" class="outline-2">
|
||||
<h2 id="orgb34591d">SSH Agent</h2>
|
||||
<div class="outline-text-2" id="text-orgb34591d">
|
||||
<div id="outline-container-orgea6990c" class="outline-2">
|
||||
<h2 id="orgea6990c"><code>ssh-agent</code> - SSH Agent</h2>
|
||||
<div class="outline-text-2" id="text-orgea6990c">
|
||||
</div>
|
||||
<div id="outline-container-orgb0b42d7" class="outline-3">
|
||||
<h3 id="orgb0b42d7">Service</h3>
|
||||
<div class="outline-text-3" id="text-orgb0b42d7">
|
||||
<div id="outline-container-org4390641" class="outline-3">
|
||||
<h3 id="org4390641">Service</h3>
|
||||
<div class="outline-text-3" id="text-org4390641">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
||||
<span class="org-variable-name">Description</span>=SSH key agent
|
||||
@ -374,13 +427,13 @@ mbsync $<span class="org-variable-name">opt_all</span> $<span class="org-variabl
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge82b3ac" class="outline-2">
|
||||
<h2 id="orge82b3ac">Powertop</h2>
|
||||
<div class="outline-text-2" id="text-orge82b3ac">
|
||||
<div id="outline-container-org6c316cc" class="outline-2">
|
||||
<h2 id="org6c316cc"><code>powertop</code> - Powertop</h2>
|
||||
<div class="outline-text-2" id="text-org6c316cc">
|
||||
</div>
|
||||
<div id="outline-container-org88c131b" class="outline-3">
|
||||
<h3 id="org88c131b">Service</h3>
|
||||
<div class="outline-text-3" id="text-org88c131b">
|
||||
<div id="outline-container-org782b2ab" class="outline-3">
|
||||
<h3 id="org782b2ab">Service</h3>
|
||||
<div class="outline-text-3" id="text-org782b2ab">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
||||
<span class="org-variable-name">Description</span>=Powertop tunings
|
||||
@ -396,102 +449,10 @@ mbsync $<span class="org-variable-name">opt_all</span> $<span class="org-variabl
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd4b9d58" class="outline-2">
|
||||
<h2 id="orgd4b9d58">Mopidy</h2>
|
||||
<div class="outline-text-2" id="text-orgd4b9d58">
|
||||
</div>
|
||||
<div id="outline-container-orgced338f" class="outline-3">
|
||||
<h3 id="orgced338f">Service</h3>
|
||||
<div class="outline-text-3" id="text-orgced338f">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
||||
<span class="org-variable-name">Description</span>=Mopidy music server
|
||||
<span class="org-variable-name">After</span>=avahi-daemon.service
|
||||
<span class="org-variable-name">After</span>=dbus.service
|
||||
<span class="org-variable-name">After</span>=network.target
|
||||
<span class="org-variable-name">After</span>=nss-lookup.target
|
||||
<span class="org-variable-name">After</span>=pulseaudio.service
|
||||
<span class="org-variable-name">After</span>=remote-fs.target
|
||||
<span class="org-variable-name">After</span>=sound.target
|
||||
|
||||
[<span class="org-type">Service</span>]
|
||||
<span class="org-variable-name">ExecStart</span>=/usr/bin/mopidy --config ~/.config/mopidy/mopidy.conf
|
||||
|
||||
[<span class="org-type">Install</span>]
|
||||
<span class="org-variable-name">WantedBy</span>=multi-user.target
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd17fb9d" class="outline-2">
|
||||
<h2 id="orgd17fb9d">Brain Website</h2>
|
||||
<div class="outline-text-2" id="text-orgd17fb9d">
|
||||
</div>
|
||||
<div id="outline-container-orga2a7998" class="outline-3">
|
||||
<h3 id="orga2a7998">Service</h3>
|
||||
<div class="outline-text-3" id="text-orga2a7998">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
||||
<span class="org-variable-name">Description</span>=Sync Brain Website everyday
|
||||
<span class="org-variable-name">RefuseManualStart</span>=no
|
||||
<span class="org-variable-name">RefuseManualStop</span>=yes
|
||||
|
||||
[<span class="org-type">Service</span>]
|
||||
<span class="org-variable-name">Type</span>=oneshot
|
||||
<span class="org-variable-name">ExecStart</span>=%h/.local/bin/brain_git_push
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6d59851" class="outline-3">
|
||||
<h3 id="org6d59851">Timer</h3>
|
||||
<div class="outline-text-3" id="text-org6d59851">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">Unit</span>]
|
||||
<span class="org-variable-name">Description</span>=Sync Brain Website everyday
|
||||
<span class="org-variable-name">RefuseManualStart</span>=no
|
||||
<span class="org-variable-name">RefuseManualStop</span>=no
|
||||
<span class="org-variable-name">Wants</span>=network-online.target
|
||||
<span class="org-variable-name">After</span>=network-online.target
|
||||
|
||||
[<span class="org-type">Timer</span>]
|
||||
<span class="org-variable-name">OnCalendar</span>=*-*-* <span class="org-highlight-numbers-number">16</span>:<span class="org-highlight-numbers-number">00</span>:<span class="org-highlight-numbers-number">00</span>
|
||||
<span class="org-variable-name">Persistent</span>=true
|
||||
<span class="org-variable-name">Unit</span>=braingit.service
|
||||
|
||||
[<span class="org-type">Install</span>]
|
||||
<span class="org-variable-name">WantedBy</span>=default.target
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8d0c564" class="outline-3">
|
||||
<h3 id="org8d0c564">Script</h3>
|
||||
<div class="outline-text-3" id="text-org8d0c564">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-type">cd</span> ~/Cloud/brain-website/
|
||||
|
||||
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> <span class="org-negation-char">!</span> -z $<span class="org-rainbow-delimiters-depth-3">(</span><span class="org-sh-quoted-exec">git</span> status -s content/<span class="org-rainbow-delimiters-depth-3">)</span> <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>
|
||||
<span class="org-keyword">then</span>
|
||||
<span class="org-type">git</span> add content static && <span class="org-sh-escaped-newline">\</span>
|
||||
<span class="org-type">git</span> commit -m <span class="org-string">"Update Content - </span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">date</span><span class="org-string"><span class="org-sh-quoted-exec"> +%F)</span></span><span class="org-string">"</span> && <span class="org-sh-escaped-newline">\</span>
|
||||
<span class="org-type">git</span> push
|
||||
<span class="org-keyword">exit</span>
|
||||
<span class="org-keyword">fi</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-11-03 mar. 16:26</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:09</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -3,17 +3,13 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-11-03 mar. 16:26 -->
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Termite Configuration</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -26,16 +22,16 @@
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org5db7562">Options</a></li>
|
||||
<li><a href="#org256b6c3">Hints</a></li>
|
||||
<li><a href="#org0d0648a">Colors</a></li>
|
||||
<li><a href="#orga2a8aab">Options</a></li>
|
||||
<li><a href="#orgd325539">Hints</a></li>
|
||||
<li><a href="#org53904a0">Colors</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5db7562" class="outline-2">
|
||||
<h2 id="org5db7562">Options</h2>
|
||||
<div class="outline-text-2" id="text-org5db7562">
|
||||
<div id="outline-container-orga2a8aab" class="outline-2">
|
||||
<h2 id="orga2a8aab">Options</h2>
|
||||
<div class="outline-text-2" id="text-orga2a8aab">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">options</span>]
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">allow_bold = true</span>
|
||||
@ -77,9 +73,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org256b6c3" class="outline-2">
|
||||
<h2 id="org256b6c3">Hints</h2>
|
||||
<div class="outline-text-2" id="text-org256b6c3">
|
||||
<div id="outline-container-orgd325539" class="outline-2">
|
||||
<h2 id="orgd325539">Hints</h2>
|
||||
<div class="outline-text-2" id="text-orgd325539">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">hints</span>]
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">padding = 2</span>
|
||||
@ -91,9 +87,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0d0648a" class="outline-2">
|
||||
<h2 id="org0d0648a">Colors</h2>
|
||||
<div class="outline-text-2" id="text-org0d0648a">
|
||||
<div id="outline-container-org53904a0" class="outline-2">
|
||||
<h2 id="org53904a0">Colors</h2>
|
||||
<div class="outline-text-2" id="text-org53904a0">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">[<span class="org-type">colors</span>]
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Base16 Gruvbox dark, soft</span>
|
||||
@ -163,7 +159,7 @@
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-11-03 mar. 16:26</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:09</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
308
docs/tmux.html
308
docs/tmux.html
@ -1,251 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-01-11 sam. 22:20 -->
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Tmux Configuration</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<style type="text/css">
|
||||
<!--/*--><![CDATA[/*><!--*/
|
||||
.title { text-align: center;
|
||||
margin-bottom: .2em; }
|
||||
.subtitle { text-align: center;
|
||||
font-size: medium;
|
||||
font-weight: bold;
|
||||
margin-top:0; }
|
||||
.todo { font-family: monospace; color: red; }
|
||||
.done { font-family: monospace; color: green; }
|
||||
.priority { font-family: monospace; color: orange; }
|
||||
.tag { background-color: #eee; font-family: monospace;
|
||||
padding: 2px; font-size: 80%; font-weight: normal; }
|
||||
.timestamp { color: #bebebe; }
|
||||
.timestamp-kwd { color: #5f9ea0; }
|
||||
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
|
||||
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
|
||||
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
|
||||
.underline { text-decoration: underline; }
|
||||
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
|
||||
p.verse { margin-left: 3%; }
|
||||
pre {
|
||||
border: 1px solid #ccc;
|
||||
box-shadow: 3px 3px 3px #eee;
|
||||
padding: 8pt;
|
||||
font-family: monospace;
|
||||
overflow: auto;
|
||||
margin: 1.2em;
|
||||
}
|
||||
pre.src {
|
||||
position: relative;
|
||||
overflow: visible;
|
||||
padding-top: 1.2em;
|
||||
}
|
||||
pre.src:before {
|
||||
display: none;
|
||||
position: absolute;
|
||||
background-color: white;
|
||||
top: -10px;
|
||||
right: 10px;
|
||||
padding: 3px;
|
||||
border: 1px solid black;
|
||||
}
|
||||
pre.src:hover:before { display: inline;}
|
||||
/* Languages per Org manual */
|
||||
pre.src-asymptote:before { content: 'Asymptote'; }
|
||||
pre.src-awk:before { content: 'Awk'; }
|
||||
pre.src-C:before { content: 'C'; }
|
||||
/* pre.src-C++ doesn't work in CSS */
|
||||
pre.src-clojure:before { content: 'Clojure'; }
|
||||
pre.src-css:before { content: 'CSS'; }
|
||||
pre.src-D:before { content: 'D'; }
|
||||
pre.src-ditaa:before { content: 'ditaa'; }
|
||||
pre.src-dot:before { content: 'Graphviz'; }
|
||||
pre.src-calc:before { content: 'Emacs Calc'; }
|
||||
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
|
||||
pre.src-fortran:before { content: 'Fortran'; }
|
||||
pre.src-gnuplot:before { content: 'gnuplot'; }
|
||||
pre.src-haskell:before { content: 'Haskell'; }
|
||||
pre.src-hledger:before { content: 'hledger'; }
|
||||
pre.src-java:before { content: 'Java'; }
|
||||
pre.src-js:before { content: 'Javascript'; }
|
||||
pre.src-latex:before { content: 'LaTeX'; }
|
||||
pre.src-ledger:before { content: 'Ledger'; }
|
||||
pre.src-lisp:before { content: 'Lisp'; }
|
||||
pre.src-lilypond:before { content: 'Lilypond'; }
|
||||
pre.src-lua:before { content: 'Lua'; }
|
||||
pre.src-matlab:before { content: 'MATLAB'; }
|
||||
pre.src-mscgen:before { content: 'Mscgen'; }
|
||||
pre.src-ocaml:before { content: 'Objective Caml'; }
|
||||
pre.src-octave:before { content: 'Octave'; }
|
||||
pre.src-org:before { content: 'Org mode'; }
|
||||
pre.src-oz:before { content: 'OZ'; }
|
||||
pre.src-plantuml:before { content: 'Plantuml'; }
|
||||
pre.src-processing:before { content: 'Processing.js'; }
|
||||
pre.src-python:before { content: 'Python'; }
|
||||
pre.src-R:before { content: 'R'; }
|
||||
pre.src-ruby:before { content: 'Ruby'; }
|
||||
pre.src-sass:before { content: 'Sass'; }
|
||||
pre.src-scheme:before { content: 'Scheme'; }
|
||||
pre.src-screen:before { content: 'Gnu Screen'; }
|
||||
pre.src-sed:before { content: 'Sed'; }
|
||||
pre.src-sh:before { content: 'shell'; }
|
||||
pre.src-sql:before { content: 'SQL'; }
|
||||
pre.src-sqlite:before { content: 'SQLite'; }
|
||||
/* additional languages in org.el's org-babel-load-languages alist */
|
||||
pre.src-forth:before { content: 'Forth'; }
|
||||
pre.src-io:before { content: 'IO'; }
|
||||
pre.src-J:before { content: 'J'; }
|
||||
pre.src-makefile:before { content: 'Makefile'; }
|
||||
pre.src-maxima:before { content: 'Maxima'; }
|
||||
pre.src-perl:before { content: 'Perl'; }
|
||||
pre.src-picolisp:before { content: 'Pico Lisp'; }
|
||||
pre.src-scala:before { content: 'Scala'; }
|
||||
pre.src-shell:before { content: 'Shell Script'; }
|
||||
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
|
||||
/* additional language identifiers per "defun org-babel-execute"
|
||||
in ob-*.el */
|
||||
pre.src-cpp:before { content: 'C++'; }
|
||||
pre.src-abc:before { content: 'ABC'; }
|
||||
pre.src-coq:before { content: 'Coq'; }
|
||||
pre.src-groovy:before { content: 'Groovy'; }
|
||||
/* additional language identifiers from org-babel-shell-names in
|
||||
ob-shell.el: ob-shell is the only babel language using a lambda to put
|
||||
the execution function name together. */
|
||||
pre.src-bash:before { content: 'bash'; }
|
||||
pre.src-csh:before { content: 'csh'; }
|
||||
pre.src-ash:before { content: 'ash'; }
|
||||
pre.src-dash:before { content: 'dash'; }
|
||||
pre.src-ksh:before { content: 'ksh'; }
|
||||
pre.src-mksh:before { content: 'mksh'; }
|
||||
pre.src-posh:before { content: 'posh'; }
|
||||
/* Additional Emacs modes also supported by the LaTeX listings package */
|
||||
pre.src-ada:before { content: 'Ada'; }
|
||||
pre.src-asm:before { content: 'Assembler'; }
|
||||
pre.src-caml:before { content: 'Caml'; }
|
||||
pre.src-delphi:before { content: 'Delphi'; }
|
||||
pre.src-html:before { content: 'HTML'; }
|
||||
pre.src-idl:before { content: 'IDL'; }
|
||||
pre.src-mercury:before { content: 'Mercury'; }
|
||||
pre.src-metapost:before { content: 'MetaPost'; }
|
||||
pre.src-modula-2:before { content: 'Modula-2'; }
|
||||
pre.src-pascal:before { content: 'Pascal'; }
|
||||
pre.src-ps:before { content: 'PostScript'; }
|
||||
pre.src-prolog:before { content: 'Prolog'; }
|
||||
pre.src-simula:before { content: 'Simula'; }
|
||||
pre.src-tcl:before { content: 'tcl'; }
|
||||
pre.src-tex:before { content: 'TeX'; }
|
||||
pre.src-plain-tex:before { content: 'Plain TeX'; }
|
||||
pre.src-verilog:before { content: 'Verilog'; }
|
||||
pre.src-vhdl:before { content: 'VHDL'; }
|
||||
pre.src-xml:before { content: 'XML'; }
|
||||
pre.src-nxml:before { content: 'XML'; }
|
||||
/* add a generic configuration mode; LaTeX export needs an additional
|
||||
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
|
||||
pre.src-conf:before { content: 'Configuration File'; }
|
||||
|
||||
table { border-collapse:collapse; }
|
||||
caption.t-above { caption-side: top; }
|
||||
caption.t-bottom { caption-side: bottom; }
|
||||
td, th { vertical-align:top; }
|
||||
th.org-right { text-align: center; }
|
||||
th.org-left { text-align: center; }
|
||||
th.org-center { text-align: center; }
|
||||
td.org-right { text-align: right; }
|
||||
td.org-left { text-align: left; }
|
||||
td.org-center { text-align: center; }
|
||||
dt { font-weight: bold; }
|
||||
.footpara { display: inline; }
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
margin: 10px;
|
||||
background: #ffffcc;
|
||||
}
|
||||
#org-div-home-and-up
|
||||
{ text-align: right; font-size: 70%; white-space: nowrap; }
|
||||
textarea { overflow-x: auto; }
|
||||
.linenr { font-size: smaller }
|
||||
.code-highlighted { background-color: #ffff00; }
|
||||
.org-info-js_info-navigation { border-style: none; }
|
||||
#org-info-js_console-label
|
||||
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
|
||||
.org-info-js_search-highlight
|
||||
{ background-color: #ffff00; color: #000000; font-weight: bold; }
|
||||
.org-svg { width: 90%; }
|
||||
/*]]>*/-->
|
||||
</style>
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<script type="text/javascript">
|
||||
/*
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
General Public License (GNU GPL) as published by the Free Software
|
||||
Foundation, either version 3 of the License, or (at your option)
|
||||
any later version. The code is distributed WITHOUT ANY WARRANTY;
|
||||
without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
|
||||
|
||||
As additional permission under GNU GPL version 3 section 7, you
|
||||
may distribute non-source (e.g., minimized or compacted) forms of
|
||||
that code without the copy of the GNU GPL normally required by
|
||||
section 4, provided you include this license notice and a URL
|
||||
through which recipients can access the Corresponding Source.
|
||||
|
||||
|
||||
@licend The above is the entire license notice
|
||||
for the JavaScript code in this tag.
|
||||
*/
|
||||
<!--/*--><![CDATA[/*><!--*/
|
||||
function CodeHighlightOn(elem, id)
|
||||
{
|
||||
var target = document.getElementById(id);
|
||||
if(null != target) {
|
||||
elem.cacheClassElem = elem.className;
|
||||
elem.cacheClassTarget = target.className;
|
||||
target.className = "code-highlighted";
|
||||
elem.className = "code-highlighted";
|
||||
}
|
||||
}
|
||||
function CodeHighlightOff(elem, id)
|
||||
{
|
||||
var target = document.getElementById(id);
|
||||
if(elem.cacheClassElem)
|
||||
elem.className = elem.cacheClassElem;
|
||||
if(elem.cacheClassTarget)
|
||||
target.className = elem.cacheClassTarget;
|
||||
}
|
||||
/*]]>*///-->
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -258,24 +22,24 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org7100dc0">Line</a></li>
|
||||
<li><a href="#orga883317">Bindings</a></li>
|
||||
<li><a href="#orgbb430a8">Settings</a></li>
|
||||
<li><a href="#org36a813b">Plugins</a>
|
||||
<li><a href="#org0839f62">Line</a></li>
|
||||
<li><a href="#org38bb482">Bindings</a></li>
|
||||
<li><a href="#org364f2d8">Settings</a></li>
|
||||
<li><a href="#orgabc3f53">Plugins</a>
|
||||
<ul>
|
||||
<li><a href="#orgf29132d">Install plugins</a></li>
|
||||
<li><a href="#org281bf63">Configuration</a></li>
|
||||
<li><a href="#org20fa141">Install plugins</a></li>
|
||||
<li><a href="#orgd295864">Configuration</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org0ea6f8c">Colors</a></li>
|
||||
<li><a href="#orge798cb7">Initialize TMUX plugin manager</a></li>
|
||||
<li><a href="#org6ad3f07">Colors</a></li>
|
||||
<li><a href="#org1235a26">Initialize TMUX plugin manager</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7100dc0" class="outline-2">
|
||||
<h2 id="org7100dc0">Line</h2>
|
||||
<div class="outline-text-2" id="text-org7100dc0">
|
||||
<div id="outline-container-org0839f62" class="outline-2">
|
||||
<h2 id="org0839f62">Line</h2>
|
||||
<div class="outline-text-2" id="text-org0839f62">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Activate the status bar</span>
|
||||
set -g status <span class="org-string">"on"</span>
|
||||
@ -330,9 +94,9 @@ set-window-option -g window-status-format <span class="org-string">"#[fg=colour2
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga883317" class="outline-2">
|
||||
<h2 id="orga883317">Bindings</h2>
|
||||
<div class="outline-text-2" id="text-orga883317">
|
||||
<div id="outline-container-org38bb482" class="outline-2">
|
||||
<h2 id="org38bb482">Bindings</h2>
|
||||
<div class="outline-text-2" id="text-org38bb482">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Set prefix to 'C-Space'</span>
|
||||
unbind C-b
|
||||
@ -412,9 +176,9 @@ bind-key -T copy-mode-vi <span class="org-string">'C-v'</span> send-keys -X rect
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbb430a8" class="outline-2">
|
||||
<h2 id="orgbb430a8">Settings</h2>
|
||||
<div class="outline-text-2" id="text-orgbb430a8">
|
||||
<div id="outline-container-org364f2d8" class="outline-2">
|
||||
<h2 id="org364f2d8">Settings</h2>
|
||||
<div class="outline-text-2" id="text-org364f2d8">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Activity monitoring</span>
|
||||
set -g visual-activity off
|
||||
@ -487,13 +251,13 @@ set-window-option -g aggressive-resize
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org36a813b" class="outline-2">
|
||||
<h2 id="org36a813b">Plugins</h2>
|
||||
<div class="outline-text-2" id="text-org36a813b">
|
||||
<div id="outline-container-orgabc3f53" class="outline-2">
|
||||
<h2 id="orgabc3f53">Plugins</h2>
|
||||
<div class="outline-text-2" id="text-orgabc3f53">
|
||||
</div>
|
||||
<div id="outline-container-orgf29132d" class="outline-3">
|
||||
<h3 id="orgf29132d">Install plugins</h3>
|
||||
<div class="outline-text-3" id="text-orgf29132d">
|
||||
<div id="outline-container-org20fa141" class="outline-3">
|
||||
<h3 id="org20fa141">Install plugins</h3>
|
||||
<div class="outline-text-3" id="text-org20fa141">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">set -g @plugin <span class="org-string">'tmux-plugins/tpm'</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">set -g @plugin 'tmux-plugins/tmux-sessionist'</span>
|
||||
@ -507,9 +271,9 @@ set -g @plugin <span class="org-string">'seebi/tmux-colors-solarized'</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org281bf63" class="outline-3">
|
||||
<h3 id="org281bf63">Configuration</h3>
|
||||
<div class="outline-text-3" id="text-org281bf63">
|
||||
<div id="outline-container-orgd295864" class="outline-3">
|
||||
<h3 id="orgd295864">Configuration</h3>
|
||||
<div class="outline-text-3" id="text-orgd295864">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">tmux-resurrect</span>
|
||||
@ -551,9 +315,9 @@ set -g @batt_attached_icon <span class="org-string">"o"</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0ea6f8c" class="outline-2">
|
||||
<h2 id="org0ea6f8c">Colors</h2>
|
||||
<div class="outline-text-2" id="text-org0ea6f8c">
|
||||
<div id="outline-container-org6ad3f07" class="outline-2">
|
||||
<h2 id="org6ad3f07">Colors</h2>
|
||||
<div class="outline-text-2" id="text-org6ad3f07">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">set -g @colors-solarized <span class="org-string">'light'</span>
|
||||
</pre>
|
||||
@ -561,9 +325,9 @@ set -g @batt_attached_icon <span class="org-string">"o"</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge798cb7" class="outline-2">
|
||||
<h2 id="orge798cb7">Initialize TMUX plugin manager</h2>
|
||||
<div class="outline-text-2" id="text-orge798cb7">
|
||||
<div id="outline-container-org1235a26" class="outline-2">
|
||||
<h2 id="org1235a26">Initialize TMUX plugin manager</h2>
|
||||
<div class="outline-text-2" id="text-org1235a26">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">run <span class="org-string">'~/.tmux/plugins/tpm/tpm'</span>
|
||||
</pre>
|
||||
@ -573,7 +337,7 @@ set -g @batt_attached_icon <span class="org-string">"o"</span>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-01-11 sam. 22:20</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:09</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -3,17 +3,13 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-11-03 mar. 16:26 -->
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Torrent Configuration</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -26,27 +22,22 @@
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org9165dd2">NAS Configuration</a></li>
|
||||
<li><a href="#orgdb0f5e2">Tremc - Curses interface for Transmission</a></li>
|
||||
<li><a href="#orgef992db">Aria2</a>
|
||||
<li><a href="#orgc387510"><code>tremc</code> - Curses interface for Transmission</a></li>
|
||||
<li><a href="#orgcdb4a92"><code>aria2c</code> - Lightweight download utility</a>
|
||||
<ul>
|
||||
<li><a href="#orga6f718b">Aria2c Config</a></li>
|
||||
<li><a href="#org568c0d2">Download Start Script</a></li>
|
||||
<li><a href="#org92b0daf">Download Complete Script</a></li>
|
||||
<li><a href="#orgf16fd52">Download Error Script</a></li>
|
||||
<li><a href="#orgfbe3e4f">Aria2c Config</a></li>
|
||||
<li><a href="#org1d6cd04">Download Start Script</a></li>
|
||||
<li><a href="#org702c949">Download Complete Script</a></li>
|
||||
<li><a href="#orgc677acc">Download Error Script</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9165dd2" class="outline-2">
|
||||
<h2 id="org9165dd2">NAS Configuration</h2>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdb0f5e2" class="outline-2">
|
||||
<h2 id="orgdb0f5e2">Tremc - Curses interface for Transmission</h2>
|
||||
<div class="outline-text-2" id="text-orgdb0f5e2">
|
||||
<div id="outline-container-orgc387510" class="outline-2">
|
||||
<h2 id="orgc387510"><code>tremc</code> - Curses interface for Transmission</h2>
|
||||
<div class="outline-text-2" id="text-orgc387510">
|
||||
<p>
|
||||
<a href="https://github.com/tremc/tremc">https://github.com/tremc/tremc</a>
|
||||
</p>
|
||||
@ -56,7 +47,7 @@
|
||||
<span class="org-variable-name">password</span> = <<get-password(passname=<span class="org-string">"nas/transmission"</span>)>>
|
||||
<span class="org-variable-name">username</span> = tdehaeze
|
||||
<span class="org-variable-name">port</span> = <span class="org-highlight-numbers-number">9091</span>
|
||||
<span class="org-variable-name">host</span> = ***REMOVED***
|
||||
<span class="org-variable-name">host</span> = torrent.tdehaeze.xyz
|
||||
<span class="org-variable-name">path</span> = /transmission/rpc
|
||||
<span class="org-variable-name">ssl</span> = False
|
||||
|
||||
@ -97,13 +88,13 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgef992db" class="outline-2">
|
||||
<h2 id="orgef992db">Aria2</h2>
|
||||
<div class="outline-text-2" id="text-orgef992db">
|
||||
<div id="outline-container-orgcdb4a92" class="outline-2">
|
||||
<h2 id="orgcdb4a92"><code>aria2c</code> - Lightweight download utility</h2>
|
||||
<div class="outline-text-2" id="text-orgcdb4a92">
|
||||
</div>
|
||||
<div id="outline-container-orga6f718b" class="outline-3">
|
||||
<h3 id="orga6f718b">Aria2c Config</h3>
|
||||
<div class="outline-text-3" id="text-orga6f718b">
|
||||
<div id="outline-container-orgfbe3e4f" class="outline-3">
|
||||
<h3 id="orgfbe3e4f">Aria2c Config</h3>
|
||||
<div class="outline-text-3" id="text-orgfbe3e4f">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">continue
|
||||
<span class="org-variable-name">daemon</span>=true
|
||||
@ -122,9 +113,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org568c0d2" class="outline-3">
|
||||
<h3 id="org568c0d2">Download Start Script</h3>
|
||||
<div class="outline-text-3" id="text-org568c0d2">
|
||||
<div id="outline-container-org1d6cd04" class="outline-3">
|
||||
<h3 id="org1d6cd04">Download Start Script</h3>
|
||||
<div class="outline-text-3" id="text-org1d6cd04">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">dunstify <span class="org-string">"DL Started"</span> <span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">basename</span><span class="org-string"><span class="org-sh-quoted-exec"> \"</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">3</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">\" 2> /dev/null)</span></span><span class="org-string">"</span>
|
||||
</pre>
|
||||
@ -132,9 +123,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org92b0daf" class="outline-3">
|
||||
<h3 id="org92b0daf">Download Complete Script</h3>
|
||||
<div class="outline-text-3" id="text-org92b0daf">
|
||||
<div id="outline-container-org702c949" class="outline-3">
|
||||
<h3 id="org702c949">Download Complete Script</h3>
|
||||
<div class="outline-text-3" id="text-org702c949">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">dunstify <span class="org-string">"DL Completed"</span> <span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">basename</span><span class="org-string"><span class="org-sh-quoted-exec"> \"</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">3</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">\" 2> /dev/null)</span></span><span class="org-string">"</span>
|
||||
</pre>
|
||||
@ -142,9 +133,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf16fd52" class="outline-3">
|
||||
<h3 id="orgf16fd52">Download Error Script</h3>
|
||||
<div class="outline-text-3" id="text-orgf16fd52">
|
||||
<div id="outline-container-orgc677acc" class="outline-3">
|
||||
<h3 id="orgc677acc">Download Error Script</h3>
|
||||
<div class="outline-text-3" id="text-orgc677acc">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">dunstify --urgency=critical <span class="org-string">"DL Failed"</span> <span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">basename</span><span class="org-string"><span class="org-sh-quoted-exec"> \"</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">3</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">\" 2> /dev/null)</span></span><span class="org-string">"</span>
|
||||
</pre>
|
||||
@ -155,7 +146,7 @@
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-11-03 mar. 16:26</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:09</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
286
docs/video.html
286
docs/video.html
@ -1,251 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-01-11 sam. 22:19 -->
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>MPV Configuration</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<style type="text/css">
|
||||
<!--/*--><![CDATA[/*><!--*/
|
||||
.title { text-align: center;
|
||||
margin-bottom: .2em; }
|
||||
.subtitle { text-align: center;
|
||||
font-size: medium;
|
||||
font-weight: bold;
|
||||
margin-top:0; }
|
||||
.todo { font-family: monospace; color: red; }
|
||||
.done { font-family: monospace; color: green; }
|
||||
.priority { font-family: monospace; color: orange; }
|
||||
.tag { background-color: #eee; font-family: monospace;
|
||||
padding: 2px; font-size: 80%; font-weight: normal; }
|
||||
.timestamp { color: #bebebe; }
|
||||
.timestamp-kwd { color: #5f9ea0; }
|
||||
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
|
||||
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
|
||||
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
|
||||
.underline { text-decoration: underline; }
|
||||
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
|
||||
p.verse { margin-left: 3%; }
|
||||
pre {
|
||||
border: 1px solid #ccc;
|
||||
box-shadow: 3px 3px 3px #eee;
|
||||
padding: 8pt;
|
||||
font-family: monospace;
|
||||
overflow: auto;
|
||||
margin: 1.2em;
|
||||
}
|
||||
pre.src {
|
||||
position: relative;
|
||||
overflow: visible;
|
||||
padding-top: 1.2em;
|
||||
}
|
||||
pre.src:before {
|
||||
display: none;
|
||||
position: absolute;
|
||||
background-color: white;
|
||||
top: -10px;
|
||||
right: 10px;
|
||||
padding: 3px;
|
||||
border: 1px solid black;
|
||||
}
|
||||
pre.src:hover:before { display: inline;}
|
||||
/* Languages per Org manual */
|
||||
pre.src-asymptote:before { content: 'Asymptote'; }
|
||||
pre.src-awk:before { content: 'Awk'; }
|
||||
pre.src-C:before { content: 'C'; }
|
||||
/* pre.src-C++ doesn't work in CSS */
|
||||
pre.src-clojure:before { content: 'Clojure'; }
|
||||
pre.src-css:before { content: 'CSS'; }
|
||||
pre.src-D:before { content: 'D'; }
|
||||
pre.src-ditaa:before { content: 'ditaa'; }
|
||||
pre.src-dot:before { content: 'Graphviz'; }
|
||||
pre.src-calc:before { content: 'Emacs Calc'; }
|
||||
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
|
||||
pre.src-fortran:before { content: 'Fortran'; }
|
||||
pre.src-gnuplot:before { content: 'gnuplot'; }
|
||||
pre.src-haskell:before { content: 'Haskell'; }
|
||||
pre.src-hledger:before { content: 'hledger'; }
|
||||
pre.src-java:before { content: 'Java'; }
|
||||
pre.src-js:before { content: 'Javascript'; }
|
||||
pre.src-latex:before { content: 'LaTeX'; }
|
||||
pre.src-ledger:before { content: 'Ledger'; }
|
||||
pre.src-lisp:before { content: 'Lisp'; }
|
||||
pre.src-lilypond:before { content: 'Lilypond'; }
|
||||
pre.src-lua:before { content: 'Lua'; }
|
||||
pre.src-matlab:before { content: 'MATLAB'; }
|
||||
pre.src-mscgen:before { content: 'Mscgen'; }
|
||||
pre.src-ocaml:before { content: 'Objective Caml'; }
|
||||
pre.src-octave:before { content: 'Octave'; }
|
||||
pre.src-org:before { content: 'Org mode'; }
|
||||
pre.src-oz:before { content: 'OZ'; }
|
||||
pre.src-plantuml:before { content: 'Plantuml'; }
|
||||
pre.src-processing:before { content: 'Processing.js'; }
|
||||
pre.src-python:before { content: 'Python'; }
|
||||
pre.src-R:before { content: 'R'; }
|
||||
pre.src-ruby:before { content: 'Ruby'; }
|
||||
pre.src-sass:before { content: 'Sass'; }
|
||||
pre.src-scheme:before { content: 'Scheme'; }
|
||||
pre.src-screen:before { content: 'Gnu Screen'; }
|
||||
pre.src-sed:before { content: 'Sed'; }
|
||||
pre.src-sh:before { content: 'shell'; }
|
||||
pre.src-sql:before { content: 'SQL'; }
|
||||
pre.src-sqlite:before { content: 'SQLite'; }
|
||||
/* additional languages in org.el's org-babel-load-languages alist */
|
||||
pre.src-forth:before { content: 'Forth'; }
|
||||
pre.src-io:before { content: 'IO'; }
|
||||
pre.src-J:before { content: 'J'; }
|
||||
pre.src-makefile:before { content: 'Makefile'; }
|
||||
pre.src-maxima:before { content: 'Maxima'; }
|
||||
pre.src-perl:before { content: 'Perl'; }
|
||||
pre.src-picolisp:before { content: 'Pico Lisp'; }
|
||||
pre.src-scala:before { content: 'Scala'; }
|
||||
pre.src-shell:before { content: 'Shell Script'; }
|
||||
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
|
||||
/* additional language identifiers per "defun org-babel-execute"
|
||||
in ob-*.el */
|
||||
pre.src-cpp:before { content: 'C++'; }
|
||||
pre.src-abc:before { content: 'ABC'; }
|
||||
pre.src-coq:before { content: 'Coq'; }
|
||||
pre.src-groovy:before { content: 'Groovy'; }
|
||||
/* additional language identifiers from org-babel-shell-names in
|
||||
ob-shell.el: ob-shell is the only babel language using a lambda to put
|
||||
the execution function name together. */
|
||||
pre.src-bash:before { content: 'bash'; }
|
||||
pre.src-csh:before { content: 'csh'; }
|
||||
pre.src-ash:before { content: 'ash'; }
|
||||
pre.src-dash:before { content: 'dash'; }
|
||||
pre.src-ksh:before { content: 'ksh'; }
|
||||
pre.src-mksh:before { content: 'mksh'; }
|
||||
pre.src-posh:before { content: 'posh'; }
|
||||
/* Additional Emacs modes also supported by the LaTeX listings package */
|
||||
pre.src-ada:before { content: 'Ada'; }
|
||||
pre.src-asm:before { content: 'Assembler'; }
|
||||
pre.src-caml:before { content: 'Caml'; }
|
||||
pre.src-delphi:before { content: 'Delphi'; }
|
||||
pre.src-html:before { content: 'HTML'; }
|
||||
pre.src-idl:before { content: 'IDL'; }
|
||||
pre.src-mercury:before { content: 'Mercury'; }
|
||||
pre.src-metapost:before { content: 'MetaPost'; }
|
||||
pre.src-modula-2:before { content: 'Modula-2'; }
|
||||
pre.src-pascal:before { content: 'Pascal'; }
|
||||
pre.src-ps:before { content: 'PostScript'; }
|
||||
pre.src-prolog:before { content: 'Prolog'; }
|
||||
pre.src-simula:before { content: 'Simula'; }
|
||||
pre.src-tcl:before { content: 'tcl'; }
|
||||
pre.src-tex:before { content: 'TeX'; }
|
||||
pre.src-plain-tex:before { content: 'Plain TeX'; }
|
||||
pre.src-verilog:before { content: 'Verilog'; }
|
||||
pre.src-vhdl:before { content: 'VHDL'; }
|
||||
pre.src-xml:before { content: 'XML'; }
|
||||
pre.src-nxml:before { content: 'XML'; }
|
||||
/* add a generic configuration mode; LaTeX export needs an additional
|
||||
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
|
||||
pre.src-conf:before { content: 'Configuration File'; }
|
||||
|
||||
table { border-collapse:collapse; }
|
||||
caption.t-above { caption-side: top; }
|
||||
caption.t-bottom { caption-side: bottom; }
|
||||
td, th { vertical-align:top; }
|
||||
th.org-right { text-align: center; }
|
||||
th.org-left { text-align: center; }
|
||||
th.org-center { text-align: center; }
|
||||
td.org-right { text-align: right; }
|
||||
td.org-left { text-align: left; }
|
||||
td.org-center { text-align: center; }
|
||||
dt { font-weight: bold; }
|
||||
.footpara { display: inline; }
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
margin: 10px;
|
||||
background: #ffffcc;
|
||||
}
|
||||
#org-div-home-and-up
|
||||
{ text-align: right; font-size: 70%; white-space: nowrap; }
|
||||
textarea { overflow-x: auto; }
|
||||
.linenr { font-size: smaller }
|
||||
.code-highlighted { background-color: #ffff00; }
|
||||
.org-info-js_info-navigation { border-style: none; }
|
||||
#org-info-js_console-label
|
||||
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
|
||||
.org-info-js_search-highlight
|
||||
{ background-color: #ffff00; color: #000000; font-weight: bold; }
|
||||
.org-svg { width: 90%; }
|
||||
/*]]>*/-->
|
||||
</style>
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<script type="text/javascript">
|
||||
/*
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
General Public License (GNU GPL) as published by the Free Software
|
||||
Foundation, either version 3 of the License, or (at your option)
|
||||
any later version. The code is distributed WITHOUT ANY WARRANTY;
|
||||
without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
|
||||
|
||||
As additional permission under GNU GPL version 3 section 7, you
|
||||
may distribute non-source (e.g., minimized or compacted) forms of
|
||||
that code without the copy of the GNU GPL normally required by
|
||||
section 4, provided you include this license notice and a URL
|
||||
through which recipients can access the Corresponding Source.
|
||||
|
||||
|
||||
@licend The above is the entire license notice
|
||||
for the JavaScript code in this tag.
|
||||
*/
|
||||
<!--/*--><![CDATA[/*><!--*/
|
||||
function CodeHighlightOn(elem, id)
|
||||
{
|
||||
var target = document.getElementById(id);
|
||||
if(null != target) {
|
||||
elem.cacheClassElem = elem.className;
|
||||
elem.cacheClassTarget = target.className;
|
||||
target.className = "code-highlighted";
|
||||
elem.className = "code-highlighted";
|
||||
}
|
||||
}
|
||||
function CodeHighlightOff(elem, id)
|
||||
{
|
||||
var target = document.getElementById(id);
|
||||
if(elem.cacheClassElem)
|
||||
elem.className = elem.cacheClassElem;
|
||||
if(elem.cacheClassTarget)
|
||||
target.className = elem.cacheClassTarget;
|
||||
}
|
||||
/*]]>*///-->
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -258,26 +22,26 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgebdc047">MPV Configuration</a>
|
||||
<li><a href="#org06a0ee3"><code>mpv.conf</code> - MPV Configuration</a>
|
||||
<ul>
|
||||
<li><a href="#org57b72c4">Video settings</a></li>
|
||||
<li><a href="#orgdfdb9bc">Audio settings</a></li>
|
||||
<li><a href="#orgc9bdb6a">Other settings</a></li>
|
||||
<li><a href="#orga8a3b4b">Video settings</a></li>
|
||||
<li><a href="#org70a59b7">Audio settings</a></li>
|
||||
<li><a href="#org96502c1">Other settings</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org20df82e">MPV Key Bindings</a></li>
|
||||
<li><a href="#org9b7ebc9"><code>input.conf</code> - MPV Key Bindings</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgebdc047" class="outline-2">
|
||||
<h2 id="orgebdc047">MPV Configuration</h2>
|
||||
<div class="outline-text-2" id="text-orgebdc047">
|
||||
<div id="outline-container-org06a0ee3" class="outline-2">
|
||||
<h2 id="org06a0ee3"><code>mpv.conf</code> - MPV Configuration</h2>
|
||||
<div class="outline-text-2" id="text-org06a0ee3">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org57b72c4" class="outline-3">
|
||||
<h3 id="org57b72c4">Video settings</h3>
|
||||
<div class="outline-text-3" id="text-org57b72c4">
|
||||
<div id="outline-container-orga8a3b4b" class="outline-3">
|
||||
<h3 id="orga8a3b4b">Video settings</h3>
|
||||
<div class="outline-text-3" id="text-orga8a3b4b">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Start in fullscreen mode by default.</span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">fs=yes</span>
|
||||
@ -322,9 +86,9 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdfdb9bc" class="outline-3">
|
||||
<h3 id="orgdfdb9bc">Audio settings</h3>
|
||||
<div class="outline-text-3" id="text-orgdfdb9bc">
|
||||
<div id="outline-container-org70a59b7" class="outline-3">
|
||||
<h3 id="org70a59b7">Audio settings</h3>
|
||||
<div class="outline-text-3" id="text-org70a59b7">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Specify default audio device. You can list devices with: --audio-device=help</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">The option takes the device string (the stuff between the '...').</span>
|
||||
@ -344,9 +108,9 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc9bdb6a" class="outline-3">
|
||||
<h3 id="orgc9bdb6a">Other settings</h3>
|
||||
<div class="outline-text-3" id="text-orgc9bdb6a">
|
||||
<div id="outline-container-org96502c1" class="outline-3">
|
||||
<h3 id="org96502c1">Other settings</h3>
|
||||
<div class="outline-text-3" id="text-org96502c1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Pretend to be a web browser. Might fix playback with some streaming sites,</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">but also will break with shoutcast streams.</span>
|
||||
@ -390,9 +154,9 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org20df82e" class="outline-2">
|
||||
<h2 id="org20df82e">MPV Key Bindings</h2>
|
||||
<div class="outline-text-2" id="text-org20df82e">
|
||||
<div id="outline-container-org9b7ebc9" class="outline-2">
|
||||
<h2 id="org9b7ebc9"><code>input.conf</code> - MPV Key Bindings</h2>
|
||||
<div class="outline-text-2" id="text-org9b7ebc9">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Audio</span>
|
||||
@ -502,7 +266,7 @@ Z add sub-delay +0.1 <span class="org-comment-delimiter"># </s
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">[ multiply speed 1/1.1 # scale playback speed</span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">] multiply speed 1.1</span>
|
||||
<span class="org-comment-delimiter"><span class="org-type">#</span></span><span class="org-comment">{ multiply speed 0.5</span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">{ multiply speed 0.5</span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">} multiply speed 2.0</span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">BS set speed 1.0 # reset speed to normal</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
|
||||
@ -600,7 +364,7 @@ Z add sub-delay +0.1 <span class="org-comment-delimiter"># </s
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-01-11 sam. 22:19</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:09</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
2626
docs/vim.html
2626
docs/vim.html
File diff suppressed because it is too large
Load Diff
136
docs/windows.html
Normal file
136
docs/windows.html
Normal file
@ -0,0 +1,136 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Windows Config and Install</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
<a accesskey="h" href="./index.html"> UP </a>
|
||||
|
|
||||
<a accesskey="H" href="./index.html"> HOME </a>
|
||||
</div><div id="content">
|
||||
<h1 class="title">Windows Config and Install</h1>
|
||||
<div id="table-of-contents">
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org9346dc9">Create a bootable USB Key</a></li>
|
||||
<li><a href="#org0143940">Install Windows10 PRO</a></li>
|
||||
<li><a href="#org0cc05f7">Install Software using Chocolatey</a></li>
|
||||
<li><a href="#org0a94edb">Debloat windows10</a></li>
|
||||
<li><a href="#orgb8446e0">Software Setup</a>
|
||||
<ul>
|
||||
<li><a href="#orge44d00a">Syncthing</a></li>
|
||||
<li><a href="#org796ab09">Cura</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9346dc9" class="outline-2">
|
||||
<h2 id="org9346dc9">Create a bootable USB Key</h2>
|
||||
<div class="outline-text-2" id="text-org9346dc9">
|
||||
<ul class="org-ul">
|
||||
<li>Download Windows10 ISO <a href="https://www.microsoft.com/en-us/software-download/windows10ISO">https://www.microsoft.com/en-us/software-download/windows10ISO</a></li>
|
||||
<li>Create bootable USB key using the woeusb utility (<a href="https://computingforgeeks.com/create-windows-10-bootable-usb-on-linux/">https://computingforgeeks.com/create-windows-10-bootable-usb-on-linux/</a>)</li>
|
||||
</ul>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">yay -S woeusb
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-type">sudo</span> woeusb --device file.iso /dev/sdb --target-filesystem ntfs
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0143940" class="outline-2">
|
||||
<h2 id="org0143940">Install Windows10 PRO</h2>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0cc05f7" class="outline-2">
|
||||
<h2 id="org0cc05f7">Install Software using Chocolatey</h2>
|
||||
<div class="outline-text-2" id="text-org0cc05f7">
|
||||
<p>
|
||||
First install Chocolatey using a PowerShell as administrator:
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">Set-ExecutionPolicy Bypass -Scope Process -Force; <span class="org-rainbow-delimiters-depth-1">[</span>System.Net.ServicePointManager<span class="org-rainbow-delimiters-depth-1">]</span>::SecurityProtocol = <span class="org-rainbow-delimiters-depth-1">[</span>System.Net.ServicePointManager<span class="org-rainbow-delimiters-depth-1">]</span>::SecurityProtocol -bor <span class="org-highlight-numbers-number">3072</span>; iex <span class="org-rainbow-delimiters-depth-1">(</span><span class="org-rainbow-delimiters-depth-2">(</span>New-Object System.Net.WebClient<span class="org-rainbow-delimiters-depth-2">)</span>.DownloadString<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-string">'https://chocolatey.org/install.ps1'</span><span class="org-rainbow-delimiters-depth-2">)</span><span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
Then, install all required software using one command:
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">choco install firefox 7zip.install vlc git.install malwarebytes sumatrapdf.install steam anydesk discord f.lux cmder syncthing cura ccleaner
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0a94edb" class="outline-2">
|
||||
<h2 id="org0a94edb">Debloat windows10</h2>
|
||||
<div class="outline-text-2" id="text-org0a94edb">
|
||||
<p>
|
||||
<a href="https://github.com/Sycnex/Windows10Debloater">https://github.com/Sycnex/Windows10Debloater</a>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Run a PowerShell with administrative rights and run:
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-function-name">iex</span> <span class="org-rainbow-delimiters-depth-1">(</span><span class="org-rainbow-delimiters-depth-2">(</span>New-Object System.Net.WebClient<span class="org-rainbow-delimiters-depth-2">)</span>.DownloadString<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-string">'https://git.io/debloat'</span><span class="org-rainbow-delimiters-depth-2">)</span><span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb8446e0" class="outline-2">
|
||||
<h2 id="orgb8446e0">Software Setup</h2>
|
||||
<div class="outline-text-2" id="text-orgb8446e0">
|
||||
</div>
|
||||
<div id="outline-container-orge44d00a" class="outline-3">
|
||||
<h3 id="orge44d00a">Syncthing</h3>
|
||||
<div class="outline-text-3" id="text-orge44d00a">
|
||||
<p>
|
||||
<a href="https://docs.syncthing.net/users/autostart.html#autostart-windows-startup">https://docs.syncthing.net/users/autostart.html#autostart-windows-startup</a>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Go to <code>%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup</code> and create a shortcut linking to <code>C:\path_to\syncthing.exe -no-console -no-browser</code>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Then, Syncthing can be accessed with: <a href="http://localhost:8384/">http://localhost:8384/</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org796ab09" class="outline-3">
|
||||
<h3 id="org796ab09">Cura</h3>
|
||||
<div class="outline-text-3" id="text-org796ab09">
|
||||
<ul class="org-ul">
|
||||
<li><a href="https://github.com/fieldOfView/Cura-OctoPrintPlugin">https://github.com/fieldOfView/Cura-OctoPrintPlugin</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:09</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -3,17 +3,13 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-11-03 mar. 16:26 -->
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Configuration Files related to Xorg</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -26,28 +22,28 @@
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org46b88d4">Xresources</a>
|
||||
<li><a href="#xresources"><code>~/.Xresources</code></a>
|
||||
<ul>
|
||||
<li><a href="#org97a3062">Colors</a></li>
|
||||
<li><a href="#orgb20ef40">Fonts</a></li>
|
||||
<li><a href="#org2f75682">Cursor</a></li>
|
||||
<li><a href="#orgff42f84">Colors</a></li>
|
||||
<li><a href="#orgabc7947">Fonts</a></li>
|
||||
<li><a href="#org8a5f615">Cursor</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5283ed8">Xmodmap</a></li>
|
||||
<li><a href="#org8d77773">xinit</a></li>
|
||||
<li><a href="#org530c426">Xprofile</a></li>
|
||||
<li><a href="#xmodmap"><code>~/.Xmodmap</code></a></li>
|
||||
<li><a href="#xinitrc"><code>~/.xinitrc</code></a></li>
|
||||
<li><a href="#xprofile"><code>~/.xprofile</code></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org46b88d4" class="outline-2">
|
||||
<h2 id="org46b88d4">Xresources</h2>
|
||||
<div class="outline-text-2" id="text-org46b88d4">
|
||||
<div id="outline-container-xresources" class="outline-2">
|
||||
<h2 id="xresources"><code>~/.Xresources</code></h2>
|
||||
<div class="outline-text-2" id="text-xresources">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org97a3062" class="outline-3">
|
||||
<h3 id="org97a3062">Colors</h3>
|
||||
<div class="outline-text-3" id="text-org97a3062">
|
||||
<div id="outline-container-orgff42f84" class="outline-3">
|
||||
<h3 id="orgff42f84">Colors</h3>
|
||||
<div class="outline-text-3" id="text-orgff42f84">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">define base00 #32302f</span>
|
||||
<span class="org-comment-delimiter">#</span><span class="org-comment">define base01 #3c3836</span>
|
||||
@ -105,9 +101,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb20ef40" class="outline-3">
|
||||
<h3 id="orgb20ef40">Fonts</h3>
|
||||
<div class="outline-text-3" id="text-orgb20ef40">
|
||||
<div id="outline-container-orgabc7947" class="outline-3">
|
||||
<h3 id="orgabc7947">Fonts</h3>
|
||||
<div class="outline-text-3" id="text-orgabc7947">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">Xft.dpi: <span class="org-highlight-numbers-number">96</span>
|
||||
Xft.autohint: <span class="org-highlight-numbers-number">0</span>
|
||||
@ -121,9 +117,9 @@ Xft.rgba: rgb
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2f75682" class="outline-3">
|
||||
<h3 id="org2f75682">Cursor</h3>
|
||||
<div class="outline-text-3" id="text-org2f75682">
|
||||
<div id="outline-container-org8a5f615" class="outline-3">
|
||||
<h3 id="org8a5f615">Cursor</h3>
|
||||
<div class="outline-text-3" id="text-org8a5f615">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">Xcursor.theme: Breeze
|
||||
Xcursor.size: <span class="org-highlight-numbers-number">0</span>
|
||||
@ -133,9 +129,9 @@ Xcursor.size: <span class="org-highlight-numbers-number">0</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5283ed8" class="outline-2">
|
||||
<h2 id="org5283ed8">Xmodmap</h2>
|
||||
<div class="outline-text-2" id="text-org5283ed8">
|
||||
<div id="outline-container-xmodmap" class="outline-2">
|
||||
<h2 id="xmodmap"><code>~/.Xmodmap</code></h2>
|
||||
<div class="outline-text-2" id="text-xmodmap">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">keycode <span class="org-highlight-numbers-number">8</span> =
|
||||
keycode <span class="org-highlight-numbers-number">9</span> = Escape NoSymbol Escape
|
||||
@ -390,9 +386,9 @@ keycode <span class="org-highlight-numbers-number">255</span> = XF86RFKill NoSym
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8d77773" class="outline-2">
|
||||
<h2 id="org8d77773">xinit</h2>
|
||||
<div class="outline-text-2" id="text-org8d77773">
|
||||
<div id="outline-container-xinitrc" class="outline-2">
|
||||
<h2 id="xinitrc"><code>~/.xinitrc</code></h2>
|
||||
<div class="outline-text-2" id="text-xinitrc">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash">dbus-update-activation-environment --systemd DISPLAY
|
||||
</pre>
|
||||
@ -441,18 +437,32 @@ Merge in defaults and keymaps
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
Start <code>gnome-keyring-daemon</code>.
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-builtin">eval</span> $<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">gnome-keyring-daemon</span> --start --components=pkcs11,secrets,ssh<span class="org-rainbow-delimiters-depth-1">)</span>
|
||||
<span class="org-builtin">export</span> SSH_AUTH_SOCK
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-rainbow-delimiters-depth-1">[</span> -f ~/.xprofile <span class="org-rainbow-delimiters-depth-1">]</span> && <span class="org-builtin">.</span> ~/.xprofile
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-keyword">exec</span> i3
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org530c426" class="outline-2">
|
||||
<h2 id="org530c426">Xprofile</h2>
|
||||
<div class="outline-text-2" id="text-org530c426">
|
||||
<div id="outline-container-xprofile" class="outline-2">
|
||||
<h2 id="xprofile"><code>~/.xprofile</code></h2>
|
||||
<div class="outline-text-2" id="text-xprofile">
|
||||
<p>
|
||||
Keyboard Options
|
||||
Keyboard Options:
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Set repetition keyboard rate</span>
|
||||
@ -464,14 +474,14 @@ setxkbmap -layout us -variant intl -option caps:escape &
|
||||
</div>
|
||||
|
||||
<p>
|
||||
Start programs related to display.
|
||||
Start programs related to display:
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Screen options</span>
|
||||
xrandr --output eDP1 --mode 1920x1080 --dpi <span class="org-highlight-numbers-number">192</span> &
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Set custom wallpaper script</span>
|
||||
setbg &
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Set random wallpaper</span>
|
||||
setbg ~/.local/data/wallpapers/ &
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Hide mouse cursor after x seconds</span>
|
||||
<span class="org-type">pgrep</span> -xu <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">USER</span></span><span class="org-string">"</span> unclutter >/dev/null || <span class="org-sh-escaped-newline">\</span>
|
||||
@ -490,35 +500,16 @@ picom --daemon &
|
||||
</div>
|
||||
|
||||
<p>
|
||||
Start the applications related to the top bar (polybar + applet).
|
||||
Manually start <code>mopidy</code> as it seems to not start automatically:
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Bluetooth Manager</span>
|
||||
blueman-applet &
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Synology Cloud Station Drive</span>
|
||||
synology-drive &
|
||||
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Mopidy</span>
|
||||
mopidy --config ~/.config/mopidy/mopidy.conf >/dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span> &
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
Start other applications
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Start Power Manager</span>
|
||||
xfce4-power-manager &
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Aria2c daemon</span>
|
||||
aria2c &
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Mopidy</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">mopidy --config ~/.config/mopidy/mopidy.conf >/dev/null 2>&1 &</span>
|
||||
systemctl --user start mopidy
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
Finally, run SXHKD for the key bindings.
|
||||
Finally, run SXHKD for the key bindings:
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Start sxhkd</span>
|
||||
@ -531,7 +522,7 @@ Finally, run SXHKD for the key bindings.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-11-03 mar. 16:26</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:09</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -3,17 +3,13 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-11-03 mar. 16:26 -->
|
||||
<!-- 2021-01-01 ven. 20:09 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Zathura</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
<script type="text/javascript" src="./dist/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -26,21 +22,21 @@
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgb79ef7e">Configuration</a></li>
|
||||
<li><a href="#orgf927afe">Bindings</a></li>
|
||||
<li><a href="#org0ac6dba">Colors</a></li>
|
||||
<li><a href="#org94a5560">Scripts</a>
|
||||
<li><a href="#orgc0ba73f">Configuration</a></li>
|
||||
<li><a href="#orge5e71df">Bindings</a></li>
|
||||
<li><a href="#orgbe75730">Colors</a></li>
|
||||
<li><a href="#orgc4659f8">Scripts</a>
|
||||
<ul>
|
||||
<li><a href="#orgdc7f7db">Extract one page as a PDF</a></li>
|
||||
<li><a href="#org69796fa">Extract one page as a PDF</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb79ef7e" class="outline-2">
|
||||
<h2 id="orgb79ef7e">Configuration</h2>
|
||||
<div class="outline-text-2" id="text-orgb79ef7e">
|
||||
<div id="outline-container-orgc0ba73f" class="outline-2">
|
||||
<h2 id="orgc0ba73f">Configuration</h2>
|
||||
<div class="outline-text-2" id="text-orgc0ba73f">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Use clipboard</span>
|
||||
set selection-clipboard clipboard
|
||||
@ -51,14 +47,17 @@ set statusbar-v-padding <span class="org-highlight-numbers-number">0</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Padding between pages</span>
|
||||
set page-padding <span class="org-highlight-numbers-number">1</span>
|
||||
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Use Synctex with Emasc</span>
|
||||
set synctex true
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf927afe" class="outline-2">
|
||||
<h2 id="orgf927afe">Bindings</h2>
|
||||
<div class="outline-text-2" id="text-orgf927afe">
|
||||
<div id="outline-container-orge5e71df" class="outline-2">
|
||||
<h2 id="orge5e71df">Bindings</h2>
|
||||
<div class="outline-text-2" id="text-orge5e71df">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">map u scroll half-up
|
||||
map d scroll half-down
|
||||
@ -86,9 +85,9 @@ map <C-s> feedkeys <span class="org-string">":exec /home/thomas/.config/za
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0ac6dba" class="outline-2">
|
||||
<h2 id="org0ac6dba">Colors</h2>
|
||||
<div class="outline-text-2" id="text-org0ac6dba">
|
||||
<div id="outline-container-orgbe75730" class="outline-2">
|
||||
<h2 id="orgbe75730">Colors</h2>
|
||||
<div class="outline-text-2" id="text-orgbe75730">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Base16 Gruvbox dark, soft</span>
|
||||
<span class="org-comment-delimiter"># </span><span class="org-comment">Author: Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox)</span>
|
||||
@ -130,14 +129,14 @@ set recolor-keephue <span class="org-string">"false"</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org94a5560" class="outline-2">
|
||||
<h2 id="org94a5560">Scripts</h2>
|
||||
<div class="outline-text-2" id="text-org94a5560">
|
||||
<div id="outline-container-orgc4659f8" class="outline-2">
|
||||
<h2 id="orgc4659f8">Scripts</h2>
|
||||
<div class="outline-text-2" id="text-orgc4659f8">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdc7f7db" class="outline-3">
|
||||
<h3 id="orgdc7f7db">Extract one page as a PDF</h3>
|
||||
<div class="outline-text-3" id="text-orgdc7f7db">
|
||||
<div id="outline-container-org69796fa" class="outline-3">
|
||||
<h3 id="org69796fa">Extract one page as a PDF</h3>
|
||||
<div class="outline-text-3" id="text-org69796fa">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-bash"><span class="org-variable-name">tmpfile</span>=/tmp/pdf_page.pdf
|
||||
|
||||
@ -156,7 +155,7 @@ pdftk $<span class="org-highlight-numbers-number">1</span> <span class="org-type
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-11-03 mar. 16:26</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 20:09</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
245
docs/zsh.html
245
docs/zsh.html
@ -1,251 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-01-11 sam. 22:19 -->
|
||||
<!-- 2021-01-01 ven. 14:56 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>ZSH Config</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<style type="text/css">
|
||||
<!--/*--><![CDATA[/*><!--*/
|
||||
.title { text-align: center;
|
||||
margin-bottom: .2em; }
|
||||
.subtitle { text-align: center;
|
||||
font-size: medium;
|
||||
font-weight: bold;
|
||||
margin-top:0; }
|
||||
.todo { font-family: monospace; color: red; }
|
||||
.done { font-family: monospace; color: green; }
|
||||
.priority { font-family: monospace; color: orange; }
|
||||
.tag { background-color: #eee; font-family: monospace;
|
||||
padding: 2px; font-size: 80%; font-weight: normal; }
|
||||
.timestamp { color: #bebebe; }
|
||||
.timestamp-kwd { color: #5f9ea0; }
|
||||
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
|
||||
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
|
||||
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
|
||||
.underline { text-decoration: underline; }
|
||||
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
|
||||
p.verse { margin-left: 3%; }
|
||||
pre {
|
||||
border: 1px solid #ccc;
|
||||
box-shadow: 3px 3px 3px #eee;
|
||||
padding: 8pt;
|
||||
font-family: monospace;
|
||||
overflow: auto;
|
||||
margin: 1.2em;
|
||||
}
|
||||
pre.src {
|
||||
position: relative;
|
||||
overflow: visible;
|
||||
padding-top: 1.2em;
|
||||
}
|
||||
pre.src:before {
|
||||
display: none;
|
||||
position: absolute;
|
||||
background-color: white;
|
||||
top: -10px;
|
||||
right: 10px;
|
||||
padding: 3px;
|
||||
border: 1px solid black;
|
||||
}
|
||||
pre.src:hover:before { display: inline;}
|
||||
/* Languages per Org manual */
|
||||
pre.src-asymptote:before { content: 'Asymptote'; }
|
||||
pre.src-awk:before { content: 'Awk'; }
|
||||
pre.src-C:before { content: 'C'; }
|
||||
/* pre.src-C++ doesn't work in CSS */
|
||||
pre.src-clojure:before { content: 'Clojure'; }
|
||||
pre.src-css:before { content: 'CSS'; }
|
||||
pre.src-D:before { content: 'D'; }
|
||||
pre.src-ditaa:before { content: 'ditaa'; }
|
||||
pre.src-dot:before { content: 'Graphviz'; }
|
||||
pre.src-calc:before { content: 'Emacs Calc'; }
|
||||
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
|
||||
pre.src-fortran:before { content: 'Fortran'; }
|
||||
pre.src-gnuplot:before { content: 'gnuplot'; }
|
||||
pre.src-haskell:before { content: 'Haskell'; }
|
||||
pre.src-hledger:before { content: 'hledger'; }
|
||||
pre.src-java:before { content: 'Java'; }
|
||||
pre.src-js:before { content: 'Javascript'; }
|
||||
pre.src-latex:before { content: 'LaTeX'; }
|
||||
pre.src-ledger:before { content: 'Ledger'; }
|
||||
pre.src-lisp:before { content: 'Lisp'; }
|
||||
pre.src-lilypond:before { content: 'Lilypond'; }
|
||||
pre.src-lua:before { content: 'Lua'; }
|
||||
pre.src-matlab:before { content: 'MATLAB'; }
|
||||
pre.src-mscgen:before { content: 'Mscgen'; }
|
||||
pre.src-ocaml:before { content: 'Objective Caml'; }
|
||||
pre.src-octave:before { content: 'Octave'; }
|
||||
pre.src-org:before { content: 'Org mode'; }
|
||||
pre.src-oz:before { content: 'OZ'; }
|
||||
pre.src-plantuml:before { content: 'Plantuml'; }
|
||||
pre.src-processing:before { content: 'Processing.js'; }
|
||||
pre.src-python:before { content: 'Python'; }
|
||||
pre.src-R:before { content: 'R'; }
|
||||
pre.src-ruby:before { content: 'Ruby'; }
|
||||
pre.src-sass:before { content: 'Sass'; }
|
||||
pre.src-scheme:before { content: 'Scheme'; }
|
||||
pre.src-screen:before { content: 'Gnu Screen'; }
|
||||
pre.src-sed:before { content: 'Sed'; }
|
||||
pre.src-sh:before { content: 'shell'; }
|
||||
pre.src-sql:before { content: 'SQL'; }
|
||||
pre.src-sqlite:before { content: 'SQLite'; }
|
||||
/* additional languages in org.el's org-babel-load-languages alist */
|
||||
pre.src-forth:before { content: 'Forth'; }
|
||||
pre.src-io:before { content: 'IO'; }
|
||||
pre.src-J:before { content: 'J'; }
|
||||
pre.src-makefile:before { content: 'Makefile'; }
|
||||
pre.src-maxima:before { content: 'Maxima'; }
|
||||
pre.src-perl:before { content: 'Perl'; }
|
||||
pre.src-picolisp:before { content: 'Pico Lisp'; }
|
||||
pre.src-scala:before { content: 'Scala'; }
|
||||
pre.src-shell:before { content: 'Shell Script'; }
|
||||
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
|
||||
/* additional language identifiers per "defun org-babel-execute"
|
||||
in ob-*.el */
|
||||
pre.src-cpp:before { content: 'C++'; }
|
||||
pre.src-abc:before { content: 'ABC'; }
|
||||
pre.src-coq:before { content: 'Coq'; }
|
||||
pre.src-groovy:before { content: 'Groovy'; }
|
||||
/* additional language identifiers from org-babel-shell-names in
|
||||
ob-shell.el: ob-shell is the only babel language using a lambda to put
|
||||
the execution function name together. */
|
||||
pre.src-bash:before { content: 'bash'; }
|
||||
pre.src-csh:before { content: 'csh'; }
|
||||
pre.src-ash:before { content: 'ash'; }
|
||||
pre.src-dash:before { content: 'dash'; }
|
||||
pre.src-ksh:before { content: 'ksh'; }
|
||||
pre.src-mksh:before { content: 'mksh'; }
|
||||
pre.src-posh:before { content: 'posh'; }
|
||||
/* Additional Emacs modes also supported by the LaTeX listings package */
|
||||
pre.src-ada:before { content: 'Ada'; }
|
||||
pre.src-asm:before { content: 'Assembler'; }
|
||||
pre.src-caml:before { content: 'Caml'; }
|
||||
pre.src-delphi:before { content: 'Delphi'; }
|
||||
pre.src-html:before { content: 'HTML'; }
|
||||
pre.src-idl:before { content: 'IDL'; }
|
||||
pre.src-mercury:before { content: 'Mercury'; }
|
||||
pre.src-metapost:before { content: 'MetaPost'; }
|
||||
pre.src-modula-2:before { content: 'Modula-2'; }
|
||||
pre.src-pascal:before { content: 'Pascal'; }
|
||||
pre.src-ps:before { content: 'PostScript'; }
|
||||
pre.src-prolog:before { content: 'Prolog'; }
|
||||
pre.src-simula:before { content: 'Simula'; }
|
||||
pre.src-tcl:before { content: 'tcl'; }
|
||||
pre.src-tex:before { content: 'TeX'; }
|
||||
pre.src-plain-tex:before { content: 'Plain TeX'; }
|
||||
pre.src-verilog:before { content: 'Verilog'; }
|
||||
pre.src-vhdl:before { content: 'VHDL'; }
|
||||
pre.src-xml:before { content: 'XML'; }
|
||||
pre.src-nxml:before { content: 'XML'; }
|
||||
/* add a generic configuration mode; LaTeX export needs an additional
|
||||
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
|
||||
pre.src-conf:before { content: 'Configuration File'; }
|
||||
|
||||
table { border-collapse:collapse; }
|
||||
caption.t-above { caption-side: top; }
|
||||
caption.t-bottom { caption-side: bottom; }
|
||||
td, th { vertical-align:top; }
|
||||
th.org-right { text-align: center; }
|
||||
th.org-left { text-align: center; }
|
||||
th.org-center { text-align: center; }
|
||||
td.org-right { text-align: right; }
|
||||
td.org-left { text-align: left; }
|
||||
td.org-center { text-align: center; }
|
||||
dt { font-weight: bold; }
|
||||
.footpara { display: inline; }
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
margin: 10px;
|
||||
background: #ffffcc;
|
||||
}
|
||||
#org-div-home-and-up
|
||||
{ text-align: right; font-size: 70%; white-space: nowrap; }
|
||||
textarea { overflow-x: auto; }
|
||||
.linenr { font-size: smaller }
|
||||
.code-highlighted { background-color: #ffff00; }
|
||||
.org-info-js_info-navigation { border-style: none; }
|
||||
#org-info-js_console-label
|
||||
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
|
||||
.org-info-js_search-highlight
|
||||
{ background-color: #ffff00; color: #000000; font-weight: bold; }
|
||||
.org-svg { width: 90%; }
|
||||
/*]]>*/-->
|
||||
</style>
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<script type="text/javascript">
|
||||
/*
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
General Public License (GNU GPL) as published by the Free Software
|
||||
Foundation, either version 3 of the License, or (at your option)
|
||||
any later version. The code is distributed WITHOUT ANY WARRANTY;
|
||||
without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
|
||||
|
||||
As additional permission under GNU GPL version 3 section 7, you
|
||||
may distribute non-source (e.g., minimized or compacted) forms of
|
||||
that code without the copy of the GNU GPL normally required by
|
||||
section 4, provided you include this license notice and a URL
|
||||
through which recipients can access the Corresponding Source.
|
||||
|
||||
|
||||
@licend The above is the entire license notice
|
||||
for the JavaScript code in this tag.
|
||||
*/
|
||||
<!--/*--><![CDATA[/*><!--*/
|
||||
function CodeHighlightOn(elem, id)
|
||||
{
|
||||
var target = document.getElementById(id);
|
||||
if(null != target) {
|
||||
elem.cacheClassElem = elem.className;
|
||||
elem.cacheClassTarget = target.className;
|
||||
target.className = "code-highlighted";
|
||||
elem.className = "code-highlighted";
|
||||
}
|
||||
}
|
||||
function CodeHighlightOff(elem, id)
|
||||
{
|
||||
var target = document.getElementById(id);
|
||||
if(elem.cacheClassElem)
|
||||
elem.className = elem.cacheClassElem;
|
||||
if(elem.cacheClassTarget)
|
||||
target.className = elem.cacheClassTarget;
|
||||
}
|
||||
/*]]>*///-->
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
@ -258,18 +26,17 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org5a86fa0">Zplug</a></li>
|
||||
<li><a href="#orgdf62626">Zplug</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<a href="https://github.com/unixorn/awesome-zsh-plugins">https://github.com/unixorn/awesome-zsh-plugins</a>
|
||||
</p>
|
||||
|
||||
<div id="outline-container-org5a86fa0" class="outline-2">
|
||||
<h2 id="org5a86fa0">Zplug</h2>
|
||||
<div class="outline-text-2" id="text-org5a86fa0">
|
||||
<div id="outline-container-orgdf62626" class="outline-2">
|
||||
<h2 id="orgdf62626">Zplug</h2>
|
||||
<div class="outline-text-2" id="text-orgdf62626">
|
||||
<p>
|
||||
<a href="https://github.com/zplug/zplug">https://github.com/zplug/zplug</a>
|
||||
</p>
|
||||
@ -296,7 +63,7 @@ zplug load --verbose
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-01-11 sam. 22:19</p>
|
||||
<p class="date">Created: 2021-01-01 ven. 14:56</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
309
doom.org
309
doom.org
@ -1,21 +1,6 @@
|
||||
#+TITLE: Doom Emacs Configuration
|
||||
:DRAWER:
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
#+PROPERTY: header-args :tangle ~/.config/doom/config.el :results none :padline no
|
||||
:END:
|
||||
|
||||
* Introduction and Resources :ignore:
|
||||
https://medium.com/urbint-engineering/emacs-doom-for-newbies-1f8038604e3b
|
||||
@ -111,7 +96,7 @@ After that, restart Emacs with =spc q r=.
|
||||
#+end_src
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(setq doom-theme 'doom-gruvbox)
|
||||
(setq doom-theme 'leuven)
|
||||
#+end_src
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
@ -161,6 +146,24 @@ Make horizontal movement cross lines
|
||||
(setq-default evil-cross-lines t)
|
||||
#+end_src
|
||||
|
||||
Evil Surround (not working):
|
||||
#+begin_src emacs-lisp :tangle no
|
||||
;; this macro was copied from here: https://stackoverflow.com/a/22418983/4921402
|
||||
(defmacro define-and-bind-quoted-text-object (name key start-regex end-regex)
|
||||
(let ((inner-name (make-symbol (concat "evil-inner-" name)))
|
||||
(outer-name (make-symbol (concat "evil-a-" name))))
|
||||
`(progn
|
||||
(evil-define-text-object ,inner-name (count &optional beg end type)
|
||||
(evil-select-paren ,start-regex ,end-regex beg end type count nil))
|
||||
(evil-define-text-object ,outer-name (count &optional beg end type)
|
||||
(evil-select-paren ,start-regex ,end-regex beg end type count t))
|
||||
(define-key evil-inner-text-objects-map ,key #',inner-name)
|
||||
(define-key evil-outer-text-objects-map ,key #',outer-name))))
|
||||
|
||||
;; Add dollar as a surround object
|
||||
(define-and-bind-quoted-text-object "dollar" "$" "\\$" "\\$")
|
||||
#+end_src
|
||||
|
||||
** Which Key
|
||||
#+begin_src emacs-lisp
|
||||
(after! which-key
|
||||
@ -270,15 +273,6 @@ Turn off auto-fill mode that add line breaks.
|
||||
- =(= Hide details
|
||||
- =)= Show git infos
|
||||
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(use-package! dired-narrow
|
||||
:config
|
||||
(map! :map dired-mode-map
|
||||
:n "f"
|
||||
'dired-narrow-fuzzy))
|
||||
#+end_src
|
||||
|
||||
** PDF-Tools
|
||||
#+begin_src emacs-lisp
|
||||
(use-package! pdf-tools
|
||||
@ -308,6 +302,11 @@ Turn off auto-fill mode that add line breaks.
|
||||
(setq org-files (cdr org-files))))
|
||||
#+end_src
|
||||
|
||||
** Others
|
||||
#+begin_src emacs-lisp
|
||||
(setq auto-save-default t)
|
||||
#+end_src
|
||||
|
||||
* Org Mode
|
||||
- http://cachestocaches.com/2016/9/my-workflow-org-agenda/
|
||||
- http://doc.norang.ca/org-mode.html#TodoKeywords
|
||||
@ -365,6 +364,16 @@ Display the real size of images and not the one set with =attr_latex: :width \li
|
||||
)
|
||||
#+end_src
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(defun tdh/pdf-link (filename)
|
||||
(start-process "" nil "zathura" (concat "~/Cloud/pdfs/" filename ".pdf"))
|
||||
"")
|
||||
|
||||
(after! org
|
||||
(org-link-set-parameters "pdf" :follow #'tdh/pdf-link)
|
||||
)
|
||||
#+end_src
|
||||
|
||||
** Org Tagging
|
||||
#+begin_src emacs-lisp
|
||||
(after! org
|
||||
@ -640,12 +649,15 @@ https://emacs.stackexchange.com/questions/3844/good-methods-for-setting-up-alarm
|
||||
("l" . "src emacs-lisp")
|
||||
("q" . "quote")
|
||||
("s" . "src")
|
||||
("ba" . "seealso")
|
||||
("ba" . "answer")
|
||||
("bd" . "definition")
|
||||
("be" . "exampl")
|
||||
("bx" . "exercice")
|
||||
("bq" . "question")
|
||||
("bs" . "summary")
|
||||
("bS" . "seealso")
|
||||
("bh" . "hint")
|
||||
("bn" . "note")
|
||||
("bi" . "important")
|
||||
("bc" . "caution")
|
||||
("bw" . "warning")
|
||||
@ -751,17 +763,9 @@ Do not export headline with the =:ignore:= tag:
|
||||
*** HTML Defaults
|
||||
#+begin_src emacs-lisp
|
||||
(after! org
|
||||
;; (setq org-html-head-extra (concat
|
||||
;; "<link rel='stylesheet' href='../css/htmlize.css'>\n"
|
||||
;; "<link rel='stylesheet' href='../css/readtheorg.css'>\n"
|
||||
;; "<link rel='stylesheet' href='../css/zenburn.css'>\n"
|
||||
;; "<link rel='text/javascript' href='../js/bootstrap.min.js'>\n"
|
||||
;; "<link rel='text/javascript' href='../js/jquery.min.js'>\n"
|
||||
;; "<link rel='text/javascript' href='../js/jquery.stickytableheaders.min.js'>\n"
|
||||
;; "<link rel='text/javascript' href='../js/readtheorg.js'>\n"))
|
||||
(setq org-html-head "<meta name=\"viewport\" content=\"width=device-width,initial-scale=1.0\">")
|
||||
(setq org-html-head-extra "")
|
||||
|
||||
;; cleans up anything that would have been in there.
|
||||
(setq org-html-head nil)
|
||||
(setq org-html-head-include-default-style nil)
|
||||
(setq org-html-head-include-scripts nil)
|
||||
|
||||
@ -777,6 +781,12 @@ Do not export headline with the =:ignore:= tag:
|
||||
)
|
||||
#+end_src
|
||||
|
||||
*** Footnotes
|
||||
#+begin_src emacs-lisp
|
||||
(after! org
|
||||
(setq org-html-footnotes-section
|
||||
"<div id=\"footnotes\">\n<h2 class=\"footnotes\">%s</h2>\n<div id=\"text-footnotes\">\n%s\n</div>\n</div>"))
|
||||
#+end_src
|
||||
*** MathJax
|
||||
#+begin_src emacs-lisp
|
||||
(after! org
|
||||
@ -815,9 +825,11 @@ Do not export headline with the =:ignore:= tag:
|
||||
(t
|
||||
path))))
|
||||
|
||||
(org-link-set-parameters "video" :export 'org-video-link-export)
|
||||
(after! org
|
||||
(org-link-set-parameters "video" :export 'org-video-link-export)
|
||||
|
||||
(org-export-string-as "video:xxx.mp4" 'html t)
|
||||
(org-export-string-as "video:xxx.mp4" 'html t)
|
||||
)
|
||||
#+end_src
|
||||
|
||||
*** TODO Ensuring useful HTML Anchors
|
||||
@ -1069,7 +1081,8 @@ Adapt this from https://github.com/alhassy/emacs.d to do something similar for s
|
||||
)
|
||||
(add-to-list 'org-latex-classes
|
||||
'("scrreprt"
|
||||
"\\documentclass{scrreprt}"
|
||||
"\\documentclass[a4paper, 10pt, DIV=12, parskip=full]{scrreprt}"
|
||||
("\\chapter{%s}" . "\\chapter*{%s}")
|
||||
("\\section{%s}" . "\\section*{%s}")
|
||||
("\\subsection{%s}" . "\\subsection*{%s}")
|
||||
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
|
||||
@ -1131,7 +1144,28 @@ https://emacs.stackexchange.com/questions/30575/adding-latex-newpage-before-a-he
|
||||
)
|
||||
#+end_src
|
||||
|
||||
*** Default added packages
|
||||
*** TODO Default added packages
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(after! org
|
||||
(setq org-latex-default-packages-alist
|
||||
'(("AUTO" "inputenc" t ("pdflatex")) ;; for basic font and character selection
|
||||
("T1" "fontenc" t ("pdflatex")) ;; for basic font and character selection
|
||||
("" "graphicx" t) ;; for including images
|
||||
("" "grffile" t) ;; allow periods and spaces in graphics file names
|
||||
("" "longtable" nil) ;; For multipage tables
|
||||
("" "wrapfig" nil) ;; for figure placement
|
||||
("" "rotating" nil) ;; for sideways figures and tables
|
||||
("normalem" "ulem" t) ;; for underline and strike-through
|
||||
("" "amsmath" t) ;; for subscript and superscript and math environments
|
||||
("" "textcomp" t) ;; for various symbols
|
||||
("" "amssymb" t) ;; for various symbols
|
||||
("" "capt-of" nil) ;; for captions outside of floats
|
||||
("" "hyperref" nil)) ;; for cross references
|
||||
)
|
||||
)
|
||||
#+end_src
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(after! org
|
||||
(add-to-list 'org-latex-packages-alist '("" "siunitx" t))
|
||||
@ -1148,9 +1182,9 @@ https://emacs.stackexchange.com/questions/30575/adding-latex-newpage-before-a-he
|
||||
(after! org
|
||||
;; Setup default option for image size when exporting to LaTeX
|
||||
(setq org-latex-image-default-scale "")
|
||||
(setq org-latex-image-default-width "\\linewidth")
|
||||
(setq org-latex-image-default-width "")
|
||||
(setq org-latex-image-default-height "")
|
||||
(setq org-latex-image-default-option "")
|
||||
(setq org-latex-image-default-option "scale=1")
|
||||
|
||||
;; Use define labels instead of automatic generated ones
|
||||
(setq org-latex-prefer-user-labels t)
|
||||
@ -1522,31 +1556,48 @@ https://www.reddit.com/r/emacs/comments/d3a8or/pretty_org_tables_in_the_buffer_c
|
||||
)
|
||||
#+end_src
|
||||
|
||||
** Org Special Block Extras
|
||||
#+begin_src emacs-lisp
|
||||
(after! org
|
||||
(require 'org-special-block-extras)
|
||||
)
|
||||
#+end_src
|
||||
|
||||
** Org Inline Task
|
||||
#+begin_src emacs-lisp
|
||||
(after! org
|
||||
(require 'org-inlinetask)
|
||||
)
|
||||
#+end_src
|
||||
|
||||
** Org Links
|
||||
*** Youtube Links
|
||||
#+begin_src emacs-lisp
|
||||
(setq yt-iframe-format
|
||||
;; You may want to change your width and height.
|
||||
(concat "<iframe width=\"1280\""
|
||||
" height=\"720\""
|
||||
" src=\"https://www.youtube.com/embed/%s\""
|
||||
" frameborder=\"0\""
|
||||
" allowfullscreen>%s</iframe>"))
|
||||
(after! org
|
||||
(setq yt-iframe-format
|
||||
;; You may want to change your width and height.
|
||||
(concat "<div class=\"yt\"><iframe width=\"100%%\""
|
||||
" height=\"100%%\""
|
||||
" src=\"https://www.youtube.com/embed/%s\""
|
||||
" frameborder=\"0\""
|
||||
" allowfullscreen>%s</iframe></div>"))
|
||||
|
||||
(org-add-link-type
|
||||
"yt"
|
||||
(lambda (handle)
|
||||
(browse-url
|
||||
(concat "https://www.youtube.com/embed/"
|
||||
handle)))
|
||||
(lambda (path desc backend)
|
||||
(cl-case backend
|
||||
(html (format yt-iframe-format
|
||||
path (or desc "")))
|
||||
(md (format "{{< youtube %s >}}"
|
||||
(org-add-link-type
|
||||
"yt"
|
||||
(lambda (handle)
|
||||
(browse-url
|
||||
(concat "https://www.youtube.com/embed/"
|
||||
handle)))
|
||||
(lambda (path desc backend)
|
||||
(cl-case backend
|
||||
(html (format yt-iframe-format
|
||||
path (or desc "")))
|
||||
(md (format "{{< youtube %s >}}"
|
||||
path))
|
||||
(latex (format "\href{%s}{%s}"
|
||||
path (or desc "video"))))))
|
||||
(latex (format "\\href{%s}{%s}"
|
||||
(concat "https://www.youtube.com/embed/"
|
||||
path) (or desc "video"))))))
|
||||
)
|
||||
#+end_src
|
||||
|
||||
** Org Gcal
|
||||
@ -1563,7 +1614,7 @@ https://www.reddit.com/r/emacs/comments/d3a8or/pretty_org_tables_in_the_buffer_c
|
||||
("8kjmhe2ar0abnm054ill1fb0gc@group.calendar.google.com" . "~/Cloud/org/gcal_phd.org")))
|
||||
;; Automatic fetch of the new events
|
||||
;; (add-hook 'org-agenda-mode-hook (lambda () (org-gcal-fetch) ))
|
||||
)
|
||||
)
|
||||
#+end_src
|
||||
|
||||
** Citeproc-Org
|
||||
@ -1582,6 +1633,9 @@ https://www.reddit.com/r/emacs/comments/d3a8or/pretty_org_tables_in_the_buffer_c
|
||||
:init
|
||||
(setq alert-default-style 'libnotify)
|
||||
:config
|
||||
(setq org-wild-notifier-alert-time '(10 5))
|
||||
(setq org-wild-notifier-notification-title "Org Agenda")
|
||||
(org-wild-notifier-mode)
|
||||
)
|
||||
#+end_src
|
||||
|
||||
@ -1724,7 +1778,7 @@ Take Screenshot and insert a link:
|
||||
(setq filename (read-string "Enter file name:" (car (split-string (file-name-base buffer-file-name) "_"))))
|
||||
(setq filename (read-string "Enter file name:")))
|
||||
(setq filepath (concat "./figs/" filename ".png"))
|
||||
(shell-command (concat "maim -s " filepath))
|
||||
(shell-command (concat "maim -u -s " filepath))
|
||||
(insert (format "#+name: fig:%s\n#+caption:\n[[file:%s]]" filename filepath))
|
||||
(search-backward "caption")
|
||||
(end-of-line)
|
||||
@ -1795,6 +1849,14 @@ Map Keys
|
||||
#+end_src
|
||||
|
||||
*** Org LaTeX Automatic fragment
|
||||
#+begin_src emacs-lisp
|
||||
(use-package! org-fragtog
|
||||
:after org
|
||||
:config
|
||||
(add-hook 'org-mode-hook 'org-fragtog-mode)
|
||||
)
|
||||
#+end_src
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(defun tdh-automatic-latex-fragment-activate ()
|
||||
(interactive)
|
||||
@ -2476,6 +2538,47 @@ Automatic export of backlinks
|
||||
)
|
||||
#+end_src
|
||||
|
||||
Create Org-Roam file from heading ([[https://ag91.github.io/blog/2020/11/12/write-org-roam-notes-via-elisp/][link]])
|
||||
#+begin_src emacs-lisp
|
||||
(defun tdh/make-roam-filepath (title)
|
||||
"Make filename from note TITLE."
|
||||
(concat
|
||||
org-roam-directory
|
||||
(org-roam--title-to-slug title)
|
||||
".org"))
|
||||
|
||||
(defun tdh/insert-org-roam-file (file-path title text)
|
||||
"Insert org roam file in FILE-PATH with TITLE, LINKS, SOURCES, TEXT, QUOTE."
|
||||
(with-temp-file file-path
|
||||
(insert
|
||||
"#+TITLE: " title "\n"
|
||||
"#+SETUPFILE: ./setup/org-setup-file.org\n"
|
||||
"#+HUGO_SECTION: zettels\n"
|
||||
"\n"
|
||||
"- Tags ::\n"
|
||||
"\n"
|
||||
text
|
||||
"\n"
|
||||
"\n"
|
||||
"* Bibliography :ignore:\n"
|
||||
"bibliography:./biblio/references.bib"
|
||||
"\n"
|
||||
)))
|
||||
|
||||
|
||||
(defun tdh/convert-task-to-org-note ()
|
||||
"Convert a task in a `org-roam' note."
|
||||
(interactive)
|
||||
(let* ((heading (org-get-heading t t t t))
|
||||
(body (org-get-entry))
|
||||
(filepath (tdh/make-roam-filepath heading)))
|
||||
(tdh/insert-org-roam-file
|
||||
filepath
|
||||
heading
|
||||
body)
|
||||
(find-file filepath)))
|
||||
#+end_src
|
||||
|
||||
** Helm-Bibtex ([[https://github.com/tmalsburg/helm-bibtex][link]])
|
||||
#+begin_src emacs-lisp
|
||||
(use-package! helm-bibtex
|
||||
@ -2662,7 +2765,8 @@ Provides nice functions such as:
|
||||
(use-package! citeproc-org
|
||||
:after org
|
||||
:config
|
||||
(citeproc-org-setup))
|
||||
(citeproc-org-setup)
|
||||
(setq citeproc-org-html-backends '(html)))
|
||||
#+end_src
|
||||
|
||||
* LaTeX
|
||||
@ -3081,27 +3185,86 @@ Choose account label to feed msmtp -a option based on From header in Message buf
|
||||
:END:
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
;; Vimrc
|
||||
(package! vimrc-mode)
|
||||
#+end_src
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
;; Automatic toggling of LaTeX fragments
|
||||
(package! org-fragtog)
|
||||
#+end_src
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
;; custom blocks and links for org-mode
|
||||
(package! org-special-block-extras)
|
||||
#+end_src
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
;; Nice theme
|
||||
(package! poet-theme)
|
||||
#+end_src
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
;; Major mode for SPICE
|
||||
(package! spice-mode)
|
||||
#+end_src
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
;; Import file to Org-mode
|
||||
(package! org-pandoc-import
|
||||
:recipe (:host github
|
||||
:repo "tecosaur/org-pandoc-import"
|
||||
:files ("*.el" "filters" "preprocessors")))
|
||||
#+end_src
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
;; Renders Org-mode citations in CSL styles
|
||||
(package! citeproc-org)
|
||||
#+end_src
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
;; Org-mode modules for citations, cross-references, bibliographies
|
||||
(package! org-ref)
|
||||
#+end_src
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
;; Alert notifications for org-agenda
|
||||
(package! org-wild-notifier)
|
||||
#+end_src
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
;; Display Google Calendar in org-calendar
|
||||
(package! org-gcal)
|
||||
;; (package! ox-latex-subfigure
|
||||
;; :recipe (:host github :repo "linktohack/ox-latex-subfigure"))
|
||||
;; (package! matlab-mode)
|
||||
#+end_src
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
;; Turn table into subfigure
|
||||
(package! ox-latex-subfigure
|
||||
:recipe (:host github :repo "linktohack/ox-latex-subfigure"))
|
||||
#+end_src
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
;; Major Mode for Matlab
|
||||
(package! matlab-mode
|
||||
:recipe (:host github :repo "matlab-mode/mirror"))
|
||||
(package! org-ref)
|
||||
(package! citeproc-org)
|
||||
#+end_src
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
;; Org-mode query language
|
||||
(package! org-ql)
|
||||
#+end_src
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
;; Display Org Mode priorities as custom strings
|
||||
(package! org-fancy-priorities)
|
||||
(package! evil-escape :disable t)
|
||||
(package! dired-narrow)
|
||||
#+end_src
|
||||
|
||||
#+begin_src emacs-lisp :tangle no
|
||||
;; Web Server
|
||||
(package! web-server)
|
||||
#+end_src
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
;; Don't use this default package in Doom
|
||||
(package! evil-escape :disable t)
|
||||
#+end_src
|
||||
|
@ -1,4 +1,5 @@
|
||||
#+TITLE: My Own Library of Babel
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
|
||||
* =get-password= - Get Password from =pass=
|
||||
|
||||
|
@ -1,23 +1,6 @@
|
||||
#+TITLE: Doom Emacs Configuration
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
#+PROPERTY: header-args :comments none :eval no :mkdir yes :results none :padline no
|
||||
:END:
|
||||
|
||||
* LaTeX
|
||||
** Coordinate
|
||||
@ -195,6 +178,17 @@ ref:${1:$$(completing-read "label: " (org-ref-get-labels))}
|
||||
$0
|
||||
#+end_src
|
||||
|
||||
** HTML Details
|
||||
#+begin_src conf :tangle ~/.config/doom/snippets/org-mode/details
|
||||
#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
||||
#name :details
|
||||
# --
|
||||
|
||||
#+HTML: <details><summary>${1:Figure}</summary>
|
||||
$0
|
||||
#+HTML: </details>
|
||||
#+end_src
|
||||
|
||||
** Code
|
||||
#+begin_src conf :tangle ~/.config/doom/snippets/org-mode/code
|
||||
#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
||||
@ -585,3 +579,18 @@ $0
|
||||
,#+end_src
|
||||
$0
|
||||
#+end_src
|
||||
|
||||
** Binary
|
||||
#+begin_src conf :tangle ~/.config/doom/snippets/org-mode/binary
|
||||
#contributor : Thomas Dehaeze <dehaeze.thomas@gmail.com>
|
||||
#name :Binary
|
||||
# --
|
||||
,* =${1:binary-name}= - ${2:Description}
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: $1
|
||||
:END:
|
||||
|
||||
,#+begin_src bash :tangle ~/.local/bin/$1
|
||||
$0
|
||||
,#+end_src
|
||||
#+end_src
|
||||
|
24
git.org
24
git.org
@ -1,23 +1,7 @@
|
||||
#+TITLE: Git Configuration
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
:END:
|
||||
|
||||
* Gitconfig
|
||||
* =~/.gitconfig=
|
||||
:PROPERTIES:
|
||||
:header-args:conf: :tangle ~/.gitconfig
|
||||
:header-args:conf+: :comments both :mkdirp yes
|
||||
@ -209,7 +193,7 @@
|
||||
oauth-token = 8cc5b41120f7e9a869c24fa3678667d3d8422e6f
|
||||
#+END_SRC
|
||||
|
||||
* Global Git Ignore
|
||||
* =~/.gitignore_global= - Global Git Ignore
|
||||
:PROPERTIES:
|
||||
:header-args:conf: :tangle ~/.gitignore_global
|
||||
:header-args:conf+: :comments both :mkdirp yes
|
||||
@ -221,7 +205,7 @@
|
||||
Session.vim
|
||||
#+END_SRC
|
||||
|
||||
* Pass Git Helper
|
||||
* =pass-git-helper= - Use =pass= for git passwords
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.config/pass-git-helper/git-pass-mapping.ini
|
||||
:header-args+: :comments both :mkdirp yes
|
||||
|
18
gtk.org
18
gtk.org
@ -1,21 +1,5 @@
|
||||
#+TITLE: GTK Configuration
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
:END:
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
|
||||
* GTK-2.0
|
||||
:PROPERTIES:
|
||||
|
27
i3.org
27
i3.org
@ -1,25 +1,8 @@
|
||||
#+TITLE: I3 Configuration
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
#+PROPERTY: header-args:conf :comments none
|
||||
#+PROPERTY: header-args:conf+ :mkdirp yes
|
||||
#+PROPERTY: header-args:conf+ :tangle ~/.config/i3/config
|
||||
:END:
|
||||
|
||||
#+begin_src conf
|
||||
# i3 config file (v4)
|
||||
@ -95,10 +78,6 @@ Layout mode for new containers
|
||||
#+end_src
|
||||
|
||||
* Settings for i3-gaps
|
||||
#+begin_src conf
|
||||
# for_window [class=".*"] border pixel 0
|
||||
#+end_src
|
||||
|
||||
#+begin_src conf
|
||||
gaps inner 10
|
||||
gaps outer 2
|
||||
@ -140,13 +119,11 @@ To display names or symbols instead of plain workspace numbers you can use somet
|
||||
#+begin_src conf
|
||||
for_window [title="File Transfer*"] floating enable
|
||||
for_window [class="GParted"] floating enable border normal
|
||||
for_window [class="Lightdm-settings"] floating enable
|
||||
for_window [class="Lxappearance"] floating enable sticky enable border normal
|
||||
for_window [class="Pavucontrol"] floating enable
|
||||
for_window [class="Arandr"] floating enable
|
||||
for_window [class="Simple-scan"] floating enable border normal
|
||||
for_window [class="(?i)System-config-printer.py"] floating enable border normal
|
||||
for_window [class="Xfburn"] floating enable
|
||||
for_window [title="^Documentation -"] floating enable border normal
|
||||
for_window [class="Yad"] floating enable
|
||||
for_window [title="Bluetooth Devices"] floating enable
|
||||
@ -171,5 +148,5 @@ If there are multiple scratchpad windows, this command cycles through them.
|
||||
* Run Polybar and SXHKD
|
||||
#+begin_src conf
|
||||
exec --no-startup-id sxhkd -m 1 -c ~/.config/sxhkd/sxhkdrc.i3
|
||||
exec --no-startup-id $HOME/.config/polybar/scripts/launch.sh
|
||||
exec --no-startup-id polybar top >>/tmp/polybar.log 2>&1 &
|
||||
#+end_src
|
||||
|
18
image.org
18
image.org
@ -1,25 +1,9 @@
|
||||
#+TITLE: SXIV Configuration
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
|
||||
#+PROPERTY: header-args:conf :tangle ~/.config/sxiv/exec/key-handler
|
||||
#+PROPERTY: header-args:conf+ :comments both :mkdirp yes
|
||||
#+PROPERTY: header-args:conf+ :shebang "#!/usr/bin/env bash"
|
||||
:END:
|
||||
|
||||
Press =C-x= to activate to key handler.
|
||||
|
||||
|
18
index.org
18
index.org
@ -1,21 +1,5 @@
|
||||
#+TITLE: Dotfiles - Manjaro Linux
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
:END:
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
|
||||
The general installation process is described [[file:install.org][here]].
|
||||
|
||||
|
18
inkscape.org
18
inkscape.org
@ -1,24 +1,8 @@
|
||||
#+TITLE: Inkscape
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
|
||||
#+PROPERTY: header-args :comments no
|
||||
#+PROPERTY: header-args+ :mkdirp yes
|
||||
:END:
|
||||
|
||||
* Save Selection to SVG extension
|
||||
** =ink= file
|
||||
|
105
install.org
105
install.org
@ -1,4 +1,5 @@
|
||||
#+TITLE: Installation
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
|
||||
* Package Manager: yay
|
||||
https://github.com/Jguer/yay
|
||||
@ -43,7 +44,7 @@ https://github.com/so-fancy/diff-so-fancy
|
||||
|
||||
*** Configuration
|
||||
#+begin_src bash
|
||||
git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"
|
||||
git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"
|
||||
#+end_src
|
||||
|
||||
** Credential Helper setup with Pass
|
||||
@ -513,7 +514,11 @@ https://github.com/mopidy/mopidy
|
||||
https://medium.com/@theos.space/using-mopidy-with-spotify-and-ncmpcpp-44352f4a2ce8
|
||||
|
||||
#+begin_src bash
|
||||
yay -S mopidy mopidy-spotify mopidy-mpd
|
||||
yay -S mopidy
|
||||
#+end_src
|
||||
|
||||
#+begin_src bash
|
||||
python3 -m pip install --user mopidy-mpd mopidy-jellyfin mopidy-spotify
|
||||
#+end_src
|
||||
|
||||
To update local files:
|
||||
@ -1056,10 +1061,11 @@ Stats about the printer
|
||||
** Kernel Management
|
||||
https://wiki.manjaro.org/index.php/Manjaro_Kernels
|
||||
|
||||
| Command | Usage |
|
||||
|-------------------+--------------------------------|
|
||||
| =mhwd-kernel -li= | Determine which kernel is used |
|
||||
| | Change current kernel |
|
||||
| Command | Usage |
|
||||
|------------------------------------+---------------------------------------|
|
||||
| =mhwd-kernel -li= | Determine which kernel is used |
|
||||
| =sudo mhwd-kernel -i linux419= | Install new kernel |
|
||||
| =sudo mhwd-kernel -i linux419 rmc= | Install new kernel and remove old one |
|
||||
|
||||
** Power Management Tool: Powertop
|
||||
https://wiki.archlinux.org/index.php/Powertop
|
||||
@ -1257,7 +1263,7 @@ https://github.com/pimutils/vdirsyncer
|
||||
|
||||
*** Installation
|
||||
#+begin_src bash
|
||||
yay -S vdirsyncer
|
||||
yay -S vdirsyncer python-requests-oauthlib
|
||||
#+end_src
|
||||
|
||||
#+begin_src bash
|
||||
@ -1298,7 +1304,7 @@ https://github.com/pimutils/khal
|
||||
khal import even.ics
|
||||
#+end_src
|
||||
|
||||
* RSS Reader
|
||||
* RSS Reader - newsboat
|
||||
GUI Alternatives:
|
||||
- http://www.rssowl.org/
|
||||
- https://github.com/jangernert/FeedReader
|
||||
@ -1325,32 +1331,8 @@ https://newsboat.org/releases/2.12/docs/newsboat.html
|
||||
*** CheatSheet
|
||||
https://newsboat.org/releases/2.12/docs/newsboat.html#available-operations
|
||||
|
||||
* Task Manager
|
||||
** OrgMode and Emacs
|
||||
** Wunderline
|
||||
https://itsfoss.com/linux-client-wunderlist/
|
||||
http://wayneashleyberry.github.io/wunderline/
|
||||
|
||||
*** Installation
|
||||
#+begin_src bash
|
||||
yay -S wunderline
|
||||
#+end_src
|
||||
|
||||
*** Cheatsheet
|
||||
Add a task with:
|
||||
- =wunderline add <task>=
|
||||
|
||||
| Options | Usage |
|
||||
|-----------------+-------|
|
||||
| =--today= | |
|
||||
| =--tomorrow= | |
|
||||
| =--note <note>= | |
|
||||
|
||||
Other commands:
|
||||
- =wunderline inbox=
|
||||
- =wunderline today=
|
||||
|
||||
* PDF Reader: Zathura
|
||||
* Task Manager - Org Mode
|
||||
* PDF Reader - Zathura
|
||||
https://pwmt.org/projects/zathura/
|
||||
** Installation
|
||||
#+begin_src bash
|
||||
@ -1408,6 +1390,18 @@ pdfpc is a great tool for showing pdf presentations. It support:
|
||||
pdfpc filename.pdf
|
||||
#+end_src
|
||||
|
||||
* DisplayManager - None
|
||||
Before, I was using lightDM, but a single tty is enough.
|
||||
|
||||
However, to make tools like Anydesk or Teamviewer to work:
|
||||
Add "type=x11" in =/etc/pam.d/system-login=:
|
||||
#+begin_src conf
|
||||
-session optional pam_systemd.so type=x11
|
||||
#+end_src
|
||||
|
||||
- When executing =loginctl session-status | grep Service= X11 should appear as initialized.
|
||||
- =echo $XDG_SESSION_TYPE= should show =x11= instead of =tty= now
|
||||
|
||||
* Theme manager
|
||||
The idea would be to have a command that changes the theme of all the system.
|
||||
|
||||
@ -1469,7 +1463,6 @@ https://github.com/AuditeMarlow/base16-manager
|
||||
This help changes many applications colors at once.
|
||||
|
||||
* Streaming - OBS
|
||||
|
||||
#+begin_src bash
|
||||
yay -Ss obs-studio
|
||||
#+end_src
|
||||
@ -1482,10 +1475,38 @@ http://dlaw.me/webcam-spoofing-with-obs/
|
||||
sudo modprobe v4l2loopback exclusive_caps=1 video_nr=9
|
||||
#+end_src
|
||||
|
||||
* Graphical Editor
|
||||
* Use Android phone as webcam - Droidcam
|
||||
#+begin_src bash
|
||||
yay -S droidcam
|
||||
#+end_src
|
||||
|
||||
Install and run droidcam on the Android phone.
|
||||
Once both are connected to the same network, run the following command:
|
||||
#+begin_src bash
|
||||
droidcam-cli -v -size=1280x720 192.168.1.51 4747
|
||||
#+end_src
|
||||
|
||||
It will create a new video device accessible for all kinds of applications.
|
||||
|
||||
To view the flux using mpv:
|
||||
#+begin_src bash
|
||||
mpv av://v4l2:/dev/video0
|
||||
#+end_src
|
||||
|
||||
* Graphical Editor - Inskape
|
||||
- https://inkscape.org/
|
||||
- Tikz
|
||||
|
||||
* Remote Desktop - Anydesk
|
||||
#+begin_src bash
|
||||
yay -S anydesk-bin
|
||||
#+end_src
|
||||
|
||||
* Wireguard
|
||||
#+begin_src bash
|
||||
yay -S wireguard-tools
|
||||
#+end_src
|
||||
|
||||
* VPN Setup with NordVPN
|
||||
https://aur.archlinux.org/packages/nordvpn-bin/
|
||||
https://wiki.archlinux.org/index.php/NordVPN
|
||||
@ -1529,6 +1550,11 @@ https://nordvpn.com/fr/tutorials/linux/openvpn/
|
||||
yay -S maim flameshot
|
||||
#+end_src
|
||||
|
||||
** Show pressed keys
|
||||
#+begin_src bash
|
||||
yay -S screenkey
|
||||
#+end_src
|
||||
|
||||
** File transfer
|
||||
https://github.com/schollz/croc
|
||||
|
||||
@ -1676,13 +1702,6 @@ Use =apack= and =aunpack=:
|
||||
| =ethtooo eth0= | Tool to show ethernet status |
|
||||
| =netstat -tulp= | List all active listening ports |
|
||||
|
||||
* Bash Snippets
|
||||
** For loop
|
||||
#+begin_src bash
|
||||
for file in ./*; do
|
||||
command ${file};
|
||||
done
|
||||
#+end_src
|
||||
* Enable TRIM (SSD only)
|
||||
#+begin_src bash
|
||||
sudo systemctl enable --now fstrim.timer
|
||||
|
18
latex.org
18
latex.org
@ -1,21 +1,5 @@
|
||||
#+TITLE: LaTeX Configuration
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
:END:
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
|
||||
* Awesome LaTeX
|
||||
- https://github.com/cmichi/latex-template-collection
|
||||
|
45
mail.org
45
mail.org
@ -1,26 +1,11 @@
|
||||
#+TITLE: Mail Configuration
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
:END:
|
||||
|
||||
* Synchronize Mailboxes - Mbsync
|
||||
* =mbsync= - Synchronize Mailboxes
|
||||
:PROPERTIES:
|
||||
:header-args:conf: :tangle ~/.mbsyncrc
|
||||
:header-args:conf+: :comments both :mkdirp yes
|
||||
:CUSTOM_ID: mbsync
|
||||
:END:
|
||||
http://isync.sourceforge.net/
|
||||
|
||||
@ -268,10 +253,11 @@ For doing a quick sync of just the INBOX with `mbsync uliege-download`.
|
||||
Sync Pull
|
||||
#+END_SRC
|
||||
|
||||
* Send Mails - Msmtp
|
||||
* =msmtp= - Send Mails
|
||||
:PROPERTIES:
|
||||
:header-args:conf: :tangle ~/.config/msmtp/config
|
||||
:header-args:conf+: :comments both :mkdirp yes
|
||||
:CUSTOM_ID: msmtp
|
||||
:END:
|
||||
https://marlam.de/msmtp/
|
||||
|
||||
@ -335,7 +321,13 @@ https://marlam.de/msmtp/
|
||||
account default : gmail
|
||||
#+END_SRC
|
||||
|
||||
* Mail Indexer - Mu
|
||||
* =mu= - Mail Indexer
|
||||
:PROPERTIES:
|
||||
:header-args:conf: :tangle ~/.config/neomutt/neomuttrc
|
||||
:header-args:conf+: :comments both :mkdirp yes
|
||||
:CUSTOM_ID: mu
|
||||
:END:
|
||||
|
||||
=Mu= ([[https://github.com/djcb/mu][github]]) it used as a "maildir indexer/searcher".
|
||||
Useful commands are described in the [[http://www.djcbsoftware.nl/code/mu/cheatsheet.html][Cheat-sheet]].
|
||||
|
||||
@ -344,10 +336,11 @@ For instance, to find mails with =pdf= attachments:
|
||||
mu find 'mime:application/pdf'
|
||||
#+end_src
|
||||
|
||||
* Mail Client - NeoMutt
|
||||
* =neomutt= - Mail Client
|
||||
:PROPERTIES:
|
||||
:header-args:conf: :tangle ~/.config/neomutt/neomuttrc
|
||||
:header-args:conf+: :comments both :mkdirp yes
|
||||
:CUSTOM_ID: neomutt
|
||||
:END:
|
||||
https://neomutt.org/
|
||||
|
||||
@ -1258,15 +1251,17 @@ This empty code block is used to add a new line after signature
|
||||
set sig_on_top # the signature is just below the response
|
||||
set edit_headers # show headers when composing
|
||||
set fast_reply # skip to compose when replying
|
||||
set askcc # ask for CC:
|
||||
set fcc_attach # save attachments with the body
|
||||
set mime_forward = yes # forward attachments as part of body
|
||||
set forward_format = "Fwd: %s" # format of subject when forwarding
|
||||
set forward_decode # decode when forwarding
|
||||
set attribution = "On %d, %n wrote:" # format of quoting header
|
||||
set reply_to # reply to Reply to: field
|
||||
set reverse_name # reply as whomever it was to
|
||||
set include # include message in replies
|
||||
#+END_SRC
|
||||
|
||||
*** Forward
|
||||
#+BEGIN_SRC conf
|
||||
set forward_format = "Fwd: %s" # format of subject when forwarding
|
||||
set forward_decode # decode when forwarding
|
||||
set forward_quote # include message in forwards
|
||||
#+END_SRC
|
||||
|
||||
|
24
matlab.org
24
matlab.org
@ -1,26 +1,9 @@
|
||||
#+TITLE: Matlab Configuration
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
#+PROPERTY: header-args:matlab :mkdir yes
|
||||
#+PROPERTY: header-args:matlab+ :exports code
|
||||
#+PROPERTY: header-args:matlab+ :eval no-export
|
||||
#+PROPERTY: header-args:matlab+ :results silent
|
||||
:END:
|
||||
|
||||
* Startup
|
||||
:PROPERTIES:
|
||||
@ -158,6 +141,11 @@ Toolbox to work with Finite Element Models ([[https://github.com/tdehaeze/fem_ma
|
||||
addpath([toolboxes_path 'fem_toolbox/src'])
|
||||
#+end_src
|
||||
|
||||
Toolbox to work with fractional order models ([[https://github.com/extall/fomcon-matlab][link]]).
|
||||
#+begin_src matlab
|
||||
addpath(genpath([toolboxes_path 'fomcon-matlab']))
|
||||
#+end_src
|
||||
|
||||
** Clear
|
||||
#+begin_src matlab
|
||||
clear;
|
||||
|
135
music.org
135
music.org
@ -1,26 +1,11 @@
|
||||
#+TITLE: Music/Sound Configuration
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
:END:
|
||||
|
||||
* Pavu Control
|
||||
* =pavucontrol= - Volume Control
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.config/pavucontrol.ini
|
||||
:header-args+: :comments both :mkdirp yes
|
||||
:CUSTOM_ID: pavucontrol
|
||||
:END:
|
||||
|
||||
#+BEGIN_SRC conf
|
||||
@ -34,7 +19,62 @@
|
||||
showVolumeMeters=1
|
||||
#+END_SRC
|
||||
|
||||
* NCMPCPP
|
||||
* =mopidy= - Music Server
|
||||
:PROPERTIES:
|
||||
:header-args:conf: :tangle ~/.config/mopidy/mopidy.conf
|
||||
:header-args:conf+: :comments none :mkdirp yes :noweb no-export
|
||||
:CUSTOM_ID: mopidy
|
||||
:END:
|
||||
|
||||
#+begin_src conf
|
||||
[spotify]
|
||||
username = dehaeze.thomas@gmail.com
|
||||
password = <<get-password(passname="spotify.com/dehaeze.thomas@gmail.com")>>
|
||||
client_id = 9dd02534-f038-46d8-946e-bfe72498204e
|
||||
client_secret = <<get-password(passname="spotify/client_secret")>>
|
||||
bitrate = 320
|
||||
|
||||
[mpd]
|
||||
enabled = true
|
||||
hostname = 127.0.0.1
|
||||
port = 6600
|
||||
password =
|
||||
max_connections = 20
|
||||
connection_timeout = 60
|
||||
zeroconf = Mopidy MPD server on $hostname
|
||||
command_blacklist = listall,listallinfo
|
||||
default_playlist_scheme = m3u
|
||||
|
||||
[jellyfin]
|
||||
hostname = https://jellyfin.tdehaeze.xyz/
|
||||
username = tdehaeze
|
||||
password = <<get-password(passname="music.tdehaeze.xyz/tdehaeze")>>
|
||||
libraries = Music
|
||||
albumartistsort = True
|
||||
album_format = {ProductionYear} - {Name}
|
||||
|
||||
[file]
|
||||
enabled = true
|
||||
media_dirs = /home/thomas/Music
|
||||
excluded_file_extensions =
|
||||
.db
|
||||
.directory
|
||||
.html
|
||||
.jpeg
|
||||
.jpg
|
||||
.log
|
||||
.nfo
|
||||
.pdf
|
||||
.png
|
||||
.txt
|
||||
.zip
|
||||
#+end_src
|
||||
|
||||
* =ncmpcpp= - Ncurses based MPD client
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: ncmpcpp
|
||||
:END:
|
||||
|
||||
https://rybczak.net/ncmpcpp/
|
||||
Cheatsheet: https://pkgbuild.com/~jelle/ncmpcpp/
|
||||
|
||||
@ -126,10 +166,11 @@ Sorting by tracking number and then title
|
||||
|
||||
#+end_src
|
||||
|
||||
* Beets
|
||||
* =beets= - Media library management
|
||||
:PROPERTIES:
|
||||
:header-args:conf: :tangle ~/.config/beets/config.yaml
|
||||
:header-args:conf+: :comments both :mkdirp yes
|
||||
:CUSTOM_ID: beets
|
||||
:END:
|
||||
http://beets.io/
|
||||
|
||||
@ -144,61 +185,13 @@ http://beets.io/
|
||||
plugins: fromfilename discogs
|
||||
#+end_src
|
||||
|
||||
* Mopidy
|
||||
:PROPERTIES:
|
||||
:header-args:conf: :tangle ~/.config/mopidy/mopidy.conf
|
||||
:header-args:conf+: :comments none :mkdirp yes :noweb no-export
|
||||
:END:
|
||||
|
||||
#+begin_src conf
|
||||
[spotify]
|
||||
username = dehaeze.thomas@gmail.com
|
||||
password = <<get-password(passname="spotify.com/dehaeze.thomas@gmail.com")>>
|
||||
client_id = 9dd02534-f038-46d8-946e-bfe72498204e
|
||||
client_secret = <<get-password(passname="spotify/client_secret")>>
|
||||
bitrate = 320
|
||||
|
||||
[mpd]
|
||||
enabled = true
|
||||
hostname = 127.0.0.1
|
||||
port = 6600
|
||||
password =
|
||||
max_connections = 20
|
||||
connection_timeout = 60
|
||||
zeroconf = Mopidy MPD server on $hostname
|
||||
command_blacklist = listall,listallinfo
|
||||
default_playlist_scheme = m3u
|
||||
|
||||
[jellyfin]
|
||||
hostname = https://jellyfin.tdehaeze.xyz/
|
||||
username = tdehaeze
|
||||
password = <<get-password(passname="music.tdehaeze.xyz/tdehaeze")>>
|
||||
libraries = Music
|
||||
albumartistsort = True
|
||||
album_format = {ProductionYear} - {Name}
|
||||
|
||||
[file]
|
||||
enabled = true
|
||||
media_dirs = /home/thomas/Music
|
||||
excluded_file_extensions =
|
||||
.db
|
||||
.directory
|
||||
.html
|
||||
.jpeg
|
||||
.jpg
|
||||
.log
|
||||
.nfo
|
||||
.pdf
|
||||
.png
|
||||
.txt
|
||||
.zip
|
||||
#+end_src
|
||||
|
||||
* Radio with curseradio
|
||||
* =curseradio= - Radio with curseradio
|
||||
:PROPERTIES:
|
||||
:header-args:conf: :tangle ~/.config/curseradio/curseradio.cfg
|
||||
:header-args:conf+: :comments none :mkdirp yes
|
||||
:CUSTOM_ID: curseradio
|
||||
:END:
|
||||
|
||||
#+begin_src conf
|
||||
[opml]
|
||||
root = http://opml.radiotime.com/
|
||||
|
18
newsboat.org
18
newsboat.org
@ -1,21 +1,5 @@
|
||||
#+TITLE: Newsboat Configuration
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
:END:
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
|
||||
https://wiki.archlinux.org/index.php/Newsboat
|
||||
https://newsboat.org/releases/2.12/docs/newsboat.html
|
||||
|
@ -1,24 +1,7 @@
|
||||
#+TITLE: Dunst (Notification Manager)
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
#+PROPERTY: header-args :comments both :mkdirp yes
|
||||
#+PROPERTY: header-args+ :tangle ~/.config/dunst/dunstrc
|
||||
:END:
|
||||
|
||||
* Global
|
||||
#+begin_src conf
|
||||
|
19
pcmanfm.org
19
pcmanfm.org
@ -1,26 +1,9 @@
|
||||
#+TITLE: PCMANFM
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
#+PROPERTY: header-args:bash :comments both
|
||||
#+PROPERTY: header-args:bash+ :mkdirp yes
|
||||
#+PROPERTY: header-args:bash+ :shebang "#!/bin/sh"
|
||||
#+PROPERTY: header-args:bash+ :tangle ~/.config/pcmanfm/default/pcmanfm.conf
|
||||
:END:
|
||||
|
||||
* Config
|
||||
#+BEGIN_SRC conf
|
||||
|
97
polybar.org
97
polybar.org
@ -1,25 +1,8 @@
|
||||
#+TITLE: Polybar Configuration
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
#+PROPERTY: header-args :comments no
|
||||
#+PROPERTY: header-args+ :mkdirp yes
|
||||
#+PROPERTY: header-args+ :tangle ~/.config/polybar/config
|
||||
:END:
|
||||
|
||||
* Colors
|
||||
#+begin_src conf
|
||||
@ -80,7 +63,7 @@
|
||||
|
||||
modules-left = i3 bspwm xwindow
|
||||
modules-center =
|
||||
modules-right = pulseaudio wired-network wireless-network wireguard nordvpn bluetooth redshift lockscreen dunst packages unread_news unread_mail calendar temperature battery date
|
||||
modules-right = pulseaudio wired-network wireless-network nordvpn bluetooth redshift lockscreen dunst packages unread_news unread_mail calendar temperature battery date
|
||||
|
||||
wm-restack = i3
|
||||
|
||||
@ -564,7 +547,7 @@
|
||||
type = custom/script
|
||||
|
||||
format-underline = ${colors.bg}
|
||||
click-left = ~/.config/polybar/scripts/nordvpn-toggle.sh >/dev/null 2>%1 &
|
||||
click-left = ~/.local/bin/nordvpn-toggle >/dev/null 2>%1 &
|
||||
format = <label>
|
||||
exec = ~/.config/polybar/scripts/nordvpn-status.sh
|
||||
interval = 2
|
||||
@ -588,26 +571,8 @@
|
||||
#+END_SRC
|
||||
|
||||
** Nordvpn Toggle
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.config/polybar/scripts/nordvpn-toggle.sh
|
||||
:header-args+: :comments both :mkdirp yes
|
||||
:header-args+: :shebang "#!/usr/bin/env bash"
|
||||
:END:
|
||||
#+BEGIN_SRC bash
|
||||
tmpfile="/tmp/vpnstatus";
|
||||
|
||||
if [ -f $tmpfile ] && grep -q "on" $tmpfile; then
|
||||
nordvpn disconnect && \
|
||||
dunstify --replace=23198 "VPN" "Disconnected" && \
|
||||
echo "off" > $tmpfile;
|
||||
else
|
||||
country=`cat ~/.local/data/nordvpn_countries.txt | sed 's/\s*\t\s*/ /g ; s/\s/\n/g ; s/_/ /g ; /^[a-zA-Z]/!d ; s/\(.*\)/\L\1/' | rofi -i -dmenu | sed 's/\s/_/g'`;
|
||||
dunstify --replace=23198 "VPN" "Connecting to $country...";
|
||||
nordvpn connect $country && \
|
||||
dunstify --replace=23198 "VPN" "Connected to $country" && \
|
||||
echo "on" > $tmpfile;
|
||||
fi
|
||||
#+END_SRC
|
||||
The script is accessible [[file:binaries.org::#nordvpn-toggle][here]].
|
||||
|
||||
* Packages
|
||||
#+BEGIN_SRC conf
|
||||
@ -773,12 +738,12 @@
|
||||
#+begin_src conf
|
||||
[module/wired-network]
|
||||
type = internal/network
|
||||
interface = ens12u2u4u4
|
||||
interface = enp57s0u2u4u4
|
||||
|
||||
label-connected = %{A3:bash ~/.config/polybar/scripts/connection-manager.sh wlp2s0 >/dev/null 2>%1 &:}%{A1:bash ~/.config/polybar/scripts/connection-toggle.sh ens12u2u4u4 >/dev/null 2>%1 &:} %local_ip%%{A}%{A}
|
||||
label-connected = %{A3:bash ~/.config/polybar/scripts/connection-manager.sh >/dev/null 2>%1 &:}%{A1:bash ~/.config/polybar/scripts/connection-toggle.sh enp57s0u2u4u4 >/dev/null 2>%1 &:} %local_ip%%{A}%{A}
|
||||
label-connected-foreground = ${colors.fg}
|
||||
|
||||
label-disconnected = %{A3:bash ~/.config/polybar/scripts/connection-manager.sh wlp2s0 >/dev/null 2>%1 &:}%{A1:bash ~/.config/polybar/scripts/connection-toggle.sh ens12u2u4u4 >/dev/null 2>%1 &:}%{A}%{A}
|
||||
label-disconnected = %{A3:bash ~/.config/polybar/scripts/connection-manager.sh >/dev/null 2>%1 &:}%{A1:bash ~/.config/polybar/scripts/connection-toggle.sh enp57s0u2u4u4 >/dev/null 2>%1 &:}%{A}%{A}
|
||||
label-disconnected-foreground = #777
|
||||
#+end_src
|
||||
|
||||
@ -790,10 +755,10 @@
|
||||
format-connected = <label-connected>
|
||||
format-disconnected = <label-disconnected>
|
||||
|
||||
label-connected = %{A3:bash ~/.config/polybar/scripts/connection-manager.sh wlp2s0 >/dev/null 2>%1 &:}%{A1:bash ~/.config/polybar/scripts/connection-toggle.sh wlp2s0 >/dev/null 2>%1 &:}直 %essid%%{A}%{A}
|
||||
label-connected = %{A3:bash ~/.config/polybar/scripts/connection-manager.sh >/dev/null 2>%1 &:}%{A1:bash ~/.config/polybar/scripts/connection-toggle.sh wlp2s0 >/dev/null 2>%1 &:}直 %essid%%{A}%{A}
|
||||
label-connected-foreground = ${colors.fg}
|
||||
|
||||
label-disconnected = %{A3:bash ~/.config/polybar/scripts/connection-manager.sh wlp2s0 >/dev/null 2>%1 &:}%{A1:bash ~/.config/polybar/scripts/connection-toggle.sh wlp2s0 >/dev/null 2>%1 &:}直%{A}%{A}
|
||||
label-disconnected = %{A3:bash ~/.config/polybar/scripts/connection-manager.sh >/dev/null 2>%1 &:}%{A1:bash ~/.config/polybar/scripts/connection-toggle.sh wlp2s0 >/dev/null 2>%1 &:}直%{A}%{A}
|
||||
label-disconnected-foreground = #777
|
||||
#+end_src
|
||||
|
||||
@ -850,7 +815,7 @@
|
||||
interval = 2
|
||||
#+END_SRC
|
||||
|
||||
** Bluetooth Run Manager
|
||||
** =bluetooth-run.sh= - Bluetooth Run Manager
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.config/polybar/scripts/bluetooth-run.sh
|
||||
:header-args+: :comments both :mkdirp yes
|
||||
@ -861,7 +826,7 @@
|
||||
blueman-manager && pkill blueman-applet
|
||||
#+end_src
|
||||
|
||||
** Bluetooth Connection Status
|
||||
** =bluetooth-status.sh= - Bluetooth Connection Status
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.config/polybar/scripts/bluetooth-status.sh
|
||||
:header-args+: :comments both :mkdirp yes
|
||||
@ -881,7 +846,7 @@
|
||||
fi
|
||||
#+end_src
|
||||
|
||||
** Toggle Bluetooth Connection
|
||||
** =bluetooth-toggle.sh= - Toggle Bluetooth Connection
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.config/polybar/scripts/bluetooth-toggle.sh
|
||||
:header-args+: :comments both :mkdirp yes
|
||||
@ -1015,41 +980,3 @@
|
||||
click-left = ~/.local/bin/screenshot >/dev/null 2>%1 &
|
||||
#+END_SRC
|
||||
|
||||
* Scripts
|
||||
** Launch
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.config/polybar/scripts/launch.sh
|
||||
:header-args+: :comments both :mkdirp yes
|
||||
:header-args+: :shebang "#!/usr/bin/env bash"
|
||||
:END:
|
||||
|
||||
#+begin_src bash
|
||||
# Terminate already running bar instances
|
||||
killall -q polybar
|
||||
|
||||
# Wait until the processes have been shut down
|
||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||
|
||||
# Launch Polybar, using default config location ~/.config/polybar/config
|
||||
polybar top >>/tmp/polybar.log 2>&1 &
|
||||
# polybar bottom &
|
||||
|
||||
echo "Polybar launched..."
|
||||
#+end_src
|
||||
|
||||
** Toggle
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.config/polybar/scripts/toggle.sh
|
||||
:header-args+: :comments both :mkdirp yes
|
||||
:header-args+: :shebang "#!/usr/bin/env bash"
|
||||
:END:
|
||||
|
||||
#+begin_src bash
|
||||
# Usage : toggle.sh top
|
||||
|
||||
pid=$(pgrep -f "polybar $1")
|
||||
|
||||
if [ ! -z "$pid" ]; then
|
||||
polybar-msg -p $pid cmd toggle >/dev/null 2>&1
|
||||
fi
|
||||
#+end_src
|
||||
|
@ -1,25 +1,8 @@
|
||||
#+TITLE: Qutebrowser Configuration
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
#+PROPERTY: header-args+ :comments none
|
||||
#+PROPERTY: header-args+ :mkdirp yes
|
||||
#+PROPERTY: header-args+ :tangle ~/.config/qutebrowser/config.py
|
||||
:END:
|
||||
|
||||
* Import
|
||||
#+begin_src python
|
||||
@ -44,7 +27,6 @@
|
||||
c.content.geolocation = 'ask'
|
||||
c.content.javascript.alert = True
|
||||
c.content.javascript.can_access_clipboard = True
|
||||
c.content.media_capture = 'ask'
|
||||
c.content.pdfjs = False
|
||||
c.content.proxy = 'system'
|
||||
#+END_SRC
|
||||
@ -312,6 +294,11 @@ Screenshot of webpage to png
|
||||
config.bind(',S', 'spawn --userscript ~/.config/qutebrowser/userscripts/html-to-png.sh')
|
||||
#+end_src
|
||||
|
||||
Download AES video
|
||||
#+begin_src python
|
||||
config.bind(',E', 'spawn --userscript ~/.config/qutebrowser/userscripts/aes-download.sh')
|
||||
#+end_src
|
||||
|
||||
Download a torrent
|
||||
#+begin_src python
|
||||
config.bind(',t', 'hint links spawn torrent-add {hint-url}')
|
||||
@ -570,10 +557,7 @@ Send to Emacs
|
||||
|
||||
** Download with aria2c on the Homelab
|
||||
#+begin_src bash :tangle ~/.config/qutebrowser/userscripts/aria2c-add-homelab.sh
|
||||
# Remove the =&af= from 1fichier.
|
||||
$url=$(echo "$1" | sed 's/\&af=.*$//g')
|
||||
|
||||
dlab add "$url" && \
|
||||
dl-add $(echo "$1" | sed 's/\&af=.*$//g') && \
|
||||
dunstify "Aria2" "Download Started" || \
|
||||
dunstify "Aria2" "Error"
|
||||
#+end_src
|
||||
@ -599,3 +583,17 @@ Send to Emacs
|
||||
dunstify "Percollate" "Successfully saved to pdf"
|
||||
fi
|
||||
#+end_src
|
||||
|
||||
** Download AES video
|
||||
#+begin_src bash :tangle ~/.config/qutebrowser/userscripts/aes-download.sh
|
||||
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
|
||||
#+end_src
|
||||
|
21
ranger.org
21
ranger.org
@ -1,21 +1,5 @@
|
||||
#+TITLE: Ranger Configuration
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
:END:
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
|
||||
* Documentation
|
||||
#+begin_quote
|
||||
@ -216,9 +200,10 @@ Delete first page of pdf
|
||||
map ,d shell pdf-delete-first-page %f
|
||||
#+END_SRC
|
||||
|
||||
Convert PDF to PNG
|
||||
Convert images/pdf/...
|
||||
#+BEGIN_SRC conf
|
||||
map ,cp shell pdf2png %f
|
||||
map ,cc shell convert-file %f
|
||||
#+END_SRC
|
||||
|
||||
Magit Status
|
||||
|
18
rofi.org
18
rofi.org
@ -1,21 +1,5 @@
|
||||
#+TITLE: Rofi Configuration
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
:END:
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
|
||||
* Rofi
|
||||
:PROPERTIES:
|
||||
|
11
setup/org-setup-file.org
Normal file
11
setup/org-setup-file.org
Normal file
@ -0,0 +1,11 @@
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./dist/script.js"></script>
|
266
sxhkd.org
266
sxhkd.org
@ -1,28 +1,12 @@
|
||||
#+TITLE: Simple X Hotkey Daemon
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
#+PROPERTY: header-args :comments no
|
||||
#+PROPERTY: header-args+ :mkdirp yes
|
||||
#+PROPERTY: header-args+ :tangle ~/.config/sxhkd/sxhkdrc
|
||||
:END:
|
||||
|
||||
* Basic
|
||||
#+begin_src conf
|
||||
# Kill Windows
|
||||
super + ctrl + x
|
||||
xkill
|
||||
#+end_src
|
||||
@ -30,54 +14,117 @@
|
||||
#+begin_src conf
|
||||
# make sxhkd reload its configuration files:
|
||||
super + Escape
|
||||
pkill -USR1 -x sxhkd
|
||||
pkill -usr1 -x sxhkd; notify-send 'sxhkd' 'Reloaded config'
|
||||
|
||||
# Update Polybar
|
||||
super + r
|
||||
$HOME/.config/polybar/scripts/launch.sh
|
||||
super + shift + r
|
||||
polybar-msg cmd restart
|
||||
#+end_src
|
||||
|
||||
* Set shut down, restart and locking features
|
||||
#+begin_src conf
|
||||
# Exit Screen
|
||||
XF86PowerOff
|
||||
i3exit
|
||||
|
||||
# Exit Screen
|
||||
super + 0
|
||||
i3exit
|
||||
#+end_src
|
||||
|
||||
* Start Applications
|
||||
Change Keyboard Layout:
|
||||
#+begin_src conf
|
||||
# Start program launcher
|
||||
# Change keyboard to US-International layout
|
||||
super + ctrl + d
|
||||
setxkbmap -layout us -variant intl -option caps:escape
|
||||
|
||||
# Change keyboard to US layout
|
||||
super + shift + d
|
||||
setxkbmap -layout us -option caps:escape
|
||||
#+end_src
|
||||
|
||||
* Multimedia keys
|
||||
** Sound
|
||||
#+begin_src conf
|
||||
# Mute/Unmute
|
||||
XF86AudioMute
|
||||
amixer -D pulse sset Master toggle
|
||||
|
||||
# Increase Volume
|
||||
XF86AudioRaiseVolume
|
||||
amixer -D pulse sset Master 2%+
|
||||
|
||||
# Decrease Volume
|
||||
XF86AudioLowerVolume
|
||||
amixer -D pulse sset Master 2%-
|
||||
#+end_src
|
||||
|
||||
** Backlight
|
||||
#+begin_src conf
|
||||
# Increase Backlight
|
||||
XF86MonBrightnessUp
|
||||
xbacklight -inc 10
|
||||
|
||||
# Descrease Backlight
|
||||
XF86MonBrightnessDown
|
||||
xbacklight -dec 10
|
||||
#+end_src
|
||||
|
||||
** Change Tracks
|
||||
#+begin_src conf
|
||||
# Play/Pause music
|
||||
super + period
|
||||
mpc toggle
|
||||
|
||||
# Previous/Next music
|
||||
super + {greater,less}
|
||||
mpc {next,prev}
|
||||
#+end_src
|
||||
|
||||
#+begin_src conf
|
||||
# Play/Pause music
|
||||
XF86AudioPlay
|
||||
mpc toggle
|
||||
|
||||
# Next music
|
||||
XF86AudioNext
|
||||
mpc next
|
||||
|
||||
# Previous music
|
||||
XF86AudioPrev
|
||||
mpc prev
|
||||
#+end_src
|
||||
|
||||
** Print Screen
|
||||
#+begin_src conf
|
||||
# Screenshot script
|
||||
Print
|
||||
~/.local/bin/screenshot
|
||||
|
||||
# Switch Windows
|
||||
XF86Display
|
||||
rofi -show window
|
||||
#+end_src
|
||||
|
||||
** Other
|
||||
#+begin_src conf
|
||||
# Run Command
|
||||
XF86Search
|
||||
rofi -show run
|
||||
#+end_src
|
||||
|
||||
* =Super + key= - Start Applications
|
||||
#+begin_src conf
|
||||
# Switch Windows
|
||||
super + w
|
||||
rofi -show window
|
||||
|
||||
# program launcher
|
||||
super + d
|
||||
rofi -show run
|
||||
|
||||
# Launch categorized menu
|
||||
# categorized menu
|
||||
super + z
|
||||
rofi -show drun
|
||||
|
||||
# Start network manager
|
||||
super + w
|
||||
$TERMINAL -e 'sudo nmtui'
|
||||
|
||||
# Start Sound Manager
|
||||
super + shift + s
|
||||
pavucontrol
|
||||
|
||||
# Start Bluetooth Manager
|
||||
super + shift + b
|
||||
blueman-manager
|
||||
|
||||
# Windows Switch
|
||||
super + shift + w
|
||||
rofi -show window
|
||||
|
||||
# Bookmarks
|
||||
# super + shift + f
|
||||
# $HOME/bin/bukurun
|
||||
|
||||
# Passwords
|
||||
super + shift + p
|
||||
rofi-pass
|
||||
#+end_src
|
||||
|
||||
#+begin_src conf
|
||||
@ -85,14 +132,6 @@
|
||||
super + Return
|
||||
$TERMINAL
|
||||
|
||||
# Tmux Terminal
|
||||
super + shift + Return
|
||||
$TERMINAL -e 'tmux'
|
||||
|
||||
# Start Command line Calendar
|
||||
super + shift + c
|
||||
$TERMINAL -e "khal interactive"
|
||||
|
||||
# File Manager
|
||||
super + o
|
||||
$TERMINAL -e "tmux new-session -A -s ranger ranger"
|
||||
@ -100,59 +139,43 @@
|
||||
# Browser
|
||||
super + i
|
||||
qutebrowser
|
||||
|
||||
# Mails with neomutt
|
||||
super + m
|
||||
$TERMINAL -e "tmux new-session -A -s neomutt neomutt"
|
||||
|
||||
# Emacs Client
|
||||
super + e
|
||||
emacsclient -create-frame --alternate-editor=""
|
||||
#+end_src
|
||||
|
||||
* Multimedia keys
|
||||
** Sound
|
||||
* =Super + Shift= - Managing Applications
|
||||
#+begin_src conf
|
||||
XF86AudioMute
|
||||
amixer -D pulse sset Master toggle
|
||||
XF86AudioRaiseVolume
|
||||
amixer -D pulse sset Master 2%+
|
||||
XF86AudioLowerVolume
|
||||
amixer -D pulse sset Master 2%-
|
||||
#+end_src
|
||||
# Network Manager
|
||||
super + shift + w
|
||||
$TERMINAL -e 'sudo nmtui'
|
||||
|
||||
** Backlight
|
||||
#+begin_src conf
|
||||
XF86MonBrightnessUp
|
||||
xbacklight -inc 10
|
||||
XF86MonBrightnessDown
|
||||
xbacklight -dec 10
|
||||
#+end_src
|
||||
# Bluetooth Manager
|
||||
super + shift + b
|
||||
blueman-manager
|
||||
|
||||
** Change Tracks
|
||||
#+begin_src conf
|
||||
super + period
|
||||
mpc toggle
|
||||
super + {greater,less}
|
||||
mpc {next,prev}
|
||||
# Sound Manager
|
||||
super + shift + s
|
||||
pavucontrol
|
||||
#+end_src
|
||||
|
||||
#+begin_src conf
|
||||
XF86AudioPlay
|
||||
mpc toggle
|
||||
XF86AudioNext
|
||||
mpc next
|
||||
XF86AudioPrev
|
||||
mpc prev
|
||||
# Bookmarks
|
||||
super + shift + f
|
||||
bukurun
|
||||
|
||||
# Passwords
|
||||
super + shift + p
|
||||
rofi-pass
|
||||
#+end_src
|
||||
|
||||
** Print Screen
|
||||
#+begin_src conf
|
||||
Print
|
||||
~/.local/bin/screenshot
|
||||
XF86Display
|
||||
rofi -show window
|
||||
#+end_src
|
||||
* =Super + Space= - Command Mode
|
||||
|
||||
** Other
|
||||
#+begin_src conf
|
||||
XF86Search
|
||||
rofi -show run
|
||||
#+end_src
|
||||
|
||||
* Command Mode
|
||||
#+begin_src conf
|
||||
# Command line Calendar Client (khal)
|
||||
super + space ; c
|
||||
@ -168,12 +191,13 @@ XF86Display
|
||||
|
||||
# Download with Aria2c
|
||||
super + space ; d
|
||||
$TERMINAL -e "tmux new-session -A -s aria2p aria2p"
|
||||
$TERMINAL -e "tmux new-session -A -s aria2p aria2p --port 6800 --host http://dl.tdehaeze.xyz --secret $(pass dl.tdehaeze.xyz/tdehaeze | sed -n 1p)"
|
||||
|
||||
# Mails with neomutt
|
||||
super + space ; m
|
||||
$TERMINAL -e "tmux new-session -A -s neomutt neomutt"
|
||||
|
||||
# Run another instance of Neomutt in read-only mode
|
||||
super + space ; shift + m
|
||||
$TERMINAL -e "neomutt -R"
|
||||
|
||||
@ -197,35 +221,19 @@ XF86Display
|
||||
super + space ; i
|
||||
$BROWSER;
|
||||
|
||||
# Start Terminal Application
|
||||
# Start Torrent Managaer
|
||||
super + space ; t
|
||||
$TERMINAL -e "tremc"
|
||||
|
||||
# Alternative Browser
|
||||
super + space ; shift + i
|
||||
brave;
|
||||
|
||||
# Emacs
|
||||
super + space ; e
|
||||
emacs;
|
||||
|
||||
# Emacs Client
|
||||
super + space ; shift + e
|
||||
emacsclient -create-frame --alternate-editor=""
|
||||
|
||||
# Weather
|
||||
super + space ; shift + w
|
||||
weather;
|
||||
#+end_src
|
||||
|
||||
* Change Keyboard Layout
|
||||
#+begin_src conf
|
||||
super + ctrl + d
|
||||
setxkbmap -layout us -variant intl -option caps:escape
|
||||
super + shift + d
|
||||
setxkbmap -layout us -option caps:escape
|
||||
#+end_src
|
||||
|
||||
* BSPWM related
|
||||
:PROPERTIES:
|
||||
:header-args:conf+: :tangle ~/.config/sxhkd/sxhkdrc.bspwm
|
||||
@ -350,15 +358,11 @@ super + ctrl + space
|
||||
:header-args:conf+: :tangle ~/.config/sxhkd/sxhkdrc.i3
|
||||
:END:
|
||||
|
||||
** Quit/Restart hotkeys
|
||||
** Kill Window
|
||||
#+begin_src conf
|
||||
# quit/restart bspwm
|
||||
super + alt + {q,r}
|
||||
i3-msg {quit,restart}
|
||||
|
||||
# close and kill
|
||||
super + {_,shift + }q
|
||||
i3-msg {kill,kill}
|
||||
super + q
|
||||
i3-msg kill
|
||||
#+end_src
|
||||
|
||||
** Set the window State
|
||||
@ -402,15 +406,19 @@ super + ctrl + space
|
||||
super + {p,n}
|
||||
i3-msg workspace {prev,next}
|
||||
|
||||
# focus the last Desktop
|
||||
# Focus the last Desktop
|
||||
super + b
|
||||
i3-msg workspace back_and_forth
|
||||
|
||||
# focus or send to the given desktop
|
||||
# Focus to the given desktop
|
||||
super + {1-9}
|
||||
i3-msg workspace '{1-9}'
|
||||
|
||||
# Send to the given desktop
|
||||
super + ctrl + {1-9}
|
||||
i3-msg move container to workspace '{1-9}'
|
||||
|
||||
# Focus and Send to the given desktop
|
||||
super + shift + {1-9}
|
||||
WP={1-9} && i3-msg move container to workspace $WP && i3-msg workspace $WP
|
||||
#+end_src
|
||||
@ -418,9 +426,11 @@ super + ctrl + space
|
||||
** Preselect
|
||||
Preselect the direction
|
||||
#+begin_src conf
|
||||
# Set Horizontal Layout
|
||||
super + ctrl + {h,l,Left,Right}
|
||||
i3-msg split h
|
||||
|
||||
# Set Vertical Layout
|
||||
super + ctrl + {j,k,Up,Down}
|
||||
i3-msg split v
|
||||
#+end_src
|
||||
@ -428,12 +438,16 @@ Preselect the direction
|
||||
** Resize
|
||||
Expand/Shrink a window
|
||||
#+begin_src conf
|
||||
# Horizontal Shrink
|
||||
super + alt + h
|
||||
i3-msg resize shrink width 10 px or 10 ppt
|
||||
# Vertical Grow
|
||||
super + alt + j
|
||||
i3-msg resize grow height 10 px or 10 ppt
|
||||
# Vertical Shrink
|
||||
super + alt + k
|
||||
i3-msg resize shrink height 10 px or 10 ppt
|
||||
# Horizontal Grow
|
||||
super + alt + l
|
||||
i3-msg resize grow width 10 px or 10 ppt
|
||||
#+end_src
|
||||
|
175
systemd.org
175
systemd.org
@ -1,25 +1,9 @@
|
||||
#+TITLE: Systemd services and timers
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
:END:
|
||||
#+TITLE: =systemd= services and timers
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
|
||||
https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-systemd-services-and-units
|
||||
|
||||
* Buku Git
|
||||
* =bukugit= - Automatic commit and push new bookmarks
|
||||
** Service
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.config/systemd/user/bukugit.service
|
||||
@ -85,7 +69,66 @@ https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-
|
||||
fi
|
||||
#+end_src
|
||||
|
||||
* Check mail
|
||||
* =braingit= - Automatic commit and push new brain pages
|
||||
** Service
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.config/systemd/user/braingit.service
|
||||
:header-args+: :comments both :mkdirp yes
|
||||
:END:
|
||||
|
||||
#+BEGIN_SRC conf
|
||||
[Unit]
|
||||
Description=Sync Brain Website everyday
|
||||
RefuseManualStart=no
|
||||
RefuseManualStop=yes
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=%h/.local/bin/brain_git_push
|
||||
#+END_SRC
|
||||
|
||||
** Timer
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.config/systemd/user/braingit.timer
|
||||
:header-args+: :comments both :mkdirp yes
|
||||
:END:
|
||||
|
||||
#+BEGIN_SRC conf
|
||||
[Unit]
|
||||
Description=Sync Brain Website everyday
|
||||
RefuseManualStart=no
|
||||
RefuseManualStop=no
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* 16:00:00
|
||||
Persistent=true
|
||||
Unit=braingit.service
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
#+END_SRC
|
||||
|
||||
** Script
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.local/bin/brain_git_push
|
||||
:header-args+: :comments both :mkdirp yes
|
||||
:header-args+: :shebang "#!/usr/bin/env bash"
|
||||
:END:
|
||||
|
||||
#+begin_src bash
|
||||
cd ~/Cloud/brain-website/
|
||||
|
||||
if [[ ! -z $(git status -s content/) ]]
|
||||
then
|
||||
git add content static && \
|
||||
git commit -m "Update Content - $(date +%F)" && \
|
||||
git push
|
||||
exit
|
||||
fi
|
||||
#+end_src
|
||||
* =checkmail= - Check new mails
|
||||
** Service
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.config/systemd/user/checkmail.service
|
||||
@ -192,7 +235,7 @@ https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-
|
||||
# =============================================================
|
||||
#+end_src
|
||||
|
||||
* Sync mail
|
||||
* =syncmail= - Synchronize all mails
|
||||
** Service
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.config/systemd/user/syncmail.service
|
||||
@ -236,7 +279,7 @@ https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-
|
||||
WantedBy=default.target
|
||||
#+END_SRC
|
||||
|
||||
* Vdirsyncer
|
||||
* =vdirsyncer= - Synchronize calendar and contacts
|
||||
** Service
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.config/systemd/user/vdirsyncer.service
|
||||
@ -274,7 +317,7 @@ https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-
|
||||
WantedBy=timers.target
|
||||
#+end_src
|
||||
|
||||
* SSH Agent
|
||||
* =ssh-agent= - SSH Agent
|
||||
** Service
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.config/systemd/user/ssh-agent.service
|
||||
@ -294,7 +337,7 @@ https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-
|
||||
WantedBy=default.target
|
||||
#+end_src
|
||||
|
||||
* Powertop
|
||||
* =powertop= - Powertop
|
||||
** Service
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.config/systemd/user/powertop.service
|
||||
@ -312,87 +355,3 @@ https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-
|
||||
WantedBy=multi-user.target
|
||||
#+end_src
|
||||
|
||||
* Mopidy
|
||||
** Service
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.config/systemd/user/mopidy.service
|
||||
:header-args+: :comments both :mkdirp yes
|
||||
:END:
|
||||
|
||||
#+begin_src conf
|
||||
[Unit]
|
||||
Description=Mopidy music server
|
||||
After=avahi-daemon.service
|
||||
After=dbus.service
|
||||
After=network.target
|
||||
After=nss-lookup.target
|
||||
After=pulseaudio.service
|
||||
After=remote-fs.target
|
||||
After=sound.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/mopidy --config ~/.config/mopidy/mopidy.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
#+end_src
|
||||
|
||||
* Brain Website
|
||||
** Service
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.config/systemd/user/braingit.service
|
||||
:header-args+: :comments both :mkdirp yes
|
||||
:END:
|
||||
|
||||
#+BEGIN_SRC conf
|
||||
[Unit]
|
||||
Description=Sync Brain Website everyday
|
||||
RefuseManualStart=no
|
||||
RefuseManualStop=yes
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=%h/.local/bin/brain_git_push
|
||||
#+END_SRC
|
||||
|
||||
** Timer
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.config/systemd/user/braingit.timer
|
||||
:header-args+: :comments both :mkdirp yes
|
||||
:END:
|
||||
|
||||
#+BEGIN_SRC conf
|
||||
[Unit]
|
||||
Description=Sync Brain Website everyday
|
||||
RefuseManualStart=no
|
||||
RefuseManualStop=no
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* 16:00:00
|
||||
Persistent=true
|
||||
Unit=braingit.service
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
#+END_SRC
|
||||
|
||||
** Script
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.local/bin/brain_git_push
|
||||
:header-args+: :comments both :mkdirp yes
|
||||
:header-args+: :shebang "#!/usr/bin/env bash"
|
||||
:END:
|
||||
|
||||
#+begin_src bash
|
||||
cd ~/Cloud/brain-website/
|
||||
|
||||
if [[ ! -z $(git status -s content/) ]]
|
||||
then
|
||||
git add content static && \
|
||||
git commit -m "Update Content - $(date +%F)" && \
|
||||
git push
|
||||
exit
|
||||
fi
|
||||
#+end_src
|
||||
|
19
termite.org
19
termite.org
@ -1,25 +1,8 @@
|
||||
#+TITLE: Termite Configuration
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
#+PROPERTY: header-args+ :comments both
|
||||
#+PROPERTY: header-args+ :mkdirp yes
|
||||
#+PROPERTY: header-args+ :tangle ~/.config/termite/config
|
||||
:END:
|
||||
|
||||
* Options
|
||||
#+BEGIN_SRC conf
|
||||
|
19
tmux.org
19
tmux.org
@ -1,24 +1,7 @@
|
||||
#+TITLE: Tmux Configuration
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
#+PROPERTY: header-args :tangle ~/.tmux.conf
|
||||
#+PROPERTY: header-args+ :comments both :mkdirp yes
|
||||
:END:
|
||||
|
||||
* Line
|
||||
#+begin_src conf
|
||||
|
26
torrent.org
26
torrent.org
@ -1,25 +1,7 @@
|
||||
#+TITLE: Torrent Configuration
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
:END:
|
||||
|
||||
* NAS Configuration
|
||||
|
||||
* Tremc - Curses interface for Transmission
|
||||
* =tremc= - Curses interface for Transmission
|
||||
https://github.com/tremc/tremc
|
||||
|
||||
#+begin_src conf :comments none :mkdirp yes :tangle ~/.config/tremc/settings.cfg :noweb no-export
|
||||
@ -27,7 +9,7 @@ https://github.com/tremc/tremc
|
||||
password = <<get-password(passname="nas/transmission")>>
|
||||
username = tdehaeze
|
||||
port = 9091
|
||||
host = ***REMOVED***
|
||||
host = torrent.tdehaeze.xyz
|
||||
path = /transmission/rpc
|
||||
ssl = False
|
||||
|
||||
@ -65,7 +47,7 @@ https://github.com/tremc/tremc
|
||||
file_prio_off = bg:blue,fg:black
|
||||
#+end_src
|
||||
|
||||
* Aria2
|
||||
* =aria2c= - Lightweight download utility
|
||||
** Aria2c Config
|
||||
#+begin_src conf :comments none :mkdirp yes :tangle ~/.config/aria2/aria2.conf :noweb no-export
|
||||
continue
|
||||
|
22
video.org
22
video.org
@ -1,23 +1,7 @@
|
||||
#+TITLE: MPV Configuration
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
:END:
|
||||
|
||||
* MPV Configuration
|
||||
* =mpv.conf= - MPV Configuration
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.config/mpv/mpv.conf
|
||||
:header-args+: :comments both :mkdirp yes
|
||||
@ -122,7 +106,7 @@ sub-auto=fuzzy
|
||||
#sub-codepage=cp1256
|
||||
#+end_src
|
||||
|
||||
* MPV Key Bindings
|
||||
* =input.conf= - MPV Key Bindings
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.config/mpv/input.conf
|
||||
:header-args+: :comments both :mkdirp yes
|
||||
|
19
vim.org
19
vim.org
@ -1,25 +1,8 @@
|
||||
#+TITLE: Vim Config
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
#+PROPERTY: header-args :comments none
|
||||
#+PROPERTY: header-args+ :mkdirp yes
|
||||
#+PROPERTY: header-args+ :tangle ~/.vimrc
|
||||
:END:
|
||||
|
||||
* Plugins Install
|
||||
** Plug start
|
||||
|
53
windows.org
53
windows.org
@ -1,26 +1,49 @@
|
||||
#+TITLE: Windows Config and Install
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
* Create a bootable USB Key
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
- Download Windows10 ISO https://www.microsoft.com/en-us/software-download/windows10ISO
|
||||
- Create bootable USB key using the woeusb utility (https://computingforgeeks.com/create-windows-10-bootable-usb-on-linux/)
|
||||
#+begin_src bash
|
||||
yay -S woeusb
|
||||
#+end_src
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
:END:
|
||||
#+begin_src bash
|
||||
sudo woeusb --device file.iso /dev/sdb --target-filesystem ntfs
|
||||
#+end_src
|
||||
|
||||
* Install Windows10 PRO
|
||||
|
||||
* Install Software using Chocolatey
|
||||
First install Chocolatey using a PowerShell as administrator:
|
||||
#+begin_src bash
|
||||
choco install firefox 7zip.install vlc git.install malwarebytes sumatrapdf.install steam anydesk discord f.lux cmder syncthing
|
||||
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'))
|
||||
#+end_src
|
||||
|
||||
Then, install all required software using one command:
|
||||
#+begin_src bash
|
||||
choco install firefox 7zip.install vlc git.install malwarebytes sumatrapdf.install steam anydesk discord f.lux cmder syncthing cura ccleaner
|
||||
#+end_src
|
||||
|
||||
* Debloat windows10
|
||||
https://github.com/Sycnex/Windows10Debloater
|
||||
|
||||
Run a PowerShell with administrative rights and run:
|
||||
#+begin_src bash
|
||||
iex ((New-Object System.Net.WebClient).DownloadString('https://git.io/debloat'))
|
||||
#+end_src
|
||||
|
||||
* Software Setup
|
||||
** Syncthing
|
||||
https://docs.syncthing.net/users/autostart.html#autostart-windows-startup
|
||||
|
||||
Go to =%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup= and create a shortcut linking to =C:\path_to\syncthing.exe -no-console -no-browser=
|
||||
|
||||
Then, Syncthing can be accessed with: http://localhost:8384/
|
||||
|
||||
** Cura
|
||||
- https://github.com/fieldOfView/Cura-OctoPrintPlugin
|
||||
|
||||
|
||||
|
||||
|
45
xconfig.org
45
xconfig.org
@ -1,26 +1,11 @@
|
||||
#+TITLE: Configuration Files related to Xorg
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
:END:
|
||||
|
||||
* Xresources
|
||||
* =~/.Xresources=
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.Xresources
|
||||
:header-args+: :comments none :mkdirp yes
|
||||
:CUSTOM_ID: xresources
|
||||
:END:
|
||||
|
||||
** Colors
|
||||
@ -95,10 +80,11 @@
|
||||
Xcursor.size: 0
|
||||
#+END_SRC
|
||||
|
||||
* Xmodmap
|
||||
* =~/.Xmodmap=
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.Xmodmap
|
||||
:header-args+: :comments no :mkdirp yes
|
||||
:CUSTOM_ID: xmodmap
|
||||
:END:
|
||||
|
||||
#+begin_src conf
|
||||
@ -352,11 +338,12 @@
|
||||
keycode 255 = XF86RFKill NoSymbol XF86RFKill
|
||||
#+end_src
|
||||
|
||||
* xinit
|
||||
* =~/.xinitrc=
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.xinitrc
|
||||
:header-args+: :comments both :mkdirp yes
|
||||
:header-args+: :shebang "#!/bin/sh"
|
||||
:CUSTOM_ID: xinitrc
|
||||
:END:
|
||||
|
||||
#+begin_src bash
|
||||
@ -399,7 +386,7 @@ Merge in defaults and keymaps
|
||||
|
||||
Start =gnome-keyring-daemon=.
|
||||
#+begin_src bash
|
||||
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
|
||||
eval $(gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
|
||||
export SSH_AUTH_SOCK
|
||||
#+end_src
|
||||
|
||||
@ -411,14 +398,15 @@ Start =gnome-keyring-daemon=.
|
||||
exec i3
|
||||
#+end_src
|
||||
|
||||
* Xprofile
|
||||
* =~/.xprofile=
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.xprofile
|
||||
:header-args+: :comments both :mkdirp yes
|
||||
:header-args+: :shebang "#!/bin/sh"
|
||||
:CUSTOM_ID: xprofile
|
||||
:END:
|
||||
|
||||
Keyboard Options
|
||||
Keyboard Options:
|
||||
#+begin_src bash
|
||||
# Set repetition keyboard rate
|
||||
xset r rate 200 40 &
|
||||
@ -427,13 +415,13 @@ Keyboard Options
|
||||
setxkbmap -layout us -variant intl -option caps:escape &
|
||||
#+end_src
|
||||
|
||||
Start programs related to display.
|
||||
Start programs related to display:
|
||||
#+begin_src bash
|
||||
# Screen options
|
||||
xrandr --output eDP1 --mode 1920x1080 --dpi 192 &
|
||||
|
||||
# Set custom wallpaper script
|
||||
setbg &
|
||||
# Set random wallpaper
|
||||
setbg ~/.local/data/wallpapers/ &
|
||||
|
||||
# Hide mouse cursor after x seconds
|
||||
pgrep -xu "$USER" unclutter >/dev/null || \
|
||||
@ -450,12 +438,13 @@ Start programs related to display.
|
||||
picom --daemon &
|
||||
#+end_src
|
||||
|
||||
Manually start =mopidy= as it seems to not start automatically:
|
||||
#+begin_src bash
|
||||
# Mopidy
|
||||
systemctl --user start mopidy
|
||||
mopidy --config ~/.config/mopidy/mopidy.conf >/dev/null 2>&1 &
|
||||
#+end_src
|
||||
|
||||
Finally, run SXHKD for the key bindings.
|
||||
Finally, run SXHKD for the key bindings:
|
||||
#+begin_src bash
|
||||
# Start sxhkd
|
||||
pgrep -xu "$USER" sxhkd >/dev/null || \
|
||||
|
19
zathura.org
19
zathura.org
@ -1,25 +1,8 @@
|
||||
#+TITLE: Zathura
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
#+PROPERTY: header-args :comments no
|
||||
#+PROPERTY: header-args+ :mkdirp yes
|
||||
#+PROPERTY: header-args+ :tangle ~/.config/zathura/zathurarc
|
||||
:END:
|
||||
|
||||
* Configuration
|
||||
#+BEGIN_SRC conf
|
||||
|
44
zsh.org
44
zsh.org
@ -1,44 +0,0 @@
|
||||
#+TITLE: ZSH Config
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
|
||||
#+PROPERTY: header-args:conf+ :comments both
|
||||
#+PROPERTY: header-args:conf+ :mkdirp yes
|
||||
#+PROPERTY: header-args:conf+ :tangle ~/.zshrc
|
||||
:END:
|
||||
|
||||
https://github.com/unixorn/awesome-zsh-plugins
|
||||
|
||||
* Zplug
|
||||
https://github.com/zplug/zplug
|
||||
#+begin_src conf
|
||||
source ~/.zplug/init.zsh
|
||||
|
||||
zplug mafredri/zsh-async, from:github
|
||||
zplug sindresorhus/pure, use:pure.zsh, from:github, as:theme
|
||||
|
||||
# Install plugins if there are plugins that have not been installed
|
||||
if ! zplug check --verbose; then
|
||||
printf "Install? [y/N]: "
|
||||
if read -q; then
|
||||
echo; zplug install
|
||||
fi
|
||||
fi
|
||||
|
||||
# Then, source plugins and add commands to $PATH
|
||||
zplug load --verbose
|
||||
#+end_src
|
Loading…
Reference in New Issue
Block a user