diff options
Diffstat (limited to '.config/awesome/ui/statusbar/widgets/brightness.lua')
-rw-r--r-- | .config/awesome/ui/statusbar/widgets/brightness.lua | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/.config/awesome/ui/statusbar/widgets/brightness.lua b/.config/awesome/ui/statusbar/widgets/brightness.lua deleted file mode 100644 index bfb8e91..0000000 --- a/.config/awesome/ui/statusbar/widgets/brightness.lua +++ /dev/null @@ -1,32 +0,0 @@ -local gcolor = require "gears.color" -local phosphor = require "assets.phosphor" -local qmath = require "quarrel.math" -local qvars = require "quarrel.vars" -local wibox = require "wibox" - -local brightness = wibox.widget { - widget = wibox.container.place, - valign = "center", - halign = "center", - { - widget = wibox.widget.imagebox, - image = gcolor.recolor_image(phosphor.moon_fill, qvars.colors.fg), - forced_width = qvars.char_height, - forced_height = qvars.char_height - } -} - -awesome.connect_signal("services::brightness", function(value) - local icon_data = qmath.step_value(value, { - { 0, "cloud_moon" }, - { 51, "moon" }, - { 102, "sun_horizon" }, - { 153, "sun_dim" }, - { 204, "sun" }, - { 255 } - }) - - brightness.widget.image = gcolor.recolor_image(phosphor[icon_data .. "_fill"], qvars.colors.fg) -end) - -return brightness |