{
    "layer": "top",
    "position": "top",
    "height": 44,
    "modules-left": ["sway/workspaces"],
    "modules-center": ["clock","custom/padd","custom/weather"],
    "modules-right": ["custom/l_end","custom/music","custom/padd","pulseaudio","custom/padd","network", "custom/padd","battery","custom/padd","custom/wlsunset","custom/padd", "tray","custom/power","custom/padd"],
    "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-format": "<tt><big>{calendar}</big></tt>"
    },
    "custom/music": {
        "exec": "~/.config/waybar/scripts/music.py",
        "interval": 3,
        "tooltip": false
    },
    "custom/weather": {
        "exec": "~/.config/waybar/scripts/weather.py",
        "interval": 600,
        "tooltip": false
    },
    "battery": {
        "interval": 15,
        "states": {
            // "good": 95,
            "warning": 30,
            "critical": 15
        },
        "full-at":  "99",
        "format": "<span font='Font Awesome 5 Free 11'>{icon}</span> {capacity}%",
        "format-icons": ["󰁺","󰁻", "󰁼","󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"],
        "format-good": "󰁹 {capacity}%", // An empty format will hide the module
        "format-full": "󰁹 Full",
        "format-charging": "󱐋{capacity}% "
    },
    "custom/wlsunset": {
        "format": "<span size='large'>{icon}</span>",
        "format-icons": [""],
        "on-click": "wlsunset -l 47.6 -L -122.3 -t 3000 -T 6500"
    },
    "network": {
        "interval": 5,
        "format-wifi": " {essid}",
        "format-ethernet": "󰈀 {ifname}",
        "format-disconnected": "󰈂",
        "tooltip-format-wifi": "{essid}:{signalStrength}\nSpeed:{bandwidthDownBits} \n{ipaddr}",
        "on-click": "alacritty -e nmtui"
    },
    "pulseaudio": {
        "scroll-step": 1,
        "on-scroll-up": "amixer set Master 3%+",
        "on-click": "pavucontrol",
        "on-scroll-down": "amixer set Master 3%-",
        "format": "",
        "format": "<span size='large'>{icon}</span>  {volume}%",
        "format-muted": "",
        "format-icons": {
            "headset": "",
            "headphone": "",
            "default": ["", "", " "]
        },
    },

    "custom/power": {
        "format": "󰐥{}",
        //"exec": "echo ; echo  logout",
        "on-click": "wlogout -p layer-shell",
        "interval" : 86400, // once every day
        "tooltip": true
    },

    "custom/l_end": {
        "format": " ",
        "interval" : "once",
        "tooltip": false
    },

    "custom/r_end": {
        "format": " ",
        "interval" : "once",
        "tooltip": false
    },

    "custom/sl_end": {
        "format": " ",
        "interval" : "once",
        "tooltip": false
    },

    "custom/sr_end": {
        "format": " ",
        "interval" : "once",
        "tooltip": false
    },

    "custom/rl_end": {
        "format": " ",
        "interval" : "once",
        "tooltip": false
    },

    "custom/rr_end": {
        "format": " ",
        "interval" : "once",
        "tooltip": false
    },

    "custom/padd": {
        "format": "  ",
        "interval" : "once",
        "tooltip": false
    }
}
