diff --git a/.config/shell/arch b/.config/shell/arch index dd73d95..c439bd3 100644 --- a/.config/shell/arch +++ b/.config/shell/arch @@ -36,9 +36,9 @@ yas() { ) if test -n "$pkg" then echo "Installing $pkg..." - cmd="yay -S $pkg" + cmd="yay -Sy $pkg" print -s "$cmd" - eval "$cmd" || yay -Sy $pkg + eval "$cmd" rehash fi } diff --git a/.config/topgrade.toml b/.config/topgrade.toml index 1f6e515..dda5b16 100644 --- a/.config/topgrade.toml +++ b/.config/topgrade.toml @@ -17,7 +17,7 @@ no_retry = true #run_in_tmux = true # List of remote machines with Topgrade installed on them -remote_topgrades = ["tiger"] +#remote_topgrades = ["tiger"] # Arguments to pass SSH when upgrading remote systems #ssh_arguments = "-o ConnectTimeout=2" diff --git a/.local/bin/scripts/b b/.local/bin/scripts/b index f562235..cc32270 100755 --- a/.local/bin/scripts/b +++ b/.local/bin/scripts/b @@ -54,6 +54,7 @@ for arg; do test -f "$tmpfile-1.png" || pdftoppm -r 70 "$arg" "$tmpfile" -l $(expr $grid '*' 2) timg -W --grid=$grid "$tmpfile"* ;; + (*/x-xcf*) ;; (*\ video/*) suffix=_thumbs.jpg mtn -i -t -W -r2 -D6 -b 0,6 -c $grid -w $(expr $(tput cols) '*' 20) \ diff --git a/.local/bin/scripts/help b/.local/bin/scripts/help index c1dc715..d9f2dee 100755 --- a/.local/bin/scripts/help +++ b/.local/bin/scripts/help @@ -12,6 +12,7 @@ case $1 in (gh|chordpro|bat) unbuffer "$@" --help | $paginate;; (plantuml) unbuffer "$@" -help | $paginate;; (caddy|stretchly|go) "$1" help "${@:2}" | $paginate;; + (kdeconnect*) kdeconnect-cli --help-all "${@:2}" | $paginate;; (*) man "$@" || { info "$1" -w | grep -v "manpages" && pinfo "$@"; } || if which "$1" >/dev/null; then "$@" --help; "$@" -help 2>&1 | $paginate; fi;; diff --git a/.local/bin/scripts/kdeconnect-share b/.local/bin/scripts/kdeconnect-share index 62de93e..6cd7d01 100755 --- a/.local/bin/scripts/kdeconnect-share +++ b/.local/bin/scripts/kdeconnect-share @@ -3,5 +3,6 @@ kdeconnect-cli --refresh if ! test -f "$1"; then echo "Please specify a file to share" && exit 1; fi file="$1" device="$(kdeconnect-cli --list-available 2>/dev/null | fzf -0 -1 | cut -d' ' -f3)" +test -z "$device" && kdeconnect-cli --list-devices && echo "No device available!" && exit 1 shift kdeconnect-cli "--share=$file" -d "$device" "$@" diff --git a/.local/bin/scripts/shrinkimg b/.local/bin/scripts/shrinkimg index 067c348..5cefd9d 100755 --- a/.local/bin/scripts/shrinkimg +++ b/.local/bin/scripts/shrinkimg @@ -13,5 +13,5 @@ test $# -eq 0 && echo "Usage: $0 [-q quality (default 85)] [-o outfile]