Open ericonr opened 4 years ago
If you are willing to develop and then maintain such a widget, then I am not against adding it to wf-panel :) But otherwise I do not have the resources to work on such features, since there is much more important work to do.
Do you think it would be better as a separate widget? I will look into hacking at it to see what comes out, then.
Hm, I think you are right, I made it so that you can hook up another network provider. Maybe you can hook your implementation there.
Hm, I think you are right, I made it so that you can hook up another network provider. Maybe you can hook your implementation there.
May i know where to look for to hook another implemention?
BTW, perhaps looking at networking but totally abstracting from what configure it in the first place. I use plain dhcpcd + wpa_supplicant, and for some reason waybar shows whether the wired connection or the wireless connections just fine. The thing is that waybar seems like something I'd prefer to stay out from.
@je-vv +1
With the last update (0.8) you can create your own info widgets with "command-output", I make one for Connman and other for dhcpcd:
command_output_3 = connmanctl state | grep 'State =' | awk -F'= ' '{print $2}' | sed -e 's/online/ON/' -e 's/offline/OFF/'
command_output_tooltip_3 = connmanctl technologies | grep -v -E '^ Tethering|^ Type' | sed 's|/net/connman/technology/||g'; iwconfig | grep -E 'ESSID|Signal level'
command_output_period_3 = 10
command_output_icon_3 = atmosphere
command_output_icon_size_3 = 16
command_output_3 = dhcpcd -U wlp3s0 | grep -q "reason=CARRIER" && echo "OK" || echo "NO"
command_output_tooltip_3 = dhcpcd -U | grep -E 'reason=|interface=|protocol=|if_configured=|ifssid=|ip_address=' | sed -E -e 's/(interface=|protocol=|if_configured=|ifssid=|ip_address=)/ \1/g' -e 's/(reason=)/\n\1/g'; echo && iwconfig 2>/dev/null | grep -E 'ESSID|Signal level'
command_output_period_3 = 10
command_output_icon_3 = atmosphere
command_output_icon_size_3 = 16
Unfortunately dhcpsd-gtk doesn't work for me in Wayland, the qt client does, but it shows the list networks anywhere on the screen...
At least these command-outputs serve to have the necessary information without having to look into other programs or scripts...
One can also use https://github.com/tbursztyka/connman-ui along with tray
widget
I haven't test it though
This might be outside of your scope, but the network widget currently seems to use only data from NetworkManager, which not everyone uses. In my case, a solution like IWD has proven itself to be more than enough to automatically manage connections. I'd still like to be able to verify connection status while using wayfire.
The waybar implementation of such a widget supports connections set up through IWD only, so it's possible to take a look at how they implemented it and translate it to your project.
I'm open to helping with this, as well!