Re: FVWM: Help required.

From: Dan Espen <dane_at_mk.telcordia.com>
Date: Wed, 05 Apr 2000 11:25:13 -0400

"Jake Holmen" <jakeholmen_at_hotmail.com> writes:
> Hi. Dorky as this sounds, I would like to use FVWM2 as a W95 replacement -
> with some buttons mapped to different applications like Netscape - Gimp etc.
> Could someone (with a well commented dotfile ; )
> please send me a link to their dot file - with instructions as to where to
> store it, and the different pixmaps they have installed on their system. I
> have downloaded some files that I thought would be useful
> - the dotfile generator (dotfile-2_4_1-1_noarch.rpm)
> - the dotfile fvwm2 module (dotfile-fvwm2-1_1-1_noarch.rpm)
> Also from the FVWM2 homepage (I think :)
> I downloaded
> - 3d pixmaps (3d_pixmaps_V1_21_tar.gz)
> - Normal icons (icons_tar.gz)
>
> If someone is using these icons successfully to have "shortcut icon menus"
> (Cant think of a better way to describe it) like in wharf, could they send
> me (off list if neccessary) a copy of the dotfile and where to put it.
>
> Sorry if that sounds absurd, but I am trying to get my head around the
> different options to make fvwm2 usable for myself and my wife.

Using icons to launch things never made any sense to me.

This approach, using fvwmButtons comes close:

DestroyFunc Launcher
AddToFunc Launcher
+ I DestroyModuleConfig $0Launch.*
+ I *$0Launch.(Icon $1, Action `Exec $2`)
+ I *$0Launch.Pixmap none
+ I Module FvwmButtons $0Launch.
+ I Style $0Launch. HandleWidth 0

Launcher RXVT rxvt.xpm "rxvt -bg black -fg green"

This creates a "Launcher" macro that you call with an aritrary name,
the icon name and the command to execute.

You could add a geometry argument for placement.

I don't know how to get a title on it, "Style Title" didn't seem
to work.

>
> 2nd Q.
>
> IF someone can also send me the syntax of a "shutdown machine" button on
> their X-win desktop that would be cool.
>
> For example - someone told me I could use 'sudo halt' and map it to a
> button.

If "sudo halt" works, then this should work too:

Launcher DANGER halt.xpm "sudo halt"

That won't give you a confirm button. You might look at using
FvwmForm, and create the window iconic. The first click would
de-iconify, the second click could shutdown.

> Cheers.

--
Dan Espen
444 Hoes Lane  Room RRC 1C-214           E-mail: dane_at_mk.telcordia.com
Piscataway, NJ 08854                     Phone: (732) 699-5570
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Wed Apr 05 2000 - 10:25:53 BST

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