1{
2 "layer": "top", // Waybar at top layer
3 "spacing": 5,
4 "modules-left": ["hyprland/workspaces", "hyprland/window"],
5 "modules-right": ["idle_inhibitor", "custom/pending-updates", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "battery", {{ if eq .chezmoi.hostname "angmar" }}"clock#date", {{ end }}"clock#all", "custom/beats", "tray"],
6 "hyprland/workspaces": {
7 "disable-scroll": true,
8 "all-outputs": true,
9 "warp-on-scroll": true
10 },
11 "hyprland/window": {
12 "format": " {}"
13 },
14 "custom/pending-updates": {
15 "format": "{} ",
16 "tooltip": false,
17 "exec-if": "/usr/bin/carpd",
18 "exec": "/usr/bin/carpd",
19 "restart-interval": 3600,
20 },
21 "idle_inhibitor": {
22 "format": "{icon}",
23 "format-icons": {
24 "activated": "",
25 "deactivated": ""
26 }
27 },
28 "tray": {
29 // "icon-size": 21,
30 "spacing": 10
31 },
32 "clock#date": {
33 "format": "{:%Y-%m-%d} ",
34 "tooltip-format": "<tt><small>{calendar}</small></tt>",
35 "calendar": {
36 "mode": "year",
37 "mode-mon-col": 3,
38 "on-scroll": 1,
39 "on-click-right": "mode",
40 "format": {
41 "months": "<span color='#ffead3'><b>{}</b></span>",
42 "days": "<span color='#ecc6d9'><b>{}</b></span>",
43 "weeks": "<span color='#99ffdd'><b>W{}</b></span>",
44 "weekdays": "<span color='#ffcc66'><b>{}</b></span>",
45 "today": "<span color='#ff6699'><b><u>{}</u></b></span>"
46 }
47 },
48 },
49 "clock#all": {
50 "format": "{:%H:%M} ",
51 "format-alt": "{:%Y-%m-%d} ",
52 "tooltip-format": "<tt><small>{calendar}</small></tt>",
53 "calendar": {
54 "mode": "year",
55 "mode-mon-col": 3,
56 "on-scroll": 1,
57 "on-click-right": "mode",
58 "format": {
59 "months": "<span color='#ffead3'><b>{}</b></span>",
60 "days": "<span color='#ecc6d9'><b>{}</b></span>",
61 "weeks": "<span color='#99ffdd'><b>W{}</b></span>",
62 "weekdays": "<span color='#ffcc66'><b>{}</b></span>",
63 "today": "<span color='#ff6699'><b><u>{}</u></b></span>"
64 }
65 },
66 },
67 "custom/beats": {
68 "format": "{} ",
69 "tooltip": false,
70 "exec-if": "/home/amolith/.local/bin/beats",
71 "exec": "/home/amolith/.local/bin/beats",
72 "return-type": "",
73 "restart-interval": 1,
74 },
75 "cpu": {
76 "format": "{usage}% ",
77 "tooltip": false
78 },
79 "memory": {
80 "format": "{}% "
81 },
82 "temperature": {
83 "critical-threshold": 80,
84 "format": "{temperatureC}°C {icon}",
85 "format-icons": ["", "", "", "", ""]
86 },
87 "backlight": {
88 "format": "{percent}% {icon}",
89 "format-icons": ["", "", "", "", "", "", "", "", ""]
90 },
91 "battery": {
92 "states": {
93 "good": 95,
94 "warning": 30,
95 "critical": 15
96 },
97 "format": "{capacity}% {icon}",
98 "format-charging": "{capacity}% ",
99 "format-plugged": "{capacity}% ",
100 "format-alt": "{time} {icon}",
101 "format-icons": [ "", "", "", "", "", "", "", "", "", "" ]
102 },
103 "network": {
104 "format-wifi": "",
105 "format-ethernet": "",
106 "tooltip-format": "{ifname} via {gwaddr} ",
107 "format-linked": "{ifname} (No IP) ",
108 "format-disconnected": "",
109 "format-alt": "{ifname}: {ipaddr}/{cidr}"
110 },
111 "pulseaudio": {
112 // "scroll-step": 1, // %, can be a float
113 "format": "{volume}% {icon} {format_source}",
114 "format-bluetooth": "{volume}% {icon} {format_source}",
115 "format-bluetooth-muted": " {icon} {format_source}",
116 "format-muted": " {format_source}",
117 "format-source": "{volume}% ",
118 "format-source-muted": "",
119 "format-icons": {
120 "headphone": "",
121 "hands-free": "",
122 "headset": "",
123 "phone": "",
124 "portable": "",
125 "car": "",
126 "default": ["", "", ""]
127 },
128 "on-click": "pavucontrol"
129 }
130}
131