{
"layer": "top", // Waybar at top layer
// "position": "top", // Waybar position (top|bottom|left|right)
// "height": 30, // Waybar height (to be removed for auto height)
"modules-left": [
"hyprland/workspaces",
"tray",
"custom/dnd-toggle",
"custom/pkg-update-count",
"network",
"bluetooth",
"pulseaudio#output",
"pulseaudio#input",
"mpris"
],
"modules-right": [
"hyprland/window",
"backlight",
"battery",
"custom/gpu-temp",
"custom/gpu-usage",
"memory",
"custom/cpu-temp",
"cpu",
"clock"
],
"hyprland/workspaces": {
"disable-scroll": true,
"all-outputs": false,
"on-click": "activate",
"format": "{name}"
},
"tray": {
// "icon-size": 21,
"spacing": 8
},
"custom/dnd-toggle": {
"exec": "$HOME/.config/waybar/dnd-toggle.sh --no-toggle",
"interval": "once",
"on-click": "$HOME/.config/waybar/dnd-toggle.sh; pkill -SIGRTMIN+2 waybar",
"signal": 2,
"tooltip": false,
"return-type": "json",
"format": "{icon} NF",
"format-icons": {
"dnd-enabled": "",
"dnd-disabled": ""
}
},
"custom/pkg-update-count": {
"exec": "$HOME/.config/waybar/pkg-update-count.sh",
"interval": 3600,
"on-click": "$HOME/.config/waybar/pkg-update-count.sh",
"signal": 3,
"return-type": "json",
"format": "{icon} {}",
"format-icons": {
"error": "",
"no-update": "",
"update-available": ""
}
},
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
"interval": 5,
"format-wifi": " {essid} ({frequency}GHz) {bandwidthDownBytes} {bandwidthUpBytes}",
"format-ethernet": " {bandwidthDownBytes} {bandwidthUpBytes}",
"tooltip-format-wifi": "{essid} ({signalStrength}%) - {frequency}GHz\n {bandwidthDownBytes} | {bandwidthUpBytes}",
"tooltip-format-ethernet": "{ipaddr}/{cidr}\n {bandwidthDownBytes} | {bandwidthUpBytes}",
"format-linked": " {ifname} (No IP)",
"format-disconnected": " Disconnected",
"on-click-right": "nm-connection-editor"
},
"bluetooth": {
"format": "",
"format-connected": " {device_alias}",
"format-connected-battery": " {device_alias} {device_battery_percentage}%",
// "format-device-preference": [ "device1", "device2" ], // preference list deciding the displayed device
"tooltip-format": "{controller_alias} ({controller_address})\n{num_connections} connected",
"tooltip-format-connected": "{controller_alias} ({controller_address})\n{num_connections} connected\n\n{device_enumerate}",
"tooltip-format-enumerate-connected": "{device_alias} {device_address}",
"tooltip-format-enumerate-connected-battery": "{device_alias} {device_address} {device_battery_percentage}%",
"on-click": "$HOME/.config/waybar/bluetooth-toggle-power.sh",
"on-click-right": "blueman-manager"
},
"pulseaudio#output": {
"on-click": "swayosd-client --output-volume=mute-toggle",
"on-click-right": "pavucontrol",
"on-scroll-up": "swayosd-client --output-volume=raise",
"on-scroll-down": "swayosd-client --output-volume=lower",
"scroll-step": 5,
"smooth-scrolling-threshold": 1,
"format": "{icon} {volume}%",
"format-muted": " {volume}%",
"format-bluetooth": "(){icon} {volume}%",
"format-bluetooth-muted": "() {volume}%",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
}
},
"pulseaudio#input": {
"on-click": "swayosd-client --input-volume=mute-toggle",
"on-click-right": "pavucontrol",
"on-scroll-up": "swayosd-client --input-volume=raise",
"on-scroll-down": "swayosd-client --input-volume=lower",
"scroll-step": 5,
"smooth-scrolling-threshold": 1,
"format": "{format_source}",
"format-muted": "{format_source}",
"format-bluetooth": "(){format_source}",
"format-bluetooth-muted": "(){format_source}",
"format-source": " {volume}%",
"format-source-muted": " {volume}%"
},
"mpris": {
"interval": 2,
"format": " {status_icon} {title}",
"ignored-players": ["firefox"],
"status-icons": {
"playing": "",
"paused": "",
"stopped": ""
},
"max-length": 35
},
"hyprland/window" : {
"format": "{}",
"separate-outputs": true,
"max-length": 35
},
"backlight": {
"on-scroll-up": "swayosd-client --brightness=raise",
"on-scroll-down": "swayosd-client --brightness=lower",
"format": "{icon} {percent}%",
"format-icons": ["", "", "", "", "", "", "", "", ""],
"scroll-step": 5,
"smooth-scrolling-threshold": 1
},
"battery": {
"interval": 15,
"states": {
"100": 100,
"90": 90,
"80": 80,
"70": 70,
"60": 60,
"50": 50,
"40": 40,
"30": 30,
"20": 20,
"10": 10
},
"format-time": "{H}:{m}",
"format": "{icon} {capacity}% ({time})",
"format-icons": ["", "", "", "", "", "", "", "", "", "", ""],
"format-plugged": " {capacity}% ({time})",
"format-full": "{icon} {capacity}%",
"format-charging-100": " {capacity}%",
"format-charging-90": " {capacity}% ({time})",
"format-charging-80": " {capacity}% ({time})",
"format-charging-70": " {capacity}% ({time})",
"format-charging-60": " {capacity}% ({time})",
"format-charging-50": " {capacity}% ({time})",
"format-charging-40": " {capacity}% ({time})",
"format-charging-30": " {capacity}% ({time})",
"format-charging-20": " {capacity}% ({time})",
"format-charging-10": " {capacity}% ({time})",
"tooltip-format": "{timeTo}\nPower draw: {power}W"
},
"custom/gpu-temp": {
"exec": "$HOME/.config/waybar/gpu-temp.sh",
"interval": 5,
"return-type": "json",
"format": "{icon} {}",
"format-icons": {
"low": "",
"normal": "",
"high": "",
"alert": ""
}
},
"custom/gpu-usage": {
"exec": "$HOME/.config/waybar/gpu-usage.sh",
"return-type": "json",
"format": " {}",
"interval" : 5
},
"memory": {
"format": " {used}GiB",
"interval": 5
},
"custom/cpu-temp": {
"exec": "$HOME/.config/waybar/cpu-temp.sh",
"interval": 5,
"return-type": "json",
"format": "{icon} {}",
"format-icons": {
"low": "",
"normal": "",
"high": "",
"alert": ""
}
},
"cpu": {
"format": " {usage}%",
"interval": 5
},
"clock": {
"interval": 1,
"format": " {:%a %e %b %EX}",
"tooltip-format": "{calendar}",
"calendar": {
"mode": "month",
"format": {
"months": "{}",
"days": "{}",
"weekdays": "{}",
"today": "{}"
}
}
}
}