![](/static/61a827a1/assets/icons/icon-96x96.png)
![](https://lemmy.ml/pictrs/image/q98XK4sKtw.png)
Yeah sorry then. It would be good to not use ls
in your example though, someone who doesn’t know about that might read this discussion and think that’s reasonable.
As for your original question, doing the foreach
as a personal alias is fine. I wouldn’t use it in any script, since if anyone else reads that, they probably already know about xargs
. So using your foreach
would be more confusing to any potential reader I think.
Setting level to 3 in show-text just means that the it won’t show up unless the user has set
--osd-level
to at least 3. It’s like specifying how important the message is, so the user can disable less important information while still showing other stuff. It has nothing to do with what you’re trying to do.I don’t know enough about mpv’s IPC stuff to know to show the progress bar and some text at the same time, sorry.