diff options
| author | Blake Romero <blake@blkrom.com> | 2025-07-17 12:38:01 +0100 |
|---|---|---|
| committer | Blake Romero <blake@blkrom.com> | 2025-07-17 12:38:01 +0100 |
| commit | 3ead164e24c569c24a322b584951e7974336aa75 (patch) | |
| tree | e349ed7d3e994f7a502e063e5c0af309eed7eb52 /dot-config/yambar/config.yml | |
| parent | 3572c830ee09731cbe71a2217b779f88f0fbccba (diff) | |
Refactor yambar mpd module
Diffstat (limited to 'dot-config/yambar/config.yml')
| -rwxr-xr-x | dot-config/yambar/config.yml | 18 |
1 files changed, 10 insertions, 8 deletions
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: |
