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",
"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": {