tiliado / nuvolaplayer

Nuvola Player - Tight integration of web-based media streaming services with your desktop
https://nuvola.tiliado.eu/
BSD 2-Clause "Simplified" License
334 stars 27 forks source link

Multi-App Media Control #702

Closed andre-exads closed 3 years ago

andre-exads commented 3 years ago

Please describe in detail what you would like to solve with the proposed feature:

When you have multiple apps playing at the same time, say:

Do you have an idea how it could be solved and how it should look like?

Add advanced media key binding or something similar that consider multiple apps.

Describe alternatives you've considered:

Using the mouse to access the "notifications panel" had been the only way to achieve a similar control.

Additional context:

image

jiri-janousek commented 3 years ago

Hello @andre-exads, thanks for your suggestion, but your idea seems too complex and I'm not going to implement it. You can, however, use Nuvola's command line interface to achieve your goal.

For example, you can create a script toggle-play-all.sh and assign a keyboard shortcut in GNOME Settings → Keyboard shortcuts.

#!/bin/bash
for app in $(flatpak run eu.tiliado.Nuvola api-master /nuvola/core/list_apps | jq -r '.[].id')
do flatpak run eu.tiliado.Nuvola -a $app action toggle-play
done
andre-exads commented 3 years ago

Hello @andre-exads, thanks for your suggestion, but your idea seems too complex and I'm not going to implement it. You can, however, use Nuvola's command line interface to achieve your goal.

For example, you can create a script toggle-play-all.sh and assign a keyboard shortcut in GNOME Settings → Keyboard shortcuts.

#!/bin/bash
for app in $(flatpak run eu.tiliado.Nuvola api-master /nuvola/core/list_apps | jq -r '.[].id')
do flatpak run eu.tiliado.Nuvola -a $app action toggle-play
done

Thanks a lot for the reply. That script will do the trick :+1: