Have my multimedia in browsers, kde recognizes it and media controls work within taskbar preview, notification area and - most important - with the media keys.
Plus: Browsers are more secure and no need for other applications.
Yeah. For a moment I found this interesting but then I remembered that KDE Plasma has perfect integration with all of the streaming services I use through my browser. It seems to just work without any additional software. You can even control media from an Android phone if you have the KDE Connect app installed.
Line 2:
while pgrep $1 >/dev/null; do sleep 2; done && $*
^-- SC2086: Double quote to prevent globbing and word splitting.
^-- SC2048: Use "$@" (with quotes) to prevent whitespace problems.
Also, how do you pick the right job to wait for if several programs match $1? (E.g. if it's a bash script, $1 will be "bash", which on my system matches lots of things.)
Also, a 2s sleep will slow things down if you want to use it for a whole lot of jobs.
Also, this won't run your second command if the first command you wait for has already exited!
Also, shouldn't $* be `shift; "$@"` or do you only ever queue jobs of the same command?
There was a major deep web counterfeiter about a decade ago that remained active on Jabber even as a federal fugitive, not sure what ended up happening to him.