{
"layer": "top", // Waybar at top layer
"position": "top", // Waybar at the bottom of your screen
"height": 35, // Waybar height
"modules-left": ["sway/workspaces"],
"modules-center": ["clock", "backlight"],
"modules-right": ["idle_inhibitor", "pulseaudio", "network", "battery", "tray"],
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": false,
"format": "{icon}",
"format-icons": {
"1": "web",
"2": "mu",
"3": "chat",
"4": "dev0",
"5": "dev1",
"6": "term0",
"7": "term1",
"8": "misc0",
"9": "misc1",
"urgent": "",
"active": "",
"default": ""
},
},
"sway/mode": {
"format": "{}"
},
"tray": {
"icon-size": 18,
"spacing": 8
},
"clock": {
"format": "{: %I:%M %A %B %d}",
},
"battery": {
"interval": 30,
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"full-at": "99",
"format": " {capacity}%",
"format-good": " {capacity}%", // An empty format will hide the module
"format-full": " Full",
"format-charging": " {capacity}% "
},
"network": {
"interval": 5,
"format-wifi": " {essid}",
"format-ethernet": " {ifname}",
"format-disconnected": "",
"on-click": "nm-connection-editor",
"tooltip-format-wifi": "{essid}:{signalStrength}\nSpeed:{bandwidthDownBits} \n{ipaddr}"
},
"pulseaudio": {
"scroll-step": 1,
"on-scroll-up": "amixer set Master 3%+",
"on-click": "pavucontrol",
"on-scroll-down": "amixer set Master 3%-",
"format": "",
"format": "{icon} {volume}%",
"format-source": "{icon} {volume}%",
"format-muted": " Muted",
"format-icons": {
"headset": "",
"headphone": "",
"default": ["", ""]
},
},
"backlight": {
"device": "intel_backlight",
"format": "",
"format-icons": ["", ""],
// "on-scroll-up": "brightnessctl set 1%+",
// "on-scroll-down": "brightnessctl set 1%-",
"on-click": "wlsunset"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": " Idle Inhibit On",
"deactivated": " Idle Inhibit Off",
},
},
}