I get the feeling you are starting off with a blank config.
To see the titlebar buttons, you need to have some action bind to them.
Mouse 1 1 N Stick
Mouse 1 2 N Close
Mouse 1 4 N Maximize
Mouse 1 6 N Iconify
Where the first number “1” in this case presents the mouse button.
Second number “1/2/4/6” Presents the titlebar button, they go like this:
13579 window_title 08642
“N” Presents the modifier as “None”. It could be also “A” for “Any”, and others. See manpage for the rest.
“Close/Maximize/Iconify” is the action or function to perform.
Please see fvwmwiki.org for good info on vectors and other useful info.
Also see fvwm.org for ready-made vectors with screenshots.
You need some menus defined with AddToMenu. See manpage for details. Or see wiki for defaults.
Then just use “Mouse 1 R A Menu SomeMenu”
Or whatever you like.
Titlebar buttons are created when you bind a mouse event to them. A
full explanation can be found under the Mouse command description on
fvwm(1) (the FVWM man page…also available for web browsing at: fvwm.org/documentation/manpages/
To do what you’ve described would require something like:
Mouse 1 2 A Close
Mouse 1 4 A Maximize
Mouse 1 6 A Iconfiy
If you want to something more complicated with a button, define a
function and assign it to the button. For example, when I click on my close
button, the mouse is automatically positioned over the close button of the
previous window in the window list (useful for closing lots of windows very
quickly). To make this happen, my configuration includes the following:
[code]Mouse 1 2 A Function CloseFocusRaiseWarp -15p 15p
Mouse 3 2 A Prev (AcceptsFocus, CurrentDesk) FocusRaiseWarp -15p 15p
I’m assuming you’re still talking about titlebar buttons. To have the left
mouse button do nothing, simply don’t bind mouse button 3 to anything.
To get the windowlist when you click the middle button (mouse button 2),
simply bind the windowlist like we did before for close, maximize, and
Mouse 2 2 A WindowList
Now clicking the right-most titlebar button with you left mouse will close
the window, but clicking with the middle button will open the window list.
I’ve never been interested in transparancy, so I can’t help you with your
third question. I also don’t mess with application icons, but I think that
either FvwmIconMan or FvwmIconBox will probably do what you want with
respect to positioning iconified applications.
It is. However you are creating a decor named “MyDecor” with that code. You will have to select it (“Style * UseDecor MyDecor”)or make it to the default decor (Remove all + and remve the DestroyDecor and AddToDecor lines). The later option is more memory efficient, but if you plan to use more than one decore it might turn your config harder to maintain.
+ I Raise
+ M Move
+ D WindowShade
Mouse 1 T A TitleFunction
ok, thx all. now another questions ^^
fvwm have one feature that i no like, when i move the mouse out of the focus window the focus go and i cant write in the window anymore, some thing that i can do with it?
now when i iconfy my window i cant load the window again… i need create a bindo for it too?
Look up FocusStyle in the man page. For a quick start you can try with either “Style * SloppyFocus” or “Style * ClickToFocus”, but if you want to tweak the focus method more you will have to use the FP-styles instead.
If you’re using the default policy (MouseFocus) then that’s the normal
behavior. Try this to change focus policy:
FocusStyle * SloppyFocus
or this (assuming you just want to modify your current focus policy):
FocusStyle * !LeaveToUnfocus
Yes, you’ll need to create a binding to turn iconify off. If you select an
iconified app from the WindowList, it should deiconify it for you. If you
want to deiconify the app by clicking on the icon, you could bind a mouse
click to it with the following:
Mouse 1 I N Iconify off
Since I don’t use icons, I can’t vouch for whether or not this is actually
how people use icons.
Then use FvwmIdent and click on the program you want to style. You wil then get an info window with Class and Resource values. See if one of them seems to be unique to the application you want to style and then test out a style command in the console.
Maybe it would be easier on all of us if you could just first read through the man-pages ( fvwm.org/documentation/faq/ ) and a couple of configs. I know it could seem a bit overwhelming, so I would suggest you to see through the very nice “config from scratch” -thread on this forum.