[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 +[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 -[Added Associations] -text/plain=mousepad.desktop; -application/x-bittorrent=deluge.desktop; +[Added Associations] +text/plain=mousepad.desktop; +application/x-bittorrent=deluge.desktop;
[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 +[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
[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 +[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
[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 +[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
[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; +[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;
[Desktop Entry] -Type=Application -Name=Image viewer -Exec=/usr/bin/sxiv -a %u +[Desktop Entry] +Type=Application +Name=Image viewer +Exec=/usr/bin/sxiv -a %u
[Desktop Entry] -Name=org-protocol -Exec=emacsclient %u -Icon=emacs-icon -Type=Application -Terminal=false -MimeType=x-scheme-handler/org-protocol; +[Desktop Entry] +Name=org-protocol +Exec=emacsclient %u +Icon=emacs-icon +Type=Application +Terminal=false +MimeType=x-scheme-handler/org-protocol;
[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; +[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;
[Desktop Entry] -Name=Emacs Client -Exec=emacsclient -c %u -Icon=emacs-icon -Type=Application -Terminal=false -MimeType=x-scheme-handler/org-protocol; -NoDisplay=true +[Desktop Entry] +Name=Emacs Client +Exec=emacsclient -c %u +Icon=emacs-icon +Type=Application +Terminal=false +MimeType=x-scheme-handler/org-protocol; +NoDisplay=true
[Desktop Entry] -Type=Application -Name=Torrent -Exec=tremc %U +[Desktop Entry] +Type=Application +Name=Torrent +Exec=tremc %U
Created: 2020-05-26 mar. 08:40
+Created: 2021-01-01 ven. 20:09
~/.bashrc
PS1
colors
- Display colorstre
- Tree displaymkd
- Create a new directory and enter itfs
- Filesize of directorynullify
- Redirect both standard output and standard error, as well as sending to backgroundsms
- Send SMS~/.bash_profile
~/.profile
~/.inputrc
~/.bashrc
[[ $- != *i* ]] && return@@ -102,9 +96,9 @@
[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion@@ -112,9 +106,19 @@
source /usr/share/fzf/key-bindings.bash
+
+bind "set completion-ignore-case on" bind "set show-all-if-ambiguous on" @@ -123,76 +127,33 @@
use_color=true -alias ls='ls -hN --color=auto --group-directories-first' -alias grep='grep --colour=auto'
-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. -
- +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 --
unset use_color safe_term match_lhs sh +# Unset some variables +unset use_color safe_term match_lhs sh +# Allow local processes with root privileges to connect to the locally running X server xhost +local:root > /dev/null 2>&1 +# 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 @@ -205,9 +166,9 @@ xhost +local:root > /dev/null 2
PS1
export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][\[$(tput setaf 3)\]\u\[$(tput setaf 2)\]@\[$(tput setaf 4)\]\h \[$(tput setaf 5)\]\W\[$(tput setaf 1)\]]\[$(tput setaf 7)\]\\$ \[$(tput sgr0)\]"@@ -215,24 +176,9 @@ xhost +local:root > /dev/null 2
# if ! pgrep -u "$USER" ssh-agent > /dev/null; then -# ssh-agent > "$XDG_RUNTIME_DIR/ssh-agent.env" -# fi -# if [[ ! "$SSH_AUTH_SOCK" ]]; then -# eval "$(<"$XDG_RUNTIME_DIR/ssh-agent.env")" -# fi --
bind '"\e[A": history-search-backward' bind '"\e[B": history-search-forward' @@ -241,15 +187,17 @@ xhost +local:root > /dev/null 2
alias cp="cp -i" # confirm before overwriting something +alias ls='ls -hN --color=auto --group-directories-first' +alias grep='grep --colour=auto' +alias cp="cp -i" # confirm before overwriting something alias df='df -h' # human-readable sizes alias free='free -m' # show sizes in MB alias mutt="neomutt" @@ -259,9 +207,9 @@ xhost +local:root > /dev/null 2
alias r="ranger" alias t="tmux" @@ -269,17 +217,15 @@ xhost +local:root > /dev/null 2alias sv='sudo -E nvim' alias g="git" alias m="neomutt" -alias y="yadm" alias o="xdg-open" -alias x="sxiv -ft *"
command -v nvim >/dev/null && alias vim="nvim" vimdiff="nvim -d" # Use neovim for vim if present.@@ -287,30 +233,9 @@ xhost +local:root > /dev/null 2
# alias magit="emacsclient -create-frame --alternate-editor=\"\" --eval '(magit-status)'" -alias magit="nvim -c MagitOnly" --
alias dlab="aria2p --port 6800 --host http://dl.tdehaeze.xyz --secret $(pass dl.tdehaeze.xyz/tdehaeze | sed -n 1p)" --
alias :q=exit alias :e=nvim @@ -319,9 +244,9 @@ xhost +local:root > /dev/null 2
alias path='echo -e ${PATH//:/\\n}'@@ -330,13 +255,13 @@ xhost +local:root > /dev/null 2
colors
- Display colorscolors() { local fgc bgc vals seq0 @@ -369,9 +294,9 @@ xhost +local:root > /dev/null 2
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
@@ -388,9 +313,9 @@ small enough for one screen.
mkd
- Create a new directory and enter itfunction mkd() { mkdir -p "$@" && cd "$_"; @@ -400,9 +325,9 @@ small enough for one screen.
fs
- Filesize of directoryfunction fs() { if du -b /dev/null > /dev/null 2>&1; then @@ -421,9 +346,9 @@ small enough for one screen.
nullify
- Redirect both standard output and standard error, as well as sending to backgroundfunction nullify() { "$@" >/dev/null 2>&1 @@ -433,12 +358,13 @@ small enough for one screen.
sms
- Send SMSsms(){ local args="$@" @@ -449,10 +375,7 @@ small enough for one screen. 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 } @@ -461,9 +384,10 @@ small enough for one screen.
Undocumented feature which sets the size to “unlimited”. http://stackoverflow.com/questions/9457233/unlimited-bash-history
@@ -496,9 +420,9 @@ Force prompt to write history after every command. -~/.bash_profile
[[ -f ~/.profile ]] && . ~/.profile [[ -f ~/.bashrc ]] && . ~/.bashrc @@ -507,14 +431,14 @@ Force prompt to write history after every command. -Profile
-+++
~/.profile
--QT And GTK Themes
-++QT And GTK Themes
+export QT_QPA_PLATFORMTHEME="qt5ct" export GTK2_RC_FILES="$HOME/.gtkrc-2.0" @@ -523,9 +447,9 @@ Force prompt to write history after every command. -Gui program to ask for sudo password
-++Gui program to ask for sudo password
+export SUDO_ASKPASS=~/.local/bin/askpass-rofi@@ -533,9 +457,12 @@ Force prompt to write history after every command. -Gnome Keyring Daemon
-++Gnome Keyring Daemon
+++Enable the keyring for applications run through the terminal +
if [ -n "$DESKTOP_SESSION" ];then eval $(gnome-keyring-daemon --start) @@ -546,9 +473,9 @@ Force prompt to write history after every command. -Default
-++Export some default applications
+export EDITOR="nvim" export TERMINAL="termite" @@ -560,13 +487,13 @@ Force prompt to write history after every command. -Exports
-++Exports
+--Term
-++-Term
+This is important for termite to work when sshing in remote machines.
@@ -577,9 +504,9 @@ This is important for termite to work when sshing in remote machines.-XDG Default
-++XDG Default
+-export XDG_CONFIG_HOME="$HOME/.config"@@ -587,19 +514,9 @@ This is important for termite to work when sshing in remote machines.-- -Better yaourt colors
-----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" ---Use Ripgrep for FZF
-++Use Ripgrep for FZF
+-export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"' export FZF_DEFAULT_OPTS='--layout=reverse --height=20' @@ -608,9 +525,9 @@ This is important for termite to work when sshing in remote machines.-Goland
-++Goland
+-export GOPATH=$HOME/go@@ -618,9 +535,9 @@ This is important for termite to work when sshing in remote machines.-Latex Path
-++Latex Path
+-export TEXMFHOME=$HOME/.local/share/texmf@@ -628,36 +545,57 @@ This is important for termite to work when sshing in remote machines.-Bitwarden Session
-+-+-Bitwarden Session
+export BW_SESSION="HH0yycfocRSuGtq/iW1e6v13PQ1sShMXbMhdb/En94S6OcIXFnJlLEyU+dySsmf2YShY4CImoB5FrxgdPsY9Qw=="-Path
-+-+Python Path
+-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 +export PYTHONPATH="${PYTHONPATH}:/usr/lib/python3.9/site-packages/configobj"-Input
-++ +++ +Path
+++++PATH=$HOME/appimages:$PATH +PATH=$HOME/.gem/ruby/2.5.0/bin:$PATH +PATH=$GOPATH:$GOPATH/bin:$PATH +PATH=~/.emacs.d/bin:$PATH +export PATH ++++Automatically run
+startx
++++if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then + exec startx +fi ++++
~/.inputrc
Completion:
@@ -735,7 +673,7 @@ Don’t echo^C
afterCtrl+C
is pressed.diff --git a/docs/binaries-private.html b/docs/binaries-private.html index a57eaa0..d6d585b 100644 --- a/docs/binaries-private.html +++ b/docs/binaries-private.html @@ -3,17 +3,13 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + -Created: 2020-11-03 mar. 16:26
+Created: 2021-01-01 ven. 20:09
My own specific binaries - - - - - - + +@@ -26,22 +22,23 @@-Table of Contents
-
- -
remote-desktop
- Remote Desktop Connect- -
print-rnice
- Print on Rnice- -
tmp14
- Mount/Umount tmp_14_days folder- -
nas
- Interact with the NAS- -
torrent-add
- Download Torrent- -
note-extract-fig
- Extract Figure from note file- -
share
- Share file with self-hostedtransfer.sh
- -
screen-select
- Xrandr pre-defined scripts- +
color-picker
- Pick color and copy to clipboard- +
remote-desktop
- Remote Desktop Connect- +
print-rnice
- Print on Rnice- +
tmp14
- Mount/Umount tmp_14_days folder- +
nas
- Interact with the NAS- +
torrent-add
- Download Torrent- +
dl-add
- Direct Download with Aria2- +
note-extract-fig
- Extract Figure from note file- +
share
- Share file with self-hostedtransfer.sh
- +
screen-select
- Xrandr pre-defined scriptscolor-picker
- Pick color and copy to clipboard--
remote-desktop
- Remote Desktop Connect+++
remote-desktop
- Remote Desktop Connect-computer=$(echo -e 'RNICE\nPCMEL1\nPCNASS1\nPCMEG01' | dmenu -p 'Computer:' -l 20); @@ -70,9 +67,9 @@ dunstify --replace=89891--
print-rnice
- Print on Rnice+++
print-rnice
- Print on Rnice-nbpage=$(echo -e '1\n2\n4' | dmenu -p 'Number of pages per sheet' -l 20); sides=$(echo -e 'one-sided\ntwo-sided-long-edge\ntwo-sided-short-edge' | dmenu -p 'Two Sided:' -l 20); @@ -91,9 +88,9 @@ dunstify --replace=89891--
tmp14
- Mount/Umount tmp_14_days folder+++
tmp14
- Mount/Umount tmp_14_days folderif [ $1 == "mount" ]; then if sshfs -o allow_other,default_permissions -p 5022 dehaeze@firewall.esrf.fr:/tmp_14_days/ ~/mnt/ESRF; then @@ -114,9 +111,9 @@ dunstify --replace=89891 ---
nas
- Interact with the NAS++-+
nas
- Interact with the NASAs an alternative,
@@ -144,22 +141,31 @@ As an alternative,sshfs
can be used:sshfs
can be used:--
torrent-add
- Download Torrent++-+
torrent-add
- Download Torrenttransmission-remote ***REMOVED***:9091 --auth tdehaeze:$(pass nas/transmission | sed -n 1p) -a $1 && \ dunstify 'Torrent' 'Successfully added' || \ dunstify 'Torrent' 'Error' ---
note-extract-fig
- Extract Figure from note file+++ ++
dl-add
- Direct Download with Aria2++++aria2p --port 6800 --host http://dl.tdehaeze.xyz --secret $(pass dl.tdehaeze.xyz/tdehaeze | sed -n 1p) add $1 +++-+
note-extract-fig
- Extract Figure from note fileScript used to convert a figure drawn on my Boox note2 to a png file that can then be imported into a document.
@@ -177,9 +183,9 @@ Script used to convert a figure drawn on my Boox note2 to a png file that can th--
share
- Share file with self-hostedtransfer.sh
+