Basic iconify/deiconify

Hi

I am really new to this (like yesterday). I simply want to make my windows iconify in the upper right portion of the screen, then be able to deiconify. I found this:

[code]DestroyModuleConfig FE-ArrangeIcons:*
*FE-ArrangeIcons: iconify “All (Iconic, CurrentPage) PlaceAgain Icon”
*FE-ArrangeIcons: deiconify “All (Iconic, CurrentPage) PlaceAgain Icon”

AddToFunc StartFunction I Module FvwmEvent FE-ArrangeIcons[/code]

Only it doesn’t deiconify

Here is my basic fvwm2rc so far:

[code]DestroyFunc StartFunction
AddToFunc StartFunction

  • I Exec exec fvwm-root haiku.png

Set autoraise

AddToFunction StartFunction

  • I Module FvwmAuto 500

Icon Path

ImagePath ${HOME}/icons/:/usr/share/icons/${HOME)/icons/decor:+

A simple panel

AddToFunc StartFunction

  • I Module FvwmButtons FvwmButtons-Panel
    style “FvwmButtons-Panel”
    NoTitle,
    BorderWidth 0,
    handleWidth 0,
    sticky
    #*FvwmButtons-Panel: (Swallow “FvwmPager” “FvwmPager 0 0”)# I didn’t like this
    *FvwmButtons-Panel: Columns 1
    *FvwmButtons-Panel (1x1 Icon ‘firefox.png’
    Action(Mouse 1) ‘exec exec firefox’
    )
    *FvwmButtons-Panel: (1x1 Icon ‘terminal.png’
    Action(Mouse 1) ‘exec exec xterm’
    )
    *FvwmButtons-Panel: (1x1 Icon ‘dialog-warning.png’
    Action(Mouse 1) ‘Module FvwmForm FvwmForm-QuitVerify’,
    Action(Mouse 3) ‘restart’
    )

Golbal Styles

Style “" MinOverlapPlacement
Style "
” BorderWidth 2, HandleWidth 2 #Defaults
Mouse 1 1 N Close
Mouse 1 4 N Iconify
Mouse 1 2 N Maximize
#Desktop size
DeskTopSize 1x1

#Icon Management
#[/code]

That looks like something I would write.

Sure it does. Your config file defines these mouse bindings:

Mouse 1 1 N Close
Mouse 1 4 N Iconify
Mouse 1 2 N Maximize

You’re missing one that operates on an iconic window, hence:

Mouse 0 I A Iconify

– Thomas Adam

I may have gotten from you, or one you helped write.

Okay, I added the second iconify line:

Style "*" MinOverlapPlacement Style "*" BorderWidth 2, HandleWidth 2 #Defaults Mouse 1 1 N Close Mouse 1 4 N Iconify Mouse 1 2 N Maximize Mouse 0 I A Iconify

But now none of my buttons work. The cursor just sits there, taunting me.

Using this code I get the iconify/deiconify working. There are probably better ways.

#[code]####

FvwmEvent

###########
DestroyModuleConfig FvwmEvent: *
*FvwmEvent: deiconify DeThumbnail[/code]

Now, is there a way to iconify in the upper right since my panel will be in the upper left?

This depends entirely by what you mean when you say “not working”. Your sample fvwm2rc makes no reference of there being any way to deiconify a window. Using an explicit Mouse action like the one I gave you would work. The reason why it fails for you could be anyone’s guess, I’m guessing because you had numlock on.

Your “”“solution”"" of calling DeThumbnail works only because you’ve got a mechanism for deiconifying an application already. How that is, I don’t know. Your config doesn’t show that.

– Thomas Adam

The numlock! (slaps head) why didn’t I think of that?

Your config works great now, thank you! :smiley:

So how I would it configure it so that my icons are on the upper right? (or heck anywhere else but the upper left where my panel is).

Because you didn’t know about it, or overlooked the obvious.

See the IconGrid, IconBox, and IconFill style conditions.

– Thomas Adam

What would I need to do to make it with the numlock on?

I will look into those other functions.

IgnoreModifiers L25

– Thomas Adam

ah okay. Got it.