Auto Hide Windows
Jump to navigation
Jump to search
Auto Hide Windows (functions) allows withdrawing a window to a location where it does not use precious desktop space. Simply add any windows you like to the enter_handler function. The autohide function is called with two or three parameters. The first one is the window’s name or class, which must be unique. The second is the delay in milliseconds before the window is hidden after the pointer leaves it, and the last - optional - one indicates the direction in which it is hidden (N, S, E, W, NW, NE, SW or SE).
## FILE 1: autoHideL.txt ## Functions DestroyFunc autohide AddToFunc autohide + I ThisWindow ($0) Deschedule $[w.id] + I ThisWindow ($0) ThisWindow (Shaded) WindowShade off + I TestRc (!Match) All ($0, !Shaded) autohide\_hide $1 $2 DestroyFunc autohide_hide AddToFunc autohide_hide + I Schedule $0 $[w.id] WindowShade $1 + I Schedule $0 $[w.id] Deschedule $[w.id] # Start FvwmAuto AddToFunc StartFunction I Module FvwmAuto FvwmAutohide -menter enter_handler # Add buttons and pagers to autohide. DestroyFunc enter_handler AddToFunc enter_handler # + I autohide V1x5Pager 1500 E # + I autohide ControlPanelB 1300 N + I autohide SimpleButton 1200 N + I autohide DashToDock 1500 W + I autohide FvwmButtons 500 S # ^ ^ ^ # | | |__ Shade direction (optional N, S, E, W, NW, NE, SW or SE) # | |_______ Hide delay (milliseconds) # |________________ Unique window name/resource
HOW TO:
Copy the code and paste it into your config. Or create FILE 1 and run the below line:
Read $[HOME]/.fvwm/autoHideL.txt
