Add MPRIS to waybar

This commit is contained in:
pancakes 2025-08-19 15:38:52 +10:00
parent af6b859b2b
commit 3e1df5315d
Signed by: pancakes
SSH key fingerprint: SHA256:yrp4c4hhaPoPG07fb4QyQIgAdlbUdsJvUAydJEWnfTw
2 changed files with 21 additions and 0 deletions

View file

@ -14,6 +14,7 @@
"clock" "clock"
], ],
"modules-right": [ "modules-right": [
"mpris",
"tray", "tray",
"idle_inhibitor", "idle_inhibitor",
"power-profiles-daemon", "power-profiles-daemon",
@ -44,6 +45,15 @@
} }
} }
}, },
"mpris": {
"format": "♪ - {status_icon}{title}",
"format-stopped": "",
"tooltip-format": "{dynamic}",
"status-icons": {
"paused": "󰏤 "
},
"dynamic-separator": "\n"
},
"tray": { "tray": {
"spacing": 4, "spacing": 4,
"reverse-direction": true "reverse-direction": true

View file

@ -61,6 +61,7 @@ button:hover {
color: #15161e; color: #15161e;
} }
#mpris,
#clock, #clock,
#battery, #battery,
#network, #network,
@ -155,3 +156,13 @@ label:focus {
padding: 0 2px; padding: 0 2px;
color: #15161e; color: #15161e;
} }
#mpris.playing {
background-color: #9ece6a;
color: #15161e;
}
#mpris.paused {
background-color: #e0af68;
color: #15161e;
}