Add album cleanup command

bladee.bsky.social 748c7265 8c1e2b1c

verified
Changed files
+24
dot_config
private_fish
+24
dot_config/private_fish/functions/gemini-cleanup-album.fish
···
+
function gemini-cleanup-album --description "Clean up album files." --wraps "gemini"
+
set prompt "Rename all .lrc files to match their corresponding .flac files \
+
exactly. Do not rename the audio files. If there are multiple cover images, \
+
delete all but highest quality image, then rename it to cover.ext, where ext is \
+
the extension for the image type (i.e., jpg, png). Return a summary of all \
+
changed file names after completion."
+
+
# systemd-run --user --scope \
+
# -p ProtectSystem=strict \
+
# -p ProtectHome=read-only \
+
# -p ReadWritePaths="$PWD" \
+
# -p PrivateTmp=yes \
+
# -p NoNewPrivileges=yes \
+
# gemini --model gemini-2.5-flash --allowed-tools list_directory,run_shell_command "$prompt" $argv
+
+
bwrap \
+
--ro-bind / / \
+
--dev /dev \
+
--proc /proc \
+
--tmpfs /tmp \
+
--bind "$PWD" "$PWD" \
+
--bind "$HOME/.gemini" "$HOME/.gemini" \
+
gemini --model gemini-2.5-flash --allowed-tools list_directory,run_shell_command "$prompt" $argv
+
end