1FvwmSaveDesk(1)                  Fvwm Modules                  FvwmSaveDesk(1)
2
3
4

NAME

6       FvwmSaveDesk - another fvwm desktop-layout saving module
7

SYNOPSIS

9       FvwmSaveDesk  is  spawned  by  fvwm, so no command line invocation will
10       work.
11
12

DESCRIPTION

14       When called, this module will attempt to save your current desktop lay‐
15       out  as  a definition of extra lines for the function InitFunction into
16       the file .fvwm2desk in your home directory. As  explain  in  the  other
17       documentation, this function is called at startup of fvwm.  You have to
18       include this file in .fvwm2rc after  the  definition  of  the  Function
19       Initfunction.  You can do this by using the module FvwmM4 or FvwmCpp.
20
21       Your  applications  must  supply  certain hints to the X window system.
22       Emacs and Netscape, for example, does not, so  FvwmSaveDesk  can't  get
23       any information from it.
24
25       Also,  FvwmSaveDesk assumes that certain command line options are glob‐
26       ally accepted by applications, which may not be the case.
27
28

SETUP USING FVWMM4 MODULE

30       The M4 Macro processor substitutes its macros even in the middle  of  a
31       word. Because of that you may have problems with predefined macros such
32       as include or define. To avoid this the GNU M4 has an extra  option  to
33       prefix  all  builtins  with  'm4_'.  FvwmM4  can  be called with option
34       -m4-prefix and then will provide the option -P to M4.  I personally use
35       the FvwmM4 module this way.
36
37       fvwm -cmd "FvwmM4 -m4-prefix -m4opt -I$HOME $HOME/.fvwm2rc"
38
39       Simply add the following line to the end of .fvwm2rc:
40
41       m4_include(`.fvwm2desk') .
42
43

SETUP USING FVWMCPP MODULE

45       With  the FvwmCpp you may have the problem that the preprocessor direc‐
46       tives starts with the comment character '#'  and  will  complain  about
47       unknown directives, if you have comments in your .fvwm2rc.
48
49       fvwm -cmd "FvwmCpp -C-I$HOME $HOME/.fvwm2rc"
50
51       Simply add the following line to the end of .fvwm2rc:
52
53       #include ".fvwm2desk"
54
55

INVOCATION

57       FvwmSaveDesk  can  be invoked by adding it to a menu or binding it to a
58       mouse button or key stroke in the  .fvwm2rc  file.   Fvwm  will  search
59       directory  specified  in  the ModulePath configuration option to locate
60       FvwmSaveDesk.
61
62       To insert it to a menu, add the line
63
64       +    "Save Desktop" Module FvwmSaveDesk
65
66       to the menu definition.  I thing binding it to a mouse  button  is  not
67       very useful, but you can do that, by adding for example this line.
68
69       Mouse 3        R    CS   Module FvwmSaveDesk
70
71       Than  FvwmSaveDesk  will be called if you hit the right mouse button on
72       the root window while holding the shift and control button down.
73
74       You can bind FvwmSaveDesk to a function key F10 for example you have to
75       insert the following line:
76
77       Key  F10  A    Module FvwmSaveDesk
78
79       I personally add it as a Button to the module FvwmButtons:
80
81       *FvwmButtons SaveDesc desk.xpm   Module FvwmSaveDesk
82
83

AUTHOR

85       Carsten Paeth (calle@calle.in-berlin.de)
86
87
88
893rd Berkeley Distribution    09 May 2010 (2.5.30)              FvwmSaveDesk(1)
Impressum