Skip to content

Net widget causes random crashes #464

@juacq97

Description

@juacq97

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!
awesome_error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions