Skip to content

network: support ethernet devices#711

Merged
outfoxxed merged 1 commit intoquickshell-mirror:masterfrom
cpwrs:wired
Apr 21, 2026
Merged

network: support ethernet devices#711
outfoxxed merged 1 commit intoquickshell-mirror:masterfrom
cpwrs:wired

Conversation

@cpwrs
Copy link
Copy Markdown
Contributor

@cpwrs cpwrs commented Apr 6, 2026

Adds EthernetDevice(s) to Networking.devices with properties network, linkSpeed, and hasLink.

Adds NMWiredDevice and NMGenericNetwork to the NM backend. NMGenericNetwork mirrors a base frontend Network for all of the device types that only have one logical network. Backend objects now own the lifetime of their respective frontend object. This gets rid of the need to manage separate lists of frontend objects. NMNetwork is now the common base of NMWirelessNetwork and NMGenericNetwork.

Copy link
Copy Markdown
Member

@outfoxxed outfoxxed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything seems to work, didn't spot anything wrong in the impl.

It would be nice if the ethernet/wifi network api had a bit more overlap. The main things I can think of are:

  • expose DeviceType on network (makes delegate reuse easier between wifi/wired)
  • expose networks[] on all devices, for wired its just always of length 1. Keep the network property though thats better if you know its wired
  • keep name on network, just return the device name for ethernet

Comment thread src/network/qml.hpp
Comment thread src/network/nm/backend.cpp
Comment thread src/network/nm/backend.cpp
Comment thread src/network/network.hpp Outdated
@outfoxxed
Copy link
Copy Markdown
Member

outfoxxed commented Apr 16, 2026

Code looks fine from what I remember, Looks like eths can be renamed on the fly and that happens on my system when I plug devices in. Seeing if its an easy fix

edit: yes

Comment thread src/network/nm/network.cpp Outdated
@outfoxxed outfoxxed merged commit 667ade4 into quickshell-mirror:master Apr 21, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants