{
  "layer": "top", "position": "top",
  "modules-left": ["clock", "disk", "memory", "cpu", "temperature" ],
  "modules-center": [  "hyprland/workspaces", "hyprland/window"],
  "modules-right": [ "network", "custom/netaddrsimple", "tray", "pulseaudio", "battery" ],
  "reload_style_on_change":true,

  	"custom/netaddrsimple": {
		"format": "IP:{}",
		"tooltip":false,
		//"max-length": 15,
		"interval": 10,
		"exec": "hostname -i", 
	},

  	"hyprland/workspaces": {
  			"format": "{name}",
  			"format-icons": {
  					"default": " ",
  					"active": "@",
  					"urgent": "!"
  				},
  			"on-scroll-up": "hyprctl dispatch workspace e+1",
  			"on-scroll-down": "hyprctl dispatch workspace e-1",
  			},
  			"clock": {
  				"format": "{:L%H:%M}",
  				"tooltip": true,
  				"tooltip-format": "<big>{:%A, %d.%B %Y }</big>\n<tt><small>{calendar}</small></tt>"
  			}
  	},
  

"idle_inhibitor":{
  "format": "<span font='12'>{icon} </span>",
  "format-icons": {
    "activated":"󰈈",
    "deactivated":"󰈉"
  }
},

"clock": {
      "format": "{:%H:%M:%S }",
      "interval":1,
      "tooltip-format": "\n<big>{:%d %m %Y}</big>\n<tt><small>{calendar}</small></tt>",
      "calendar-weeks-pos": "right",
      "today-format": "<span color='#7645AD'><b><u>{}</u></b></span>",
      "format-calendar": "<span color='#aeaeae'><b>{}</b></span>",
      "format-calendar-weeks": "<span color='#aeaeae'><b>W{:%V}</b></span>",
      "format-calendar-weekdays": "<span color='#aeaeae'><b>{}</b></span>"
      },

  "bluetooth": {
  "format-on": "",
  "format-off": "",
  "format-disabled": "󰂲",
  "format-connected": "󰂴",
  "format-connected-battery": "{device_battery_percentage}% 󰂴",
  "tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected",
  "tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}",
  "tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
  "tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%",
  "on-click": "rofi-bluetooth",
 }, 



	"battery": {
    	"interval":1,
        "states": {
            "good": 95,
            "warning": 30,
            "critical": 20
        },
        "format": "PWR- {capacity}%  {icon} ",
        "format-charging": "PWR+ {capacity}% 󰂄 ",
        "format-plugged": "PWR+ {capacity}% 󰂄 ",
        "format-alt": "{time} {icon}",
        "format-icons": [
          		"󰁻",
          		"󰁼",
          		"󰁾",
          		"󰂀",
          		"󰂂",
          		"󰁹"
        ],
    },
"backlight": {
  "device": "intel_backlight",
  "format": "<span font='12'>{icon}</span>",
  "format-icons": [
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
  ],
  "on-scroll-down": "light -A 10",
  "on-scroll-up": "light -U 10",
  "smooth-scrolling-threshold": 1
  },

 "disk": {
    "interval": 30,
    "format": "  {percentage_used}%",
    "path": "/"
  },

  "custom/colorpicker": {
    "format": "{}",
    "return-type": "json",
    "interval": "once",
    "exec": "~/.config/waybar/scripts/colorpicker.sh -j",
    "on-click": "sleep 1 && ~/.config/waybar/scripts/colorpicker.sh",
    "signal": 1
  },

  "cpu": {
      "interval": 1,
      "format": " {usage}%",
      "min-length": 6,
      "max-length": 6,
      "format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
 },

"memory": {
  "format": " {percentage}%"
},

 "hyprland/window": {
    "format": "( {class} )",
    "rewrite": {
         "(.*) - Mozilla Firefox": "🌎 $1",
         "(.*) - zsh": "> [$1]"
    }
},

"temperature": {
  "format": " {temperatureC}°C",            
  "format-critical": " {temperatureC}°C",
  "interval": 1,
  "critical-threshold": 80,
  "on-click": "foot btop",
 },

"pulseaudio": {
  "format": "{volume}% {icon}",
  "format-bluetooth":"󰂰",
  "format-muted": "<span font='12'></span>",
  "format-icons": {
    "headphones": "",
    "bluetooth": "󰥰",
    "handsfree": "",
    "headset": "󱡬",
    "phone": "",
    "portable": "",
    "car": "",
    "default": ["󰕿","󰖀","󰕾"]
  },
  "justify": "center",
  "on-click": "amixer sset Master toggle",
  "on-click-right": "pavucontrol",
  "tooltip-format": "{icon}  {volume}%"
},

"jack": {
    "format": "{} 󱎔",
    "format-xrun": "{xruns} xruns",
    "format-disconnected": "DSP off",
    "realtime": true
},

"tray": {
    "icon-size": 14,
    "spacing": 10
},

"upower": {
    "show-icon": false,
    "hide-if-empty": true,
    "tooltip": true,
    "tooltip-spacing": 20
},


	"network":{
      "format-wifi": " ",
      "format-ethernet":" ",
      "format-disconnected": "",
      "tooltip-format": "{ifname}",
      "tooltip-format-wifi": "{essid} ({signalStrength}%)  | {ipaddr}",
      "tooltip-format-ethernet": "{ifname} 🖧 | {ipaddr}"
	},

  "custom/powerDraw": {
    "format": "{}",
    "interval": 1,
    "exec": "~/.config/waybar/scripts/powerdraw.sh",
    "return-type": "json"
  }
  

}
