diff options
| author | ryukamish <[email protected]> | 2026-03-17 20:36:12 +0530 |
|---|---|---|
| committer | ryukamish <[email protected]> | 2026-03-17 20:36:12 +0530 |
| commit | 6c197cfb233f595d8fe464b232f1d725261a5b4f (patch) | |
| tree | e4200fa0c221f02f74f0d1c8f7913b2ae654b577 /waybar/config.jsonc | |
| parent | 5742fc100ef25cda9b6a0bc3f3bee7e8f1df5e34 (diff) | |
add: waybar for niri with colorscheme
Diffstat (limited to 'waybar/config.jsonc')
| -rw-r--r-- | waybar/config.jsonc | 223 |
1 files changed, 223 insertions, 0 deletions
diff --git a/waybar/config.jsonc b/waybar/config.jsonc new file mode 100644 index 0000000..9bd4776 --- /dev/null +++ b/waybar/config.jsonc @@ -0,0 +1,223 @@ +// _*_ mode: jsonc _*_ +{ + "reload_style_on_change": true, + "layer": "top", + "position": "bottom", + "modules-left": [ + "niri/workspaces", + "custom/uptime", + "backlight", + "group/network", + ], + "modules-center": [], + "modules-right": [ + "group/expand-tray", + "group/hardware", + "group/audio", + "group/powerofmachine", + "clock" + ], + "niri/workspaces": { + "on-click": "activate", + "format": "{icon}", + "format-icons": { + "1": "1", + "2": "2", + "3": "3", + "4": "4", + "5": "5", + "6": "6", + "7": "7", + "8": "8", + "9": "9", + "10": "10" + } + }, + // module groups + "group/hardware": { + "orientation": "horizontal", + "modules": [ + "cpu", + "memory", + "temperature" + ] + }, + "group/audio": { + "orientation": "horizontal", + "modules": [ + "bluetooth", + "pulseaudio" + ] + }, + "group/network": { + "orientation": "horizontal", + "modules": [ + "network", + "custom/vpn" + ] + }, + "group/powerofmachine": { + "orientation": "horizontal", + "modules": [ + "battery" + ] + }, + "group/expand-tray": { + "orientation": "inherit", + "drawer": { + "transition-duration": 600, + "children-class": "tray-group-item" + }, + "modules": [ + "custom/expand-icon", + "tray" + ] + }, + // Individual modules + "clock": { + "interval": 60, + "tooltip": true, + "format": " {:%R %d/%m}", + "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", + "format-alt": " {:%a, %d, %b %Y}" + }, + "memory": { + "interval": 12, + "format": " {}%" + }, + "cpu": { + "interval": 5, + "format": " {usage}%", + "on-click": "alacritty --class TUI.float -e btop" + }, + "temperature": { + // The thermal zone for CPU changes from time to time on MSI Laptops + "thermal-zone": 5, + "critical-threshold": 80, + "format": " {temperatureC}°C" + }, + "network": { + "interface": "wlan0", + "family": "ipv4", + "format": "{ifname}", + "format-wifi": "{icon} {essid}", + "format-ethernet": " {ipaddr}/<span color='#aaaaaa'>{cidr}</span>", + "format-disconnected": " DC'D", + "format-icons": [ + "", + "", + "", + "", + "" + ], + "tooltip-format": "{ifname} via {gwaddr}", + "tooltip-format-wifi": "{essid} ({frequency} GHz)\n⇣{bandwidthDownBytes} ⇡{bandwidthUpBytes}", + "tooltip-format-ethernet": "⇣{bandwidthDownBytes} ⇡{bandwidthUpBytes}", + "tooltip-format-disconnected": "Disconnected", + "interval": 5, + "on-click": "alacritty --class TUI.float -e wifitui", + "on-click-right": "rfkill toggle wlan" + }, + "backlight": { + "device": "intel_backlight", + "format": "{icon} {percent}%", + "format-icons": [ + "", + "", + "", + "", + "", + "", + "", + "", + "" + ] + }, + "bluetooth": { + "format": " {num_connections}", + "format-disabled": "<span color='#aaaaaa'></span>", + "format-connected": " {num_connections}", + "tooltip-format": "Devices connected: {num_connections}\n{device_alias} at {device_battery_percentage}%", + "on-click": "alacritty --class=TUI.float -e bluetui", + "on-click-right": "rfkill toggle bluetooth" + }, + "pulseaudio": { + "format": "{icon} {volume}%", + "on-click": "alacritty --class TUI.float -e wiremix", + "tooltip-format": "{desc}", + "scroll-step": 5, + "format-muted": "<span color='#aaaaaa' </span>", + "format-icons": { + "headphone": "", + "default": [ + "", + "", + "" + ] + } + }, + "battery": { + "format": "{capacity}% {icon}", + "format-discharging": "{icon} {capacity}%", + "format-charging": "{icon} {capacity}%", + "format-plugged": " {capacity}%", + "format-full": " {capacity}%", + "format-icons": { + "charging": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "default": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ] + }, + "interval": 5, + "states": { + "warning": 20, + "critical": 10 + } + }, + // Tray + "tray": { + "icon-size": 10, + "spacing": 10 + }, + // Custom modules + "custom/vpn": { + "format": " VPN", + "exec": "echo '{\"class\": \"connected\"}'", + "exec-if": "test -d /proc/sys/net/ipv4/conf/proton0", + "return-type": "json", + "interval": 5 + }, + "custom/expand-icon": { + "format": " ", + "tooltip": false + }, + "custom/uptime": { + "format": "{}", + "format-icon": [ + "" + ], + "tooltip": false, + "interval": 1600, + "exec": "~/.config/waybar/scripts/uptime.sh" + } +} |
