{
  "layer": "top",
  "position": "top",
  "margin-bottom": -10,
  "margin-top": 5,
  "spacing" : 0,

  "modules-left": [
  "clock",
  "cpu"
  ],

  "modules-center": ["hyprland/workspaces"],

  "modules-right": [
    "tray",
    "pulseaudio",
    "custom/micmute",
    "battery",
    "custom/power"
  ],

  "hyprland/workspaces": {
    "format": "{name}: {icon}",
    "format-icons": {
      "active": "",
      "default": ""
    }
  },

  "tray":{
      "spacing" : 10
    },


  "clock": {
    "timezone": "Europe/Dublin",
    "tooltip": false,
    "format": "{:%H:%M:%S  -  %A, %d}",
    "interval": 1
  },

  "cpu": {
    "interval": 1,
    "format": "  {icon0}{icon1}{icon2}{icon3} {usage:>2}%",
    "format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
  },


  
  "pulseaudio": {
    "format": "{icon}  {volume}%",
    "format-muted": "",
    "format-icons": {
      "default": ["", "", " "]
    },
    "on-click": "pamixer -t",
    "on-click-right": "pavucontrol"
  },

  "battery": {
	"interval":2,
        "states": {
            // "good": 95,
            "warning": 30,
            "critical": 15
        },
        "format": "{icon}  {capacity}%",
        "format-full": "{icon}  {capacity}%",
        "format-charging": " {capacity}%",
        "format-plugged": " {capacity}%",
        "format-alt": "{icon} {time}",
        // "format-good": "", // An empty format will hide the module
        // "format-full": "",
        "format-icons": ["", "", "", "", ""]
  },

  "custom/power":{
      "format": "⏻",
      "tooltip": false,
      "on-click": "wlogout"
    },

  "custom/micmute": {
  	"exec": "bash -c 'wpctl get-volume @DEFAULT_AUDIO_SOURCE@ | grep -q MUTED && echo \"\" || echo \"\"'",
  	"interval": 1,
  	"tooltip": true,
  	"on-click": "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
   }
}

