Skip to content

Conversation

@Zedfrigg
Copy link
Contributor

@Zedfrigg Zedfrigg commented Aug 4, 2024

Draft PR to track the status of the implementation. Will watch all NM connections and figure out if they should be categorised as ethernet, wifi, cellular, VPN or other. If there is at least one connection in a category, an icon will be shown for it indicating its status in more detail.

@JakeStanger JakeStanger added M:Network Manager Related to the Network Manager module T:Module Enhancement Improvements to an existing module. labels Apr 10, 2025
Zedfrigg added 8 commits July 14, 2025 14:44
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	src/clients/networkmanager.rs
#	src/modules/networkmanager.rs
#	src/modules/volume.rs
An extensive refactor of the multiple icons features, containing the following changes:

- Reflect the changes in module UI and client interfaces to the rest of Ironbar
- Replace state-based communication from client to UI with an event-based one
- D-bus device watching rewritten without the use of macros
- Defining which types of devices get an icon now takes place in the UI code
@Zedfrigg
Copy link
Contributor Author

Commit 48493C6 here serves as a summary of the changes so far, I forgot that Github includes parent commits even if they weren't made on the PR branch.

Before I'll mark this PR as ready for review I will implement support for showing the wifi signal strength, and consider what the configuration should look like.

For example when a second monitor is connected while Ironbar is already running.
Also replace its shared state lifetime and synchonisation mechanisms with Arc<Mutex<_>>.
…anged

Also add a little TODO about icon order.
…watcher

Also clarify what receiver we're dealing with in handle_update_events.
…them when no longer needed

Also optimise dbus connection and proxy creation.
Should be more efficient as the connection will now only be created once.
Additionally:
- Pass the device proxy to watch_device_state() now that we've had to
  create one anyway
- Improve event received logging in module widget
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

M:Network Manager Related to the Network Manager module T:Module Enhancement Improvements to an existing module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants