From e386d2ba04b393fcb3a9db816d9cb5bd764331bd Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Tue, 10 Jan 2023 12:54:40 +0100 Subject: [PATCH] config/shell: configuration enhancements --- .config/Stretchly/config.json | 8 ++++---- .config/shell/browse | 1 + .config/shell/functions | 17 +++++++++-------- .config/topgrade.toml | 2 +- 4 files changed, 15 insertions(+), 13 deletions(-) diff --git a/.config/Stretchly/config.json b/.config/Stretchly/config.json index b22cc32..6a3ac00 100644 --- a/.config/Stretchly/config.json +++ b/.config/Stretchly/config.json @@ -1,10 +1,10 @@ { "microbreakDuration": 30000, - "microbreakInterval": 1200000, + "microbreakInterval": 900000, "breakDuration": 180000, - "breakInterval": 2, - "breakNotification": true, - "microbreakNotification": true, + "breakInterval": 3, + "breakNotification": false, + "microbreakNotification": false, "breakNotificationInterval": 30000, "microbreakNotificationInterval": 10000, "microbreak": true, diff --git a/.config/shell/browse b/.config/shell/browse index 6c3996b..9156759 100644 --- a/.config/shell/browse +++ b/.config/shell/browse @@ -34,6 +34,7 @@ cl() { # cd but search for data dirs and run ls after switching to target dir cd() { + # TODO integrate cde if test -d "$DATA" && test "${1:--}" != "-" -a ! -d "$1" -a $# -eq 1 then dir=$(fd --no-ignore --glob "$1*" "$DATA" "$MNT" --maxdepth 2 --type d --max-results 1 2>/dev/null) diff --git a/.config/shell/functions b/.config/shell/functions index 3c99402..d34dd09 100644 --- a/.config/shell/functions +++ b/.config/shell/functions @@ -332,7 +332,7 @@ sshl() { fi } -alias delta="sudo systemctl restart openvpn-client@deltaPeak.service || jcl --unit openvpn-client@deltaPeak.service" +alias delta='sudo systemctl restart openvpn-client@deltaPeak.service || jcl --unit openvpn-client@deltaPeak.service' # Listen to loopback of mic alias listen='pactl load-module module-loopback; echo "Press Enter to stop"; read; pactl unload-module module-loopback' @@ -345,15 +345,16 @@ alias usergroups="cat /etc/passwd | cut -d':' -f1 | xargs -n 1 id" p() { pass "$@" || pass edit "$@"; } -alias omd="(echo '#+OPTIONS: tags:nil'; xclip -o -selection clipboard) | pandoc -f org-auto_identifiers -t markdown --wrap preserve | xclip -filter" -alias mdo="pandoc -f gfm-ascii_identifiers-gfm_auto_identifiers -t org-auto_identifiers --wrap preserve" -alias mdox="xclip -o -selection clipboard | mdo | xclip -filter" +alias omd='(echo "#+OPTIONS: tags:nil"; xclip -o -selection clipboard) | pandoc -f org-auto_identifiers -t markdown --wrap preserve | xclip -filter' +alias mdo='pandoc -f gfm-ascii_identifiers-gfm_auto_identifiers -t org-auto_identifiers --wrap preserve' +alias mdox='xclip -o -selection clipboard | mdo | xclip -filter' +alias pmd='pandoc -t markdown_strict-raw_html' -alias clr="diffr --colors refine-added:none:background:0x33,0x66,0x33:bold --colors added:none:background:0x33,0x44,0x33 --colors refine-removed:none:background:0x66,0x33,0x33:bold --colors removed:none:background:0x44,0x33,0x33 | less -F" +alias clr='diffr --colors refine-added:none:background:0x33,0x66,0x33:bold --colors added:none:background:0x33,0x44,0x33 --colors refine-removed:none:background:0x66,0x33,0x33:bold --colors removed:none:background:0x44,0x33,0x33 | less -F' -alias f="fossil" -alias fs="fossil status" -alias fc="fossil commit -v" +alias f='fossil' +alias fs='fossil status' +alias fc='fossil commit -v' fdf() { fossil diff "$@" | clr } diff --git a/.config/topgrade.toml b/.config/topgrade.toml index 9586ef6..100e430 100644 --- a/.config/topgrade.toml +++ b/.config/topgrade.toml @@ -64,7 +64,7 @@ arguments = "--rebase --autostash" [linux] # Arguments to pass yay when updating packages -yay_arguments = "--nodiffmenu --ignore android-studio --ignore clion --ignore intellij-idea-ultimate-edition --ignore intellij-idea-ultimate-edition-jre --ignore webstorm --ignore linux" +yay_arguments = "--nodiffmenu --ignore android-studio --ignore clion --ignore intellij-idea-ultimate-edition --ignore intellij-idea-ultimate-edition-jre --ignore webstorm --ignore linux --ignore stretchly-xeruf-git" #trizen_arguments = "--devel" #enable_tlmgr = true #emerge_sync_flags = "-q"