Re: FVWM: Functions and buttons...

From: lar3ry gensch <gensch_at_zk3.dec.com>
Date: Wed, 09 Oct 1996 10:19:31 -0400

Nick Cross wrote:
>
> Hi,
>
> Right, though I am at the moment using fvwm95 and the taskbar I *think*
> this will be applicable to the buttonbar. Anyway...

This is a typical fvwm question... it's valid. [smile]

 
> double click on a button : IF netscape mail is running deiconify it, if
> iconified, raise and focus to it
> ELSE load up netscape mail and focus to it.

I use the following extensively in my fvwmrc file:

AddToFunc "warp-or-run"
+ "I" Next [$0] Iconify -1
+ "I" Next [$0] Focus
+ "I" None [$0] $1 $2 $3 $4 $5 $6 $7 $8 $9

The first argument ($0) is the name of the window to search for. The
next arguments (up to 9) are the 'Exec' command to run if the window
isn't found.

Using the new FvwmButons module, you can call it as such:

*FvwmButtons(Icon mini-filemgr.xpm, Action 'warp-or-run "moxfm*" Exec
moxfm')

-- 
------------------ http://www.tiac.net/users/lar3ry/ -------------------
(void) lar3ry();                                      gensch_at_zk3.dec.com
  "I'll only enjoy being a manager when they port gdb to debug humans"
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Wed Oct 09 1996 - 09:20:23 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:59 BST