Introduced Notification server, and added background thorugh quickshell

This commit is contained in:
2025-09-13 23:51:14 -04:00
parent 55a97da636
commit 7081a48426
13 changed files with 263 additions and 10 deletions

View File

@@ -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
}
}