diff --git a/home/.config/awesome/icons/bat.png b/home/.config/awesome/icons/bat.png index 35f280c..874771a 100644 Binary files a/home/.config/awesome/icons/bat.png and b/home/.config/awesome/icons/bat.png differ diff --git a/home/.config/awesome/widgets.lua b/home/.config/awesome/widgets.lua index b32fcaf..93e0509 100644 --- a/home/.config/awesome/widgets.lua +++ b/home/.config/awesome/widgets.lua @@ -12,15 +12,17 @@ local widgets = {} widgets.netdown_icon = wibox.widget.imagebox(iconsdir .. "down.png") widgets.netdown = lain.widget.net({ + units = 1024^2, settings = function() - widget:set_markup(markup.fontfg(theme.font, theme.colors.green, math.floor(net_now.received+0.5) .. "KiB/s ")) + widget:set_markup(markup.fontfg(theme.font, theme.colors.green, net_now.received .. "MiB/s ")) end }) widgets.netup_icon = wibox.widget.imagebox(iconsdir .. "up.png") widgets.netup = lain.widget.net({ + units = 1024^2, settings = function() - widget:set_markup(markup.fontfg(theme.font, theme.colors.red, math.floor(net_now.sent+0.5) .. "KiB/s ")) + widget:set_markup(markup.fontfg(theme.font, theme.colors.red, net_now.sent .. "MiB/s ")) end }) @@ -34,7 +36,7 @@ widgets.mem = lain.widget.mem({ widgets.cpu_icon = wibox.widget.imagebox(iconsdir .. "cpu.png") widgets.cpu = lain.widget.cpu({ settings = function() - widget:set_markup(markup.fontfg(theme.font, theme.colors.cyan, cpu_now.usage .. "% ")) + widget:set_markup(markup.fontfg(theme.font, theme.colors.cyan, string.format("%02d", cpu_now.usage) .. "% ")) end })