-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net widget: failing iface autodetection #102
Comments
If you are sure you have an active network device, then the widget is faliing to autodetect it. But you can set it manually. Execute the following command: ip link show the device which state is UP is the one you have to manually set as -- Net
neticon = wibox.widget.imagebox(beautiful.widget_net)
neticon:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn_with_shell(iptraf) end)))
netwidget = lain.widgets.net({
iface = "your UP device", -- set it here
settings = function()
widget:set_markup(markup("#7AC82E", " " .. net_now.received)
.. " " ..
markup("#46A8C3", " " .. net_now.sent .. " "))
end
}) |
Thank you very much ,it`s work.Great |
Hello ! It is I again, I'll just drop this here, to make it work, simply change that line: local ws = helpers.read_pipe("ip link show | cut -d' ' -f2,9") Into local ws = helpers.read_pipe("/usr/sbin/ip link show | cut -d' ' -f2,9") Well if it doesn't for you, I guess you can simply fall back into the manual method. |
Just |
Negative, I bet it is because it is intended to be ran with elevated privileges, which is why it is in the /usr/sbin folder. |
Maybe you are not a sudoer? |
I don't use sudo at all, I'm using "su-c" when I need elevated privileges, old school mode. |
That's the explanation then. I've never met a I'll switch to |
Now, it doesn't work anymore under Gentoo, because the binary is located at |
Well, I think most Slackware users are Su purists since sudo is a pain in the ass to configure properly on that distribution. And about the location varying, it is indeed a problem, perhaps a script to detect the location of the executable should be created with |
The autodetection function is just a simple plus and I don't want to bloat it. I revert to previous status. |
Okay, at least that page will help anyone having this problem. |
I quite agree.
Thanks! |
Hello everyone.I have a problem with lain widget net.lua.I use a powerarrow-darker in my Slackware linux on laptop.Everything work without a problem,my wifi eth work but widget for download and uploud don't work.When i start my OS first on screen show icon no_net.png.Please help me.Thank you for a cooperation.
The text was updated successfully, but these errors were encountered: