{
    "layer": "top",
    "position": "top",
    "height": 35,
    "modules-left": ["sway/workspaces"],
    "modules-center": ["clock", "custom/wlsunset"],
    "modules-right": ["idle_inhibitor", "pulseaudio", "network", "battery", "tray"],
    "sway/workspaces": {
        "disable-scroll": true,
        "all-outputs": true,
        "format": "<span size='large'>{icon}</span>",
    },

    "sway/mode": {
        "format": "<span style='italic'>{}</span>"
    },

    "tray": {
        "icon-size": 18,
        "spacing": 8
    },

    "clock": {
        "format": "{: %H:%M %A %B %d}",
        "tooltip": false
    },

    "battery": {
        "interval": 30,
        "states": {
            // "good": 95,
            "warning": 30,
            "critical": 15
        },
        "full-at":  "99",
        "format": " {capacity}%",
        "format-good": " {capacity}%", // An empty format will hide the module
        "format-full": "<span size='large' rise='-1600'></span> Full",
        "format-charging": "<span size='large' rise='-1600'></span> {capacity}% "
    },
    "custom/wlsunset": {
        "format": "",
        "format-icons": ["", ""],
        "on-click": "wlsunset -l 47.6 -L -122.3 -t 3000 -T 6500"
    },
    "network": {
        "interval": 5,
        "format-wifi": "<span size='large' rise='-1000'></span> {essid}",
        "format-ethernet": "<span size='large' rise='-1000'></span> {ifname}",
        "format-disconnected": "",
        "tooltip-format-wifi": "{essid}:{signalStrength}\nSpeed:{bandwidthDownBits} \n{ipaddr}"

    },
    "pulseaudio": {
        "scroll-step": 1,
        "on-scroll-up": "amixer set Master 3%+",
        "on-click": "pavucontrol",
        "on-scroll-down": "amixer set Master 3%-",
        "format": "",
        "format": "Vol: {volume}%",
        "format-muted": "Muted",
        //"format-icons": {
        //    "headset": "",
        //    "headphone": "",
        //    "default": ["", "", " "]
        // },
    },
    "idle_inhibitor": {
        "format": "<span rise='-4000' size='large'>{icon}</span>",
        "format-icons": {
            "activated": "Idle Inhibit: On",
            "deactivated": "Idle Inhibit: Off",
        },
    },
}
