dotfiles/config/waybar/config (view raw)
| 1 | // vim: ft=jsonc |
| 2 | { |
| 3 | "position": "top", |
| 4 | "layer": "top", |
| 5 | "height": 14, |
| 6 | "margin-top": 0, |
| 7 | "margin-bottom": 0, |
| 8 | "margin-left": 0, |
| 9 | "margin-right": 0, |
| 10 | "modules-left": [ |
| 11 | "hyprland/workspaces", |
| 12 | "hyprland/window" |
| 13 | ], |
| 14 | "modules-center": [ |
| 15 | "clock", |
| 16 | "cpu" |
| 17 | ], |
| 18 | "modules-right": [ |
| 19 | "memory", |
| 20 | "tray", |
| 21 | "backlight", |
| 22 | "battery", |
| 23 | "pulseaudio", |
| 24 | "network" |
| 25 | ], |
| 26 | |
| 27 | // modules |
| 28 | "clock": { |
| 29 | "format": " {:%H:%M}", |
| 30 | "tooltip": "true", |
| 31 | "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", |
| 32 | "format-alt": " {:%d/%m}" |
| 33 | }, |
| 34 | |
| 35 | "hyprland/workspaces": { |
| 36 | "active-only": false, |
| 37 | "all-outputs": true, |
| 38 | "disable-scroll": false, |
| 39 | "on-scroll-up": "hyprctl dispatch workspace -1", |
| 40 | "on-scroll-down": "hyprctl dispatch workspace +1", |
| 41 | "format": "{icon}", |
| 42 | "on-click": "activate", |
| 43 | "sort-by-number": true, |
| 44 | "format-icons": { |
| 45 | "urgent": "", |
| 46 | "active": "", |
| 47 | "default": "" |
| 48 | }, |
| 49 | "persistent_workspaces": { "*": 9 } |
| 50 | }, |
| 51 | |
| 52 | "hyprland/window": { "max-length": "40" }, |
| 53 | |
| 54 | "battery": { |
| 55 | "states": { |
| 56 | "good": 95, |
| 57 | "warning": 30, |
| 58 | "critical": 15 |
| 59 | }, |
| 60 | "format":"{icon} {capacity}%", |
| 61 | "format-charging":"{icon} {capacity}%", |
| 62 | "format-plugged": "{capacity}% ", |
| 63 | "format-alt": "{icon} {time}", |
| 64 | "format-icons": ["", "", "", "", ""] |
| 65 | }, |
| 66 | |
| 67 | "memory": { |
| 68 | "format": " {used}%", |
| 69 | "interval": 5 |
| 70 | }, |
| 71 | |
| 72 | "cpu": { |
| 73 | "format": " {usage}%", |
| 74 | "format-alt": " {avg_frequency} GHz", |
| 75 | "interval": 5 |
| 76 | }, |
| 77 | |
| 78 | "network": { |
| 79 | "format-wifi": " {essid}", |
| 80 | "format-linked": " {ifname} (No IP)", |
| 81 | "format-disconnected": "", |
| 82 | "format-alt": " {ifname}: {ipaddr}/{cidr}", |
| 83 | "tooltip-format": "{essid}", |
| 84 | "on-click-right": "nm-connection-editor" |
| 85 | }, |
| 86 | |
| 87 | "tray": { |
| 88 | "icon-size": 16, |
| 89 | "spacing": 5 |
| 90 | }, |
| 91 | |
| 92 | "backlight": { |
| 93 | "format": "{icon} {percent}%", |
| 94 | "format-icons": ["", "", "", "", "", "", "", "", ""], |
| 95 | "on-scroll-up": "brightnessctl set +10%", |
| 96 | "on-scroll-down": "brightnessctl set 10%-" |
| 97 | }, |
| 98 | |
| 99 | "pulseaudio": { |
| 100 | "format": "{icon} {volume}%", |
| 101 | "format-muted": "", |
| 102 | "format-icons": { "default": ["", "", ""] }, |
| 103 | "on-scroll-up": "wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%+", |
| 104 | "on-scroll-down": "wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%-" |
| 105 | } |
| 106 | } |