{
    "height": 35,
    "layer": "top",
    "position": "top",
    "modules-left": ["hyprland/workspaces"],
    "modules-center": [],
    "modules-right": ["cpu", "temperature", "battery", "network", "clock"],

    "wlr/workspaces": {
        "disable-scroll": true,
        "active-only": false,
        "all-outputs": false,
        "on-click": "activate",
        "on-scroll-up": "hyprctl dispatch workspace e+1",
        "on-scroll-down": "hyprctl dispatch workspace e-1",
    },


    "custom/bar" : {
        "interval" : "once",
        "format" : "▊",
        "tooltip" : false
    },


    "custom/launcher": {
        "interval": "once",
        "format": "",
        "tooltip": false
      },

    "custom/pkgs": {
        "interval": "once",
        "format": "{}",
        "exec" : "hyprctl version -j | jq '.tag' -r | cut -d'-' -f1"
      },

    "custom/audio_idle_inhibitor": {
        "format": "{icon}",
        "exec": "sway-audio-idle-inhibit --dry-print-both-waybar",
        "exec-if": "which sway-audio-idle-inhibit",
        "return-type": "json",
        "format-icons": {
            "output": "",
            "input": "",
            "output-input": "  ",
            "none": ""
        }
    },


    "custom/cpu": {
      "interval": "once",
      "format": "",
    },

    "cpu": {
      "interval": 1,
      "format": " \t{usage}%",
      "max-length": 10,
      "min-length": 4
    },



    "custom/temp": {
      "interval": "once",
      "format": "",
    },

    "temperature": {
        "hwmon-path-abs": "/sys/devices/platform/coretemp.0/hwmon",
        "input-filename": "temp1_input",
        "format": "{temperatureC}°C",
    },




    "backlight": {
        "format": "{icon}",
        "format-icons": ["", "", "", "", "", "", "", "", ""],
        "on-scroll-up": "light -A 1",
        "on-scroll-down": "light -U 1"
    },



    "pulseaudio": {
        "format": "{icon}",
        "format-bluetooth": "{icon} {volume}% {format_source}",
        "format-bluetooth-muted": "x {icon} {format_source}",
        "format-muted": "婢",
        "format-icons": {
            "headphone": "",
            "hands-free": "",
            "headset": "",
            "phone": "",
            "portable": "",
            "car": "",
            "default": ["", "", ""]
        },
        "on-click-right": "pavucontrol",
	    "on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle"
    },



    "custom/net": {
        "interval": "once",
        "format": "󰤨",
    },

    "network": {
        "format-wifi": "󰤨   {essid}",
        "format-ethernet": "󰈀 ",
        "format-disconnected": "󰌙 ",
        "max-length" : 20
    },


    "custom/bat" : {
        "interval" : "once",
        "format" : ""
    },

    "battery": {
        "bat": "BAT0",
        "adapter": "ADP0",
        "interval": 60,
        "states": {
            "warning": 30,
            "critical": 15
        },
        "max-length": 20,
        "format": " {icon} {capacity}%",
        "format-warning": " {icon} {capacity}%",
        "format-critical": " {icon} {capacity}%",
        "format-charging": " {icon} {capacity}%",
        "format-plugged": " {icon} {capacity}%",
        "format-alt": " {icon}  {time} ",
        "format-full": "",
        "format-icons": [" ", " ", " ", " ", " "]
    },

    "custom/clock" : {
        "format" : "󱑓"
    },

    "clock": {
        "format-alt": "<span> </span> {:%a %b %d}",
        "format": "󱑓   {:%H:%M}"
    },


}
