Projects
Shellscript AUR helper
Requires git
curl https://sor.neocities.org/projects/sap.txt -o /usr/local/bin/sap
chmod +x /usr/local/bin/sap
Shellscript youtube player
Requires mpv, yt-dlp, & fzf (for -f)
Advantages over ytfzf:
ytlol -p 'filename="$(yt-dlp --get-title URL)"; artist="$(yt-dlp --print "%(uploader)s" URL)"; yt-dlp URL -x --audio-format mp3 -o "$filename.%(ext)s"; curl -L "$(yt-dlp --get-thumbnail URL)" -o thumb.webp; ffmpeg -y -i thumb.webp -vf "crop=710:710:(iw-710)/2:(ih-710)/2" thumb.jpg; lame --ti thumb.jpg --tt "$filename" --ta "$artist" "$filename.mp3" temp.mp3; mv temp.mp3 "$filename.mp3"; rm thumb.jpg thumb.webp'
will download the first video result as audio, use the title as the filename and ID3 metadata title, set the uploader channel name as the artist, and use the cropped thumbnail as an embedded cover. If you want something more robust, including upload date, description, album tag, you can also run ytlol -p 'filename="$(yt-dlp --get-title URL)" && yt-dlp --extract-audio --audio-format mp3 --add-metadata --embed-metadata "URL" -x -o "$filename.%(ext)s" && curl -L "$(yt-dlp --get-thumbnail "URL")" -o thumb.webp && ffmpeg -i thumb.webp -vf "crop=710:710:(iw-710)/2:(ih-710)/2" thumb.jpg && ffmpeg -i "$filename.mp3" -i thumb.jpg -map 0 -map 1 -c copy -id3v2_version 3 -metadata:s:v title="Album cover" -metadata:s:v comment="Cover (front)" "temp.mp3" && mv "temp.mp3" "$filename.mp3" && rm thumb.webp thumb.jpg'
.ytlol -p librewolf search query
opens the first result in LibreWolf, ytlol -p "mpv --loop --no-video" search query
plays audio with custom options and ytlol -p mpv search query
plays video with the default mpv behaviour. But if the command includes "url," it replaces it with the result's URL, such as ytlol -p 'mpv --pause $(yt-dlp --get-thumbnail url)' search query
to show the thumbnail in mpv, or ytlol -p "echo url | xclip -selection clipboard" search query
to copy the URL to the clipboard. ytlol -f -p 2 search query
will query two pagescurl https://sor.neocities.org/projects/ytlol.txt -o /usr/local/bin/ytlol
chmod +x /usr/local/bin/ytlol
Shellscript meme maker using imagemagick
Requires imagemagick and impact font installed
curl https://sor.neocities.org/projects/memer.txt -o /usr/local/bin/memer
chmod +x /usr/local/bin/memer
mkdir /usr/share/fonts/impact
curl https://sor.neocities.org/projects/impact.ttf -o /usr/share/fonts/impact/impact.ttf
Shellscript pacman package organizer/logger
curl https://sor.neocities.org/projects/pacmano.txt -o /usr/local/bin/pacmano
chmod +x /usr/local/bin/pacmano