Updated config

This commit is contained in:
Eduard Urbach 2025-06-11 17:38:25 +02:00
parent 7085c0afa9
commit 7547ef0ff1
Signed by: akyoto
GPG key ID: 49226B848C78F6C8
11 changed files with 127 additions and 6 deletions

View file

@ -52,7 +52,7 @@ end
# MPV
if command -q mpv
alias music "mpv music --shuffle --no-video"
alias m "mpv music --shuffle --no-video"
end
# Neovim

24
.config/fish/scripts/jpgtoavif Executable file
View file

@ -0,0 +1,24 @@
#!/usr/bin/fish
if not set -q argv[1]
echo "Usage: $argv[0] /path/to/search"
exit 1
end
for jpg in (find $argv[1] -type f -name '*.jpg')
set avif (string replace -r '\.jpg$' '.avif' $jpg)
if test -f $avif
echo Skip $avif
continue
end
echo Converting $jpg to $avif
avifenc $jpg $avif
set json "$jpg.JSON"
if test -f $json
echo Renaming JSON $json to "$avif.JSON"
mv $json "$avif.JSON"
end
end