eww: brightness scroll
This commit is contained in:
parent
33f4d22664
commit
0e60d4acac
1 changed files with 6 additions and 4 deletions
|
@ -69,10 +69,12 @@
|
||||||
:char ""))
|
:char ""))
|
||||||
|
|
||||||
(defwidget brightness []
|
(defwidget brightness []
|
||||||
|
(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}
|
(circle :prog {(backlight / 960) * 7/10}
|
||||||
:sty "font-size: 12; margin-right: 3px;"
|
:sty "font-size: 12; margin-right: 3px;"
|
||||||
:val {round( backlight / 960, 0) - 1}
|
:val {round( backlight / 960, 0) - 1}
|
||||||
:char ""))
|
:char "")))
|
||||||
|
|
||||||
(defwidget power []
|
(defwidget power []
|
||||||
(box :class "power" :valign "end" "⏻"))
|
(box :class "power" :valign "end" "⏻"))
|
||||||
|
|
Loading…
Reference in a new issue