WayfireWM / wf-shell

A GTK3-based panel for wayfire
https://wayfire.org/
MIT License
138 stars 35 forks source link

panel network: Depends on NetworkManager, which not everyone uses #42

Open ericonr opened 4 years ago

ericonr commented 4 years ago

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!

ammen99 commented 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.

ericonr commented 4 years ago

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

ammen99 commented 4 years ago

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.

charlie39 commented 2 years ago

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?

je-vv commented 1 year ago

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.

kanyck commented 10 months ago

@je-vv +1

JamilMGomez commented 4 months ago

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
  2. 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...

NamorNiradnug commented 4 months ago

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