modem lights??
Andreas J. Guelzow
aguelzow at taliesin.ca
Thu May 12 07:49:14 CEST 2005
On Wed, 2005-11-05 at 15:18 -0700, Brian J. Tarricone wrote:
> Andreas J. Guelzow wrote:
>
> > SInce I am somewhat unhappy with Gnome I am trying out Xfce and am
> > quite pleased with what I am seeing. Unfortunately I appear to fail
> > to find a panel applet akin to Gnome's modem light (ie. an applet
> > that when clicked calls pon or poff depending on an ppp connection
> > being active or not.)
>
> You could use something like xfce4-trigger-launcher, though I'm not
> sure it's as robust as you need it to be. If sometihng brings the ppp
> interface up or down outside of the button, it may not show the
> correct state (or take the correct action on a click). Someone who
> knows the plugin better than I do can probably elaborate...
Thanks Brian,
This should do for the moment. With the script:
#!/bin/sh
# script to call pon/poff
# for use with xfce4-trigger-launcher
if [ "$1" = "1" ]; then
pon interbaun &> /dev/null # replace interbaun with your
# connection name
elif [ "$1" = "0" ]; then
poff &> /dev/null
else
if [ -f /var/lock/LCK..ttyS1 ]; then
echo 1
else
echo 0
fi
fi
the xfce4-trigger-launcher does the main things I need. (It does not
indicate when the connection is really up versus the dialing and
connecting is still in progress, but that is not absolutely necessary.)
Andreas
--
Prof. Dr. Andreas J. Guelzow
Dept. of Mathematical & Computing Sciences
Concordia University College of Alberta
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://mail.xfce.org/pipermail/xfce/attachments/20050511/2068c308/attachment.pgp>
More information about the Xfce
mailing list