{
    "layer": "top",
    "position": "top",

    "margin-left": 3,
    "margin-bottom": 0,
    "margin-right": 3,

    "spacing": 0,

    "modules-left": [
        "hyprland/workspaces",
        "custom/screenshot_t",
        "idle_inhibitor",
        "tray"
    ],
    "modules-right": [
        "network",
        "bluetooth",
        "memory",
        "cpu",
        "pulseaudio",
        "battery",
        "clock"
    ],


    // -------------------------------------------------------------------------
    // Modules
    // -------------------------------------------------------------------------

	"hyprland/window": {  
		//"format": "{}"   // <--- these is the default value  
		"format": "<span font='9' rise='-4444'>{}</span>"  
	},

    "custom/screenshot_t": {
        "format":" ",
        "on-click": "grimblast --notify --freeze copysave output",
        "on-click-right":"grimblast --notify --freeze copysave area"
    },

    "cpu": {
        "interval": 3,
        "format": "{usage}% <span rise='1000'></span>",
        "max-length": 6,
        "min-length": 6
    },

    "memory": {
        "interval": 3,
        "format": "{used:0.2f}GB <span rise='1000'></span>",
        "max-length": 9,
        "min-length": 9
    },

    "battery": {
        "interval": 5,
        "states": {
            "good": 95,
            "warning": 30,
            "critical": 15
        },
        "format": "{capacity}% <span rise='1000'>{icon}</span>",
        "format-charging": "{capacity}% <span rise='1000'></span>",
        "format-plugged": "{capacity}% <span rise='1000'></span>",
        "format-icons": [
            "",
            "",
            "",
            "",
            ""
        ]
    },

    "network": {
        "format-wifi": "<span rise='1000'></span>  {signalStrength}% <span rise='1000'>|</span> {bandwidthDownBytes:>3} <span rise='1000'>󰇚</span>   {bandwidthUpBytes:>3} <span rise='1000'>󰕒</span>",
        "format-ethernet": "{ifname} <span rise='1000'>|</span> {bandwidthDownBytes:>3} <span rise='1000'>󰇚</span> {bandwidthUpBytes:>3} <span rise='1000'>󰕒</span>",
        "format-linked": "{ifname} No IP",
        "format": "",
        "format-disconnected": "¯\\_(ツ)_/¯",
        "on-click": "alacritty -e 'nmtui'",
        "tooltip-format": "{ifname}\n{ipaddr}/{cidr}",
        "tooltip-format-wifi": "{essid} {frequency}MHz\nStrength: {signaldBm}dBm ({signalStrength}%)\nIP: {ipaddr}/{cidr}",
        "interval": 3
    },

    "bluetooth": {
        "format-disabled": "off <span rise='1200'></span>",
        "format-off": "off <span rise='1200'></span>",
        "format-on": "on <span rise='1200'></span>",
        "interval": 3,
        "on-click": "blueman-manager"
    },

    "idle_inhibitor": {
        "format": "{icon} ",
        "format-icons": {
            "activated": "",
            "deactivated": ""
        },
        "tooltip": "true"
    },

    "clock": {
        "format": "{:%d %b %Y <span rise='1000'>|</span> %H:%M}",
		"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
    },

    "hyprland/workspaces": {
        "all-outputs": true,
        "format": "{name}",
        "format-icons": {
            "1": "一",
            "2": "二",
            "3": "三",
            "4": "四",
            "5": "五",
            "6": "六",
            "7": "七",
            "8": "八",
            "9": "九",
            "10": "十"
        },
        "on-scroll-up": "hyprctl dispatch workspace e+1 1>/dev/null",
        "on-scroll-down": "hyprctl dispatch workspace e-1 1>/dev/null",
        "sort-by-number": true,
        "active-only": false
    },

    "pulseaudio": {
        "scroll-step": 2,
        "format": "{volume}% <span rise='1000'>{icon} |{format_source}</span>",
        "format-bluetooth": "{volume}% {icon} <span rise='1000'>|</span> <span rise='1000'>{format_source}</span>",
        "format-bluetooth-muted": " {icon} <span rise='1000'>|</span> <span rise='1000'>{format_source}</span>",
        "format-muted": "<span rise='1000'>󰖁</span> <span rise='1000'>|</span> <span rise='1000'>{format_source}</span>",
        //"format-source": "{volume}% ",
        //"format-source-muted": "",
        "format-source": "",
        "format-source-muted": "",
        "format-icons": {
            "headphone": "",
            "hands-free": "",
            "headset": "",
            "phone": "",
            "portable": "",
            "car": "",
            "default": ["", "", ""]
        },
        "on-click": "pavucontrol",
        "on-click-right": "amixer sset Master toggle"
    },

    "tray": {
        "icon-size": 15,
        "spacing": 5
    }
}
