From b59b84951941e8a8a10dfdb498dc53434bd74987 Mon Sep 17 00:00:00 2001 From: BluishHumility Date: Tue, 30 Jul 2024 23:34:57 -0400 Subject: [PATCH] feat(waybar): update backlight module * Remove `backlight#value`--no need for two separate modules for this, value and icon can live together in a single module. * Add graduated icons (the cirle fills/empties as the brightness is scrolled up or down) * Change scroll interval to 5% (1% is pretty low) --- .config/waybar/config | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.config/waybar/config b/.config/waybar/config index a5d72c2..0ae20bd 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -24,8 +24,7 @@ "pulseaudio", "custom/keyboard-layout", "battery", - "backlight#icon", - "backlight#value", + "backlight", "clock", "tray", //"custom/weather", @@ -140,17 +139,12 @@ "format-icons": ["", "", "", "", ""] }, - "backlight#icon": { - "format": "{icon}", - "format-icons": [""], - "on-scroll-down": "brightnessctl -c backlight set 1%-", - "on-scroll-up": "brightnessctl -c backlight set +1%" - }, - - "backlight#value" :{ - "format": "{percent}%", - "on-scroll-down": "brightnessctl -c backlight set 1%-", - "on-scroll-up": "brightnessctl -c backlight set +1%" + "backlight": { + "format": "{icon} {percent}% ", + "format-icons": ["󰄰", "󰪞", "󰪟", "󰪠", "󰪡", "󰪢", "󰪣", "󰪤", "󰪥"], + "tooltip-format": "Backlight (Scroll): {percent:}%", + "on-scroll-down": "brightnessctl -c backlight set 5%-", + "on-scroll-up": "brightnessctl -c backlight set +5%" }, "clock": {