diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-03-22 13:10:12 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-03-22 13:10:12 +0100 |
| commit | 903f38025e6a3018838127a562a3fecc0110858e (patch) | |
| tree | 5bc411a48ca3cb9b5c2f3bc069263dac3ee4184d /config/waybar/config.jsonc | |
| parent | aa6dfe6709cf335b9ee8c9d8c4f8415fc03957c3 (diff) | |
Add MPD and media controls
Diffstat (limited to 'config/waybar/config.jsonc')
| -rw-r--r-- | config/waybar/config.jsonc | 38 |
1 files changed, 33 insertions, 5 deletions
diff --git a/config/waybar/config.jsonc b/config/waybar/config.jsonc index ee3f180..3ff0099 100644 --- a/config/waybar/config.jsonc +++ b/config/waybar/config.jsonc @@ -1,13 +1,15 @@ { "position": "top", "modules-left": [ - "niri/workspaces" + "niri/workspaces", + "mpd" ], "modules-center": [ "niri/window" ], "modules-right": [ "idle_inhibitor", + "custom/tailscale", "pulseaudio", "network", "power-profiles-daemon", @@ -34,15 +36,15 @@ }, "format": "{capacity}% <span font-family='Font Awesome 6 Free'>{icon}</span>", "format-full": "{capacity}% <span font-family='Font Awesome 6 Free'>{icon}</span>", - "format-charging": "{capacity}% <span font-family='Font Awesome 6 Free'></span>", + "format-charging": "{capacity}% <span font-family='Font Awesome 6 Free'></span>", "format-plugged": "{capacity}% <span font-family='Font Awesome 6 Free'></span>", "format-alt": "{time} <span font-family='Font Awesome 6 Free'>{icon}</span>", "format-icons": ["", "", "", "", ""] }, "network": { - "format-wifi": "{essid} ({signalStrength}%) ", + "format-wifi": "{essid} ", "format-ethernet": "{ipaddr}/{cidr} <span font-family='Font Awesome 6 Free'></span>", - "tooltip-format": "{ifname} via {gwaddr} <span font-family='Font Awesome 6 Free'></span>", + "tooltip-format": "{essid} ({signalStrength}%) \n{ifname} via {gwaddr} <span font-family='Font Awesome 6 Free'></span>\n{ipaddr}/{cidr}", "format-linked": "{ifname} (No IP) <span font-family='Font Awesome 6 Free'></span>", "format-disconnected": "Disconnected <span font-family='Font Awesome 6 Free'>⚠</span>", "format-alt": "{ifname}: {ipaddr}/{cidr}" @@ -88,5 +90,31 @@ "suspend": "systemctl suspend", "hibernate": "systemctl hibernate" } - } + }, + "mpd": { + "format": " {stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {title}", + "format-disconnected": "⨯", + "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ", + "unknown-tag": "N/A", + "interval": 5, + "consume-icons": { + "on": " " + }, + "random-icons": { + "off": "", + "on": " " + }, + "repeat-icons": { + "on": " " + }, + "single-icons": { + "on": "1 " + }, + "state-icons": { + "paused": "", + "playing": "" + }, + "tooltip-format": "{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}%", + "tooltip-format-disconnected": "MPD (disconnected)" + }, } |