Replace MPD module with MPRIS in Waybar

This commit is contained in:
2026-03-26 13:01:55 +01:00
parent 4c9b54c60e
commit d6b7060a38
2 changed files with 14 additions and 15 deletions

View File

@@ -1,27 +1,26 @@
{ {
"layer": "top", "layer": "top",
"height": 25, "height": 25,
"modules-left": ["sway/workspaces" ], "modules-left": [ "sway/workspaces"],
"modules-center": ["custom/org-pomodoro", "clock"], "modules-center": [ "clock" ],
"modules-right": ["mpd", "network", "pulseaudio", "battery" ], "modules-right": [ "mpris", "network", "pulseaudio", "battery" ],
"mpd": { "mpris": {
"format": "<span foreground='#88C0D0'>{stateIcon}</span> {title}", "format": "<span foreground='#88C0D0'>{status_icon}</span> {title}",
"format-disconnected": "", "format-disconnected": "",
"format-stopped": "{stateIcon} ", "format-stopped": "{status_icon} ",
"unknown-tag": "N/A",
"interval": 2, "interval": 2,
"consume-icons": { "consume-icons": {
"on": " " "on": " "
}, },
"state-icons": { "status-icons": {
"paused": "󰝚", "paused": "󰝚",
"playing": "󰝚" "playing": "󰝚"
}, },
"tooltip-format": "{elapsedTime:%H:%M:%S}/{totalTime:%H:%M:%S}", "tooltip-format": "{elapsedTime:%H:%M:%S}/{totalTime:%H:%M:%S}",
"tooltip-format-disconnected": "MPD (disconnected)", "tooltip-format-disconnected": "MPD (disconnected)",
"title-len": 50, "title-len": 50,
"on-click": "mpc toggle", "on-click": "playerctl play-pause",
"on-click-right": "mpc stop" "on-click-right": "playerctl stop"
}, },
"clock": { "clock": {
"format": "{:%a %d %b %H:%M}", "format": "{:%a %d %b %H:%M}",

View File

@@ -70,7 +70,7 @@ window#waybar.chromium {
#tray, #tray,
#mode, #mode,
#idle_inhibitor, #idle_inhibitor,
#mpd { #mpris {
padding: 0 10px; padding: 0 10px;
margin: 0 4px; margin: 0 4px;
} }
@@ -156,16 +156,16 @@ label:focus {
#idle_inhibitor.activated { #idle_inhibitor.activated {
} }
#mpd { #mpris {
} }
#mpd.disconnected { #mpris.disconnected {
} }
#mpd.stopped { #mpris.stopped {
} }
#mpd.paused { #mpris.paused {
} }