Re: FVWM: Can fvwm do this?

From: Thomas Adam <thomas_at_edulinux.homeunix.org>
Date: Wed, 2 Mar 2005 20:02:36 +0000

On Wed, Mar 02, 2005 at 12:23:10PM -0500, Ryan Quinn wrote:
> 1. (simple one) I assume toolbar buttons (minimize,maximize,close,
> etc) can be seperated (ie. maximize,minimize on the left and close on
> the right side of the taskbar). Is this correct?

Yes, it is. The Titlebar (as it is called in Fvwm) allows for one to
define upto ten buttons. They're arranged like this:

+--------------------------------------------------------------------------+
| 1 3 5 7 9 Title 0 8 6 4 2 |
|--------------------------------------------------------------------| |

So in your decor (see AddToDecor in the manpage), you would only want to
define buttons 1,3 and 2. Something like this:

+ AddButtonStyle 1 Vector 5 25x40_at_1 25x60_at_1 75x60_at_0 75x40_at_0 25x40_at_1
+ AddButtonStyle 3 Vector 4 50x25_at_1 75x75_at_0 25x75_at_0 50x25_at_1
+ AddButtonStyle 2 Vector 4 50x75_at_1 25x25_at_1 75x25_at_1 50x75_at_0

Of course, the above is only an example -- the vector images won't match
the functionality you want for the buttons. Furthermore, for those
buttons to appear in the titlebar, you will need to ensure that you bind
them to actions (say a mouse). The following lines would achieve that:

# for the title bar buttons:
Mouse 0 1 A FuncFvwmMaximize
Mouse 0 3 A FuncFvwmMinimise
Mouse 0 2 A Close

This, this says that any button clicked on the buttons defined on the
window, would invoke either one of those actions, depending on the
button pressed in the titlebar.

> 2. Can a desktop margin be set up? (i.e. I dont want any windows
> (other than those specified as panel or desktop to be allowed within
> 50px of the edge of the screen.. this would also mean they can not be
> manually dragged outside the margin)

Yes. If you're using 2.5.X, see "EwmhBaseStruts" in the man page.

> 3. How do I go about setting an application as the desktop layer and
> one as the panel layer?

Can you clarift by what you mean, please?

HTH,

-- Thomas Adam

-- 
I know nothing, and understand even less.
--
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 Mar 02 2005 - 14:03:57 GMT

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