Debian Codegraph @

fvwm/components/functions/Window-Autohide

raw
1 # Window-Autohide
2 # Written by: Lluis Vilanova <[email protected]>
3 # Maciej Delmanowski <[email protected]>
4
5 # You can use these functions to automatically hide or show certain windows.
6 # Windows will be automatically unshaded when you move mouse pointer over
7 # them, and automatically shaded in selected direction when you will move
8 # mouse pointer away. You can select the time in miliseconds after window will
9 # be (un)shaded.
10
11
12 # Usage:
13 # Window-Autohide <alias> <window-name> <show-time> <hide-time> <direction>
14
15 # <alias> alias for the FvwmAuto module, must be different for each window,
16 # and cannot contain spaces
17 # <window-name> name of a window to use; haven't been tested with names
18 # containing spaces
19 # <show-time> time between entering a window and showing it
20 # <hide-time> time between leaving a window and hiding it
21 # <direction> direction for the "WindowShade" command; can be one of: N,S,E,W
22
23
24 DestroyFunc Window-Autohide
25 AddToFunc Window-Autohide
26 + I KillModule FvwmAuto $0
27 + I DestroyModuleConfig $0: *
28 + I Module FvwmAuto $0 -menter "Window-Autohide-Func $1 $2 $3 $4"
29
30 DestroyFunc Window-Autohide-Func
31 AddToFunc Window-Autohide-Func
32 + I ThisWindow ($0) Deschedule $[w.id]
33 + I TestRc (!Match) Deschedule -$[w.id]
34 + I ThisWindow ($0, shaded) Window-Autohide_Show $1 $3
35 + I TestRc (!Match) All ($0, !shaded) Window-Autohide_Hide $2 $3
36
37 DestroyFunc Window-Autohide_Show
38 AddToFunc Window-Autohide_Show
39 + I Schedule $0 -$[w.id] WindowShade $1 off
40 + I Schedule $0 -$[w.id] Deschedule $[w.id]
41 + I Schedule $0 -$[w.id] Deschedule -$[w.id]
42
43 DestroyFunc Window-Autohide_Hide
44 AddToFunc Window-Autohide_Hide
45 + I Schedule $0 $[w.id] WindowShade $1 on
46 + I Schedule $0 $[w.id] Deschedule $[w.id]
47 + I Schedule $0 $[w.id] Deschedule -$[w.id]
48
49
50 # ViM modeline
51 # vim:ft=fvwm