| 1 | { |
| 2 | // ------------------------------------------------------------------------- |
| 3 | // Global configuration - Landscape monitors |
| 4 | // ------------------------------------------------------------------------- |
| 5 | |
| 6 | "layer": "top", |
| 7 | "position": "top", |
| 8 | "margin-left": 10, |
| 9 | "margin-bottom": 0, |
| 10 | "margin-right": 10, |
| 11 | "spacing": 5, |
| 12 | |
| 13 | // Only show on landscape monitors |
| 14 | "output": ["HDMI-A-1", "DP-1"], |
| 15 | |
| 16 | "modules-left": [ |
| 17 | "hyprland/workspaces", |
| 18 | "temperature", |
| 19 | "custom/spotify" |
| 20 | ], |
| 21 | "modules-center": [ |
| 22 | "clock#date", |
| 23 | "custom/weather" |
| 24 | ], |
| 25 | "modules-right": [ |
| 26 | "backlight", |
| 27 | "custom/storage", |
| 28 | "memory", |
| 29 | "cpu", |
| 30 | "battery", |
| 31 | "wireplumber", |
| 32 | "custom/almanta", |
| 33 | "custom/screenshot_t", |
| 34 | "custom/jetbrains", |
| 35 | "tray", |
| 36 | "custom/power" |
| 37 | ], |
| 38 | |
| 39 | // ------------------------------------------------------------------------- |
| 40 | // Modules (same as original) |
| 41 | // ------------------------------------------------------------------------- |
| 42 | |
| 43 | "custom/jetbrains": { |
| 44 | "format": "", |
| 45 | "tooltip": "JetBrains (click to choose IDE; right-click: Toolbox)", |
| 46 | "on-click": "~/.config/waybar/modules/jetbrains_menu.sh", |
| 47 | "on-click-right": "jetbrains-toolbox", |
| 48 | "interval": 0, |
| 49 | "class": "chip jetbrains" |
| 50 | }, |
| 51 | |
| 52 | "custom/almanta": { |
| 53 | "format": "{}", |
| 54 | "return-type": "json", |
| 55 | "interval": 20, |
| 56 | "exec": "/home/mfwolffe/.config/waybar/modules/almanta.sh", |
| 57 | "on-click": "alacritty -e ssh espadon@almanta", |
| 58 | "tooltip": true, |
| 59 | "class": "chip almanta" |
| 60 | }, |
| 61 | |
| 62 | "custom/screenshot_t":{ |
| 63 | "format":" ", |
| 64 | "on-click": "~/.config/hypr/scripts/screenshot_full", |
| 65 | "on-click-right":"~/.config/hypr/scripts/screenshot_area" |
| 66 | }, |
| 67 | |
| 68 | "temperature": { |
| 69 | "interval": 4, |
| 70 | "critical-threshold": 80, |
| 71 | "format-critical": " {temperatureC}°C", |
| 72 | "format": "{icon} {temperatureC}°C", |
| 73 | "format-icons": ["", "", ""], |
| 74 | "max-length": 7, |
| 75 | "min-length": 7, |
| 76 | "on-click": "xsensors" |
| 77 | }, |
| 78 | |
| 79 | "memory": { |
| 80 | "interval": 30, |
| 81 | "format": " {used:0.2f} / {total:0.0f} GB", |
| 82 | "on-click": "alacritty -e btop" |
| 83 | }, |
| 84 | |
| 85 | "battery": { |
| 86 | "interval": 2, |
| 87 | "states": { |
| 88 | "good": 95, |
| 89 | "warning": 30, |
| 90 | "critical": 15 |
| 91 | }, |
| 92 | "format": "{icon} {capacity}%", |
| 93 | "format-charging": " {capacity}%", |
| 94 | "format-plugged": " {capacity}%", |
| 95 | "format-icons": ["", "", "", "", ""] |
| 96 | }, |
| 97 | |
| 98 | "custom/storage": { |
| 99 | "format": " {}", |
| 100 | "format-alt": "{percentage}% ", |
| 101 | "format-alt-click": "click-right", |
| 102 | "return-type": "json", |
| 103 | "interval": 60, |
| 104 | "exec": "~/.config/waybar/modules/storage.sh" |
| 105 | }, |
| 106 | |
| 107 | "backlight": { |
| 108 | "device": "intel_backlight", |
| 109 | "format": "{icon} {percent}%", |
| 110 | "format-alt": "{percent}% {icon}", |
| 111 | "format-alt-click": "click-right", |
| 112 | "format-icons": ["", ""], |
| 113 | "on-scroll-down": "brightnessctl s 5%-", |
| 114 | "on-scroll-up": "brightnessctl s +5%" |
| 115 | }, |
| 116 | |
| 117 | "custom/weather": { |
| 118 | "format": "{}", |
| 119 | "format-alt": "{alt}: {}", |
| 120 | "format-alt-click": "click-right", |
| 121 | "interval": 3600, |
| 122 | "exec": "curl -s 'https://wttr.in/?format=1'", |
| 123 | "exec-if": "ping wttr.in -c1" |
| 124 | }, |
| 125 | |
| 126 | "custom/spotify": { |
| 127 | "exec": "~/.config/waybar/mediaplayer.py --player spotify", |
| 128 | "format": "{} ", |
| 129 | "return-type": "json", |
| 130 | "on-click": "playerctl play-pause", |
| 131 | "on-scroll-up": "playerctl next", |
| 132 | "on-scroll-down": "playerctl previous" |
| 133 | }, |
| 134 | |
| 135 | "custom/power": { |
| 136 | "format": " ", |
| 137 | "tooltip": false, |
| 138 | "on-click": "wlogout" |
| 139 | }, |
| 140 | |
| 141 | "clock#date": { |
| 142 | "format": " {:%H:%M \n %e %b}", |
| 143 | "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", |
| 144 | "today-format": "<b>{}</b>" |
| 145 | }, |
| 146 | |
| 147 | "cpu": { |
| 148 | "interval": 1, |
| 149 | "format": "{max_frequency}GHz <span color=\"darkgray\">| {usage}%</span>", |
| 150 | "max-length": 13, |
| 151 | "min-length": 13 |
| 152 | }, |
| 153 | |
| 154 | "hyprland/workspaces": { |
| 155 | "format": "{name}", |
| 156 | "format-icons": { |
| 157 | "1": "一", |
| 158 | "2": "二", |
| 159 | "3": "三", |
| 160 | "4": "四", |
| 161 | "5": "五", |
| 162 | "6": "六", |
| 163 | "7": "七", |
| 164 | "8": "八", |
| 165 | "9": "九", |
| 166 | "10": "十" |
| 167 | }, |
| 168 | "on-scroll-up": "hyprctl dispatch workspace e+1 1>/dev/null", |
| 169 | "on-scroll-down": "hyprctl dispatch workspace e-1 1>/dev/null", |
| 170 | "sort-by-number": true, |
| 171 | "active-only": false |
| 172 | }, |
| 173 | |
| 174 | "wireplumber": { |
| 175 | "on-click": "pavucontrol", |
| 176 | "on-click-right": "amixer sset Master toggle 1>/dev/null", |
| 177 | "format": "<span foreground='#fab387'>{icon}</span> {volume}%", |
| 178 | "format-muted": " ", |
| 179 | "format-source": "", |
| 180 | "format-source-muted": "", |
| 181 | "format-icons": { |
| 182 | "headphone": " ", |
| 183 | "hands-free": " ", |
| 184 | "headset": " ", |
| 185 | "phone": " ", |
| 186 | "portable": " ", |
| 187 | "car": " ", |
| 188 | "default": [" ", " ", " "] |
| 189 | } |
| 190 | }, |
| 191 | |
| 192 | "tray": { |
| 193 | "icon-size": 15, |
| 194 | "spacing": 5 |
| 195 | } |
| 196 | } |