diff options
| author | anand <anand.panchdhari@gmail.com> | 2025-12-17 15:57:55 +0530 |
|---|---|---|
| committer | anand <anand.panchdhari@gmail.com> | 2025-12-17 15:57:55 +0530 |
| commit | b7ef29a8886a57aadb787807a7c6cf74c1f0ed3a (patch) | |
| tree | 366a68240fbc9da6b1d567bd6c46d1350ad814de /mango/waybar/config.jsonc | |
Nixos
Diffstat (limited to 'mango/waybar/config.jsonc')
| -rwxr-xr-x | mango/waybar/config.jsonc | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/mango/waybar/config.jsonc b/mango/waybar/config.jsonc new file mode 100755 index 0000000..598ae2c --- /dev/null +++ b/mango/waybar/config.jsonc @@ -0,0 +1,96 @@ +{ + "layer": "bottom", + "position": "top", + "height": 22, + "spacing": 4, + + "modules-left": ["ext/workspaces", "dwl/window#layout", "dwl/window"], + "modules-center": ["clock"], + "modules-right": ["tray", "battery", "cpu", "memory", "custom/playerctl", "pulseaudio"], + + "dwl/tags": { + "hide-vacant": false + }, + "ext/workspaces": { + "disable-scroll": false, + "format": "{icon}", + "on-click": "activate" + }, + + "dwl/window#layout": { + "format": "[{layout}]" + }, + + "dwl/window": { + "format": "{title}", + "rewrite": { + "(.*)(- Brave)(.*)": "$1", + "(.*)(- Thunar)(.*)": "$1", + "(.*)(kitty)(.*)": "Kitty", + "(.*)(kew)(.*)": "$1" + }, + "on-click": "", + "tooltip": false + }, + + "clock": { "format": "{:%I:%M %p <span color='#696969'>|</span> %b %d, %Y}", + "tooltip": false + }, + + "custom/playerctl": { + "exec": "/usr/bin/python3 /home/anand/dots/mango/waybar/mediaplayer.py", + "format": "{}", + "return-type": "json", + "on-click": "playerctl play-pause", + "on-click-right": "playerctl next" + }, + + "mpris": { + "format": "{stateIcon} {title}", + "format-disconnected": "Disconnected", + "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped", + "state-icons": { + "playing": "", + "paused": "" + }, + "tooltip-format": "{title}\nBy: {artist}\nFrom: {album}\n({elapsedTime:%M:%S}/{totalTime:%M:%S})\nVol. {volume}%", + "tooltip-format-disconnected": "MPD (disconnected)", + "on-click": "rmpc togglepause", + "on-click-right": "rmpc next", + "on-scroll-up": "rmpc volume +5", + "on-scroll-down": "rmpc volume -5" + }, + + + "tray": { + "icon-size": 16, + "spacing": 16, + "show-passive-items": true + }, + + "battery": { + "states": { + "warning": 33, + "critical": 10 + }, + "format": "{capacity}%" + }, + + "memory": { + "format": "<span color='#8A2BE2'></span>{used:0.1f}G/{total:0.1f}G", + "tooltip": false, + "interval": 5, + "tooltip-format": "{used:0.2f}G/{total:0.2f}G" + }, + + "pulseaudio": { + "scroll-step": 1, // %, can be a float + "format": "{icon} {volume}%", + "format-muted": "", + "format-icons": { + "default": ["", "", ""] + }, + "tooltip-format": false, + "on-click": "pavucontrol" + } +} |
