Window Position: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
[[File: | [[File:150px-Function-icon.png|right|150px|link=Window Position|image]] '''[[Window Position]]''' <small>''(functions)''</small> runs after Fvwm has loaded. It places the window or dialog box on the desk that is convenient for the user. | ||
<pre> | <pre> | ||
## FILE 1 | ## FILE 1: winPos.txt | ||
## Functions | ## Functions | ||
## Window position | ## Window position | ||
| Line 20: | Line 20: | ||
'''HOW TO''': | '''HOW TO''': | ||
Copy the code and paste it into your config. Or create FILE 1 and run the below line:<br> | Copy the code and paste it into your config. Or create FILE 1 and run the below line:<br> | ||
''Read winPos.txt'' | ''Read $[HOME]/.fvwm/winPos.txt'' | ||
---- | ---- | ||
'''Read more:'''<br /> | '''Read more:'''<br /> | ||
| Line 29: | Line 29: | ||
[[Category:functions]] | [[Category:functions]] | ||
[[Category:startup]] | [[Category:startup]] | ||
[[Category:codes]] | |||
Latest revision as of 11:42, 12 July 2025
Window Position (functions) runs after Fvwm has loaded. It places the window or dialog box on the desk that is convenient for the user.
## FILE 1: winPos.txt
## Functions
## Window position
AddToFunc StartFunction I Module FvwmEvent FvwmEvent-MoveWindow
DestroyModuleConfig FvwmEvent-MoveWindow: *
*FvwmEvent-MoveWindow: Cmd Function
*FvwmEvent-MoveWindow: add_window MoveWindow
DestroyFunc MoveWindow
AddToFunc MoveWindow
+ I ThisWindow ("Calendar*") Move -2 -10
+ I ThisWindow ("Alert*") Move -15 -30
HOW TO:
Copy the code and paste it into your config. Or create FILE 1 and run the below line:
Read $[HOME]/.fvwm/winPos.txt
Read more:
https://www.fvwm.org/Wiki/Config/Functions/FunctionTips/