[awesome] do not display notifications for net and bat widgets
This commit is contained in:
parent
4d5568aaa0
commit
0d956b1b55
|
@ -16,6 +16,7 @@ widgets.netdown_icon = wibox.widget.imagebox(iconsdir .. "down.png")
|
||||||
widgets.netdown = lain.widget.net({
|
widgets.netdown = lain.widget.net({
|
||||||
units = 1024^2,
|
units = 1024^2,
|
||||||
iface = network_interfaces,
|
iface = network_interfaces,
|
||||||
|
notify = "off",
|
||||||
settings = function()
|
settings = function()
|
||||||
widget:set_markup(markup.fontfg(theme.font, theme.colors.green, net_now.received .. "MiB/s "))
|
widget:set_markup(markup.fontfg(theme.font, theme.colors.green, net_now.received .. "MiB/s "))
|
||||||
end
|
end
|
||||||
|
@ -25,6 +26,7 @@ widgets.netup_icon = wibox.widget.imagebox(iconsdir .. "up.png")
|
||||||
widgets.netup = lain.widget.net({
|
widgets.netup = lain.widget.net({
|
||||||
units = 1024^2,
|
units = 1024^2,
|
||||||
iface = network_interfaces,
|
iface = network_interfaces,
|
||||||
|
notify = "off",
|
||||||
settings = function()
|
settings = function()
|
||||||
widget:set_markup(markup.fontfg(theme.font, theme.colors.red, net_now.sent .. "MiB/s "))
|
widget:set_markup(markup.fontfg(theme.font, theme.colors.red, net_now.sent .. "MiB/s "))
|
||||||
end
|
end
|
||||||
|
@ -53,6 +55,7 @@ widgets.temp = lain.widget.temp({
|
||||||
|
|
||||||
widgets.bat_icon = wibox.widget.imagebox(iconsdir .. "bat.png")
|
widgets.bat_icon = wibox.widget.imagebox(iconsdir .. "bat.png")
|
||||||
widgets.bat = lain.widget.bat({
|
widgets.bat = lain.widget.bat({
|
||||||
|
notify = "off",
|
||||||
settings = function()
|
settings = function()
|
||||||
state = bat_now.ac_status == 0 and "D" or "C"
|
state = bat_now.ac_status == 0 and "D" or "C"
|
||||||
widget:set_markup(markup.fontfg(theme.font, theme.fg_normal, state .. bat_now.perc))
|
widget:set_markup(markup.fontfg(theme.font, theme.fg_normal, state .. bat_now.perc))
|
||||||
|
|
Reference in a new issue