Let's Linux #032: queue files in mpv
budlabs
the files used in this video can be found on github: https://github.com/budlabs/youtube/tree/master/letslinux/032-queue-files-in-mpv
In this video I show how to create a FIFO and have mpv listen to it for commands.
With this technique, one can easily send commands to a running mpv instance.
In this video we will set this all up with a very simple script and use queue media files to a running mpv instance or create one if there is none running
Search (/) for FIFO in the mpv manual for more information. On how the --input-file option works.
To create a FIFO use the mkfifo command.
To open a new mediafile in a mpv instance, listening to a FIFO. Send this command to the FIFO:
loadfile FILE
To append the file to the playlist, send this:
loadfile FILE append-play
video info:
color scheme: Tomorrow - Eighties, by Chris Kempson terminal font: Fixedsys terminal emulator: URxvt figlet font: 3d.flf, by xero filemanager: Thunar sublime font: Hack icon theme: DamaDamas gtk theme: Numix (eighties)
related videos
best i3 img viewer:
https://youtu.be/VAAV3cQsqAE
Automatic script creation:
https://youtu.be/QGUmMtEnIkI
i3fyra:
https://youtu.be/t4Tve-xpwus
polybar, dynamic title:
https://youtu.be/3vQtovcQElY
focus if visible https://youtu.be/zDVPTQYvoa4
This is the window rule i set in the i3 config file to have the window spawn in a given container (B).
for_window [class="mpv"] title_format "mpv" , focus; exec --no-startup-id exec i3fyra -m B
In the video I use my scripts: i3get and i3fyra, they are available in the i3ass suit:
https://github.com/budRich/i3ass
lolban is the output of figlet piped through lolcat. I have a video where i show how it works. That video is called: Let's Linux #009: Automatic script creation, and can be found here: https://youtu.be/QGUmMtEnIkI
The figlet font used with lolban is created by xero. It is called: 3d.flf And can be found on github: https://github.com/xero/figlet-fonts ... https://www.youtube.com/watch?v=-vbr3-mHoRs
68143579 Bytes