{
    "layer": "top", 
    "position": "top", 
    "height": 24,
    // "width": 1366, 
    // Choose the order of the modules
	"margin-left":5,
	"margin-right":5,
    "modules-left": ["hyprland/workspaces", "custom/music"],
    "modules-center": ["hyprland/window"],
    "modules-right": ["custom/fans", "custom/dgpu", "disk", "pulseaudio", "network", "cpu", "temperature", "custom/pipe", "memory", "battery", "clock"],

    "hyprland/workspaces": {
        "disable-scroll": true,
        "all-outputs": false,
        "format": "{id}"
    },

    "clock": { "interval" : 1,
        "format-alt": " {:%Y-%m-%d}",
		"format" : " {:%H:%M:%S}"
    },

    "cpu": {
        "format": "   {usage}% |",
		"interval":5
    },

    "memory": {
        "format": "   {}% |",
		"interval":5
    },

    "battery": {
        "bat": "BAT0",
        "states": {
            "good": 79,
            "warning": 30,
            "critical": 15
        },
		"format-time": " {H}:{m}",
        "format": " {icon} {capacity}%{time} |",
        // "format-good": "", // An empty format will hide the module
        // "format-full": "",
        "format-icons": [" ", " ", " ", " ", " "],
		"interval":10
    },
    "network": {
        // "interface": "wlp2s0", // (Optional) To force the use of this interface
        "format-wifi": " {icon} {essid} |",
        "format-ethernet": "   {ifname}: {ipaddr}/{cidr} |",
        "format-disconnected": " ⚠ Disconnected |",
		"format-icons":["󰤟 ", "󰤢 ", "󰤥 ", "󰤨 "]
    },
    "pulseaudio": {
        //"scroll-step": 1,
        "format": " {icon}{volume}% |",
        "format-bluetooth": "  {icon} {volume}% |",
        "format-muted": "",
        "format-icons": {
            "headphones": " ",
            "handsfree": "󰋎 ",
            "headset": "󰋎 ",
            "phone": " ",
            "portable": " ",
            "car": " ",
            "default": [" ", " ", "  "]
        },
        "on-click": "pavucontrol"
    },
	"temperature":{
		"thermal-zone":0,
		"critical-threshold":80,
		"interval":5,
		"format":" {icon} {temperatureC}°C ",
		"format-icons": ["", "", "", "", ""]
	},
	"disk":{
		"format":" 󰋊 {percentage_used}% |"
	},
	"custom/pipe":{
		"format":"|"
	},

	"custom/music":{
		"exec-if" : "playerctl metadata 2>&1 >/dev/null",
		"exec" : "playerctl metadata --format '  {{ artist }} - {{title}}'",
		"interval" : 1,
		"interval-if" : 5
	},
	"custom/dgpu":{
		"exec-if" : "test \"$(supergfxctl -g)\" = \"Hybrid\"",
		"exec" : "echo \"   on |\"",
		"interval-if" : 10,
		"interval":100
	},
	"custom/fans":{
		"exec-if" : "test \"$(cat /sys/class/hwmon/hwmon6/fan1_input)\" -gt 0 -o \"$(cat /sys/class/hwmon/hwmon6/fan2_input)\" -gt 0",
		"exec" : "echo \" \" \"$(cat /sys/class/hwmon/hwmon6/fan1_input).$(cat /sys/class/hwmon/hwmon6/fan2_input) |\"",
		"interval" : 1,
		"interval-if" : 1
	}
}
