Optional:
You will notice that each video you watch, there will be a .m3u or .m3u8 file downloaded.
So, to clean these files automatically, I created a systemctl timer/service:
~/.config/systemd/user
m3u.timer
[Unit]
Description=Timer to cleanup *.m3u* files from play-with (MPV)
[Timer]
OnCalendar=hourly
Persistent=true
OnBootSec=3min
[Install]
WantedBy=timers.target
m3u.service
[Unit]
Description=Service to cleanup *.m3u* files from play-with (MPV)
[Service]
Type=oneshot
ExecStart=/bin/sh -c 'rm /path/firefox/download/directory/*.m3u8'
[Install]
WantedBy=default.target
You download a 50 bytes file, like a playlist, and it plays instantly through mpv
So, its a right click in the video, select play with mpv, the file plays instantly, after that, the 50 bytes file download .m3u8 is deleted by the service/timer mentioned above…
Well, depends on setup/workflow.
Using a tiling WM, I tend to prefer keyboard shortcuts instead mouse interactions like drag/drop/click. It’s just way more convenient if you have mpv bound to specific workspace/monitor etc.
For me, its easier, faster, cleaner then keeping a mpv window opened, drag videos around… just right click and play it, mpv open then mpv closes…
With the configuration below, the video starts in the corner, with 0.4 of its size, so I can keep doing my things while the video is playing, I press ALT + UP or ALT + DOWN to change the video size, keep on top, double click for fullscreen and etc…
cat ~/.config/mpv.input.conf
` cycle border
ALT+UP add window-scale 0.05
ALT+DOWN add window-scale -0.05
b script-message osc-visibility never
a script-message osc-visibility auto
I used to use ff2mpv. Not anymore. It’s far easier ( for me ) to F12 ( yakuake or some other dropdown terminal) then mpv and URL. Done. Nothing external, no services running no scripts. Simpler and cleaner. Again I repeat for me. Everyone is different. And Linux can accommodate all. Best thing about it.