From f42a3a2cc941e34dd938b1e6bc24785a44781db2 Mon Sep 17 00:00:00 2001 From: delta Date: Sun, 21 May 2023 10:12:46 +0200 Subject: major update of awesome config add new icons, switch over to using stylesheets instead of gears.color.recolor_image, add a music widget to the panel, optimize services in common.lua, fix the application lense filtering and increase the update rate of services in common.lua Signed-off-by: delta --- .config/awesome/ui/statusbar/widgets/battery.lua | 32 ------------------------ 1 file changed, 32 deletions(-) delete mode 100644 .config/awesome/ui/statusbar/widgets/battery.lua (limited to '.config/awesome/ui/statusbar/widgets/battery.lua') diff --git a/.config/awesome/ui/statusbar/widgets/battery.lua b/.config/awesome/ui/statusbar/widgets/battery.lua deleted file mode 100644 index f220ff1..0000000 --- a/.config/awesome/ui/statusbar/widgets/battery.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 battery = wibox.widget { - widget = wibox.container.place, - valign = "center", - halign = "center", - { - widget = wibox.widget.imagebox, - image = gcolor.recolor_image(phosphor.battery_vertical_warning_fill, qvars.colors.red), - forced_width = qvars.char_height, - forced_height = qvars.char_height - } -} - -awesome.connect_signal("services::battery", function(capacity, status) - local icon_data = status == "Charging" and { "charging", "green" } or qmath.step_value(capacity, { - { 0, { "empty", "red" } }, - { 20, { "low", "red" } }, - { 40, { "medium", "yellow" } }, - { 60, { "high", "green" } }, - { 80, { "full", "green" } }, - { 100 } - }) - - battery.widget.image = gcolor.recolor_image(phosphor["battery_vertical_" .. icon_data[1] .. "_fill"], qvars.colors[icon_data[2]]) -end) - -return battery -- cgit v1.2.3