Functions: Difference between revisions

From Fvwm Extensions (configs) Archive
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Functions can be used to achieve lots of different tasks. Control actions that are run during the first time run (Init) or that are run after a restart. The basic syntax for a function is:
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:
<PRE>
<PRE>
#####
#####
Line 13: Line 16:
Read more:
Read more:
https://www.fvwm.org/Wiki/Config/Functions/
https://www.fvwm.org/Wiki/Config/Functions/
Available Function '''examples''':</br>
https://rasatpc.net/fvwm-ext/index.php/List_of_Functions

Latest revision as of 15:21, 7 July 2025

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/