-
Notifications
You must be signed in to change notification settings - Fork 212
Open
Description
Hi! I want to use the net widget, here's my code:
local mynet = lain.widget.net {
iface = "wlp3s0",
wifi_state = "on",
settings = function()
local wifi = net_now.devices.wlp3s0
if wifi then
net = "Connected"
else
net = "Disconnected"
end
widget:set_markup(net)
end
}And I have my wibox setup:
s.mywibox:setup {
layout = wibox.layout.align.horizontal,
{ -- Left widgets
layout = wibox.layout.fixed.horizontal,
s.mylayoutbox,
s.mytaglist,
},
mytextclock,
expand = "none",
{ -- Right widgets
layout = wibox.layout.fixed.horizontal,
myvol,
mysep,
mysep,
mybat,
mysep,
mysep,
mytemp,
mysep,
mysep,
mynet,
mysep,
},(Those mysep are just textboxes with spaces). When I restart awesome (including when I turn on the pc) sometimes I get an error. If I restart again the error is solved. After deactivating and activating all the widgets I conclude that is net the cause of the problem. There's some issue with my config file? Thanks!

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels