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

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

  "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": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
  },

  "memory": {
	"interval": 1,
	"format": "{used:0.1f}G/{total:0.1f}G "
  },
  
  "pulseaudio": {
    "format": "{icon}  {volume}%",
    "format-muted": "",
    "format-icons": {
      "default": ["", "", " "]
    },
    "on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
    "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": "~/.config/waybar/scripts/micmute.sh",
	"restart-interval": 1,
  	"tooltip": true,
	"min-length": 2,
  	"on-click": "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
   }
}

