{
    "layer": "top", // Waybar at top layer
    "position": "top", // Waybar at the bottom of your screen
    "height": 35, // Waybar height
    "modules-left": ["sway/workspaces"],
    "modules-center": ["clock", "backlight"],
    "modules-right": ["pulseaudio", "network", "battery", "tray"],
    "sway/workspaces": {
        "disable-scroll": true,
        "all-outputs": false,
        // "format": "<span size='large'>{icon}</span>",
        // "format-icons": {
        //    "1": " ",
        //     "2": " ",
        //    "3": " ",
        //      "4": "",
        //   "5": "",
       //  }
    },

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

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

    "clock": {
        "format": "{: %I:%M %A %B %d}",
    },

    "battery": {
        "interval": 30,
        "on-scroll-up": "~/.scripts/ChangeBrightness 1%+",
        "on-scroll-down": "~/.scripts/ChangeBrightness 1%-",
        "on-click": "~/.scripts/ChangeBrightness 0%",
        "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}% "
    },

    "network": {
        "interval": 5,
        "format-wifi": "<span size='large' rise='-1000'></span> {essid}",
        "format-ethernet": "<span size='large' rise='-1000'></span> {ifname}",
        "format-disconnected": "",
        "on-click": "nm-applet",
        "tooltip-format-wifi": "{essid}:{signalStrength}\nSpeed:{bandwidthDownBits} \n{ipaddr}"

    },
    "pulseaudio": {
        "scroll-step": 1,
        "on-scroll-up": "amixer set Master 3%+",
        "on-scroll-down": "amixer set Master 3%-",
        "format": "",
        "format": "<span size='large' rise='-1600'>{icon}</span> {volume}%",
        "format-source": "<span size='large' rise='-1600'>{icon}</span> {volume}%",
        "format-muted": "<span size='large' rise='-1600'></span> Muted",
        "format-icons": {
            "headset": "",
            "headphone": "",
            "default": ["", ""]
        },
    },
    "backlight": {
        "device": "intel_backlight",
        "format": "",
        "format-icons": ["", ""],
        // "on-scroll-up": "brightnessctl set 1%+",
        // "on-scroll-down": "brightnessctl set 1%-",
        "on-click": "wlsunset"
    }
}
