|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This script can be invoked from a shell or from .fvwm2rc. For example.
AddToFunc "InitFunction"
+ "I" Exec exec xcb -n 4 -l vertical -g 240x180-0+530
+ "I" Exec sleep 2; $HOME/scripts/focus-link.pl
Sleep is used in order to avoid un-necessary reaction during initial window creation. Note, fvwm itself continues to run during these 2 seconds.
Default behavior is listed below. In order to change the behavior, modify user_function using user functions.
If <id> is prensent in hex format, then move <id> window. Otherwise, move the window in question.
If <y> is present, move window to <x> <y> in percentage of screen.
If 'p' is appended to <width> or <height>, it specifies in pixel count. And, if <width'p'> or <height'p'> is lead with '-', it signifies that pixel count from right or bottom edge.
If <y> does not exist, <dir> must be one of North Northeast East Southeast South Southwest West Northwest to move window to edge.
Resize window to <width> and <height> in percentage of screen size.
If <id> is not null, resize <id>. Otherwise resize the window in question.
Letter 'p' can be appended to <width> and <height> to specify in pixel count.
If <id> is not null, focus on <id>. Otherwise, focus on the window in question.
Move pointer to window.
If <id> is a window id, warp to <id>. Otherwise, warp to the window in question.
If <x> and <y> are present, warp to <x> and <y> percentage of window size down and in from the upper left hand corner.
Letter 'p' can be appended to <width> and <height> to specify in pixel count.
Check if window class and optional resource match.
If arg1 is present, and if class matches with <class> and resource matches with <resource>, then return 1.
If arg1 is not present, and if class matches with <class> then return 1. Otherwise, return null.
Return 1 if <flag> is true in the window in question. If <id> is not null, check on <id>. Otherwise check on the window in question. <flag> must be a exact match to one of these:
StartIconic
OnTop
Sticky
WindowListSkip
SuppressIcon
NoiconTitle
Lenience
StickyIcon
CirculateSkipIcon
CirculateSkip
ClickToFocus
SloppyFocus
SkipMapping
Handles
Title
Mapped
Iconified
Transient
Visible
IconOurs
PixmapOurs
ShapedIcon
Maximized
WmTakeFocus
WmDeleteWindow
IconMoved
IconUnmapped
MapPending
HintOverride
MWMButtons
MWMBorders
<action> must be a exact match to one of these:
new page
new desk
add
raise
lower
focus change
destroy
iconify
deiconify
windowshade
dewindowshade
end windowlist
icon location
end configinfo
string
Return parent window id.
If <id> is not null, check on <id>. Otherwise check on the window in question.
Return 1 if no parent window exits.
If <id> is not null, check on <id>. Otherwise check on the window in question.
Delete the window from link list
Last modified on September 20, 2009