(defwidget bright [] (box :class "module" (eventbox ; scroll to change the brightness level :onscroll "echo {} | sed -e 's/up/-U 1/g' -e 's/down/-A 1/g' | xargs brillo -S" (label :text {brightness.icon} :class "bright-icon icon" :tooltip "brightness ${round(brightness.percent, 0)}%"))))