+1
.gitignore
+1
.gitignore
-14
config/.local/bin/retroify
-14
config/.local/bin/retroify
···
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
scripts/Scripts/pandoc/md2html.html
+1
-1
scripts/Scripts/pandoc/md2html.html
-5
stow-local.sh
-5
stow-local.sh
+30
-10
stow.sh
+30
-10
stow.sh
···
1
#!/usr/bin/env bash
2
3
-
echo "pulling from git..." | gum style --foreground "#f4b8e4" --border none
4
-
5
-
git pull bytes main
6
-
7
-
echo "git pull complete!" | gum style --foreground "#f4b8e4" --border none
8
-
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
···
1
#!/usr/bin/env bash
2
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
+
}
12
13
+
localstow() {
14
+
stow -v -t ~ "config" --adopt
15
+
stow -v -t ~ "scripts" --adopt
16
+
}
17
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
+
}
24
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