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
Allows parsing texroot comments so that you can compile a LaTeX document from outside of the document root, as long as it contains the usual magic comment format:
% !TEX root = doc.tex
* maimpick delay for proper screenshots
An extra delay is needed for {window, full}-screenshots to prevent the
dmenu prompt from showing; example attached.
As of this writing I'm thinking the delay may vary depending on several
factors, to name a few... dmenu patches, compositor animations, etc.
* refactor to extract commonly used commands
* Fixed peertubetorrent
Because of https://github.com/Chocobozzz/PeerTube/pull/3746, the torrent URL is now different from the normal video url. This means the peertube API is needed to get the new torrent link.
* No more soyregex (and use built-in curl silent option)
* Add 360p quality in the description
* Simpler regex
* Parenthesize variables
Uses the "altwin:menu" option from setxkbmap to map the menu key to right super instead of xmodmap, which is deprecated. setxkbmap's options can be viewed with "man xkeyboard-config". Also tried to make the comment for the xset rate change more helpful.
* Replace youtube-dl with yt-dlp in qndl
* Replace youtube-dl with yt-dlp in dmenuhandler
* Replace youtube-dl with yt-dlp in newsboat config
* Replace youtube-dl with yt-dlp in aliasrc
Co-authored-by: Luke Smith <luke@lukesmith.xyz>
This will allow using the mappings in the vim command line.
Here the leader is ";"
So here `:e ;cfz` typed fast will expand into
`:e /home/user/.config/zsh/.zshrc`.
This is more helpful with :sp, :vs, :cd or anywhere where a file or
a directory is expected in the vim command line.
* ext: Give the ability to extract multiple files and wildcards
* Variable renaming
* Make user get prompted if extracted file overwrites another file
* Deleted ext
We have atool
* Replace ext with aunpack
* minor forgoten stuff
we already have shutdown in sudo loop
* why was this still here? it belongs in ~/.config/
* what the actual phucc
* implemented loginctl and fixed shebang
* Changed paru to yay due to new LARBS changes
* Fix & improve lf's moveto, copyto and cd to bm-dir
When using any of the above functions they returned exit code 1. This was due to the cut command having tab as the delimiter, but spaces are used in the bm-dirs file.
As an improvement comments are now automatically removed from the fzf options, because selecting those wouldn't work anyway.
The final sed command substituting "~" for "$HOME" is also removed because that doesn't seem to do anything looking at the current structure of the bm-dirs file.
The J bind needed more parsing and environment variable substitution because cd didn't work by default with values from a subshell.
* Automatically backup existing config files
* Return by pywal edited config files to normal if pywal is uninstalled.
Arch & Artix already have the `libarchive` pkg, which contains `bsdtar`.
So lets just use it, since its superior, faster, it also has easier syntax, and it auto-detects the compression.
btw the .tar.zst was wrong anyhow, so if u wont merge this, dont forget to fix that. from the manual:
```
-I, --use-compress-program=COMMAND
Filter data through COMMAND. It must accept the -d option, for decompression. The argument can contain command line options.
.....
--zstd Filter the archive through zstd(1).
```
* Make empty string check more consistent
Replace explicit empty string check condition with inbuilt POSIX compliant empty string check flag, in adherence with the rest of the script.
* Update test expression