{
    "layer": "top", // Waybar at top layer
    "position": "top", // Waybar at the bottom of your screen
    "height": 30, // Waybar height
    // "width": 1366, // Waybar width
    // Choose the order of the modules
    "modules-left": ["hyprland/workspaces", "custom/spotify"],
    "modules-center": ["hyprland/window"],
    "modules-right": ["pulseaudio", "network", "cpu", "memory", "battery", "tray", "clock"],
    "hyprland/workspaces": {
        "disable-scroll": true,
        "all-outputs": false,
        "format": "{name}"
        },
    
    "tray": {
        // "icon-size": 21,
        "spacing": 10
    },
    "clock": {
        "format": "{:%I:%M}",
        "format-alt": "{:%Y-%m-%d}",
        "tooltip-format": "{calendar}",
        "calendar": {
            "mode"          : "year",
            "mode-mon-col"  : 3,
            "on-scroll"     : 1,
            "on-click-right": "mode",
            "format": {
                "months":     "{}",
                "days":       "{}",
                "weekdays":   "{}",
                "today":      "{}"
            }
        },
        "actions": {
            "on-click-right": "mode"
        }
    },
    // "cpu": {
    //     "format": "{usage}% "
    // },
    // "memory": {
    //     "format": "{}% ",
    //     "tooltip-format": "{used:0.1f}G/{total:0.1f}G"
    // },
    "battery": {
        "bat": "BAT1",
        "states": {
            "good": 85,
            "warning": 25,
            "critical": 15
        },
        "format": "{capacity}% {icon}",
        "format-charging": "{capacity}%  ",
        // "format-plugged": "{capacity}%  ",
        //"format-good": "", // An empty format will hide the module
        // "format-full": "",
        "format-icons": ["", "", "", "", ""]
    },
    // "network": {
    //     // "interface": "wlp2s0", // (Optional) To force the use of this interface
    //     // "format-wifi": "{essid} ({signalStrength}%) ",
    //     "format-wifi": "({signalStrength}%)",
    //     "format-alt": "{ipaddr}/{cidr}",
    //     "tooltip-format": "{ipaddr}/{cidr}",
    //     "format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
    //     "format-disconnected": "Disconnected ⚠"
    // },
    // "pulseaudio": {
    //     //"scroll-step": 1,
    //     "format": "{volume}% {icon}",
    //     "format-bluetooth": "{volume}% {icon}",
    //     "format-muted": "",
    //     "format-icons": {
    //         "headphones": "",
    //         "handsfree": "",
    //         "headset": "",
    //         "phone": "",
    //         "portable": "",
    //         "car": "",
    //         "default": ["", ""]
    //     },
        "on-click": "pavucontrol"
    },
    "custom/spotify": {
        "format": "{}",
        "max-length": 40,
        "interval": 10, // Remove this if your script is endless and write in loop
        "exec": "$HOME/.config/waybar/mediaplayer.sh 2> /dev/null", // Script in resources folder
        "exec-if": "pgrep spotify"
    },
    "custom/notification": {
        "tooltip": false,
        "format": "{icon}",
        "format-icons": {
          "notification": "",
          "none": "",
          "dnd-notification": "",
          "dnd-none": "",
          "inhibited-notification": "",
          "inhibited-none": "",
          "dnd-inhibited-notification": "",
          "dnd-inhibited-none": ""
        },
        "return-type": "json",
        "exec-if": "which swaync-client",
        "exec": "swaync-client -swb",
        "on-click": "swaync-client -t -sw",
        "on-click-right": "swaync-client -d -sw",
        "escape": true
      }
}