Add Item question
Amarpreet Rattan
arattan at math.uwaterloo.ca
Thu Oct 30 22:56:39 CET 2003
two state launchers are kind of neat. I use them for mounting and
unmounting stuff. I don't know who it was some posts ago, but the posted
some code that essentially tells you if something is mounted (on) or
unmounted (off). if it is not mounted and there is media in the drive, it
will mount it, and if it is already mounted it will unmount and eject it.
here is the code that was posted. I use it for both my cdrom and digital
camera (with appropriate adjustments).
--------------------------
#!/bin/sh
# script to mount/umount cdrom
# for use with xfce4-trigger-launcher
if [ "$1" = "1" ]; then
mount /mnt/cdrom &> /dev/null
elif [ "$1" = "0" ]; then
eject /mnt/cdrom &> /dev/null
else
STATUS=`grep cdrom /proc/mounts`
if [ "x$STATUS" = "x" ]; then
echo 0
else
echo 1
fi
fi
-----------------------------
I like it because one click mounts/umounts stuff.
amps.
On Thu, 30 Oct 2003, Ralph Alvy wrote:
> I probably didn't make myself clear. When right click on a Panel object, and
> then choose "Add new item", I get the following choices, in exactly the
> following order:
>
> Launcher
> Mail check
> Xfce Clock
> System buttons
> Desktop switcher
> Two-state launcher
> Graphical pager
> Separator
> Systemtray
> Eyes
>
> When I choose Systemtray, I get what appears to be nothing more than a
> Launcher dialogue box.
>
> I also don't know exactly what a Two-state launcher is.
>
>
> On Thursday 30 October 2003 01:14 pm, Olivier Fourdan wrote:
> > Because you should have a lot more than just the systray...
> >
> > Cheers,
> > Olivier.
> >
> > On Thu, 2003-10-30 at 22:02, Ralph Alvy wrote:
> > > Is it broken because there should not be a System Tray item on my Add An
> > > Item menu, or because choosing such an item should give me more than just
> > > a Launcher config dialogue?
> > >
> > > On Thu, 30 Oct 2003 21:56:49 +0100, "Olivier Fourdan" <fourdan at xfce.org>
> > >
> > > said:
> > > > Ralph,
> > > >
> > > > If that's the case, then your install is broken.
> > > >
> > > > Cheers,
> > > > Olivier.
> > > >
> > > > On Thu, 2003-10-30 at 21:39, Ralph Alvy wrote:
> > > > > Using xfce4 ...
> > > > >
> > > > > On the Add Item menu, I see one choice is System Tray. When I choose
> > > > > that, what I get is the typical Launcher dialogue. What exactly is
> > > > > the this option supposed to offer me?
>
> _______________________________________________
> Xfce mailing list
> Xfce at xfce.org
> http://moongroup.com/mailman/listinfo/xfce
>
More information about the Xfce
mailing list