{
"position": "top", // Waybar position (top|bottom|left|right)
// "height": 22, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width
// "spacing": 20, // Gaps between modules (I turned it off in favor of spacing in CSS)
"modules-left": [
"custom/archicon",
"niri/workspaces",
"niri/window",
],
"modules-center": [],
"modules-right": [
"network",
"pulseaudio",
"battery",
"custom/separator",
"clock",
"custom/swaync",
],
"custom/archicon": {
"format": "",
"tooltip": false,
},
"niri/window": {
"format": "{app_id}",
},
"custom/swaync": {
"tooltip": false,
"format": "{icon}",
"format-icons": {
"notification": "",
"none": "",
"dnd-notification": "",
"dnd-none": "",
"inhibited-notification": "",
"inhibited-none": "",
"dnd-inhibited-notification": "",
"dnd-inhibited-none": ""
},
"return-type": "json",
"exec-if": "which swaync-client",
"exec": "swaync-client -swb",
"on-click": "swaync-client -t -sw",
"on-click-right": "swaync-client -d -sw",
"escape": true
},
"custom/separator": {
"format": "",
"tooltip": false,
},
"clock": {
// "timezone": "America/New_York",
"tooltip-format": "{:%Y %B}\n{calendar}",
"format": "{:%a %b %d %r}",
"interval": 1,
},
"battery": {
"states": {
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}",
// "format-full": "", we're never full, we're capped at 80.
"format-icons": ["", "", "", "", ""],
},
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": "{icon} {essid}",
"format-icons": ["", "", "", ""],
"format-ethernet": " {ipaddr}/{cidr}",
"tooltip-format": "{ifname} via {gwaddr}/{cidr}\ni am {ipaddr}/{cidr}\n{signalStrength}% strength at {bandwidthUpBytes} up and {bandwidthDownBytes} down",
"format-linked": " {ifname}:No IP",
"format-disconnected": "⚠ Disconnected",
"format-alt": "{ifname}={ipaddr}/{cidr}"
},
"pulseaudio": {
// "scroll-step": 1, // %, can be a float
"format": "{icon}{volume}% {format_source}",
"format-bluetooth": "{icon}{volume}% {format_source}",
"format-bluetooth-muted": "{icon} {format_source}",
"format-muted": " {format_source}",
"format-source": "{volume}%",
"format-source-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
},
}