From 85be075628d6766229db0d0bd9aa77665372e497 Mon Sep 17 00:00:00 2001 From: Joel Mathew Thomas <90510078+joelmathewthomas@users.noreply.github.com> Date: Thu, 13 Mar 2025 13:55:12 +0530 Subject: [PATCH] add mpris waybar module --- .config/waybar/config.jsonc | 14 ++++++++++++-- .config/waybar/style.css | 5 +++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc index 7361caa..a63d7ea 100644 --- a/.config/waybar/config.jsonc +++ b/.config/waybar/config.jsonc @@ -4,13 +4,14 @@ "spacing": 5, "modules-left": [ "group/group-cpu", - "hyprland/workspaces" + "hyprland/workspaces", + "mpris", + "cava" ], "modules-center": [ "hyprland/window" ], "modules-right": [ - "cava", "custom/pacman", "gamemode", "tray", @@ -43,6 +44,15 @@ }, "sort-by-number": true }, + "mpris": { + "format": " {dynamic}", + "format-paused": "{ {dynamic}}", + "format-stopped": "", + "interval": 2, + "dynamic-order": ["title", "artist"], + "artist-len": 10, + "elipsis": "..." + }, "gamemode": { "format": "{glyph}", "format-alt": "{glyph} {count}", diff --git a/.config/waybar/style.css b/.config/waybar/style.css index 4cae2f9..7aa8cae 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -107,12 +107,13 @@ button { #wireplumber, #custom-pacman, #tray, +#cava, #mode, #idle_inhibitor, #scratchpad, -#mpd { +#mpris { padding: 0 2px; - color: @text; + color: @lavender; border-radius: 15px; margin: 2px 0; }