{
    "layer": "top",
    "position": "top",
    "height": 28,
    "spacing": 4,
    "modules-left": [
        "hyprland/workspaces",
        "hyprland/submap",
    ],
    "modules-center": [
    ],
    "modules-right": [
				"custom/homeassistant",
        "pulseaudio",
        "cpu",
        "memory",
        "battery",
				"network",
        "clock",
        "tray",
				"custom/power",
    ],
    "hyprland/workspaces": {
        "all-outputs": false,
        "format": "{name}",
     },
    "hyprland/submap": {
        "format": "<span style=\"italic\">{}</span>"
    },
		"cava": {
        "cava_config": "$XDG_CONFIG_HOME/cava/cava.conf",
        "framerate": 30,
        "autosens": 1,
        "sensitivity": 100,
        "bars": 14,
        "lower_cutoff_freq": 50,
        "higher_cutoff_freq": 10000,
        "method": "pulse",
        "source": "auto",
        "stereo": true,
        "reverse": false,
        "bar_delimiter": 0,
        "monstercat": false,
        "waves": false,
        "noise_reduction": 0.77,
        "input_delay": 2,
        "format-icons" : ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█" ],
        "actions": {
                   "on-click-right": "mode"
                   }
    },
    "clock": {
        "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
				"format" : "{:%d.%m.%Y %T}",
				"interval" : 1,
				"on-click" : "brave calendar.proton.me && hyprctl dispatch focuswindow Brave-browser"
    },
    "cpu": {
        "format": "{usage}% ",
        "tooltip": false
    },
    "memory": {
        "format": "{}% "
    },
    "battery": {
        "states": {
            "good": 95,
            "warning": 30,
            "critical": 15
        },
        "format": "{capacity}% {icon}",
        "format-charging": "{capacity}% 󱐋",
        "format-plugged": "{capacity}% ",
        "format-icons": ["", "", "", "", ""]
    },
		"network": {
				"interface": "wlp0s20f3",
				"format": "{essid} ({signalStrength}%)  ",
				"format-wifi": "{essid} ({signalStrength}%) ",
				"format-ethernet": "{ipaddr}/{cidr} 󰊗",
				"format-disconnected": "", //An empty format will hide the module.
				"tooltip-format": "{ifname} via {gwaddr} 󰊗",
				"tooltip-format-wifi": "{essid} ({signalStrength}%) ",
				"tooltip-format-ethernet": "{ifname} ",
				"tooltip-format-disconnected": "Disconnected",
				"max-length": 50
		},
    "pulseaudio": {
        "format": "{volume}% {icon} {format_source}",
        "format-muted": "󰝟 {format_source}",
        "format-bluetooth": "{volume}% {icon}  {format_source}",
        "format-bluetooth-muted": "󰝟 {icon}  {format_source}",
        "format-source": "{volume}% ",
        "format-source-muted": "",
        "format-icons": {
            "headphone": "",
            "default": ["", "", ""]
        },
        "on-click": "pavucontrol"
    },
    "custom/power": {
			"format" : "⏻ ",
			"tooltip": false,
			"menu": "on-click",
			"menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder
			"menu-actions": {
				"shutdown": "systemctl poweroff",
				"reboot": "reboot",
				"suspend": "hyprlock & systemctl suspend",
				"hibernate": "hyprlock & systemctl hibernate"
			}
    },

    "custom/homeassistant": {
			"format" : "󰟐 ",
			"tooltip": false,
			"menu": "on-click",
			"menu-file": "$HOME/.config/waybar/ha_menu.xml", 
			"menu-actions": {
				"mood-relax": "/home/lorenz/go/bin/home-assistant -m relax",
				"mood-off": "/home/lorenz/go/bin/home-assistant -m off",
			}
    }
}