{
    "layer": "top",
    "position": "top",
    "height": 30,
    "spacing": 0,
    "margin-top": 4,
    "margin-left": 8,
    "margin-right": 8,
    
    "modules-left": [
        "hyprland/window"
    ],
    
    "modules-center": [
        "hyprland/workspaces"
    ],
    
    "modules-right": [
        "custom/controls",
        "network",
        "battery",
        "clock",
        "custom/power"
    ],

    "hyprland/window": {
        "format": "{}",
        "max-length": 50,
        "separate-outputs": true
    },
    
    "hyprland/workspaces": {
        "format": "{icon}",
        "on-click": "activate",
        "format-icons": {
            "1": "•",
            "2": "•",
            "3": "•",
            "4": "•",
            "5": "•",
            "urgent": "",
            "active": "",
            "default": "·"
        },
        "persistent-workspaces": {
            "*": 5
        },
        "sort-by-number": true
    },
    
    "custom/controls": {
        "format": "󱁤",
        "on-click": "~/.config/waybar/scripts/control-center.sh",
        "tooltip": false
    },
    
    "clock": {
        "format": " {:%H:%M}",
        "format-alt": " {:%a %d %b}",
        "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
        "calendar": {
            "mode": "month",
            "format": {
                "months":     "<span color='#98971a'>{}</span>",
                "days":       "<span color='#458588'>{}</span>",
                "weeks":      "<span color='#b16286'>W{}</span>",
                "weekdays":   "<span color='#cc241d'>{}</span>",
                "today":      "<span color='#fb4934'><b>{}</b></span>"
            }
        }
    },
    
    "battery": {
        "states": {
            "good": 95,
            "warning": 30,
            "critical": 15
        },
        "format": "{icon}",
        "format-charging": "󰂄",
        "format-plugged": "",
        "format-alt": "{capacity}%",
        "format-icons": ["", "", "", "", ""]
    },
    
    "network": {
        "format-wifi": "󰤨",
        "format-ethernet": "󰈀",
        "format-linked": "󰈀",
        "format-disconnected": "󰤭",
        "tooltip-format": "{essid} ({signalStrength}%)",
        "on-click": "nm-connection-editor"
    },

    "custom/power": {
        "format": "󰐥",
        "on-click": "wlogout -b 4",
        "tooltip": false
    }
}
