Commit ed00b09
xxwhirlpool
·
2025-12-26 21:14:29 -0500 EST
parent 663b83c
stuff
5 files changed,
+32,
-30
+1,
-0
| ... | ... | @@ -33,3 +33,4 @@ config/.config/micro/plug/ | |
| 33 | 33 | config/.local/bin/pylsp | |
| 34 | 34 | config/.local/bin/kaomoji.sh | |
| 35 | 35 | config/.local/bin/quote | |
| 36 | + | config/.local/bin/quoterandom |
+0,
-14
| ... | ... | @@ -1,14 +0,0 @@ | |
| 1 | - | #!/usr/bin/env bash | |
| 2 | - | ||
| 3 | - | set -euxo pipefail | |
| 4 | - | ||
| 5 | - | INPUT=${1} | |
| 6 | - | COLOURS=${2} | |
| 7 | - | OUTPUT_SMOL=${INPUT}.webp | |
| 8 | - | OUTPUT_BIG=${INPUT}-big.webp | |
| 9 | - | ||
| 10 | - | SMOL_SIZE=320 | |
| 11 | - | BIG_SIZE=2048 | |
| 12 | - | ||
| 13 | - | magick "${INPUT}" -auto-orient -resize ${SMOL_SIZE}x${SMOL_SIZE} -colors "${COLOURS}" png:- | cwebp -q 100 -m 6 -lossless -progress -o "${OUTPUT_SMOL}" -- - | |
| 14 | - | 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}" -- - |
+1,
-1
| ... | ... | @@ -42,7 +42,7 @@ | |
| 42 | 42 | <script>hljs.highlightAll();</script> | |
| 43 | 43 | ||
| 44 | 44 | <main class="h-entry"> | |
| 45 | - | <article class="flow e-content"> | |
| 45 | + | <article class="e-content"> | |
| 46 | 46 | $for(include-before)$ | |
| 47 | 47 | $include-before$ | |
| 48 | 48 | $endfor$ |
+0,
-5
| ... | ... | @@ -1,5 +0,0 @@ | |
| 1 | - | #!/usr/bin/env bash | |
| 2 | - | ||
| 3 | - | stow -v -t ~ "config" --adopt | |
| 4 | - | ||
| 5 | - | stow -v -t ~ "scripts" --adopt |
M
stow.sh
+30,
-10
| ... | ... | @@ -1,15 +1,35 @@ | |
| 1 | 1 | #!/usr/bin/env bash | |
| 2 | 2 | ||
| 3 | - | echo "pulling from git..." | gum style --foreground "#f4b8e4" --border none | |
| 3 | + | updategit() { | |
| 4 | + | echo "pulling from git..." | gum style --foreground "#f4b8e4" --border none | |
| 5 | + | git pull bytes main | |
| 6 | + | echo "git pull complete!" | gum style --foreground "#f4b8e4" --border none | |
| 7 | + | echo "stowing your shit..." | gum style --foreground "#f4b8e4" --border none | |
| 8 | + | stow -v -t ~ "config" --adopt | |
| 9 | + | stow -v -t ~ "scripts" --adopt | |
| 10 | + | echo "done ^_^" | gum style --foreground "#f4b8e4" --border none | |
| 11 | + | } | |
| 4 | 12 | ||
| 5 | - | git pull bytes main | |
| 13 | + | localstow() { | |
| 14 | + | stow -v -t ~ "config" --adopt | |
| 15 | + | stow -v -t ~ "scripts" --adopt | |
| 16 | + | } | |
| 6 | 17 | ||
| 7 | - | echo "git pull complete!" | gum style --foreground "#f4b8e4" --border none | |
| 18 | + | usage() { | |
| 19 | + | if [ $# -eq 0 ]; then | |
| 20 | + | echo -e "Usage: stow.sh [OPTIONS]\n" | |
| 21 | + | echo -e "pull from git ,[-L|--local]\nsymlink local files ,[-U|--update]" | column -t -s',' | |
| 22 | + | fi | |
| 23 | + | } | |
| 8 | 24 | ||
| 9 | - | echo "stowing your shit..." | gum style --foreground "#f4b8e4" --border none | |
| 10 | - | ||
| 11 | - | stow -v -t ~ "config" --adopt | |
| 12 | - | ||
| 13 | - | stow -v -t ~ "scripts" --adopt | |
| 14 | - | ||
| 15 | - | echo "done ^_^" | gum style --foreground "#f4b8e4" --border none | |
| 25 | + | case "$1" in | |
| 26 | + | "" | "-h" | "--help" | "help") | |
| 27 | + | usage | |
| 28 | + | ;; | |
| 29 | + | "-L" | "--local") | |
| 30 | + | localstow | |
| 31 | + | ;; | |
| 32 | + | "-U" | "--update") | |
| 33 | + | updategit | |
| 34 | + | ;; | |
| 35 | + | esac |