Edit: The upstream script, linked below,is not fully functional with OpenBSD 6.4+. The scripts maintainer has moved to the "join" function and feels the script is not longer necessary.
There is a simple scipt that shows the current connection in this Forum: howto's BareGui****.
This howto describes a freedesktop compliant wireless manager for OpenBSD. The manager consists of a
x11/yad notification tray applet executing a Bourne compliant
shell script.
Although I have only tested in the tint2 panel, this should work in Gnome3, KDE4 and XFce4.
The wiconn.sh script differs from other OpenBSD wifi scripts in that it allows the user to choose from the available connections.
Here is the relevant portion of my
x11/openbox autostart file that places the icon in the
x11/tint2 system tray.
Code:
# Start Wifi Applet
(sleep 1.5 && \
GTK_THEME=Adwaita:dark \
yad --notification --image=network-receive \
--text="Wifi" --no-middle \
--command='xterm -g 96x18-0+38 \
-T "Wifi" \
-e "/home/jsh/scripts/wiconn.sh"') &
Here is a screenshot of the end result: