mirror of
https://github.com/GeorgeSG/dotfiles.git
synced 2026-11-04 18:58:45 +00:00
10 lines
310 B
Plaintext
10 lines
310 B
Plaintext
; this is taking up too much CPU time
|
|
|
|
(defpoll brightness-1 :interval "2s" "ddcutil -d 1 getvcp 10 | awk '{ split($9, a, \",\"); print a[1]}'")
|
|
|
|
(defwidget brightness []
|
|
(eventbox :onscroll "./lib/change-brightness.sh {} ${brightness-1 + 0}"
|
|
(label :text " ${substring(brightness-1, 0, 2)}")
|
|
)
|
|
)
|