Waybar configuration
| 1 | //* ---- 💫 https://github.com/JaKooLit 💫 ---- *// |
| 2 | /* Waybar Modules */ |
| 3 | |
| 4 | /* NOTE: hyprland-workspaces, Custom Modules, Custom Vertical & Groups on a separate files */ |
| 5 | |
| 6 | { |
| 7 | |
| 8 | "temperature": { |
| 9 | "interval": 10, |
| 10 | "tooltip": true, |
| 11 | "hwmon-path": [ |
| 12 | "/sys/class/hwmon/hwmon1/temp1_input", |
| 13 | "/sys/class/thermal/thermal_zone0/temp" |
| 14 | ], |
| 15 | //"thermal-zone": 0, |
| 16 | "critical-threshold": 82, |
| 17 | "format-critical": "{temperatureC}°C {icon}", |
| 18 | "format": "{temperatureC}°C {icon}", |
| 19 | "format-icons": [ |
| 20 | "" |
| 21 | ], |
| 22 | "on-click-right": "$HOME/.config/hypr/scripts/WaybarScripts.sh --nvtop" |
| 23 | }, |
| 24 | |
| 25 | "backlight": { |
| 26 | "interval": 2, |
| 27 | "align": 0, |
| 28 | "rotate": 0, |
| 29 | //"format": "{icon} {percent}%", |
| 30 | "format-icons": [ |
| 31 | " ", |
| 32 | " ", |
| 33 | " ", |
| 34 | " ", |
| 35 | " ", |
| 36 | " ", |
| 37 | " " |
| 38 | ], |
| 39 | "format": "{icon}", |
| 40 | //"format-icons": ["","","","","","","","","","","","","","",""], |
| 41 | "tooltip-format": "backlight {percent}%", |
| 42 | "icon-size": 10, |
| 43 | "on-click": "", |
| 44 | "on-click-middle": "", |
| 45 | "on-click-right": "", |
| 46 | "on-update": "", |
| 47 | "on-scroll-up": "$HOME/.config/hypr/scripts/Brightness.sh --inc", |
| 48 | "on-scroll-down": "$HOME/.config/hypr/scripts/Brightness.sh --dec", |
| 49 | "smooth-scrolling-threshold": 1, |
| 50 | }, |
| 51 | |
| 52 | "backlight#2": { |
| 53 | "device": "intel_backlight", |
| 54 | "format": "{icon} {percent}%", |
| 55 | "format-icons": ["", ""] |
| 56 | }, |
| 57 | |
| 58 | "battery": { |
| 59 | //"interval": 5, |
| 60 | "align": 0, |
| 61 | "rotate": 0, |
| 62 | //"bat": "BAT1", |
| 63 | //"adapter": "ACAD", |
| 64 | "full-at": 100, |
| 65 | "design-capacity": false, |
| 66 | "states": { |
| 67 | "good": 95, |
| 68 | "warning": 30, |
| 69 | "critical": 15 |
| 70 | }, |
| 71 | "format": "{icon} {capacity}%", |
| 72 | "format-charging": " {capacity}%", |
| 73 | "format-plugged": " {capacity}%", |
| 74 | "format-alt-click": "click", |
| 75 | "format-full": "{icon} Full", |
| 76 | "format-alt": "{icon} {time}", |
| 77 | "format-icons": [ |
| 78 | "", "", "", "", "", "", "", "", "", "", "" |
| 79 | ], |
| 80 | "format-time": "{H}h {M}min", |
| 81 | "tooltip": true, |
| 82 | "tooltip-format": "{timeTo} {power}w", |
| 83 | "on-click-middle": "$HOME/.config/hypr/scripts/ChangeBlur.sh", |
| 84 | "on-click-right": "$HOME/.config/hypr/scripts/Wlogout.sh", |
| 85 | }, |
| 86 | |
| 87 | "bluetooth": { |
| 88 | "format": " ", |
| 89 | "format-disabled": "", |
| 90 | "format-connected": " {num_connections}", |
| 91 | "tooltip-format": " {device_alias}", |
| 92 | "tooltip-format-connected": "{device_enumerate}", |
| 93 | "tooltip-format-enumerate-connected": " {device_alias} {device_battery_percentage}%", |
| 94 | "tooltip": true, |
| 95 | "on-click": "blueman-manager", |
| 96 | }, |
| 97 | |
| 98 | "clock": { |
| 99 | "interval": 1, |
| 100 | "format": " {:%I:%M %p}", // AM PM format |
| 101 | //"format": " {:%H:%M:%S}",// 24H |
| 102 | "format-alt": " {:%H:%M %Y, %d %B, %A}", |
| 103 | "tooltip-format": "<tt><small>{calendar}</small></tt>", |
| 104 | "calendar": { |
| 105 | "mode": "year", |
| 106 | "mode-mon-col": 3, |
| 107 | "weeks-pos": "right", |
| 108 | "on-scroll": 1, |
| 109 | "format": { |
| 110 | "months": "<span color='#ffead3'><b>{}</b></span>", |
| 111 | "days": "<span color='#ecc6d9'><b>{}</b></span>", |
| 112 | "weeks": "<span color='#99ffdd'><b>W{}</b></span>", |
| 113 | "weekdays": "<span color='#ffcc66'><b>{}</b></span>", |
| 114 | "today": "<span color='#ff6699'><b><u>{}</u></b></span>" |
| 115 | } |
| 116 | } |
| 117 | }, |
| 118 | |
| 119 | "actions": { |
| 120 | "on-click-right": "mode", |
| 121 | "on-click-forward": "tz_up", |
| 122 | "on-click-backward": "tz_down", |
| 123 | "on-scroll-up": "shift_up", |
| 124 | "on-scroll-down": "shift_down" |
| 125 | }, |
| 126 | |
| 127 | "clock#2": { |
| 128 | "format": " {:%I:%M %p}", // AM PM format |
| 129 | //"format": " {:%H:%M}",// 24H |
| 130 | "format-alt": "{:%A | %H:%M | %e %B}", |
| 131 | "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>" |
| 132 | }, |
| 133 | |
| 134 | "clock#3": { |
| 135 | "format": "{:%I:%M %p - %d/%b}",//for AM/PM |
| 136 | //"format": "{:%H:%M - %d/%b}",// 24H |
| 137 | "tooltip": false |
| 138 | }, |
| 139 | |
| 140 | "clock#4": { |
| 141 | "interval": 60, |
| 142 | "format": "{:%B | %a %d, %Y | %I:%M %p}",// AM PM format |
| 143 | //"format": "{:%B | %a %d, %Y | %H:%M}",// 24H |
| 144 | "format-alt": "{:%a %b %d, %G}", |
| 145 | "tooltip-format": "<big>{:%B %Y}</big>\n<tt><small>{calendar}</small></tt>", |
| 146 | }, |
| 147 | |
| 148 | "clock#5": { |
| 149 | "format": "{:%A, %I:%M %P}",// AM PM format |
| 150 | //"format": "{:%a %d | %H:%M}",// 24H |
| 151 | "format-alt": "{:%A, %d %B, %Y (%R)}", |
| 152 | "tooltip-format": "<big>{:%B %Y}</big>\n<tt><small>{calendar}</small></tt>", |
| 153 | }, |
| 154 | |
| 155 | "clock#utc": { |
| 156 | "interval": 1, |
| 157 | "format": " {:%I:%M %p} UTC", |
| 158 | "format-alt": " {:%H:%M %Y, %d %B} UTC", |
| 159 | "timezone": "UTC", |
| 160 | "tooltip-format": "UTC Time\n<tt><small>{calendar}</small></tt>", |
| 161 | "calendar": { |
| 162 | "mode": "year", |
| 163 | "mode-mon-col": 3, |
| 164 | "weeks-pos": "right", |
| 165 | "on-scroll": 1, |
| 166 | "format": { |
| 167 | "months": "<span color='#ffead3'><b>{}</b></span>", |
| 168 | "days": "<span color='#ecc6d9'><b>{}</b></span>", |
| 169 | "weeks": "<span color='#99ffdd'><b>W{}</b></span>", |
| 170 | "weekdays": "<span color='#ffcc66'><b>{}</b></span>", |
| 171 | "today": "<span color='#ff6699'><b><u>{}</u></b></span>" |
| 172 | } |
| 173 | } |
| 174 | }, |
| 175 | |
| 176 | "cpu": { |
| 177 | "format": "{usage}% ", |
| 178 | "interval": 1, |
| 179 | "min-length": 5, |
| 180 | "format-alt-click": "click", |
| 181 | "format-alt": "{icon0}{icon1}{icon2}{icon3} {usage:>2}% ", |
| 182 | "format-icons": [ |
| 183 | "▁", "▂", "▃", "▄", "▅", "▆", "▇", "█" |
| 184 | ], |
| 185 | "on-click-right": "gnome-system-monitor", |
| 186 | }, |
| 187 | |
| 188 | "disk": { |
| 189 | "interval": 30, |
| 190 | //"format": "", |
| 191 | "path": "/", |
| 192 | //"format-alt-click": "click", |
| 193 | "format": "{percentage_used}% ", |
| 194 | //"tooltip": true, |
| 195 | "tooltip-format": "{used} used out of {total} on {path} ({percentage_used}%)", |
| 196 | }, |
| 197 | |
| 198 | "hyprland/language": { |
| 199 | "format": "Lang: {}", |
| 200 | "format-en": "US", |
| 201 | "format-tr": "Korea", |
| 202 | "keyboard-name": "at-translated-set-2-keyboard", |
| 203 | "on-click": "hyprctl switchxkblayout $SET_KB next" |
| 204 | }, |
| 205 | |
| 206 | "hyprland/submap": { |
| 207 | "format": "<span style=\"italic\"> {}</span>", // Icon: expand-arrows-alt |
| 208 | "tooltip": false, |
| 209 | }, |
| 210 | |
| 211 | "hyprland/window": { |
| 212 | "format": "{title}", |
| 213 | "max-length": 40, |
| 214 | "separate-outputs": true, |
| 215 | "offscreen-css": true, |
| 216 | "offscreen-css-text": "(inactive)", |
| 217 | "tooltip": true, |
| 218 | "tooltip-format": "Title: {title}\nClass: {class}\nInitial Class: {initialClass}\nInitial Title: {initialTitle}", |
| 219 | "rewrite": { |
| 220 | "(.*) — Mozilla Firefox": " $1", |
| 221 | "(.*) - fish": "> [$1]", |
| 222 | "(.*) - zsh": "> [$1]", |
| 223 | "(.*) - $term": "> [$1]", |
| 224 | }, |
| 225 | }, |
| 226 | |
| 227 | "idle_inhibitor": { |
| 228 | "tooltip": true, |
| 229 | "tooltip-format-activated": "Idle_inhibitor active", |
| 230 | "tooltip-format-deactivated": "Idle_inhibitor not active", |
| 231 | "format": "{icon}", |
| 232 | "format-icons": { |
| 233 | "activated": " ", |
| 234 | "deactivated": " ", |
| 235 | } |
| 236 | }, |
| 237 | |
| 238 | "keyboard-state": { |
| 239 | //"numlock": true, |
| 240 | "capslock": true, |
| 241 | "format": { |
| 242 | "numlock": "N {icon}", |
| 243 | "capslock": " {icon}", |
| 244 | }, |
| 245 | "format-icons": { |
| 246 | "locked": "", |
| 247 | "unlocked": "" |
| 248 | }, |
| 249 | }, |
| 250 | |
| 251 | "memory": { |
| 252 | "interval": 10, |
| 253 | "format": "{used:0.1f}G ", |
| 254 | "format-alt": "{percentage}% ", |
| 255 | "format-alt-click": "click", |
| 256 | "tooltip": true, |
| 257 | "tooltip-format": "{used:0.1f}GB/{total:0.1f}G", |
| 258 | "on-click-right": "$HOME/.config/hypr/scripts/WaybarScripts.sh --btop" |
| 259 | }, |
| 260 | |
| 261 | "mpris": { |
| 262 | "interval": 10, |
| 263 | "format": "{player_icon} ", |
| 264 | "format-paused": "{status_icon} <i>{dynamic}</i>", |
| 265 | "on-click-middle": "playerctl play-pause", |
| 266 | "on-click": "playerctl previous", |
| 267 | "on-click-right": "playerctl next", |
| 268 | "scroll-step": 5.0, |
| 269 | "on-scroll-up": "$HOME/.config/hypr/scripts/Volume.sh --inc", |
| 270 | "on-scroll-down": "$HOME/.config/hypr/scripts/Volume.sh --dec", |
| 271 | "smooth-scrolling-threshold": 1, |
| 272 | "tooltip": true, |
| 273 | "tooltip-format": "{status_icon} {dynamic}\nLeft Click: previous\nMid Click: Pause\nRight Click: Next", |
| 274 | "player-icons": { |
| 275 | "chromium": "", |
| 276 | "default": "", |
| 277 | "firefox": "", |
| 278 | "kdeconnect": "", |
| 279 | "mopidy": "", |
| 280 | "mpv": "", |
| 281 | "spotify": "", |
| 282 | "vlc": "", |
| 283 | }, |
| 284 | "status-icons": { |
| 285 | "paused": "", |
| 286 | "playing": "", |
| 287 | "stopped": "", |
| 288 | }, |
| 289 | // "ignored-players": ["firefox"] |
| 290 | "max-length": 30, |
| 291 | }, |
| 292 | |
| 293 | "network": { |
| 294 | "format": "{ifname}", |
| 295 | "format-wifi": "{icon}", |
| 296 | "format-ethernet": "", |
| 297 | "format-disconnected": "", |
| 298 | "tooltip-format": "{ipaddr} {bandwidthUpBits} {bandwidthDownBits}", |
| 299 | "format-linked": " {ifname} (No IP)", |
| 300 | "tooltip-format-wifi": "{essid} {icon} {signalStrength}%", |
| 301 | "tooltip-format-ethernet": "{ifname} ", |
| 302 | "tooltip-format-disconnected": " Disconnected", |
| 303 | "max-length": 30, |
| 304 | "format-icons": [ |
| 305 | "", "", "", "", "" |
| 306 | ], |
| 307 | "on-click-right": "$HOME/.config/hypr/scripts/WaybarScripts.sh --nmtui" |
| 308 | }, |
| 309 | |
| 310 | "network#speed": { |
| 311 | "interval": 1, |
| 312 | "format": "{ifname}", |
| 313 | "format-wifi": "{icon} {bandwidthUpBytes} {bandwidthDownBytes}", |
| 314 | "format-ethernet": " {bandwidthUpBytes} {bandwidthDownBytes}", |
| 315 | "format-disconnected": "", |
| 316 | "tooltip-format": "{ipaddr}", |
| 317 | "format-linked": " {ifname} (No IP)", |
| 318 | "tooltip-format-wifi": "{essid} {icon} {signalStrength}%", |
| 319 | "tooltip-format-ethernet": "{ifname} ", |
| 320 | "tooltip-format-disconnected": " Disconnected", |
| 321 | "min-length": 24, |
| 322 | "max-length": 24, |
| 323 | "format-icons": [ |
| 324 | "", "", "", "", "" |
| 325 | ] |
| 326 | }, |
| 327 | |
| 328 | "power-profiles-daemon": { |
| 329 | "format": "{icon} ", |
| 330 | "tooltip-format": "Power profile: {profile}\nDriver: {driver}", |
| 331 | "tooltip": true, |
| 332 | "format-icons": { |
| 333 | "default": "", |
| 334 | "performance": "", |
| 335 | "balanced": "", |
| 336 | "power-saver": "" |
| 337 | } |
| 338 | }, |
| 339 | |
| 340 | "pulseaudio": { |
| 341 | "format": "{icon} {volume}%", |
| 342 | "format-bluetooth": "{icon} {volume}%", |
| 343 | "format-muted": "", |
| 344 | "format-icons": { |
| 345 | "headphone": "", |
| 346 | "hands-free": "", |
| 347 | "headset": "", |
| 348 | "phone": "", |
| 349 | "portable": "", |
| 350 | "car": "", |
| 351 | "default": [ |
| 352 | "", "", "", "" |
| 353 | ], |
| 354 | "ignored-sinks": [ |
| 355 | "Easy Effects Sink" |
| 356 | ], |
| 357 | }, |
| 358 | "scroll-step": 5.0, |
| 359 | "on-click": "$HOME/.config/hypr/scripts/Volume.sh --toggle", |
| 360 | "on-click-right": "pavucontrol -t 3", |
| 361 | "on-scroll-up": "$HOME/.config/hypr/scripts/Volume.sh --inc", |
| 362 | "on-scroll-down": "$HOME/.config/hypr/scripts/Volume.sh --dec", |
| 363 | "tooltip-format": "{icon} {desc} | {volume}%", |
| 364 | "smooth-scrolling-threshold": 1, |
| 365 | }, |
| 366 | |
| 367 | "pulseaudio#1": { |
| 368 | "format": "{icon} {volume}%", |
| 369 | "format-bluetooth": "{icon} {volume}%", |
| 370 | "format-bluetooth-muted": " {icon}", |
| 371 | "format-muted": "", |
| 372 | "format-icons": { |
| 373 | "headphone": "", |
| 374 | "hands-free": "", |
| 375 | "headset": "", |
| 376 | "phone": "", |
| 377 | "portable": "", |
| 378 | "car": "", |
| 379 | "default": ["", "", ""] |
| 380 | }, |
| 381 | "on-click": "pamixer --toggle-mute", |
| 382 | "on-click-right": "pavucontrol -t 3", |
| 383 | "tooltip": true, |
| 384 | "tooltip-format": "{icon} {desc} | {volume}%", |
| 385 | }, |
| 386 | |
| 387 | "pulseaudio#microphone": { |
| 388 | "format": "{format_source}", |
| 389 | "format-source": " {volume}%", |
| 390 | "format-source-muted": "", |
| 391 | "on-click": "$HOME/.config/hypr/scripts/Volume.sh --toggle-mic", |
| 392 | "on-click-right": "pavucontrol -t 4", |
| 393 | "on-scroll-up": "$HOME/.config/hypr/scripts/Volume.sh --mic-inc", |
| 394 | "on-scroll-down": "$HOME/.config/hypr/scripts/Volume.sh --mic-dec", |
| 395 | "tooltip-format": "{source_desc} | {source_volume}%", |
| 396 | "scroll-step": 5, |
| 397 | }, |
| 398 | |
| 399 | "tray": { |
| 400 | "icon-size": 20, |
| 401 | "spacing": 4, |
| 402 | }, |
| 403 | |
| 404 | "wireplumber": { |
| 405 | "format": "{icon} {volume} %", |
| 406 | "format-muted": " Mute", |
| 407 | "on-click": "$HOME/.config/hypr/scripts/Volume.sh --toggle", |
| 408 | "on-click-right": "pavucontrol -t 3", |
| 409 | "on-scroll-up": "$HOME/.config/hypr/scripts/Volume.sh --inc", |
| 410 | "on-scroll-down": "$HOME/.config/hypr/scripts/Volume.sh --dec", |
| 411 | "format-icons": [ |
| 412 | "", "", "", "" |
| 413 | ], |
| 414 | }, |
| 415 | |
| 416 | "wlr/taskbar": { |
| 417 | "format": "{icon} {name}", |
| 418 | "icon-size": 16, |
| 419 | "all-outputs": false, |
| 420 | "tooltip-format": "{title}", |
| 421 | "on-click": "activate", |
| 422 | "on-click-middle": "close", |
| 423 | "ignore-list": [ |
| 424 | "wofi", |
| 425 | "rofi", |
| 426 | "kitty", |
| 427 | "kitty-dropterm" |
| 428 | ], |
| 429 | }, |
| 430 | } |