diff options
| author | delta <darkussdelta@gmail.com> | 2023-05-21 10:12:46 +0200 |
|---|---|---|
| committer | delta <darkussdelta@gmail.com> | 2023-05-21 10:12:46 +0200 |
| commit | f42a3a2cc941e34dd938b1e6bc24785a44781db2 (patch) | |
| tree | bec91db370c7bcd5be2bb614d2d315a32c751215 /.config/awesome/ui/statusbar/widgets/wifi.lua | |
| parent | f5612f081db0dc69f5c0ebc69e67fa3b098a9ad9 (diff) | |
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 <darkussdelta@gmail.com>
Diffstat (limited to '.config/awesome/ui/statusbar/widgets/wifi.lua')
| -rw-r--r-- | .config/awesome/ui/statusbar/widgets/wifi.lua | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/.config/awesome/ui/statusbar/widgets/wifi.lua b/.config/awesome/ui/statusbar/widgets/wifi.lua deleted file mode 100644 index c895b0a..0000000 --- a/.config/awesome/ui/statusbar/widgets/wifi.lua +++ /dev/null @@ -1,38 +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 q = require "quarrel" -local gdebug = require "gears.debug" - -local wifi = wibox.widget { - widget = wibox.container.place, - valign = "center", - halign = "center", - { - widget = wibox.widget.imagebox, - image = gcolor.recolor_image(phosphor.wifi_x_fill, qvars.colors.red), - forced_width = qvars.char_height, - forced_height = qvars.char_height - } -} - -awesome.connect_signal("services::wifi", function(essid, strength, connected) - if not connected then - wifi.widget.image = gcolor.recolor_image(phosphor.wifi_x_fill, qvars.colors.red) - return - end - - local icon_data = qmath.step_value(strength, { - { 0, { "none", "red" } }, - { 25, { "low", "yellow" } }, - { 50, { "medium", "yellow" } }, - { 75, { "high", "green" } }, - { 100 } - }) - - wifi.widget.image = gcolor.recolor_image(phosphor["wifi_" .. icon_data[1] .. "_fill"], qvars.colors[icon_data[2]]) -end) - -return wifi |
