config: various tweaks

This commit is contained in:
xeruf 2024-06-28 22:40:11 +03:00
parent 0c8a0dbfc1
commit d2643396e6
5 changed files with 10 additions and 5 deletions

View File

@ -2,9 +2,12 @@ test -n "$PS1" || return 0
which pfetch >/dev/null 2>&1 && pfetch which pfetch >/dev/null 2>&1 && pfetch
alias myip='curl -4 ifconfig.me && printf "\n" && curl -6 ifconfig.me'
ds() { ds() {
df -B1M -x tmpfs -x devtmpfs -x squashfs | df -B1M -x tmpfs -x devtmpfs -x squashfs -x overlay |
awk -v a="\033[31m" -v b="\033[33m" -v c="\033[35m" -v n="\033[0m" 'NR==1 {printf "%-20s %6s %7s %9s %s\n",$1,$5,$3,$4,$6} NR>1 {u=strtonum($5); printf (u > 98) ? a : (u > 96) ? b : (u > 90) ? c : ""; printf "%-20s %6s %6.1fG %8.1fG %s\n",$1,$5,$3/1024,$4/1024,$6; printf n}' grep -v '\b/[^/ ]*/[^/]*/[^/]*$' |
awk -v a="\033[31m" -v b="\033[33m" -v c="\033[35m" -v n="\033[0m" 'NR==1 {printf "%-20s %6s %7s %9s %s\n",$1,$5,$3,$4,$6} NR>1 {u=$5; printf (u > 98) ? a : (u > 96) ? b : (u > 90) ? c : ""; printf "%-20s %6s %6.1fG %8.1fG %s\n",$1,$5,$3/1024,$4/1024,$6; printf n}';
} }
ds ds

View File

@ -46,3 +46,4 @@ text/calendar=emacsclient.desktop;
video/x-m4v=vlc.desktop video/x-m4v=vlc.desktop
text/vcard=emacs.desktop text/vcard=emacs.desktop
text/plain=emacs.desktop text/plain=emacs.desktop
image/webp=com.interversehq.qView.desktop

View File

@ -8,7 +8,7 @@ let g:firenvim_config = {
\ 'cmdline': 'firenvim', \ 'cmdline': 'firenvim',
\ 'priority': 0, \ 'priority': 0,
\ 'selector': 'textarea:not([readonly]):not([class="handsontableInput"]):not([wrap="off"]):not([rows="1"]):not([title="Replace"]):not([title="Search"]):not([name="message"]), \ 'selector': 'textarea:not([readonly]):not([class="handsontableInput"]):not([wrap="off"]):not([rows="1"]):not([title="Replace"]):not([title="Search"]):not([name="message"]),
\ div[role="textbox"]:not([aria-label="Search"]):not([class="ProseMirror"]), div[class="CodeMirror"]', \ div[role="textbox"]:not([aria-label="Search"]):not([class="cm-content"]):not([class="ProseMirror"]), div[class="CodeMirror"]',
\ 'takeover': 'always', \ 'takeover': 'always',
\ }, \ },
\ '.*com.*': { \ '.*com.*': {

View File

@ -254,7 +254,7 @@ alias lar='last | tac'
alias lst='( last; last -f /var/log/wtmp.1 ) | grep -v "pts/" | tac | less +G' alias lst='( last; last -f /var/log/wtmp.1 ) | grep -v "pts/" | tac | less +G'
alias hedgedoc="tmux kill-session -t hedgedoc; builtin cd '$d4/dev/_forks/hedgedoc' && tmux new-session -s hedgedoc -d 'yarn run dev' \; split-window -h 'nodemon --watch app.js --watch lib --watch locales --watch config.json app.js' \; ls" alias hedgedoc="tmux kill-session -t hedgedoc; builtin cd '$d4/dev/_forks/hedgedoc' && tmux new-session -s hedgedoc -d 'yarn run dev' \; split-window -h 'nodemon --watch app.js --watch lib --watch locales --watch config.json app.js' \; ls"
alias myip='curl ifconfig.me && println && curl icanhazip.com' alias myip='curl -4 ifconfig.me && printf "\n" && curl -6 ifconfig.me' # && println && curl icanhazip.com'
alias ips='ip -br address && ip route' alias ips='ip -br address && ip route'
alias rm='rm -I' alias rm='rm -I'
@ -309,6 +309,7 @@ u() {
} }
# Networking # Networking
alias rdns='drill -x'
dns() { dns() {
local dig="drill -Q" local dig="drill -Q"
which drill >/dev/null || dig="dig +short" which drill >/dev/null || dig="dig +short"

View File

@ -58,7 +58,7 @@ repos = [
[linux] [linux]
# Arguments to pass yay when updating packages # Arguments to pass yay when updating packages
yay_arguments = "--diffmenu=false --overwrite /usr/lib/node_modules/node-gyp/**,/usr/lib/node_modules/npm/**,/usr/lib/** --ignore linux,zoom,qt*,zulip*,webcord*,brave*,*openjfx,android-studio*,clion*,intellij-idea-*,webstorm*,stretchly-xeruf-git" yay_arguments = "--diffmenu=false --overwrite /usr/lib/node_modules/node-gyp/**,/usr/lib/node_modules/npm/**,/usr/lib/** --ignore linux,zoom,qt*,zulip*,webcord*,brave*,*openjfx,android-studio*,clion*,intellij-idea-*,webstorm*,texlive-full"
#trizen_arguments = "--devel" #trizen_arguments = "--devel"
#enable_tlmgr = true #enable_tlmgr = true
#emerge_sync_flags = "-q" #emerge_sync_flags = "-q"