[awesome] do not display notifications for net and bat widgets

This commit is contained in:
Simon Bruder 2019-06-06 20:22:59 +00:00
parent 4d5568aaa0
commit 0d956b1b55
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -16,6 +16,7 @@ widgets.netdown_icon = wibox.widget.imagebox(iconsdir .. "down.png")
widgets.netdown = lain.widget.net({
units = 1024^2,
iface = network_interfaces,
notify = "off",
settings = function()
widget:set_markup(markup.fontfg(theme.font, theme.colors.green, net_now.received .. "MiB/s "))
end
@ -25,6 +26,7 @@ widgets.netup_icon = wibox.widget.imagebox(iconsdir .. "up.png")
widgets.netup = lain.widget.net({
units = 1024^2,
iface = network_interfaces,
notify = "off",
settings = function()
widget:set_markup(markup.fontfg(theme.font, theme.colors.red, net_now.sent .. "MiB/s "))
end
@ -53,6 +55,7 @@ widgets.temp = lain.widget.temp({
widgets.bat_icon = wibox.widget.imagebox(iconsdir .. "bat.png")
widgets.bat = lain.widget.bat({
notify = "off",
settings = function()
state = bat_now.ac_status == 0 and "D" or "C"
widget:set_markup(markup.fontfg(theme.font, theme.fg_normal, state .. bat_now.perc))