justfiles for automating various tasks on my workstation

~blogging.just, ~utilities.just

Changed files
+18 -3
+7 -3
blogging.just
···
rm -rf "${PUBLIC_DIR}/"*
hugo --gc --minify -d "${PUBLIC_DIR}" -s "$WEBSITE_DIR"
rsync \
-
-avz \
--delete \
"${PUBLIC_DIR}"/ \
-
jas@hyperreal.carp-wyvern.ts.net:/home/jas/public/html
rsync \
-avz \
--delete \
"$CAPSULE_DIR"/ \
-
jas@hyperreal.carp-wyvern.ts.net:/home/jas/public/gemini/hyperreal.coffee
echo
echo "Website and capsule successfully deployed"
···
rm -rf "${PUBLIC_DIR}/"*
hugo --gc --minify -d "${PUBLIC_DIR}" -s "$WEBSITE_DIR"
rsync \
+
-az \
--delete \
"${PUBLIC_DIR}"/ \
+
hyperreal@hyperreal.carp-wyvern.ts.net:/home/hyperreal/staging/html
+
ssh hyperreal@hyperreal.carp-wyvern.ts.net \
+
-- doas rsync -a --chown root:daemon --delete /home/hyperreal/staging/html/ /var/www/htdocs/hyperreal.coffee
rsync \
-avz \
--delete \
"$CAPSULE_DIR"/ \
+
hyperreal@hyperreal.carp-wyvern.ts.net:/home/hyperreal/staging/gemini
+
ssh hyperreal@hyperreal.carp-wyvern.ts.net \
+
-- doas -u _gmid rsync -a --delete /home/hyperreal/staging/gemini/ /var/gemini/hyperreal.coffee
echo
echo "Website and capsule successfully deployed"
+11
utilities.just
···
set unstable := true
set script-interpreter := ["uv", "run", "--script"]
# List systemd services
[group('utilities')]
lssvc:
···
set unstable := true
set script-interpreter := ["uv", "run", "--script"]
+
# Zellij sessions
+
[group('utilities')]
+
zellij-new:
+
#!/usr/bin/env bash
+
selection=$(ls "${HOME}/.config/zellij/layouts" | xargs -I _ basename -s .kdl _ | gum choose)
+
if zellij list-sessions | grep "$selection"; then
+
zellij attach "$selection"
+
else
+
zellij -n "$selection" -s "$selection"
+
fi
+
# List systemd services
[group('utilities')]
lssvc: