programming two-state launcher

Brian J. Tarricone bjt23 at cornell.edu
Tue Jan 18 21:24:52 CET 2005


Eric Blade wrote:

> That looks like something that could stand some improvement then.

does that come with a patch, or are you just complaining? ^_~

    -brian

>
> */"Brian J. Tarricone" <bjt23 at cornell.edu>/* wrote:
>
>     Dennis J. Tuchler wrote:
>
>     >I would appreciate help in setting up the two-state launcher. For
>     example, If
>     >I put a "mount" command in the proper blank, how do I get the
>     "umount"
>     >command, or does clicking the "off" icon take care of that
>     automatically
>     >(although I can't see how).
>     >
>     IIRC, the two-state launcher only runs a single command. for the "on"
>     action, it runs the command passing "1" as the first commandline
>     argument, and for the "off" action, it passes "0". so you'd need to
>     write a script, something like this:
>
>     #!/bin/bash
>     [ "$1" = "1" ] && mount /mnt/foobar || umount /mnt/foobar
>
>     -brian
>     _______________________________________________
>     Xfce mailing list
>     Xfce at xfce.org
>     http://lunar-linux.org/mailman/listinfo/xfce
>     http://www.xfce.org
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Read only the mail you want - Yahoo! Mail SpamGuard 
> <http://us.rd.yahoo.com/mail_us/taglines/spamguard/*http://promotions.yahoo.com/new_mail/static/protection.html>. 
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Xfce mailing list
>Xfce at xfce.org
>http://lunar-linux.org/mailman/listinfo/xfce
>http://www.xfce.org
>



More information about the Xfce mailing list