- commit
- ae59364
- parent
- 24c068b
- author
- xxwhirlpool
- date
- 2025-09-20 18:50:17 -0400 EDT
edit some scripts, add senpai TUI config
3 files changed,
+26,
-2
+4,
-0
1@@ -0,0 +1,4 @@
2+address "chat.4-walls.net:6697"
3+nickname "kat"
4+password-cmd cat "/home/kat/.ircpass"
5+on-highlight-beep true
+2,
-2
1@@ -4,9 +4,9 @@
2
3 orig="$1_orig"
4
5-cp $1 $orig
6+cp "$1" "$orig"
7
8-magick $1 -level 0x70% -set option:distort:viewport '%wx%h+0+0' -colorspace CMYK -separate null: \( -size 2x2 xc: \( +clone -negate \) +append \( +clone -negate \) -append \) -virtual-pixel tile -filter gaussian \( +clone -distort SRT 60 \) +swap \( +clone -distort SRT 30 \) +swap \( +clone -distort SRT 45 \) +swap \( +clone -distort SRT 0 \) +swap +delete -compose Overlay -layers composite -set colorspace CMYK -combine -colorspace RGB "$1_ver1"
9+magick "$1" -level 0x70% -set option:distort:viewport '%wx%h+0+0' -colorspace CMYK -separate null: \( -size 2x2 xc: \( +clone -negate \) +append \( +clone -negate \) -append \) -virtual-pixel tile -filter gaussian \( +clone -distort SRT 60 \) +swap \( +clone -distort SRT 30 \) +swap \( +clone -distort SRT 45 \) +swap \( +clone -distort SRT 0 \) +swap +delete -compose Overlay -layers composite -set colorspace CMYK -combine -colorspace RGB "$1_ver1"
10
11 magick "$1_ver1" -colorspace gray "$1_ver2"
12
+20,
-0
1@@ -0,0 +1,20 @@
2+#!/usr/bin/env bash
3+#
4+# NOT BY ME
5+#
6+# from here:
7+#
8+# blog.nytsoi.net/2024/04/26/digital-retro-photography
9+
10+set -euxo pipefail
11+
12+INPUT=${1}
13+COLOURS=${2}
14+OUTPUT_SMOL=${INPUT}.webp
15+OUTPUT_BIG=${INPUT}-big.webp
16+
17+SMOL_SIZE=320
18+BIG_SIZE=2048
19+
20+magick "${INPUT}" -auto-orient -resize ${SMOL_SIZE}x${SMOL_SIZE} -colors "${COLOURS}" png:- | cwebp -q 100 -m 6 -lossless -progress -o "${OUTPUT_SMOL}" -- -
21+magick "${INPUT}" -auto-orient -resize ${SMOL_SIZE}x${SMOL_SIZE} -colors "${COLOURS}" -filter point -resize ${BIG_SIZE}x${BIG_SIZE} png:- | cwebp -q 100 -m 6 -lossless -progress -o "${OUTPUT_BIG}" -- -