| 1 | { |
| 2 | // "layer": "top", // Waybar at top layer |
| 3 | "position": "top", // Waybar position (top|bottom|left|right) |
| 4 | "height": 0, // Waybar height (to be removed for auto height) |
| 5 | "width": 0, // Waybar width (0 == auto) |
| 6 | "spacing": 0, // Gaps between modules |
| 7 | // "output": ["HDMI-A-1", "DP-2", "eDP-1"], |
| 8 | // Choose the order of the modules |
| 9 | "modules-left": [ |
| 10 | "hyprland/workspaces" |
| 11 | // "hyprland/window", |
| 12 | ], |
| 13 | "modules-center" : [ |
| 14 | "hyprland/window" |
| 15 | ], |
| 16 | "modules-right": [ |
| 17 | "tray", |
| 18 | "custom/gpumode", |
| 19 | "pulseaudio", |
| 20 | "battery", |
| 21 | "backlight", |
| 22 | "cpu", |
| 23 | "memory", |
| 24 | // "network", |
| 25 | "custom/date", |
| 26 | "clock", |
| 27 | ], |
| 28 | // Modules configuration |
| 29 | "hyprland/workspaces": { |
| 30 | "format": "{icon}", |
| 31 | "format-icons": { |
| 32 | "1": "", // Browser → research, online study |
| 33 | "2": "", // Code → programming, assignments |
| 34 | "3": "", // Book → textbooks, notes, reading |
| 35 | "4": "", // Cog → system/tools for productivity |
| 36 | "5": "", // Chatting |
| 37 | "6": "", // Scroll/file → reports, writing, docs |
| 38 | "7": "", // Folder → file manager, documents |
| 39 | "8": "", // Terminal → dev tools, CLI |
| 40 | "9": "", // Flask (Science) → labs, simulations, experiments |
| 41 | "10": "", // Media viewer (optional, for diagrams/images) |
| 42 | "11": "", |
| 43 | "12": "", |
| 44 | "13": "", |
| 45 | "14": "", |
| 46 | "15": "", |
| 47 | "16": "", |
| 48 | "17": "", |
| 49 | "18": "", |
| 50 | "19": "", |
| 51 | "20": "", |
| 52 | "urgent": "", |
| 53 | // "active": "", // focused workspace on current monitor |
| 54 | // "visible": "", // focused workspace on other monitors |
| 55 | // "default": "", |
| 56 | // "default": "", // focused workspace on current monitor |
| 57 | // "empty": "" // persistent |
| 58 | }, |
| 59 | "on-scroll-up": "hyprctl dispatch workspace r-1", |
| 60 | "on-scroll-down": "hyprctl dispatch workspace r+1", |
| 61 | "all-outputs": false, |
| 62 | "show-special": false |
| 63 | }, |
| 64 | "hyprland/window": { |
| 65 | "format": " {}", |
| 66 | "max-length": 50 |
| 67 | }, |
| 68 | "tray": { |
| 69 | "icon-size": 13, |
| 70 | "spacing": 10 |
| 71 | }, |
| 72 | "clock": { |
| 73 | "timezone": "Asia/Kolkata", |
| 74 | "tooltip-format": "<tt><big>{calendar}</big></tt>", |
| 75 | "format": " {:%H:%M}", |
| 76 | "interval": 5 |
| 77 | }, |
| 78 | "custom/date": { |
| 79 | "timezone": "Asia/Kolkata", |
| 80 | "exec": "date +'%d %b %Y'", |
| 81 | "format": " {}", |
| 82 | "interval": 1, |
| 83 | "tooltip": false |
| 84 | }, |
| 85 | "custom/gpumode": { |
| 86 | "exec": "~/.config/waybar/scripts/gpu_mode.sh", |
| 87 | "format": "{}", |
| 88 | "interval": "once", |
| 89 | "on-click": "~/.local/bin/envyswitch", |
| 90 | }, |
| 91 | "cpu": { |
| 92 | "format": " {usage:2}%", |
| 93 | "interval": 1, |
| 94 | "on-click": "$TERMINAL -e htop", |
| 95 | }, |
| 96 | "memory": { |
| 97 | "format": " {used:0.1f}G", |
| 98 | "interval": 1, |
| 99 | "on-click": "$TERMINAL -e htop", |
| 100 | }, |
| 101 | "network": { |
| 102 | "interval": 5, |
| 103 | "format-wifi": " {essid} ({signalStrength}%)", // Icon: wifi |
| 104 | "format-ethernet": " {ifname}: {ipaddr}/{cidr}", // Icon: ethernet |
| 105 | "format-disconnected": "⚠ Disconnected", |
| 106 | "tooltip-format": "{ifname}: {ipaddr}" |
| 107 | }, |
| 108 | "battery": { |
| 109 | "states": { |
| 110 | "good": 90, |
| 111 | "warning": 30, |
| 112 | "critical": 15 |
| 113 | }, |
| 114 | "format": "{icon} {capacity:3}%", |
| 115 | "format-charging": " {capacity:3}%", |
| 116 | "format-plugged": " {capacity:3}%", |
| 117 | "format-alt": "{icon} ", |
| 118 | "format-good": "{icon} {capacity:3}%", |
| 119 | "format-full": "{icon} {capacity:3}%", |
| 120 | "format-icons": [ |
| 121 | "", |
| 122 | "", |
| 123 | "", |
| 124 | "", |
| 125 | "" |
| 126 | ] |
| 127 | }, |
| 128 | "backlight": { |
| 129 | // "device": "intel_backlight", |
| 130 | "format": "{icon} {percent}%", |
| 131 | "format-icons": ["", "", ""], |
| 132 | "on-scroll-up": "brightnessctl set 1%+", |
| 133 | "on-scroll-down": "brightnessctl set 1%-", |
| 134 | "min-length": 6 |
| 135 | }, |
| 136 | "pulseaudio": { |
| 137 | "scroll-step": 1, // %, can be a float |
| 138 | "format": "{volume:2}% {icon} {format_source}", |
| 139 | "format-muted": "{volume:2}% {format_source}", |
| 140 | "format-bluetooth": "{volume:2}% {icon} {format_source}", |
| 141 | "format-source": "", |
| 142 | "format-source-muted": "", |
| 143 | "format-icons": { |
| 144 | "analog": "", |
| 145 | "hdmi": "", |
| 146 | "headphone": "", |
| 147 | "headset": "", |
| 148 | "default": [ |
| 149 | "", // 0 - 25 |
| 150 | "", // 25 - 50 |
| 151 | "", // 50 - 75 |
| 152 | "" // 75 - 100 |
| 153 | ] |
| 154 | }, |
| 155 | "on-click": "pavucontrol", |
| 156 | }, |
| 157 | } |