From 58a318207fe4f7391de30e581c5b87f73e20a7ac Mon Sep 17 00:00:00 2001 From: ryukamish Date: Wed, 10 Jun 2026 22:23:20 +0530 Subject: brightness module for external displays and removing grey color from module's text --- .config/waybar/config.jsonc | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to '.config/waybar/config.jsonc') diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc index ec5dc7c..d628f01 100644 --- a/.config/waybar/config.jsonc +++ b/.config/waybar/config.jsonc @@ -4,7 +4,8 @@ "modules-left": [ "sway/workspaces", "network", - "custom/vpn" + "custom/vpn", + "custom/brightness" ], "modules-center": [], "modules-right": [ @@ -35,23 +36,23 @@ "warning": 30, "critical": 15 }, - "format": "BAT: {capacity}%", + "format": "BAT: {capacity}%", "format-icons": { "charging": "PWR: {capacity}%" }, "format-plugged": "PLG: {capacity}%" }, "bluetooth": { - "format": "BT: {num_connections}", + "format": "BT: {num_connections}", "format-disabled": "BT: DC'D", - "format-connected": "BT: {num_connections}", + "format-connected": "BT: {num_connections}", "tooltip-format": "Devices connected: {num_connections}\n{device_alias} at {device_battery_percentage}%", "on-click": "kitty --app-id=TUI.float -e bluetui", "on-click-right": "rfkill toggle bluetooth" }, "pulseaudio": { "format": "{icon} {volume}", - "format-bluetooth": "BT: {icon} {volume}", + "format-bluetooth": "BT: {icon} {volume}", "format-muted": "X MUTED", "format-icons": [ "+--", @@ -83,5 +84,15 @@ // "exec-if": "test -d /proc/sys/net/ipv4/conf/proton0", "return-type": "json", "interval": 30 + }, + "custom/brightness": { + "format": "HDMI: {}%", + "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" } } -- cgit v1.3