{
    "height": 27, // Waybar height (to be removed for auto height)
    "margin-top": 3,
    "margin-left": 10,
    "margin-bottom": 0,
    "margin-right": 10,
    "spacing": 5, // Gaps between modules (4px)
    "modules-left": [ "battery","bluetooth","temperature","idle_inhibitor"],
    "modules-center": ["wlr/workspaces", "custom/recorder"],
    "modules-right": ["backlight","tray", "pulseaudio", "network",  "clock"],
    "wlr/workspaces": {
      "format": "{icon}",
      "format-icons": {
        "1": "",
        "2": "",
        "3": "",
        "4": "",
        "5": "",
        "urgent": "",

        "active": "",
        "default": ""
      },
    },
  "idle_inhibitor": {
      "format": "{icon}",
      "format-icons": {
          "activated": "",
          "deactivated": ""
      },
  },
   "temperature": {
      "interval": 30,
      "thermal-zone": 2,
      "critical-threshold": 70,
      "format-critical": "{temperatureC}°C ",
      "format": "{temperatureC}°C "
    },
    "hyprland/window": {
        "format": "{}"
    },
    "tray": {
        "icon-size": 13,
        "tooltip": false,
        "spacing": 10
    },

    "custom/recorder": {
      "format": "",
      "return-type": "json",
      "interval": 1,
      "exec": "echo '{\"class\": \"recording\"}'",
      "exec-if": "pgrep wf-recorder"
    },
    
    "clock": {
        "format": "<span color='#bf616a'> </span>{:%I:%M %p}",
        "format-alt": "<span color='#bf616a'> </span>{:%a %b %d}",
        "tooltip-format": "<big>{:%B %Y}</big>\n<tt><small>{calendar}</small></tt>",
    },

    "backlight": {
        "device": "DP-1",
        "format": "{icon} {percent}%",
        "format-icons": ["", "", "", "", "", "", "", "", ""],
        "on-click": "",
    },
    "network": {
        "interval": 5,
        "format-wifi": "直 {signalStrength}%",
        "format-ethernet": " wired",
        "format-disconnected": "睊",
        "on-click": "nmcli radio wifi off"
    },

    "pulseaudio": {
        "format": "{icon} {volume}%",
        "format-bluetooth": "  {volume}%",
        "format-bluetooth-muted": "婢 ",
        "format-muted": "婢",
        "format-icons": {
            "headphone": "",
            "hands-free": "",
            "headset": "",
            "phone": "",
            "portable": "",
            "car": "",
            "default": ["", "", ""]
        },
    },

    "bluetooth": {
        "interval": 60,
        "format": " {status}",
        "on-click": "bluetoothctl power off",
    },

    "battery": {
      "interval": 60,
      "states": {
          "warning": 30,
          "critical": 15
      },
      "max-length": 20,
      "format": "{icon} {capacity}%",
      "format-warning": "{icon} {capacity}%",
      "format-critical": "{icon} {capacity}%",
      "format-charging": "<span font-family='Font Awesome 6 Free'></span> {capacity}%",
      "format-plugged": "  {capacity}%",
      "format-alt": "{icon} {time}",
      "format-full": "  {capacity}%",
      "format-icons": [" ", " ", " ", " ", " "],
    },
}
