{
"layer": "top",
"position": "top",
"height": 28,
"modules-left": ["sway/workspaces", "sway/mode"],
"modules-center": ["sway/window"],
"modules-right": ["tray", "pulseaudio", "network", "custom/storage", "memory", "cpu", "backlight", "battery", "clock#date", "clock#time"],
"sway/workspaces": {
"all-outputs": false,
"format": "{name}",
"disable-scroll": true,
"disable-markup" : false
},
"sway/mode": {
"format": "{}", // Icon: expand-arrows-alt
"tooltip": false
},
"sway/window": {
"max-length": 120,
"tooltip": false
},
"clock#time": {
"interval": 1,
"format": "{:%H:%M:%S} ",
"tooltip": false
},
"clock#date": {
"interval": 10,
"format": " {:%a %d %b} ",
"tooltip": true,
"tooltip-format": "{:%Y %B}\n{calendar}"
},
"memory": {
"interval": 5,
"format": "{}% ",
"on-click": "exec alacritty -e ytop"
},
"cpu": {
"interval": 5,
"format": "{usage:2}% "
},
"backlight": {
"interval": 10,
"device": "acpi_video1",
"format": "{percent}% {icon}",
"format-icons": ["☁️", "🌥️", "⛅", "☀️"]
},
"battery": {
"format": "{capacity}% {icon}",
"format-alt": "{time} {icon}",
"format-icons": ["", "", "", "", ""],
"format-charging": "~{capacity}%",
"format-plugged": "🔌{capacity}%",
"interval": 30,
"states": {
"good": 85,
"warning": 30,
"critical": 15
},
"tooltip": false
},
"network": {
"format-wifi": "{icon} {essid} ({signalStrength}%) ",
"format-ethernet": "{icon} {ifname}: {ipaddr}/{cidr}",
"format-linked": "{ifname} (No IP)",
"format-icons": {
"wifi": [""],
"ethernet": ["🖧"],
"disconnected": ["disconnected"]
},
"on-click": "nm-connection-editor",
"on-click-right": "exec kitty nmtui",
"rotate": true,
"tooltip": false
},
"pulseaudio": {
"format": "{icon} {volume}% {format_source}",
"format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": "🔇 {icon} {format_source}",
"format-muted": "✖ {format_source}",
"format-source": " {volume}%",
"format-source-muted": "",
"format-icons": {
"speaker": "💻",
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"scroll-step": 1,
"on-click": "pavucontrol",
"on-click-right": "blueman-manager",
"tooltip": false
},
"custom/storage": {
"format": "{percentage}% ",
"format-alt": "{} ",
"format-alt-click": "click",
"return-type": "json",
"interval": 60,
"exec": "~/.config/waybar/modules/storage.sh"
},
"tray": {
"icon-size": 18
}
}