You are not logged in.

#1 2014-10-02 04:54:46

pdizzle
Member
Registered: 2013-02-07
Posts: 16

[SOLVED] awesomewm vicious.widgets.wifi returns nil

I cant seem to figure out why the returning args (all of them) are nil..

this is the widget code I have:

wifiwidget = wibox.widget.textbox()

vicious.register(wifiwidget, vicious.widgets.wifi,
function( widget, args)
  return string.format("%.8s - %sdB", args[1], args[7])
end, 19, "wlp2s0")

although, i feel thats not the culprit because regardless of what i put there, every entry in args[] is nil.

I have iwconfig installed and it returns the correct information for wlp2s0

vicious wifi script is in /usr/share/lua/5.2/vicious/widgets

any thoughts or further info needed?

Last edited by pdizzle (2014-10-02 13:18:42)

Offline

#2 2014-10-02 13:18:23

pdizzle
Member
Registered: 2013-02-07
Posts: 16

Re: [SOLVED] awesomewm vicious.widgets.wifi returns nil

resolved...

in the case of the wifi widget, the returned value is a table.

so to call the values i was looking for it should be formatted:

wifiwidget = wibox.widget.textbox()

vicious.register(wifiwidget, vicious.widgets.wifi,
function( widget, args)
  return string.format("%.8s - %sdB", args["{ssid}"], args["{sign}"])
end, 19, "wlp2s0")

Offline

Board footer

Powered by FluxBB