[{
    "spacing": 4, // Gaps between modules (4px)
    "modules-left": ["sway/workspaces"],
    "modules-right": ["pulseaudio", "memory", "cpu", "battery", "network", "custom/pacman", "clock", "tray"],
    "memory": {
        "format": "\uf538 {used:0.1f}GiB",
        "on-click": "kitty --class kitty-scratch -c ~/.config/kitty/kitty-scratch.conf btop"
    },
    "tray": {
        "spacing": 10
    },
    "clock": {
        "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
        "format": "\uf017 {:%A %d/%m/%Y %H:%M}"
    },
    "cpu": {
        "format": "\uf2db {usage}%",
        "tooltip": false,
        "on-click": "kitty --class kitty-scratch -c ~/.config/kitty/kitty-scratch.conf btop"
    },
    "battery": {
        "states": {
            // "good": 95,
            "warning": 30,
            "critical": 15
        },
        "format": "{icon} {capacity}%",
        "format-charging": " {capacity}%",
        "format-plugged": " {capacity}%",
        "format-alt": "{icon} {time}",
        "format-icons": ["", "", "", "", ""]
    },
    "network": {
        // "interface": "wlp2*", // (Optional) To force the use of this interface
        "format-wifi": "\uf1eb {essid}",
        "format-ethernet": "\uf6ff {ifname}",
        "tooltip-format": "\f6ff {ifname} via {gwaddr}",
        "format-linked": "\uf6ff {ifname} (No IP)",
        "format-disconnected": "\uf071 Disconnected",
        "on-click": "kitty --class kitty-scratch -c ~/.config/kitty/kitty-scratch.conf nmtui"
    },
    "pulseaudio": {
        // "scroll-step": 1, // %, can be a float
        "format": "{icon} {volume}% {format_source}",
        "format-bluetooth": "{icon} {volume}% {format_source}",
        "format-bluetooth-muted": "{icon}  {format_source}",
        "format-muted": " {format_source}",
        "format-source": " {volume}%",
        "format-source-muted": "",
        "format-icons": {
            "headphone": "",
            "hands-free": "",
            "headset": "",
            "phone": "",
            "portable": "",
            "car": "",
            "default": ["", "", ""]
        },
        "on-click": "pavucontrol"
    },
    "custom/pacman": {
        "format": "{icon} {}",
        "return-type": "json",
        "escape": true,
        "format-icons": {
            "uptodate": "\uf00c",
            "available": "\uf019"
        },
        "interval": 600,
        "exec": "$HOME/.config/waybar/pacman.py '(?:^(?:linux-|sway|wl)|pipewire)' 2> /dev/null",
        "on-click": "kitty --class kitty-scratch -c ~/.config/kitty/kitty-scratch.conf zsh -i -c update"
    }
}]

