From 7f6189dcbed755af34e222237b8cfa8b1f903696 Mon Sep 17 00:00:00 2001 From: filip <“filip.rabiega@gmail.com”> Date: Fri, 10 Oct 2025 19:25:25 +0200 Subject: used shfmt -s --- decperc | 2 +- maimpick | 2 +- rssadd | 2 +- unix | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/decperc b/decperc index 7b1903f..3eff460 100755 --- a/decperc +++ b/decperc @@ -27,4 +27,4 @@ perc_into_dec() { echo "$1" | grep -qE '^(-?[0-9]+\.[0-9]+|-?[0-9]|\.[0-9]+|-?[0-9]+\.[0-9]+%|-?[0-9]+%|\.[0-9]+%)$' && len=${#1} && - [[ "${1:len-1:1}" == "%" ]] && perc_into_dec "$1" || dec_into_perc "$1" + [[ ${1:len-1:1} == "%" ]] && perc_into_dec "$1" || dec_into_perc "$1" diff --git a/maimpick b/maimpick index 0ef8455..0f1f811 100755 --- a/maimpick +++ b/maimpick @@ -8,7 +8,7 @@ output="$(date '+%y%m%d-%H%M-%S').png" xclip_cmd="xclip -sel clip -t image/png" ocr_cmd="xclip -sel clip" -case "$(printf "a selected area\\ncurrent window\\nfull screen\\na selected area (copy)\\ncurrent window (copy)\\nfull screen (copy)\\ncopy selected image to text" | dmenu -l 7 -i -p "Screenshot which area?")" in +case "$(printf 'a selected area\ncurrent window\nfull screen\na selected area (copy)\ncurrent window (copy)\nfull screen (copy)\ncopy selected image to text' | dmenu -l 7 -i -p "Screenshot which area?")" in "a selected area") maim -u -s pic-selected-"${output}" ;; "current window") maim -B -q -d 0.2 -i "$(xdotool getactivewindow)" pic-window-"${output}" ;; "full screen") maim -q -d 0.2 pic-full-"${output}" ;; diff --git a/rssadd b/rssadd index 6fa8718..bf39558 100755 --- a/rssadd +++ b/rssadd @@ -4,7 +4,7 @@ if echo "$1" | grep -q "https*://\S\+\.[A-Za-z]\+\S*"; then url="$1" else url="$(grep -Eom1 '<[^>]+(rel="self"|application/[a-z]+\+xml)[^>]+>' "$1" | - grep -o "https?://[^\" ]")" + grep -o 'https?://[^" ]')" echo "$url" | grep -q "https*://\S\+\.[A-Za-z]\+\S*" || notify-send "That doesn't look like a full URL." && exit 1 diff --git a/unix b/unix index a9fb96e..54745b0 100755 --- a/unix +++ b/unix @@ -3,7 +3,7 @@ #original artwork by http://www.sanderfocus.nl/#/portfolio/tech-heroes #converted to shell by #nixers @ irc.unix.chat -cat << 'eof' +cat <<'eof' ,_ ,_==▄▂ , ▂▃▄▄▅▅▅▂▅¾. / / ▄▆<´ "»▓▓▓%\ / / / / -- cgit v1.2.3