You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think 2 instances of net widget can't work at same time (same issue with vicious widget), but like workaround we can duplicate lain/widgets/net.lua as lain/widgets/net2.lua and do this trick:
net_widgetdl=lain.widgets.net({
settings=function()
widget:set_markup(markup.font("Tamsyn 1", "") ..net_now.received..space2)
end
})
net_widgetul=lain.widgets.net2({
settings=function()
widget:set_markup(markup.font("Tamsyn 1", "") ..net_now.sent..space2)
end
})
Two net widgets are highly inefficient, you can use just one for your purpose: the widget inner function is in the main scope, so you can update any textbox in your rc.lua from it. Here follows a snippet.
netdowninfo=wibox.widget.textbox()
netupinfo=lain.widgets.net({
settings=function()
widget:set_markup(markup("#e54c62", net_now.sent..""))
netdowninfo:set_markup(markup("#87af5f", net_now.received..""))
end
})
When we have 2 net widgets at same time (one for download speed and one for upload):
there is strange issue, download speed freeze from start at 294754.4 or 6574.0 and such, also upload speed not displayin real speed.
When 1 net widget (with: .. net_now.received .. " - " .. net_now.sent .. ) - everything ok.
How to make it work when 2 net widgets at same time?
The text was updated successfully, but these errors were encountered: