{
  "layer": "top",
  "position": "top",
  "margin-bottom": -10,
  "spacing" : 0,
  "modules-left": [
  	"hyprland/workspaces",
  	"custom/uptime",
  	"cpu",
	"tray"
  ],

  "modules-center": ["clock"],

  "modules-right": [
    "custom/music",
    "bluetooth",
    "network",
    "pulseaudio", 
    "backlight",
    "battery",
  ],

  "hyprland/workspaces": {
    "format": "{icon} {windows}",
    "format-window-separator": " ",
    "all-outputs": true,
    "persistent-workspaces": {
    	"*": 5
    },
    "window-rewrite-default": " ",
    "window-rewrite": {		
	"title<.*amazon.*>": " ",
	"title<.*reddit.*>": " ",

	"class<firefox|org.mozilla.firefox|librewolf|floorp|mercury-browser|[Cc]achy-browser>": " ",
	"class<zen>": "󰰷 ",
	"class<waterfox|waterfox-bin>": " ",
	"class<microsoft-edge>": " ",
	"class<Chromium|Thorium|[Cc]hrome>": " ",
	"class<brave-browser>": "🦁 ",
	"class<tor browser>": " ",
	"class<firefox-developer-edition>": "🦊 ",

	"class<kitty|konsole>": " ",
	"class<kitty-dropterm>": " ",
	"class<com.mitchellh.ghostty>": " ",
	"class<org.wezfurlong.wezterm>": " ",

	"class<[Tt]hunderbird|[Tt]hunderbird-esr>": " ",
	"class<eu.betterbird.Betterbird>": " ",
	"title<.*gmail.*>": "󰊫 ",

	"class<[Tt]elegram-desktop|org.telegram.desktop|io.github.tdesktop_x64.TDesktop>": " ",
	"class<discord|[Ww]ebcord|Vesktop>": " ",
	"title<.*whatsapp.*>": " ",
	"title<.*zapzap.*>": " ",
	"title<.*messenger.*>": " ",
	"title<.*facebook.*>": " ",
	"title<.*reddit.*>": " ",


	
	"title<.*youtube.*>": " ",
	"class<vlc>": "󰕼 ",
	"title<.*cmus.*>": " ",
	"class<[Ss]potify>": " ",
	"class<Plex>": "󰚺 ",

	"class<virt-manager>": " ",
	"class<.virt-manager-wrapped>": " ",
	"class<virtualbox manager>": "💽 ",
	"title<virtualbox>": "💽 ",
	"class<remmina>": "🖥️ ",

	"class<VSCode|code-url-handler|code-oss|codium|codium-url-handler|VSCodium>": "󰨞 ",
	"class<dev.zed.Zed>": "󰵁",
	"class<codeblocks>": "󰅩 ",
	"title<.*github.*>": " ",
	"class<mousepad>": " ",
	"class<libreoffice-writer>": " ",
	"class<libreoffice-startcenter>": "󰏆 ",
	"class<libreoffice-calc>": " ",
	"title<.*nvim ~.*>": " ",
	"title<.*vim.*>": " ",
	"title<.*nvim.*>": " ",
	"title<.*figma.*>": " ",
	"title<.*jira.*>": " ",
	"class<jetbrains-idea>": " ",
	"class<obs|com.obsproject.Studio>": " ",

	"class<polkit-gnome-authentication-agent-1>": "󰒃 ",
	"class<nwg-look>": " ",
	"class<[Pp]avucontrol|org.pulseaudio.pavucontrol>": "󱡫 ",
	"class<steam>": " ",
	"class<thunar|nemo>": "󰝰 ",	
	"class<Gparted>":"",
	"class<gimp>": " ",
	"class<emulator>": "📱 ",
	"class<android-studio>": " ",
	"class<org.pipewire.Helvum>": "󰓃",
	"class<localsend>":"",
	"class<PrusaSlicer|UltiMaker-Cura|OrcaSlicer>": "󰹛",
     }
  },

  "bluetooth": {
    "format": "󰂲",
    "format-on": "{icon}",
    "format-off": "{icon}", 
    "format-connected":"{icon}",
    "format-icons":{
        "on":"󰂯",
        "off": "󰂲",
        "connected": "󰂱",
        },
    "on-click": "blueman-manager",
    "tooltip-format-connected":"{device_enumerate}"
  },

  "custom/music": {
    "format": "  {}",
    "escape": true,
    "interval": 5,
    "tooltip": false,
    "exec": "playerctl metadata --format='{{ artist }} - {{ title }}'",
    "on-click": "playerctl play-pause",
    "max-length": 50
  },

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

  "network": {
    "format-wifi": "󰤢",
    "format-ethernet": "󰈀 ",
    "format-disconnected": "󰤠 ",
    "interval": 5,
    "tooltip-format": "{essid} ({signalStrength}%)",
    "on-click": "nm-connection-editor"

 },

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

  "memory": {
    "interval": 30,
    "format": "  {used:0.1f}G/{total:0.1f}G",
    "tooltip-format": "Memory"
  },

  "custom/uptime": {
    "format": "{}",
    "format-icon": [""], 
    "tooltip": false,
    "interval": 1600,
    "exec": "$HOME/.config/waybar/scripts/uptime.sh"
  },
  
  "backlight": {
        "format": "{icon}  {percent}%",
        "format-icons": ["","󰃜", "󰃛", "󰃞","󰃝","󰃟","󰃠"],
        "tooltip": false
  },
  
  "pulseaudio": {
    "format": "{icon}  {volume}%",
    "format-muted": "",
    "format-icons": {
      "default": ["", "", " "]
    },
    "on-click": "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/lock": {
  "tooltip": false,
  "on-click": "sh -c '(sleep 0s; hyprlock)' & disown",
  "format" : ""
  },

}

