DaemonForums  

Go Back   DaemonForums > Miscellaneous > Guides

Guides All Guides and HOWTO's.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 25th September 2017
shep shep is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,066
Default An OpenBSD wifi tray applet

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: 161
Size:  45.8 KB

Last edited by shep; 5th October 2017 at 12:24 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
Rc.conf Instructor
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,066
Default

The version of x11/yad in OpenBSD 6.2 now is based on gtk3 and the invocation syntax has changed:
Code:
# 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 Sensucht94 is offline
New User
 
Join Date: Oct 2017
Posts: 5
Default

Thanks for your effort shep, well done
Reply With Quote
Reply

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 12:26 PM.


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