# EdgeCommand

`EdgeCommand` direction Function

Binds a specified fvwm command Function to an edge of the screen. Direction may be one of "", "", "", "", "", "", "" and "". If Function is omitted the binding for this edge is removed. If EdgeCommand is called without any arguments all edge bindings are removed.

Function is executed when the mouse pointer enters the invisible pan frames that surround the visible screen. The binding works only if is set to a value greater than 0. If a function is bound to an edge, scrolling specified by is disabled for this edge. It is possible to bind a function only to some edges and use the other edges for scrolling. This command is intended to raise or lower certain windows when the mouse pointer enters an edge. can be used get a delay when raising or lowering windows. The following example raises if the mouse pointer enters the top edge of the screen.

    # Disable EdgeScrolling but make it possible
    # to move windows over the screen edge
     -1
     * EdgeMoveDelay 250
     * EdgeMoveResistance 20

    # Set thickness of the edge of the screen to 1
     1

    # Give focus to FvwmButtons if the mouse
    # hits top edge
    EdgeCommand Top  (FvwmButtons)
    # Make sure the  command matches the window
     FvwmButtons CirculateHit

      100 "Silent AutoRaiseFunction" \
         "Silent AutoLowerFunction"

    # If any window except FvwmButtons has
    # focus when calling this function
    # FvwmButtons are lowered
     AutoLowerFunction
     AutoLowerFunction
    + I  (!FvwmButtons)  (FvwmButtons)

    # If FvwmButtons has focus when calling this function raise it
     AutoRaiseFunction
     AutoRaiseFunction
    + I  (FvwmButtons)

Normally, the invisible pan frames are only on the screen edges that border virtual pages. If a screen edge has a command bound to it, the pan frame is always created on that edge.