SFWBAR-WIFI(1)
π NAME π
okay so bestie, meet sfwbar-wifi β it's the Sfwbar Wifi interface π like, the whole vibe is talking to your wifi and making it do stuff.
- Filename:
wifi-iwd.so - Filename:
wifi-nm.so - Requires: none
β¨ SYNOPSIS β¨
The Wifi module interface is your backstage pass to query and control the wifi network π
. Right now there are exactly two modules serving up this interface: wifi-iwd, which holds it down for the IWD daemon, and wifi-nm, which does the exact same thing for NetworkManager.
πΈ no cap, important: to use thewifi-iwdmodule, the user has to have permission to control the iwd daemon. usually you get that by adding the user to thenetdevorwheeluser group πΈ
π« EXPRESSION FUNCTIONS π«
WifiGet(Property)
The WifiGet function queries a property for a currently advertised iwd network π. These are the properties it supports, and yes, you need all of them:
"Path"β an object path of the device. this is literally the unique id, and it's what you use to get notifications about changes or destruction of the device, and to control the device. it's only valid once you've received thewifi_updatedtrigger π¦"RemovedPath"β an object path of the most recently removed device. it gets populated the moment thewifi_removedtrigger is emitted π"SSID"β an SSID of the network π"Type"β a Type of the network ('open','wep','psk'or'8021x')"Known"β an indicator of whether this is a known network ("1"= known,"0"= new) π"Strength"β signal strength of the network, and it's a string containing a number in range 1-100 β"Connected"β an indicator of whether the daemon is connected to the network ("1"= connected,"0"= not connected)
π₯ ACTIONS π₯
WifiScan <Duration>
Initiate scan for wireless networks π periodt.
WifiAck
Notify the module that all information for the currently advertised network has been processed β
. once you do that, the module may then emit another wifi_updated event if there are further network updates available.
WifiAckRemoved
Notify the module that all information for the currently advertised network removal has been processed β
. after that, the module may then emit another wifi_removed event if further network removals are queued.
WifiConnect <path>
Attempt to connect to a network specified by the path π«Ά.
WifiDisconnect <path>
Disconnect from a network specified by the path π.
WifiForget <path>
Forget a known network specified by the path π.
π¦ TRIGGERS π¦
the module defines these triggers, and honestly they're the main characters:
"wifi_level"β this signal is emitted when signal strength for the current connection changes πΆ"wifi_updated"β this trigger is emitted when a new network is discovered, or when properties of a network are changed. once it's emitted, the info for the relevant network will be available via theWifiGetexpression function. once your config is done handling the network update, it should call the actionWifiAck. upon receipt of this action, the module may emitwifi_updatedagain if further network updates are queued π"wifi_removed"β this trigger is emitted when a network is no longer available and should be removed from the layout. the path of the removed network is available viaWifiGet("RemovedPath"). once your config is done removing the network, it should call the actionWifiAckRemoved. upon receipt of this action, the module may emit anotherwifi_removedtrigger if further networks have been removed ποΈ"wifi_scan"β this trigger is emitted when a scan for networks has been initiated β¨"wifi_scan_complete"β this trigger is emitted when a scan for networks is complete π
π COPYRIGHT π
GPLv3+ β that's the license, bestie, respect it π
and that's the whole page π it lives in the General Commands Manual, and the footer at the bottom just says SFWBAR-WIFI(1) all over again with no date attached, which is very much its own vibe. go forth and control your wifi, you icon π
π¦ where this page comes from
- fedora 43: sfwbar 1.0~beta16.1-2.fc43 Β· GPL-3.0-only AND MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms