{
    "layer": "top", // Waybar at top layer
    "height": 28, // Waybar height (to be removed for auto height)
    "spacing": 4, // Gaps between modules (4px)
    "output": "eDP-1",
    "modules-left": ["wlr/taskbar"],
    "modules-center": ["hyprland/workspaces"],
    "modules-right": ["tray", "wireplumber", "cpu#cpu2", "cpu", "memory", "custom/updates", "temperature", "battery", "clock"],
    "wlr/taskbar": {
        "on-click": "activate",
        "on-click-right": "close",
        "format": "{icon}  {title:.15}"
    },
    "wireplumber": {
        "format": "{icon}   {volume}%",
        "format-muted": "",
        "on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
        "format-icons": ["", "", ""]
    },
    "hyprland/workspaces": {
        "disable-scroll": true,
        "all-outputs": true,
        "warp-on-scroll": false,
        "format": "{name}"
    },
    "hyprland/window": {
        "max-length": 50,
    },
    "tray": {
        // "icon-size": 21,
        "spacing": 10
    },
    "clock": {
        "timezone": "Europe/Brussels",
        "format": "{:%H:%M:%S}",
        "interval": 1,
        "format-alt": "{:%Y-%m-%d %H:%M:%S}"

    },
    "cpu": {
        "format": "{max_frequency}GHz",
        "tooltip": false,
        "interval": 5
    },
    "cpu#cpu2": {
        "format": "CPU {usage}%",
        "tooltip": false,
        "interval": 5
    },
    "custom/updates": {
        "exec": "bash -c \"checkupdates | wc -l\"",
        "on-click": "alacritty -e bash -c \"yay ; echo '\nDone, press any key to exit...' ; read\"",
        "interval": 60,
        "format": "{}   ",
    },
    "memory": {
        "interval": 5,
        "format": "{used:0.2f}G"
    },
    "temperature": {
        // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
        "thermal-zone": 6,
        "interval": 5,
        "critical-threshold": 80,
        // "format-critical": "{temperatureC}°C {icon}",
        "format": "{temperatureC}°C",
        // "format-icons": ["", "", ""]
    },
    "battery": {
        "states": {
            // "good": 95,
            "warning": 30,
            "critical": 15
        },
        "format": "{icon}",
        "tooltip-format": "{capacity}% ({time})",
        "format-plugged": "{capacity}% ",
        "format-alt": "{capacity}% {time} {icon}",
        "format-icons": [" ", " ", " ", " ", " "]
    },
}
