|
@@ -320,12 +320,13 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
The right-aligned date/time text is itself a click target: `draw_bar()`
|
|
The right-aligned date/time text is itself a click target: `draw_bar()`
|
|
|
records its rectangle, the pointer highlights it, and a click spawns
|
|
records its rectangle, the pointer highlights it, and a click spawns
|
|
|
`/ramfs/bin/settime` (the `Clock` launcher still opens the analog clock).
|
|
`/ramfs/bin/settime` (the `Clock` launcher still opens the analog clock).
|
|
|
- A network status icon sits to its left (before the temperature/AC/battery
|
|
|
|
|
- status): a cable for a wired netdev, signal bars for an associated WiFi
|
|
|
|
|
- link, a USB mark for RNDIS tethering, and a red X otherwise. The WM polls
|
|
|
|
|
- `SYS_NET_INFO` (and `SYS_WIFI_STATUS` only while WiFi is active) at 1 Hz;
|
|
|
|
|
- clicking the icon spawns one `/ramfs/bin/netmenu` window and anchors it
|
|
|
|
|
- under the icon once its window exists (`u_wm_set_geom`).
|
|
|
|
|
|
|
+ A network status icon is the rightmost bar item (the date/time, temperature
|
|
|
|
|
+ and AC/battery cluster sits to its left): a cable for a wired netdev,
|
|
|
|
|
+ signal bars for an associated WiFi link, a USB mark for RNDIS tethering,
|
|
|
|
|
+ and a red X otherwise. The WM polls `SYS_NET_INFO` (and
|
|
|
|
|
+ `SYS_WIFI_STATUS` only while WiFi is active) at 1 Hz; clicking the icon
|
|
|
|
|
+ spawns one `/ramfs/bin/netmenu` window and anchors it under the icon once
|
|
|
|
|
+ its window exists (`u_wm_set_geom`).
|
|
|
The last launcher, `Chat`, spawns `/ramfs/bin/chat`; `WM_BTN_END_X`
|
|
The last launcher, `Chat`, spawns `/ramfs/bin/chat`; `WM_BTN_END_X`
|
|
|
(`wm_abi.h`) is the launchers' right edge, and the bar notice and the
|
|
(`wm_abi.h`) is the launchers' right edge, and the bar notice and the
|
|
|
right-aligned status never draw left of it.
|
|
right-aligned status never draw left of it.
|
|
@@ -562,7 +563,9 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
failure. The top-bar network icon opens `ucmd_netmenu.c`, which lists every
|
|
failure. The top-bar network icon opens `ucmd_netmenu.c`, which lists every
|
|
|
present driver through `SYS_NET_DEVLIST` (111), selects one through
|
|
present driver through `SYS_NET_DEVLIST` (111), selects one through
|
|
|
`SYS_NET_SELECT` (112) and runs DHCP; the same window lists scanned WiFi
|
|
`SYS_NET_SELECT` (112) and runs DHCP; the same window lists scanned WiFi
|
|
|
- networks and asks for the WPA2 passphrase. `wifi.c` (the Intel
|
|
|
|
|
|
|
+ networks and asks for the WPA2 passphrase. Hidden SSIDs are omitted, and
|
|
|
|
|
+ BSSIDs that share an SSID/security collapse to the strongest entry (the
|
|
|
|
|
+ active BSSID wins while connected). `wifi.c` (the Intel
|
|
|
7265D/3165 netdev, see the WiFi bullet) is
|
|
7265D/3165 netdev, see the WiFi bullet) is
|
|
|
last in the table; `struct netdev` has an optional `link_up()` hook, and
|
|
last in the table; `struct netdev` has an optional `link_up()` hook, and
|
|
|
the boot DHCP is skipped while it returns 0. `net.c` — ARP + ICMP echo, IPv4/UDP
|
|
the boot DHCP is skipped while it returns 0. `net.c` — ARP + ICMP echo, IPv4/UDP
|