* Avoid expansion of file path containing spaces
* Do not trap INT signal on lfcd
* Untrap to stop trapping once lfcd quit
* Revert "Avoid expansion of file path containing spaces"
This reverts commit edcccf8f1bb0eb283aa332dc3a2d2b431eb6d189.
* Trap SIGINT again
eyeD3 got orphaned in the AUR, so I looked for an alternative. Apparently ffmpeg also supports the ability to tag audio files, so this pull request replaces all the helper applications with ffmpeg
* Fix tag script mp3 issue
When you don't manually specify $total and $date with an mp3 file the eyeD3 command tries tagging with an empty variable, which causes it to error. This fixes it by only passing the parameter to the command if the variable is set.
This pull request also adds support for the $genre and $comment variable.
* Remove double backslash
Make a temporary directory in $XDG_RUNTIME_DIR instead of $PASSWORD_STORE_DIR.
$XDG_RUNTIME_DIR defaults to /run/user/$uid/. This directory has the security advantage of only being readable and writable by the current user and being mounted in RAM, causing the screenshot to be fully wiped on shutdown and not needing shred, which doesn't work reliably on SSD's.
Also quoted $dir, for the off chance someone has spaces in their $PASSWORD_STORE_DIR.
Removed the check for xclip and the $issuer and $name variables, as they are unused.
If you're wondering why echo is piped into dmenu, on my system dmenu hung when called without the pipe, causing the whole script to freeze.
the title then extension format with the --restrict-filenames again for underscores instead of spaces.
Works typically well as music will have Artist name first usually followed by song title so no need to format.
haven't looked into the --embed-metadata parameter, only imagine it could be useful if it saves the url suffix for youtube link (which you don't want in your filename hopefully)
for my video downloads, i just use this.
alias ydl='yt-dlp -o '%(title)s.%(ext)s' -f bv+ba/b --restrict-filenames'
alias mp3='yt-dlp -o '%(title)s.%(ext)s' -f bestaudio -x --audio-format mp3 --embed-thumbnail --restrict-filenames'
Probably bad practice to have single quotes within more single quotes but ran into issues with yt-dlp over using double quotes.
-Ryan