rework mpris, less features but easier to build out player selector later
This commit is contained in:
parent
a7e916519f
commit
c3a1bb4553
5 changed files with 60 additions and 94 deletions
12
services/Mpris.qml
Normal file
12
services/Mpris.qml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
pragma Singleton
|
||||
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Services.Mpris
|
||||
|
||||
Singleton {
|
||||
id: root
|
||||
|
||||
property list<MprisPlayer> players: Mpris.players.values
|
||||
property MprisPlayer active: players.filter(player => player.isPlaying)[0] ?? players[0]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue