tmus

TUI Music Player
git clone https://git.sinitax.com/sinitax/tmus
Log | Files | Refs | Submodules | LICENSE | sfeed.txt

commit ee99eca5f9608d2b122555483cc413f49ef0399c
parent 5d62ca335a60f9e762fd4f63f7c0258157328c0b
Author: Louis Burda <quent.burda@gmail.com>
Date:   Sun, 20 Feb 2022 20:31:04 +0100

Added MPRIS pause and play event handling

Diffstat:
Msrc/mpris.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/mpris.c b/src/mpris.c @@ -137,6 +137,10 @@ dbus_update(void) log_info("MPRIS: Method %s\n", method); if (!strcmp(method, "PlayPause")) { player_toggle_pause(); + } else if (!strcmp(method, "Pause")) { + player_pause(); + } else if (!strcmp(method, "Play")) { + player_play(); } else if (!strcmp(method, "Next")) { player_next(); } else if (!strcmp(method, "Previous")) {