From 3ead164e24c569c24a322b584951e7974336aa75 Mon Sep 17 00:00:00 2001 From: Blake Romero Date: Thu, 17 Jul 2025 12:38:01 +0100 Subject: Refactor yambar mpd module --- dot-config/yambar/config.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'dot-config') diff --git a/dot-config/yambar/config.yml b/dot-config/yambar/config.yml index c22ca65..0e5ff4e 100755 --- a/dot-config/yambar/config.yml +++ b/dot-config/yambar/config.yml @@ -252,19 +252,21 @@ mpd: &mpd margin: *margin content: map: - default: {string: {text: "{state} 🎶", <<: *mpd-anchor}} - conditions: - state == playing: - string: {text: "{artist} - {title} 🎶", <<: *mpd-anchor} - state == paused: - string: {text: "{artist} - {title} 🎶", <<: *mpd-anchor, foreground: *fgdim} - state == stopped: - string: {text: "mpd 🎶", <<: *mpd-anchor} + foreground: *fg + margin: *margin + default: {string: {text: "{state} "}} on-click: left: mpc toggle right: mpc next wheel-up: mpc next wheel-down: mpc prev + conditions: + state == playing: + string: {text: "{artist} - {title} [{pos}/{end}] "} + state == paused: + string: {text: "{artist} - {title} ", foreground: *fgdim} + state == stopped: + string: {text: "mpd "} # LAYOUT bar: -- cgit