From d0acf773e88a1c5ae9dc83a8b422f6fdfa72feba Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Fri, 9 Sep 2022 01:42:02 +0200 Subject: [PATCH] config/shell: tweaky fixes --- .config/shell/functions | 2 +- .local/bin/scripts/b | 4 ++-- .local/bin/scripts/netkeeper | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.config/shell/functions b/.config/shell/functions index d80cb4b..3a20cdf 100644 --- a/.config/shell/functions +++ b/.config/shell/functions @@ -274,7 +274,7 @@ dns() { drill AAAA @8.8.8.8 -Q "${arg##*/}" done } -alias sshk="$(case $TERM in (*-kitty) echo 'kitty +kitten';; esac) ssh" +alias sshk="$(case $TERM in (*-kitty) echo 'TERM=xterm-256color kitty +kitten';; esac) ssh" sshl() { test "$1" = "-a" && shift && local all=true lemonade server -allow 127.0.0.1 & diff --git a/.local/bin/scripts/b b/.local/bin/scripts/b index 4476f18..54985f6 100755 --- a/.local/bin/scripts/b +++ b/.local/bin/scripts/b @@ -84,8 +84,8 @@ for arg; do timg+=("$tmpfile");; (*\ video/*) suffix=_thumbs.jpg - mtn -i -t -W -r2 -D6 -b 0,6 -c $grid -w $(expr $(tput cols) '*' 20) \ - -O "$prefix" -o "$suffix" "$arg" 2>/dev/null + mtn -q -i -t -W -r2 -D6 -b 0,6 -c $grid -w $(expr $(tput cols) '*' 20) \ + -O "$prefix" -o "$suffix" "$arg" timg -W "$prefix/$(basename "${arg%.*}")$suffix" ;; (*\ image/*) diff --git a/.local/bin/scripts/netkeeper b/.local/bin/scripts/netkeeper index ade9442..1d090c6 100755 --- a/.local/bin/scripts/netkeeper +++ b/.local/bin/scripts/netkeeper @@ -7,6 +7,6 @@ if test -e "$JOURNAL"; then done jrnl intentions "$intention" sudo nft flush chain inet filter outall - sudo nft add rule inet filter outall meta hour "$(date +%H:%M)"-"$(date +%H:%M --date="${1:-10}min")" accept + sudo nft add rule inet filter outall meta hour "$(date +%H:%M)"-"$(date +%H:%M --date="${1:-5}min")" accept #expr \( "$1" \> 40 \) \* 10 \| "$1" fi