Functions

From Fvwm Extensions (configs) Archive
Jump to navigation Jump to search

In Fvwm, functions are blocks of commands that can be executed as a single unit, often triggered by user actions or events. They allow for complex operations and customizations by grouping multiple actions together. Fvwm functions are defined using the AddToFunc command. This command creates a function and adds actions to it. Functions can be triggered by various events, such as key presses, mouse clicks, or even when windows are created or destroyed.

The basic syntax for a function is:

#####
# DestroyFunc FuncName
# AddToFunc   FuncName
# + I (Action to happen Immediately)
# + C (Action to happen on a mouse Click)
# + D (Action to happen on a mouse Double click)
# + H (Action to happen on a mouse Hold)
# + M (Action to happen on a mouse Motion)
###########

Read more: https://www.fvwm.org/Wiki/Config/Functions/