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)
This commit is contained in:
BluishHumility
2024-07-30 23:34:57 -04:00
parent 11f4728f47
commit b59b849519

View File

@@ -24,8 +24,7 @@
"pulseaudio", "pulseaudio",
"custom/keyboard-layout", "custom/keyboard-layout",
"battery", "battery",
"backlight#icon", "backlight",
"backlight#value",
"clock", "clock",
"tray", "tray",
//"custom/weather", //"custom/weather",
@@ -140,17 +139,12 @@
"format-icons": ["", "", "", "", ""] "format-icons": ["", "", "", "", ""]
}, },
"backlight#icon": { "backlight": {
"format": "{icon}", "format": "{icon} {percent}% ",
"format-icons": [""], "format-icons": ["󰄰", "󰪞", "󰪟", "󰪠", "󰪡", "󰪢", "󰪣", "󰪤", "󰪥"],
"on-scroll-down": "brightnessctl -c backlight set 1%-", "tooltip-format": "Backlight (Scroll): {percent:}%",
"on-scroll-up": "brightnessctl -c backlight set +1%" "on-scroll-down": "brightnessctl -c backlight set 5%-",
}, "on-scroll-up": "brightnessctl -c backlight set +5%"
"backlight#value" :{
"format": "{percent}%",
"on-scroll-down": "brightnessctl -c backlight set 1%-",
"on-scroll-up": "brightnessctl -c backlight set +1%"
}, },
"clock": { "clock": {