Alexays / Waybar

Highly customizable Wayland bar for Sway and Wlroots based compositors. :v: :tada:
MIT License
6.45k stars 696 forks source link

Is it aviable add wwan to network module? #3439

Open bulat-ch opened 2 months ago

bulat-ch commented 2 months ago

Hi! Is it aviable add wwan to network module? I mean something like "format-wwan" and data from modem manager as such as signal strength and mode (3,4,5G) ?

adryzz commented 2 weeks ago

okay, so i went and looked at what would be needed to implement this, as i want to do that:

Currently, the network module takes data both from /proc/net/dev and a RTNETLINK socket.

Now, if we want to gather WWAN data, there should be a way to do it through RTNETLINK, using the wwan type, but i'm not sure if we can get all the data we need that way.

All WWAN users use ModemManager as the userspace, which does provide a nice DBus interface with which we can get all the information we need.

The only problem is how to integrate it with the existing network module.

For example:

org.freedesktop.ModemManager1.Modem has everything we need, such as:

i think that covers everything needed for a good wwan module, i'm going to try making it a separate module from network, just so it's easier that way.