net_widgets icon indicating copy to clipboard operation
net_widgets copied to clipboard

[feature request] Do not require the user to specify an interface

Open kacejot opened this issue 5 years ago • 5 comments

Awesome WM config file should know nothing about current machine network interfaces. That is not portable way. I just want to push my configs to the repo and be able to make them work on another machine without any tweaking (I have enough things to tweak on fresh Arch Linux machine).

Regards!

kacejot avatar Nov 25 '19 21:11 kacejot

Why can't you calculate your interface with some shell exution instead of hardcoded string if you have a generic rule how to get it?

pltanton avatar Nov 26 '19 09:11 pltanton

Sure thing, I can parse ip link output. But that not what user must do (most users expect working widget out of the box). All the interfaces should be parsed automatically - that would be a cool feature. Do you agree?

kacejot avatar Nov 26 '19 19:11 kacejot

FWIW, I just submitted a PR that does this. Just don't specify interfaces, and it will parse ip link every time it refreshes. :)

mariodsantana avatar Mar 14 '20 21:03 mariodsantana

@mariodsantana as I understand you parse interface only for wired connection or wireless should also works?

pltanton avatar Mar 15 '20 12:03 pltanton

@pltanton - yes, wireless interfaces are detected, but there's no wireless-specific info in the popup or anything.

mariodsantana avatar Mar 15 '20 17:03 mariodsantana