1
Zaurus - pdaXrom / Fvwm-pdaxrom 0.4.x
« on: March 21, 2006, 02:29:23 am »
I used the method proposed by jerrybme above and made a three level window zoom function out of it.
- First key press (Fn+2) maximises the window with the taskbar still visible
- The second key press (Fn+2) resizes the window so that it covers the taskbar
- Third key press (Fn+2) removes window decorations and uses the full screen for
the window
- Fourth key press (Fn+2) switches the window back to its initial size
To use it, just put the code below in your /home/root/.fvwm/personal/config file and restart the window manager.
have fun, Philippe
- First key press (Fn+2) maximises the window with the taskbar still visible
- The second key press (Fn+2) resizes the window so that it covers the taskbar
- Third key press (Fn+2) removes window decorations and uses the full screen for
the window
- Fourth key press (Fn+2) switches the window back to its initial size
To use it, just put the code below in your /home/root/.fvwm/personal/config file and restart the window manager.
have fun, Philippe
Code: [Select]
Key 2 A 2 RotateFullscreen
DestroyFunc RotateFullscreen
AddToFunc  RotateFullscreen
+ I Current (!State 0) Zoom1
+ I Current (!State 1) Zoom2
+ I Current (!State 2) Zoom3
+ I Current (State 2) Zoom0
DestroyFunc Zoom1
AddToFunc Zoom1
+ I SetEnv OldX-$[w.id] $[w.x]
+ I SetEnv OldY-$[w.id] $[w.y]
+ I SetEnv OldWidth-$[w.id] $[w.width]
+ I SetEnv OldHeight-$[w.id] $[w.height]
+ I Current Maximize 640p 448p
+ I Current State 0 true
+ I Break 2
DestroyFunc Zoom2
AddToFunc Zoom2
+ I Current ResizeMaximize 640p 455p
+ I Style ZaurusTaskbar StaysOnBottom
+ I Current State 1 true
+ I Break 2
DestroyFunc Zoom3
AddToFunc Zoom3
+ I Move 0p 0p
+ I Resize 100 100 frame
+ I WindowStyle NoTitle, !Borders, StaysOnTop, !Iconifiable, !Maximizable
+ I Current State 2 true
+ I Break 2
DestroyFunc Zoom0
AddToFunc Zoom0
+ I DestroyWindowStyle
+ I PipeRead "echo ResizeMove \\$\\[OldWidth-$[w.id]\\]p \\$\\[OldHeight-$[w.id]\\]p \\$\\[OldX-$[w.id]\\]p \\$\\[OldY-$[w.id]\\]p"
+ I Current State 0 false
+ I Current State 1 false
+ I Current State 2 false
+ I Break 2