Update minimal theme to use features in FVWM 2.5.25+
[fvwm-themes.git] / themes / minimal / modules / main
blob5b537a764e46d84c8d1836383f9ae1aab0cb4f0e
1 # ----------------------------------------------------------------------------
2 # Icon related configuration
4 Style * IconBox screen w 5 5 -10 -10, IconGrid 3 3, IconFill left top
5 Style * SlipperyIcon, IconTitle
7 # ----------------------------------------------------------------------------
8 # start-stop functions
10 DestroyFunc FuncFvwmStartThemeModules
11 AddToFunc   FuncFvwmStartThemeModules
12 + I FuncFvwmStartNormalIcons
13 + I FuncFvwmStartChosenButtons
15 DestroyFunc FuncFvwmReloadThemeModules
16 AddToFunc   FuncFvwmReloadThemeModules
17 + I Read $./styles
18 + I FuncFvwmStartNormalIcons
20 DestroyFunc FuncFvwmReloadColorsModules
21 AddToFunc   FuncFvwmReloadColorsModules
22 + I FuncFvwmStartChosenButtons
24 DestroyFunc FuncFvwmStopThemeModules
25 AddToFunc   FuncFvwmStopThemeModules
26 + I FuncFvwmStopModuleByAlias FvwmButtons FvwmButtons-Laptop
27 + I FuncFvwmStopModuleByAlias FvwmButtons FvwmButtons-Desktop
28 + I DestroyModuleConfig FvwmButtons-Minimal: *
29 + I DestroyModuleConfig FvwmPager-Single: *
30 + I FuncFvwmModulesDestroyStyle
31 + I DestroyFunc FuncFvwmModulesDestroyStyle
33 DestroyFunc FuncFvwmUnReloadColorsModules
34 AddToFunc   FuncFvwmUnReloadColorsModules
35 + I FuncFvwmStopModuleByAlias FvwmButtons FvwmButtons-Laptop
36 + I FuncFvwmStopModuleByAlias FvwmButtons FvwmButtons-Desktop
38 DestroyFunc FuncFvwmUnReloadThemeModules
39 AddToFunc   FuncFvwmUnReloadThemeModules
41 # ------------------------------------------------------------
42 # Menu
44 DestroyFunc FuncFvwmRestartChosenButtons
45 AddToFunc   FuncFvwmRestartChosenButtons
46 + I FuncFvwmStopModuleByAlias FvwmButtons FvwmButtons-Laptop
47 + I FuncFvwmStopModuleByAlias FvwmButtons FvwmButtons-Desktop
48 + I Module FvwmButtons $0
50 DestroyMenu MenuFvwmStartThemeModules
51 AddToMenu   MenuFvwmStartThemeModules "Minimal Modules" Title
52 + "%menu/item.xpm%&Desktop Buttons" FuncFvwmRestartChosenButtons \
53         FvwmButtons-Desktop
54 + "%menu/item.xpm%&Laptop Buttons" FuncFvwmRestartChosenButtons \
55         FvwmButtons-Laptop
57 DestroyMenu MenuFvwmStopThemeModules
58 AddToMenu   MenuFvwmStopThemeModules "Minimal Modules" Title
59 + "%menu/quit.xpm%Stop &Buttons" FuncFvwmUnReloadColorsModules
61 # ----------------------------------------------------------------------------
62 # Desktop names
64 DesktopName 0 One
65 DesktopName 1 Two
66 DesktopName 2 Three
67 DesktopName 3 Four
69 # ------------------------------------------------------------
70 # modules config
72 Read $./styles
74 DestroyFunc FuncFvwmStartNormalIcons
75 AddToFunc   FuncFvwmStartNormalIcons
77 # --------------- Laptop buttons
78 DestroyModuleConfig FvwmButtons-Laptop: *
80 *FvwmButtons-Laptop: Geometry 225x90+0-0
81 *FvwmButtons-Laptop: Colorset 10
82 *FvwmButtons-Laptop: Rows 16
83 *FvwmButtons-Laptop: Columns 10
84 *FvwmButtons-Laptop: (3x12, Size 64 64, Frame 1,\
85         Swallow (Kill) "FvwmApplet-DayClock" 'FvwmScript FvwmApplet-DayClock 10 13'))
86 *FvwmButtons-Laptop: (1x5,Frame 1,\
87         Icon 16x16/www.xpm, \
88         Action(Mouse 1) 'FuncFvwmWWW', \
89         Action(Mouse 2) 'FuncFvwm2WWW', \
90         Action(Mouse 3) 'FuncFvwm3WWW')
91 *FvwmButtons-Laptop: (1x5,Frame 1,\
92         Icon 16x16/terminal.xpm, \
93         Action(Mouse 1) 'FuncFvwmTerminal', \
94         Action(Mouse 2) 'FuncFvwm2Terminal', \
95         Action(Mouse 3) 'FuncFvwm3Terminal')
96 *FvwmButtons-Laptop: (1x5,Frame 1, \
97         Icon 16x16/editor.xpm, \
98         Action(Mouse 1) 'FuncFvwmEditor', \
99         Action(Mouse 2) 'FuncFvwm2Editor', \
100         Action(Mouse 3) 'FuncFvwm3Editor')
101 *FvwmButtons-Laptop: (1x5,Frame 1,\
102         Icon 16x16/monitoring.xpm, \
103         Action(Mouse 1) 'FuncFvwmProcess', \
104         Action(Mouse 2) 'FuncFvwm2Process', \
105         Action(Mouse 3) 'FuncFvwm3Process')
106 *FvwmButtons-Laptop: (1x5,Frame 1,\
107         Icon 16x16/mail.xpm, \
108         Action(Mouse 1) 'FuncFvwmMail', \
109         Action(Mouse 2) 'FuncFvwm2Mail', \
110         Action(Mouse 3) 'FuncFvwm3Mail')
111 *FvwmButtons-Laptop: (1x5,Frame 1,\
112         Icon 16x16/game.xpm, \
113         Action(Mouse 1) 'FuncFvwmGame', \
114         Action(Mouse 2) 'FuncFvwm2Game', \
115         Action(Mouse 3) 'FuncFvwm3Game')
116 *FvwmButtons-Laptop: (1x16,Container(Frame 1,Columns 1, Rows 4),Frame 1)
117 *FvwmButtons-Laptop: (1x1,Frame 1,Title "1", Action GotoDesk 0 0)
118 *FvwmButtons-Laptop: (1x1,Frame 1,Title "2", Action GotoDesk 0 1)
119 *FvwmButtons-Laptop: (1x1,Frame 1,Title "3", Action GotoDesk 0 2)
120 *FvwmButtons-Laptop: (1x1,Frame 1,Title "4", Action GotoDesk 0 3)
121 *FvwmButtons-Laptop: (End)
122 *FvwmButtons-Laptop: (6x11, Frame 1, Swallow "FvwmPager-Single" \
123         'Module FvwmPager FvwmPager-Single * *')
124 *FvwmButtons-Laptop: (3x4, Frame 1, Swallow (kill) "xapm" \
125         'Exec exec xapm -bg $$[bg.cs13] -fg $$[fg.cs13] -geometry 63x15 -p')
126 # size does not fit well
127 #*FvwmButtons-Laptop: (3x4, Frame 1, \
128 #       Swallow (Kill) "FvwmApplet-APMMon" 'FvwmScript FvwmApplet-APMMon'))
130 # --------------- Desktop buttons
131 DestroyModuleConfig FvwmButtons-Desktop: *
133 *FvwmButtons-Desktop: Geometry 225x90+0-0
134 *FvwmButtons-Desktop: Colorset 10
135 *FvwmButtons-Desktop: Rows 16
136 *FvwmButtons-Desktop: Columns 10
137 *FvwmButtons-Desktop: (3x12, Size 64 64, Frame 1,\
138         Swallow (Kill) "FvwmApplet-DayClock" \
139         'FvwmScript FvwmApplet-DayClock 10 13'))
140 *FvwmButtons-Desktop: (1x5,Frame 1,\
141         Icon 16x16/www.xpm, \
142         Action(Mouse 1) 'FuncFvwmWWW', \
143         Action(Mouse 2) 'FuncFvwm2WWW', \
144         Action(Mouse 3) 'FuncFvwm3WWW')
145 *FvwmButtons-Desktop: (1x5,Frame 1,\
146         Icon 16x16/terminal.xpm, \
147         Action(Mouse 1) 'FuncFvwmTerminal', \
148         Action(Mouse 2) 'FuncFvwm2Terminal', \
149         Action(Mouse 3) 'FuncFvwm3Terminal')
150 *FvwmButtons-Desktop: (1x5,Frame 1, \
151         Icon 16x16/editor.xpm, \
152         Action(Mouse 1) 'FuncFvwmEditor', \
153         Action(Mouse 2) 'FuncFvwm2Editor', \
154         Action(Mouse 3) 'FuncFvwm3Editor')
155 *FvwmButtons-Desktop: (1x5,Frame 1,\
156         Icon 16x16/monitoring.xpm, \
157         Action(Mouse 1) 'FuncFvwmProcess', \
158         Action(Mouse 2) 'FuncFvwm2Process', \
159         Action(Mouse 3) 'FuncFvwm3Process')
160 *FvwmButtons-Desktop: (1x5,Frame 1,\
161         Icon 16x16/mail.xpm, \
162         Action(Mouse 1) 'FuncFvwmMail', \
163         Action(Mouse 2) 'FuncFvwm2Mail', \
164         Action(Mouse 3) 'FuncFvwm3Mail')
165 *FvwmButtons-Desktop: (1x5,Frame 1,\
166         Icon 16x16/game.xpm, \
167         Action(Mouse 1) 'FuncFvwmGame', \
168         Action(Mouse 2) 'FuncFvwm2Game', \
169         Action(Mouse 3) 'FuncFvwm3Game')
170 *FvwmButtons-Desktop: (1x16,Container(Frame 1,Columns 1, Rows 4),Frame 1)
171 *FvwmButtons-Desktop: (1x1,Frame 1,Title "1", Action GotoDesk 0 0)
172 *FvwmButtons-Desktop: (1x1,Frame 1,Title "2", Action GotoDesk 0 1)
173 *FvwmButtons-Desktop: (1x1,Frame 1,Title "3", Action GotoDesk 0 2)
174 *FvwmButtons-Desktop: (1x1,Frame 1,Title "4", Action GotoDesk 0 3)
175 *FvwmButtons-Desktop: (End)
176 *FvwmButtons-Desktop: (6x11, Frame 1, Swallow "FvwmPager-Single" \
177         'Module FvwmPager FvwmPager-Single * *')
178 *FvwmButtons-Desktop: (3x4, Frame 1, Swallow (kill) "xload" \
179         'Exec exec xload -bg $$[bg.cs13] -fg $$[fg.cs13] -geometry 63x15+0-0 \
180         -hl $$[shadow.cs13] -update 5 -nolabel')
183 # ---------------------------------------------------------------------------
184 # pager
186 DesktopSize 3x2
188 DestroyMenu  MenuFvwmWindowMove
189 AddToMenu    MenuFvwmWindowMove "Move to ..." Title
190 + "Page 1 1%menu/window-move.xpm%"      MoveToPage 0 0
191 + "Page 2 1%menu/window-move.xpm%"      MoveToPage 1 0
192 + "Page 3 1%menu/window-move.xpm%"      MoveToPage 2 0
193 + "Page 1 2%menu/window-move.xpm%"      MoveToPage 0 1
194 + "Page 2 2%menu/window-move.xpm%"      MoveToPage 1 1
195 + "Page 3 2%menu/window-move.xpm%"      MoveToPage 2 1
197 DestroyMenu  MenuFvwmWindowGroupQuickMove
198 AddToMenu    MenuFvwmWindowGroupQuickMove
199 + "Page 1 1%menu/window-move.xpm%"      Pick All ($r) MoveToPage 0 0
200 + "Page 2 1%menu/window-move.xpm%"      Pick All ($r) MoveToPage 1 0
201 + "Page 3 1%menu/window-move.xpm%"      Pick All ($r) MoveToPage 2 0
202 + "Page 1 2%menu/window-move.xpm%"      Pick All ($r) MoveToPage 0 1
203 + "Page 2 2%menu/window-move.xpm%"      Pick All ($r) MoveToPage 1 1
204 + "Page 3 2%menu/window-move.xpm%"      Pick All ($r) MoveToPage 2 1
206 AddToMenu MenuFvwmWindowMove "" Nop
207 + "Desk 1%menu/window-move.xpm%"        MoveToDesk 0 0
208 + "Desk 2%menu/window-move.xpm%"        MoveToDesk 0 1
209 + "Desk 3%menu/window-move.xpm%"        MoveToDesk 0 2
210 + "Desk 4%menu/window-move.xpm%"        MoveToDesk 0 3
212 AddToMenu MenuFvwmWindowGroupQuickMove "" Nop
213 + "Desk 1%menu/window-move.xpm%"        Pick All ($r) MoveToDesk 0 0
214 + "Desk 2%menu/window-move.xpm%"        Pick All ($r) MoveToDesk 0 1
215 + "Desk 3%menu/window-move.xpm%"        Pick All ($r) MoveToDesk 0 2
216 + "Desk 4%menu/window-move.xpm%"        Pick All ($r) MoveToDesk 0 3
218 DestroyModuleConfig FvwmPager-Single: *
219 *FvwmPager-Single: Geometry +5000+5000
221 *FvwmPager-Single: Colorset * 14
222 *FvwmPager-Single: HilightColorset * 15
223 *FvwmPager-Single: BalloonColorset * 16
224 *FvwmPager-Single: WindowColorsets 1 2
226 *FvwmPager-Single: Font none
227 *FvwmPager-Single: SolidSeparators
228 *FvwmPager-Single: Balloons            All
229 *FvwmPager-Single: BalloonYOffset      +2
230 *FvwmPager-Single: BalloonBorderWidth  1
232 *FvwmPager-Single: Window3dBorders
234 # we "need" to configure a desker for Shift-ctl Mouse 2 bindings
235 DestroyModuleConfig FvwmPager-Desker: *
237 *FvwmPager-Desker: Colorset * 14
238 *FvwmPager-Desker: HilightColorset * 15
239 *FvwmPager-Desker: BalloonColorset * 16
240 *FvwmPager-Desker: WindowColorsets 1 2
242 *FvwmPager-Desker: SolidSeparators
243 *FvwmPager-Desker: Balloons            All
244 *FvwmPager-Desker: BalloonYOffset      +2
245 *FvwmPager-Desker: BalloonBorderWidth  1
247 *FvwmPager-Desker: Window3dBorders
249 # -------------------------------
250 # fonts
251 FuncFvwmSetFont-ModuleTips FvwmPager-Single BalloonFont fixed
253 FuncFvwmSetFont-ModuleSmall FvwmPager-Single SmallFont \
254         "-*-helvetica-medium-r-*-*-8-*-*-*-*-*-*-*"
256 #FuncFvwmSetFont-ModuleSmallLabel FvwmPager-Single Font \
257 #       "-*-helvetica-medium-r-*-*-8-*-*-*-*-*-*-*"
259 FuncFvwmSetFont-ModuleTips FvwmPager-Desker BalloonFont fixed
261 FuncFvwmSetFont-ModuleSmall FvwmPager-Desker SmallFont \
262         "-*-helvetica-medium-r-*-*-8-*-*-*-*-*-*-*"
264 FuncFvwmSetFont-ModuleSmallLabel FvwmPager-Desker Font \
265         "-*-helvetica-medium-r-*-*-8-*-*-*-*-*-*-*"