{
"layer": "top",
"position": "top",
"height": 28,
"modules-left": ["sway/workspaces", "sway/mode"],
"modules-center": ["sway/window"],
"modules-right": ["tray", "pulseaudio", "network", "network#wireguard", "temperature", "custom/storage", "memory", "cpu", "backlight", "sway/language", "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 %z}",
"tooltip": false
},
"clock#date": {
"interval": 10,
"format": " {:%a %d %b} ",
"tooltip": true,
"tooltip-format": "{:%Y %B}\n{calendar}"
},
"sway/language": {
"format": "{short}",
"tooltip": false
},
"memory": {
"interval": 5,
"format": "{}%",
"states": {
"warning": 70,
"critical": 90
},
"on-click": "exec alacritty -e ytop"
},
"cpu": {
"interval": 5,
"format": "{usage:2}%",
"states": {
"warning": 70,
"critical": 90
}
},
"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": "",
"format-wifi": "{icon}{essid} ({signalStrength}%)",
"format-ethernet": "{icon}{ifname}",
"format-alt": "{icon}{ifname}:{ipaddr}(/{cidr})",
"format-linked": "{ifname} (No IP)",
"format-icons": {
"wifi": [""],
"ethernet": ["🖧"],
"disconnected": ["disconnected"]
},
"on-click-right": "nm-connection-editor",
"tooltip": false
},
"network#wireguard": {
"interface": "*wg*",
"format": "",
"format-wifi": "🐉",
"format-ethernet": "🐉",
"format-linked": "{ifname}: (No IP)🐉",
"format-disconnected": "",
"format-alt": "{ifname}:{ipaddr}/{cidr}🐉",
"tooltip": false
},
"temperature": {
"format": "{temperatureC}°C",
"thermal-zone": 2,
"critical-threshold": 53,
"format-critical": "{temperatureC}°C",
"interval": 10
},
"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": 40,
"exec": "~/.config/waybar/modules/storage.sh"
},
"tray": {
"icon-size": 18
},
// vim: ft=json ff=unix noexpandtab
}