From 19cd410f5bc912da0733e653b49c1f6dabb8a59e Mon Sep 17 00:00:00 2001 From: Alex Denes Date: Fri, 6 Dec 2024 07:53:05 +0000 Subject: [PATCH] Re-enable idle_inhibitor and add mpris integration to see media player status, move window title to the left --- config.jsonc | 19 +++++++++++++++---- style.css | 4 ++-- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/config.jsonc b/config.jsonc index e9888d5..b00bb52 100644 --- a/config.jsonc +++ b/config.jsonc @@ -4,13 +4,14 @@ "spacing": 0, "height": 16, "modules-left": [ - "dwl/tags" - ], - "modules-center": [ + "dwl/tags", "dwl/window" ], + "modules-center": [], "modules-right": [ - "pulseaudio", + "idle_inhibitor", + "wireplumber", + "mpris", "load", "memory", "temperature", @@ -24,6 +25,16 @@ "dwl/window": { "all-outputs": true }, + "mpris": { + "format": "{dynamic}" + }, + "idle_inhibitor": { + "format": "{icon}", + "format-icons": { + "activated": "", + "deactivated": "" + } + }, "clock": { "interval": 1, "tooltip-format": "{:%Y %B}\n{calendar}", diff --git a/style.css b/style.css index ca51756..bff056d 100644 --- a/style.css +++ b/style.css @@ -57,6 +57,6 @@ window#waybar { #memory { background-color: rgba(255, 128, 32, 0.5); } -#wireplumber { - background-color: rgba(255, 255, 255, 0.25); +#mpris { + background-color: rgba(169, 47, 233, 0.5); }