{
"layer": "top",
"position": "top",
"modules-left": [
"clock",
"custom/window"
],
"modules-center": [
"sway/workspaces"
],
"modules-right": [
"custom/gsr",
"group/tray-group",
"group/brightness-group",
"group/hardware",
"network",
"custom/vpn",
"pulseaudio",
"bluetooth",
"battery"
],
"sway/workspaces": {
"all-outputs": true,
"format": "{name}"
},
"clock": {
"format": "{:%a, %b %d/%m/%y %H:%M}",
"interval": 60,
"tooltip-format": "{:%B %Y}\n{calendar}"
},
"battery": {
"interval": 60,
"max-length": 25,
"states": {
"good": 95,
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-icons": {
"default": [
"",
"",
"",
"",
""
],
"charging": [
"",
"",
"",
"",
"",
"",
"",
""
]
},
"format-plugged": " {capacity}%",
"format-full": " {capacity}%"
},
"bluetooth": {
"format": " {num_connections}",
"format-disabled": " DC'D",
"format-connected": " {num_connections}",
"tooltip-format": "Devices connected: {num_connections}\n{device_alias} at {device_battery_percentage}%",
"on-click": "kitty --app-id=TUI.float -e bluetui",
"on-click-right": "rfkill toggle bluetooth"
},
"pulseaudio": {
"format": "{icon} {volume}%",
"format-bluetooth": "{icon} {volume}%",
"format-muted": " MUTED",
"format-icons": {
"alsa_output.pci-0000_00_1f.3.analog-stereo": "",
"alsa_output.pci-0000_00_1f.3.analog-stereo-muted": " MUTED",
"headphone": "",
"headset": "",
"phone": "",
"phone-muted": "",
"portable": "",
"car": "",
"default": [
"",
""
]
},
"scroll-step": 5,
"tooltip-format": "{desc}",
"on-click": "pavucontrol-qt"
},
"network": {
"interface": "wlo1",
"format": "{ifname}",
"format-icons": [
"",
"",
"",
""
],
"format-wifi": "{icon} {signalStrength}%",
"format-ethernet": " {ipaddr}/{cidr}",
"format-disconnected": " DC'D",
"tooltip-format-wifi": "{icon} {essid} ({signalStrength}%)",
"tooltip-format-ethernet": " {ifname} via {gwaddr}",
"tooltip-format-disconnected": " DC'D",
"max-length": 50,
"interval": 60,
"on-click": "kitty --app-id TUI.float -e wifitui",
"on-click-right": "rfkill toggle wlan"
},
"custom/vpn": {
"format": " {}",
"exec": "~/.local/bin/waybar-vpn",
"return-type": "json",
"interval": 30,
"signal": 9
},
// Hardware group
"group/hardware": {
"orientation": "horizontal",
"modules": [
"cpu",
"memory",
"temperature"
]
},
"cpu": {
"interval": 3,
"format": " {usage}%",
"max-length": 10
},
"memory": {
"interval": 30,
"format": " {}%",
"max-length": 10
},
"temperature": {
// "thermal-zone": 2,
// "hwmon-path": ["/sys/class/hwmon/hwmon2/temp1_input", "/sys/class/thermal/thermal_zone0/temp"],
// "critical-threshold": 80,
// "format-critical": "{temperatureC}°C ",
"format": " {temperatureC}°C"
},
// Brightness display
"group/brightness-group": {
"orientation": "horizontal",
"drawer": {
"transition-duration": 500,
"children-class": "brightness-child",
"transition-left-to-right": false
},
"modules": [
"custom/brightness-icon",
"backlight",
"custom/brightness"
]
},
"backlight": {
"device": "intel_backlight",
"format": "{icon} {percent}%",
"tooltip-format": "Built-in: {percent}%",
"format-icons": [
"",
""
]
},
"custom/brightness-icon": {
"format": "",
"tooltip-format": ""
},
"custom/brightness": {
"format": " {}%",
"interval": "once",
"signal": 9,
"exec": "~/.local/bin/waybar-brightness get",
"on-scroll-up": "~/.local/bin/waybar-brightness up",
"on-scroll-down": "~/.local/bin/waybar-brightness down",
"on-click": "~/.local/bin/waybar-brightness left_click",
"on-click-right": "~/.local/bin/waybar-brightness right_click",
"tooltip-format": "HDMI: {}%"
},
"custom/window": {
"exec": "~/.local/bin/waybar-window",
"exec-if": "~/.local/bin/waybar-window",
"format": "{}",
"return-type": "json",
"max-length": 60,
"tooltip": false,
// titles where special characters are present weren't being shown
// this solves that
"escape": true
},
"custom/gsr": {
"exec": "~/.local/bin/waybar-record",
"return-type": "json",
"tooltip": false
},
// Tray drawer group
"group/tray-group": {
"orientation": "horizontal",
"drawer": {
"transition-duration": 300,
"transition-left-to-right": true
},
"modules": [
"custom/tray-drawer",
"tray"
]
},
"custom/tray-drawer": {
"format": "",
"tooltip": false
},
"tray": {
"icon-size": 16,
"spacing": 4
}
}