{
    "height": 30,
    "spacing": 4,
    "modules-left": ["sway/workspaces", "sway/mode"],
    "sway/mode": {
        "format": "<span style=\"italic\">{}</span>"
    },

    "modules-center": ["sway/window"],

    "modules-right": ["tray", "cpu", "memory", "backlight", "battery", "pulseaudio", "network", "clock"],
    "tray": {
        "spacing": 10
    },
    "cpu": {
        "format": "{usage}% 💻",
        "tooltip": false
    },
    "memory": {
        "format": "{}% "
    },

    "backlight": {
        "format": "{percent}% {icon}",
        "format-icons": ["", ""]
    },
    "battery": {
        "states": {
            "warning": 30,
            "critical": 15
        },
        "format": "{icon}: {time} ({capacity}%)",
        "format-charging": "{icon}: {time} ({capacity}% charging)",
        "format-plugged": "{icon}: {time} ({capacity}% plugged)",
        "format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"]
    },

    "pulseaudio": {
        "format": "{volume}% {icon} {format_source}",
        "format-bluetooth": "{volume}% {icon} {format_source}",
        "format-source": "{volume}% ",
        "format-source-muted": "",
        "format-icons": {
            "default": ["", "", ""]
        },
        "on-click": "pavucontrol"
    },
    "network": {
        "format": "{ipaddr}/{cidr}",
        "tooltip-format": "{ifname} via {gwaddr}",
        "format-disconnected": "Disconnected ⚠",
        "on-click": "cmst"
    },
    "clock": {
        "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
        "format": "{:%Y-%m-%d %H:%M}"
    },
}
