From 673d7dd3e142aa9a687d8867f9baf5f8581fc7c9 Mon Sep 17 00:00:00 2001 From: ryukamish Date: Thu, 9 Jul 2026 16:54:00 +0530 Subject: more icons and cleanup with drawer modules --- .config/waybar/config.jsonc | 108 +++++++++++++++++++++++++++++++++----------- 1 file changed, 81 insertions(+), 27 deletions(-) (limited to '.config/waybar/config.jsonc') diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc index 1a7d7da..cce3498 100644 --- a/.config/waybar/config.jsonc +++ b/.config/waybar/config.jsonc @@ -2,33 +2,34 @@ "layer": "top", "position": "top", "modules-left": [ - "network", - "custom/vpn", - "custom/brightness" + "clock", + "sway/window" ], "modules-center": [ "sway/workspaces" ], "modules-right": [ - "tray", + "group/tray-group", + "group/brightness-group", + "network", + "custom/vpn", "pulseaudio", "bluetooth", - "battery", - "clock" + "battery" ], "sway/workspaces": { "all-outputs": true, "format": "{name}" }, + "sway/window": { + "format": "{app_id} {title}", + "max-length": 40 + }, "clock": { "format": "{:%a, %b %d/%m/%y %H:%M}", "interval": 60, "tooltip-format": "{:%B %Y}\n{calendar}" }, - "tray": { - "icon-size": 16, - "spacing": 4 - }, "battery": { "interval": 60, "max-length": 25, @@ -57,7 +58,8 @@ "󰂅" ] }, - "format-plugged": "󰚥 {capacity}%" + "format-plugged": "󰚥 {capacity}%", + "format-full": "󰚥 {capacity}%" }, "bluetooth": { "format": "󰂯 {num_connections}", @@ -68,19 +70,25 @@ "on-click-right": "rfkill toggle bluetooth" }, "pulseaudio": { - "format": "{icon} {volume}", - "format-bluetooth": "󰂯 {volume}", - "format-muted": "X MUTED", - "format-icons": [ - "+---", - "++--", - "+++-", - "++++" - ], - "on-click": "pavucontrol-qt", - "tooltip-format": "{desc}", - "scroll-step": 5 + "format": "{icon} {volume}%", + "format-bluetooth": "{icon}  {volume}%", + "format-muted": "", + "format-icons": { + "alsa_output.pci-0000_00_1f.3.analog-stereo": "", + "alsa_output.pci-0000_00_1f.3.analog-stereo-muted": "", + "headphone": "", + "hands-free": "󰂑", + "headset": "󰂑", + "phone": "", + "phone-muted": "", + "portable": "", + "car": "", + "default": ["", ""] }, + "scroll-step": 5, + "tooltip-format": "{desc}", + "on-click": "pavucontrol-qt" + }, "network": { "interface": "wlo1", "format": "{ifname}", @@ -90,7 +98,7 @@ "󰤥", "󰤨" ], - "format-wifi": "{icon} {essid} {signalStrength}%", + "format-wifi": "{icon} {signalStrength}%", "format-ethernet": " {ipaddr}/{cidr}", "format-disconnected": "󰲛 DC'D", "tooltip-format-wifi": "{icon} {essid} ({signalStrength}%)", @@ -105,16 +113,62 @@ "format": " {}", "exec": "~/.local/bin/waybar-vpn", "return-type": "json", - "interval": 30 + "interval": 30, + "signal": 9 + }, + // Brightness display + "group/brightness-group": { + "orientation": "horizontal", + "drawer": { + "transition-duration": 500, + "children-class": "brightness-child", + "transition-left-to-right": false + }, + "modules": [ + "custom/brightness-icon", + "backlight", + "custom/brightness" + ] + }, + "backlight": { + "device": "intel_backlight", + "format": "{icon} {percent}%", + "tooltip-format": "Built-in: {percent}%", + "format-icons": ["", ""] + }, + "custom/brightness-icon": { + "format": "", + "tooltip-format": "" }, "custom/brightness": { - "format": "HDMI: {}%", + "format": "󰡁 {}%", "interval": "once", "signal": 9, "exec": "~/.local/bin/waybar-brightness get", "on-scroll-up": "~/.local/bin/waybar-brightness up", "on-scroll-down": "~/.local/bin/waybar-brightness down", "on-click": "~/.local/bin/waybar-brightness left_click", - "on-click-right": "~/.local/bin/waybar-brightness right_click" + "on-click-right": "~/.local/bin/waybar-brightness right_click", + "tooltip-format": "HDMI: {}%" + }, + // Tray drawer group + "group/tray-group": { + "orientation": "horizontal", + "drawer": { + "transition-duration": 300, + "transition-left-to-right": true + }, + "modules": [ + "custom/tray-drawer", + "tray" + ] + }, + "custom/tray-drawer": { + "format": "", + "tooltip": false + }, + "tray": { + "icon-size": 16, + "spacing": 4 } } -- cgit v1.3