justfiles for automating various tasks on my workstation
1# Quickly copy the Tailscale install command
2[group('utilities')]
3copy-ts-cmd:
4 echo "curl -fsSL https://tailscale.com/install.sh | sh" | xclip -selection clipboard
5
6# Copy GAME screenshots
7[group('utilities')]
8copy-screenshots:
9 #!/usr/bin/env bash
10 GAME=$(ugum choose eso starfield bg3)
11 case "$GAME" in
12 "eso")
13 find "${HOME}/.steam/steam/steamapps/compatdata/306130/pfx/drive_c/users/steamuser/Documents/Elder Scrolls Online/live/Screenshots" \
14 -maxdepth 1 \
15 -mindepth 1 \
16 -exec cp -fv {} "${HOME}/nextcloud/pictures/eso_screenshots" \;
17 ;;
18 "starfield")
19 find "${HOME}/.steam/steam/steamapps/compatdata/1716740/pfx/drive_c/users/steamuser/My Documents/My Games/Starfield/Data/Textures/Photos" \
20 -maxdepth 1 \
21 -mindepth 1 \
22 -not -name "*-thumbnail.png" \
23 -exec cp -fv {} "${HOME}/nextcloud/pictures/starfield_screenshots" \;
24 ;;
25 "bg3")
26 find "${HOME}/games/gog/baldurs-gate-3/drive_c/users/steamuser/My Documents/Larian Studios/Baldur's Gate 3/Screenshots" \
27 -maxdepth 1 \
28 -mindepth 1 \
29 -exec cp -fv {} "${HOME}/nextcloud/pictures/bg3_screenshots" \;
30 ;;
31 *)
32 echo "Unknown game"
33 ;;
34 esac
35
36# vim: ts=4 sts=4 sw=4 et ft=just