You are not logged in.
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
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