Introduced Notification server, and added background thorugh quickshell
This commit is contained in:
@@ -7,7 +7,7 @@ import Quickshell.Services.Mpris
|
||||
Singleton {
|
||||
readonly property list<MprisPlayer> activePlayers: Mpris.players.values
|
||||
readonly property var meaningfulPlayers: filterDuplicatePlayers(activePlayers)
|
||||
readonly property bool hasPlayers: meaningfulPlayers.length > 0
|
||||
readonly property bool hasPlayers: activePlayers.length > 0
|
||||
property int playerIndex: 0
|
||||
|
||||
function activePlayer() {
|
||||
@@ -15,7 +15,7 @@ Singleton {
|
||||
return null;
|
||||
}
|
||||
assertIndex();
|
||||
return meaningfulPlayers[playerIndex];
|
||||
return activePlayers[playerIndex];
|
||||
}
|
||||
|
||||
function shiftPlayer(shift) {
|
||||
@@ -23,7 +23,7 @@ Singleton {
|
||||
}
|
||||
|
||||
function assertIndex() {
|
||||
if (playerIndex < 0 || playerIndex >= meaningfulPlayers.length) {
|
||||
if (playerIndex < 0 || playerIndex >= activePlayers.length) {
|
||||
playerIndex = (playerIndex + activePlayers.length) % activePlayers.length
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user