Auto Hide Windows: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
[[File:auto-hide.png|right|150px|link=Auto Hide Windows|Image]] '''[[Auto Hide Windows]]''' <small>''( | [[File:auto-hide.png|right|150px|link=Auto Hide Windows|Image]] '''[[Auto Hide Windows]]''' <small>''(functions)''</small> 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). | ||
<pre> | <pre> | ||
## FILE 1 | ## FILE 1: autoHideL.txt | ||
## Functions | ## Functions | ||
DestroyFunc autohide | DestroyFunc autohide | ||
| Line 37: | Line 37: | ||
'''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 autoHideL.txt'' | ''Read $[HOME]/.fvwm/autoHideL.txt'' | ||
---- | ---- | ||
''Read more:''<br /> | ''Read more:''<br /> | ||
| Line 46: | Line 46: | ||
[[Category:functions]] | [[Category:functions]] | ||
[[Category:action]] | [[Category:action]] | ||
[[Category:codes]] | |||
Latest revision as of 11:44, 12 July 2025
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
