wf-shell icon indicating copy to clipboard operation
wf-shell copied to clipboard

panel network: Depends on NetworkManager, which not everyone uses

Open ericonr opened this issue 6 years ago • 8 comments

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!

ericonr avatar Dec 20 '19 07:12 ericonr

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.

ammen99 avatar Dec 20 '19 07:12 ammen99

Do you think it would be better as a separate widget? I will look into hacking at it to see what comes out, then.

ericonr avatar Dec 20 '19 08:12 ericonr

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.

ammen99 avatar Dec 20 '19 15:12 ammen99

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?

charlie39 avatar Dec 09 '21 20:12 charlie39

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 avatar Feb 26 '23 07:02 je-vv

@je-vv +1

kanyck avatar Jan 09 '24 12:01 kanyck

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:

  1. Connman + iwconfig Shows the net status on wf-panel: ON(line), OFF(line), "ready" (normally limited connection) and "idle". Tooltip: show list of available technology (wifi, ethernet, bluetooth, etc) and current status of each one + iwconfig info for wifi, ssid and signal
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
  1. dhcpcd + iwconfig Shows the net status on wf-panel: "OK" for connection, "NO" for no conection. Tooltip: show list of available interfaces (wifi, ethernet, etc), current status of each one and the dhcp client status (if connected) + iwconfig info for wifi, ssid and signal
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...

JamilMGomez avatar Jun 14 '24 20:06 JamilMGomez

One can also use https://github.com/tbursztyka/connman-ui along with tray widget I haven't test it though

NamorNiradnug avatar Jun 15 '24 06:06 NamorNiradnug