Go Back   DaemonForums > Miscellaneous > Guides

Guides All Guides and HOWTO's.

Thread Tools Display Modes
  #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,396
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.

# 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: 940
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
  #2   (View Single Post)  
Old 9th October 2017
shep shep is offline
Real Name: Scott
Arp Constable
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,396

The version of x11/yad in OpenBSD 6.2 now is based on gtk3 and the invocation syntax has changed:
# Start Wifi Applet
(sleep 1.5 && \
yad  --notification --image=network-receive \
 --text="Wifi" --no-buttons \
 --command='xterm -g 100x20-0+38 -T "Wifi" \
 -e "/home/jsh/scripts/wiconn.sh"') &
Reply With Quote
  #3   (View Single Post)  
Old 14th October 2017
Sensucht94's Avatar
Sensucht94 Sensucht94 is offline
Real Name: Paolo Vincenzo Olivo
Package Pilot
Join Date: Oct 2017
Location: Rome
Posts: 140

Thanks for your effort shep, well done
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
wifi performance (rum) mickywicky OpenBSD General 11 25th October 2013 03:08 PM
hplip system tray bug in current - best option to fix? shep OpenBSD Packages and Ports 0 29th February 2012 12:53 AM
Mozilla patches Java applet problems in Firefox J65nko News 0 7th March 2011 09:41 AM
Securing wifi networks with ipsec/ssh and openbsd Oko OpenBSD Security 4 16th April 2009 07:32 AM
Any wifi enthusiasts here? PatrickBaer General software and network 14 1st July 2008 01:45 PM

All times are GMT. The time now is 10:43 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick