diff --git a/config/eww/eww.yuck b/config/eww/eww.yuck index d9db5e7..b603679 100644 --- a/config/eww/eww.yuck +++ b/config/eww/eww.yuck @@ -69,10 +69,12 @@ :char "󰍬")) (defwidget brightness [] - (circle :prog {(backlight / 960) * 7/10} - :sty "font-size: 12; margin-right: 3px;" - :val {round( backlight / 960, 0) - 1} - :char "󰃠")) + (eventbox + :onscroll "if [ {} == 'up' ]; then brightnessctl -d intel_backlight set 1%+; else brightnessctl -d intel_backlight set 1%-; fi" + (circle :prog {(backlight / 960) * 7/10} + :sty "font-size: 12; margin-right: 3px;" + :val {round( backlight / 960, 0) - 1} + :char "󰃠"))) (defwidget power [] (box :class "power" :valign "end" "⏻"))