Can't set *FvwmButtons: ButtonGeometry

I’m trying to configure Button panel.
Does ut possible to use ButtonGeometry and Geometry at the same time ?

Here is a part of my .fvwm2rc

Style "FvwmButtons" WindowListSkip,Sticky, NeverFocus,NoTitle
Module FvwmButtons
DeskTopSize 1x1

DestroyModuleConfig FvwmButtons: *
 *FvwmButtons: Frame 0
 *FvwmButtons: Columns 1
 *FvwmButtons: Pixmap none
 *FvwmButtons: Rows 2
 *FvwmButtons: BoxSize smart
 *FvwmButtons: Padding 0 1
 *FvwmButtons: Back white
 *FvwmButtons: Fore black
 *FvwmButtons: ButtonGeometry 240x40
 *FvwmButtons: Geometry +0-170
 *FvwmButtons: (Title Bt1, Action (Mouse 1)`Exec exec /usr/bin/somescript.sh`)
 *FvwmButtons: (Title Bt2, Action (Mouse 1)`Exec exec sudo /sbin/poweroff -n -f`)

In this case i am getting small button panel at the left side of the screen.

Here is another config tried

Style "FvwmButtons" WindowListSkip,Sticky, NeverFocus,NoTitle
Module FvwmButtons
DeskTopSize 1x1

DestroyModuleConfig FvwmButtons: *
 *FvwmButtons: Frame 0
 *FvwmButtons: Columns 1
 *FvwmButtons: Pixmap none
 *FvwmButtons: Rows 2
 *FvwmButtons: BoxSize smart
 *FvwmButtons: Padding 0 1
 *FvwmButtons: Back white
 *FvwmButtons: Fore black
 *FvwmButtons: Geometry +0-170
 *FvwmButtons: ButtonGeometry 240x40
 *FvwmButtons: (Title Bt1, Action (Mouse 1)`Exec exec /usr/bin/somescript.sh`)
 *FvwmButtons: (Title Bt2, Action (Mouse 1)`Exec exec sudo /sbin/poweroff -n -f`)

In this case i got normal button panel at the left top corner.

Shift the *FvwmButton: Geometry foo setting as:

Module FvwmButtons -g fooxbar+0+0 alias

That help?

– Thomas Adam

Now I am using the following .fvwmrc and it is working fine for me.

[code]ImagePath /home/casufi/.fvwm/icons

Style “FvwmButtons” WindowListSkip,Sticky, NeverFocus,NoTitle

Module FvwmButtons -g 250x96+4-170
DeskTopSize 1x1

AddToFunc StartFunction

  • I Test (Init) Exec /usr/bin/rdesktop -r disk:cdrom=/media -D -k common -f 192.168.0.5

DestroyModuleConfig FvwmButtons: *
*FvwmButtons: Frame 0
*FvwmButtons: Columns 1
*FvwmButtons: Pixmap none
*FvwmButtons: Rows 2
*FvwmButtons: BoxSize smart
*FvwmButtons: Padding 1 1
*FvwmButtons: Back black
*FvwmButtons: Fore white
*FvwmButtons: (Action (Mouse 1)Exec exec /usr/bin/rdesktop -r disk:cdrom=/media -D -k common -f 192.168.0.5, Icon RDP-48x48.xpm)
*FvwmButtons: (Action (Mouse 1)Exec exec sudo /sbin/poweroff -n -f, Icon Halt-48x48.xpm)
[/code]

I am confused why I can’t use ButtonGeometry to set size of the button.

Because you haven’t set any in your configuration. Ideally, you would want to use:

*FvwmButtons:  (100x100, foo, bar, ....)

To be a little more explicit, and then let the ButtonGeometry work out for itself the overall geometry.

Note that in terms of specifying:

*FvwmButtons: Geometry foo
*FvwmButtons: ButtonGeometry foo

The code-path taken by FvwmButtons means that ButtonGeometry will win, overriding the explicit Geometry setting specified. The reason “FvwmButtons -g” works is that the invocation for command-line options takes a different code-path from the options sent to the FvwmButtons module.

– Thomas Adam