Quickshell


NetworkDevice: QtObject

uncreatable
import Quickshell.Networking

The Go to type property may be used to determine if this device is a WifiDevice or WiredDevice.

Properties [?]

  • type DeviceType
    readonly

    The device type.

    When the device type is Wifi, the device object is a WifiDevice. When the device type is Wired, the device object is a WiredDevice. connection and scanning.

  • autoconnect bool

    True if the device is allowed to autoconnect to a network.

  • connected bool
    readonly

    True if the device is connected.

  • name string
    readonly

    The name of the device’s control interface.

  • networks ObjectModel <Network>
    readonly

    A list of available or connected networks for this device.

    When the device type is ‘Wifi’, this model will only contain WifiNetwork.

  • state ConnectionState
    readonly

    Connection state of the device.

  • address string
    readonly

    The hardware address of the device in the XX:XX:XX:XX:XX:XX format.

Functions [?]

  • disconnect () void

    Disconnects the device and prevents it from automatically activating further connections.