MPRIS is a mechanism for controlling players (including in-browser ones). It is usually bound to multimedia key presses. DEs usually have this integrated but WMs don't.
To make this work in Awesome WM, playerctl
can be used. It's subcommands just need to be bound to the multimedia keys.
- https://github.com/altdesktop/playerctl
- https://awesomewm.org/recipes/watch/
- https://work.lisk.in/2020/05/06/linux-media-control.html
- https://github.com/macunha1/awesomewm-media-player-widget
- https://github.com/streetturtle/awesome-wm-widgets/tree/master/mpris-widget
- https://wiki.debian.org/Keyboard/MultimediaKeys
- https://wiki.archlinux.org/title/Talk:MPRIS
- https://wiki.archlinux.org/title/MPRIS
- https://uwekorn.com/2013/01/29/tomahawk-awesome-wm.html
- https://specifications.freedesktop.org/mpris-spec/2.2/Player_Interface.html#Property:CanControl
- https://specifications.freedesktop.org/mpris-spec/latest/
- https://github.com/chromium/chromium/blob/main/components/system_media_controls/linux/system_media_controls_linux.cc
- https://github.com/chromium/chromium/blob/0944c7716afc8b3d8fe2236db79866d4c8a57b6f/components/system_media_controls/linux/system_media_controls_linux.cc#L94-L112
- https://github.com/KDE/plasma-workspace/blob/e9a6044b6beb44fbcf4354d6de29a2c25788d580/dataengines/mpris2/multiplexedservice.cpp#L91