Decors

hy ppl i’d like to give a alt + F12 a function to “turn off” decors and borders anyones know how?! i think comand is ToggleDecor but i’m not sure

Thanks

[color=red]Edited by theBlackDragon:
–>split from this thread because it was offtopic there.[/color]

You can do something like this:

DestroyFunc FvwmToggleDecor
AddToFunc FvwmToggleDecor
+ I Style * !Title, !Borders
+ I UpdateStyles

That function will apply that style to ALL windows currently active. Then you can bind it to Alt-F12 thus:

Key F12 A A Function FvwmToggleDecor

You may well want to alter that function so that it also puts back borders, etc, next time you press the key sequence.

– Thomas Adam

Thomas thanks for the help :smiley:
i like to know if it’s possible to apply this funtion to only one program…
E.g: if i have the mouse cursor on a term and click alt + F12 the funtion apply only this window…

thanks again :stuck_out_tongue:

Sure. Just use the “Current” command with the “WindowStyle” command to apply to the one window only. Hence:

DestroyFunc FvwmToggleDecor
AddToFunc FvwmToggleDecor
+ I Current  WindowStyle !Title, !Borders
+ I UpdateStyles

The keybinding command is the same as before.

HTH,

– Thomas Adam