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 ""))
|
||||
|
||||
(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" "⏻"))
|
||||
|
|
Loading…
Reference in a new issue