{
// "layer": "top", // Waybar at top layer
"position": "bottom", // 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
// Choose the order of the modules
"modules-left": [
"sway/workspaces",
"sway/mode",
"sway/scratchpad",
"niri/workspaces"
],
"modules-center": [
"clock"
],
"modules-right": [
"battery",
"network",
"pulseaudio",
"group/hardware",
"custom/swaync",
],
"group/hardware": {
"orientation": "inherit",
"modules": [
"cpu",
"memory",
"temperature"
],
},
"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
},
"sway/mode": {
"format": "{}"
},
"sway/scratchpad": {
"format": "{icon} {count}",
"show-empty": false,
"format-icons": ["", ""],
"tooltip": true,
"tooltip-format": "{app}: {title}"
},
"clock": {
// "timezone": "America/New_York",
"tooltip-format": "{:%Y %B}\n{calendar}",
"format": "{:%a %b %d %r}",
"interval": 1,
},
"cpu": {
"format": " {usage}%",
},
"memory": {
"format": " {}%"
},
"temperature": {
// "thermal-zone": 2,
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}",
"format": "{icon} {temperatureC}°C",
"format-icons": ["", "", ""]
},
"battery": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-full": "{capacity}% {icon}",
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": ["", "", "", "", ""],
},
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": " {essid}:{signalStrength}%",
"format-ethernet": " {ipaddr}/{cidr}",
"tooltip-format": "{ifname} via {gwaddr} ",
"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": ["", "", ""]
},
},
}