config

 1{
 2    "layer": "top", // Waybar at top layer
 3    "height": 20, // Waybar height (to be removed for auto height)
 4    "spacing": 4,
 5    "modules-left": ["hyprland/workspaces"],
 6    "modules-center": ["hyprland/window"],
 7    "modules-right": ["idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight",  "battery", "clock", "tray"],
 8    "hyprland/workspaces": {
 9        "disable-scroll": true,
10        "all-outputs": true,
11        "warp-on-scroll": true
12    },
13    "idle_inhibitor": {
14        "format": "{icon}",
15        "format-icons": {
16            "activated": "",
17            "deactivated": ""
18        }
19    },
20    "tray": {
21        // "icon-size": 21,
22        "spacing": 10
23    },
24    "clock": {
25        "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
26        "format-alt": "{:%Y-%m-%d}"
27    },
28    "cpu": {
29        "format": "{usage}%",
30        "tooltip": false
31    },
32    "memory": {
33        "format": "{}%"
34    },
35    "temperature": {
36        // "thermal-zone": 2,
37        // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
38        "critical-threshold": 80,
39        // "format-critical": "{temperatureC}°C {icon}",
40        "format": "{temperatureC}°C {icon}",
41        "format-icons": ["", "", ""]
42    },
43    "backlight": {
44        "format": "{percent}% {icon}",
45        "format-icons": ["", "", "", "", "", "", "", "", ""]
46    },
47    "battery": {
48        "states": {
49            "good": 95,
50            "warning": 30,
51            "critical": 15
52        },
53        "format": "{capacity}% {icon}",
54        "format-charging": "{capacity}% 󰂄",
55        "format-plugged": "{capacity}%",
56        "format-alt": "{time} {icon}",
57        "format-icons": [ "󰢟", "󰢜", "󰂆", "󰂇", "󰂈", "󰢝", "󰂉", "󰢞", "󰂊", "󰂅" ]     
58    },
59    "network": {
60        "format-wifi": "",
61        "format-ethernet": "󰈀",
62        "tooltip-format": "{ifname} via {gwaddr} 󰛳",
63        "format-linked": "{ifname} (No IP) ",
64        "format-disconnected": "󰖪",
65        "format-alt": "{ifname}: {ipaddr}/{cidr}"
66    },
67    "pulseaudio": {
68        // "scroll-step": 1, // %, can be a float
69        "format": "{volume}%  {icon}  {format_source}",
70        "format-bluetooth": "{volume}%  {icon}   {format_source}",
71        "format-bluetooth-muted": "󰝟  {icon}   {format_source}",
72        "format-muted": "󰝟  {format_source}",
73        "format-source": "{volume}%",
74        "format-source-muted": "",
75        "format-icons": {
76            "headphone": "",
77            "hands-free": "",
78            "headset": "",
79            "phone": "",
80            "portable": "",
81            "car": "",
82            "default": ["", "", ""]
83        },
84        "on-click": "pavucontrol"
85    }
86}
87