I just added #mpris integration to my #music player. It's still very much half-baked, but I'm getting there!
Odio, como buen usuario de #Gnome, las inconsistencias o cosas que sobran en mi escritorio.
Un ejemplo de ello es cuando escucho un audio en #Karere (cliente web de Whatsapp en GTK4) y lo cierro (se queda en segundo plano) y el puto reproductor #MPRIS se me queda permanente en las notificaciones.
No sé si es un fallo de la aplicación o un defecto o decisión de diseño de las notificaciones MPRIS. Ni idea, pero me toca la moral.
MPRIS is a neat mechanism that allows media players to communicate what is playing and provide playback controls.
Unfortunately, this was not working in the snap version of celluloid, a mpv + GTK media player.
After some digging around (and grepping dbus-monitor), I discovered a quick fix:
https://codeberg.org/sameersharma2006/celluloid-snap/pulls/12
Basically, rename the DBUS path to something allowed by the snap appamour profile.
I happy to say that the change worked and is now merged!
One thing that bothered me since some time is that for switching between different 🎶 players required to🔓 the 📱 .
So e.g. pausing #gnome podcasts to listen to music via #gapless needed ever so many steps. I've thus added a lockscreen plugin to #phosh that tracks all currently running media players that use #mpris and allows to interact with them.
This is all pretty rough still but I can hopefully brush it up for 0.48 (https://gitlab.gnome.org/World/Phosh/phosh/-/merge_requests/1729).
TIL that media players, even the web browsers, can be controlled with hardware media keys via the MPRIS interface (https://wiki.archlinux.org/title/MPRIS)
For example, Firefox supports hardware media keys by default. In Audacious the "MPRIS 2 Server" plugin should be enabled.
Both of them can be controlled by a small utility called playerctl (https://github.com/altdesktop/playerctl) from any DE/WM, even i3 (see for example playerctl.sh in https://codeberg.org/evgandr/dotfiles/commit/e3aa94febf1a4775ffcea26713334e398794ed5b)
Well, this is going into my dotfiles for sure 🔥
🎹 **fum**: A fully ricable TUI-based MPRIS music client.
⚙ Configuration: https://github.com/qxb3/fum/wiki/Configuring
🦀 Written in Rust & built with @ratatui_rs
⭐ GitHub: https://github.com/qxb3/fum
#rustlang #ratatui #tui #music #player #mpris #terminal #commandline #dotfiles #linux #customization
New Linux Timer App Uses MPRIS in an Ingenious Way
MPRIS is something most of us associate with music apps and movie players, but a new app makes use of this freedesktop standard for something less entertaining: timers. Yes, timers. Timing your pizza in the oven, setting a deadline for a task, dedicating time to a hobby, or obsessively counting down to a date (figurative or romantic), MPRIS Timer does it just as well as anything else – with a twist: it shows your timer using MPRIS. MPRIS stands for ‘Media Player Remote Interfacing Specification’. It is a Freedesktop standard that gives app makers an accessible, consistent API to target 
#News #Mpris
https://www.omgubuntu.co.uk/2024/11/mpris-timer-app-for-linux-is-ingenious
New Episode: hpr4033 :: Using playerctl to control media players
Hosted by Ken Fallon on 2024-01-17 is flagged as Clean and released under a CC-BY-SA license.
Tags: #playerctl, #mpris, #lxqt