View Single Post
  #1   (View Single Post)  
Old 25th September 2017
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,507
Default An OpenBSD wifi tray applet

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:
Name:  screenshot.jpg
Views: 1306
Size:  45.8 KB

Last edited by shep; 8th September 2020 at 07:03 PM. Reason: 1. upload screenshot 2. Enlarged window 3. enabled Xterm scrollbar
Reply With Quote