Quickshell


Network: QtObject

uncreatable
import Quickshell.Networking

A network. Networks derived from a WifiDevice are WifiNetwork instances.

Properties [?]

  • device NetworkDevice
    readonly

    The device this network belongs to.

  • state ConnectionState
    readonly

    The connectivity state of the network.

  • name string
    readonly

    The name of the network.

  • nmSettings list <NMSettings>
    readonly

    A list of NetworkManager connnection settings profiles for this network.

    WARNING

    Only valid for the NetworkManager backend.

  • stateChanging bool
    readonly

    If the network is currently connecting or disconnecting. Shorthand for checking Go to state.

  • known bool
    readonly

    True if the wifi network has known connection settings saved.

  • connected bool
    readonly

    True if the network is connected.

Functions [?]

  • connect () void

    Attempt to connect to the network.

    NOTE

    If the network is a WifiNetwork and requires secrets, a Go to connectionFailed() signal will be emitted with NoSecrets. WifiNetwork.connectWithPsk() can be used to provide secrets.

  • connectWithSettings (settings) void

    Property settingsNMSettings

    Attempt to connect to the network with a specific Go to nmSettings entry.

    WARNING

    Only valid for the NetworkManager backend.

  • disconnect () void

    Disconnect from the network.

  • forget () void

    Forget all connection settings for this network.

Signals [?]