config/shell: tweaky fixes
This commit is contained in:
parent
77139cdc92
commit
d0acf773e8
|
@ -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 &
|
||||
|
|
|
@ -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/*)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue