source: oleum/config @ 340

Revision 340, 10.5 KB checked in by shiml, 7 months ago (diff)

new stuff

Line 
1## User-Settings #######################
2# wallpaper
3SetEnv WALLPAPER        $HOME/.wallpaper/zitrone_zeichnung.png
4
5Read ConfigProgram
6Read ConfigLNF
7########################################
8
9## Paths ###############################
10ModulePath /usr/lib/fvwm/$[version.num]
11ImagePath /usr/share/icons/fvwm:$HOME/.fvwm/icons:$HOME/.wallpaper:/usr/share/icons/Tango:/usr/share/icons/hicolor:/usr/share/icons
12########################################
13
14## Fonts ###############################
15Style * Font "StringEncoding=UTF-8:xft:URW Gothic L:size=$[FONTSIZE]"
16Style * IconFont "StringEncoding=UTF-8:xft:URW Gothic L:size=$[FONTSIZE]"
17DefaultFont "StringEncoding=UTF-8:xft:URW Gothic L:size=$[FONTSIZE]"
18########################################
19
20## Foo #################################
21DeskTopSize 8x1
22EdgeScroll 0 0
23ClickTime 250
24ColormapFocus FollowsMouse
25IgnoreModifiers L25
26OpaqueMoveSize 100
27########################################
28
29## Colorsets ###########################
30CleanupColorsets
31## fvwm standard colorset numbers:
32## 0    default
33## 1    inactive windows
34## 2    active windows
35## 3    inactive menu & bg
36## 4    active menu
37## 5    greyed out menu
38## 6    module fg & bg
39## 7    hilight colors
40
41Colorset 0 RootTransparent, fg lightgrey, bg average, tint black 45
42Colorset 1 RootTransparent, fg lightgrey, bg average, tint black 45
43Colorset 2 RootTransparent, fg white, bg average, tint black 30
44Colorset 3 RootTransparent, fg lightgrey, bg average, tint black 45
45Colorset 4 RootTransparent, fg white, bg average, tint black 30
46Colorset 5 RootTransparent, fg darkgrey, bg average, tint black 45
47Colorset 6 RootTransparent, fg lightgrey, bg average, tint black 45
48Colorset 7 RootTransparent, fg white, bg average, tint black 30
49
50BorderStyle Active Colorset 2 -- HiddenHandles NoInset
51BorderStyle Inactive Colorset 1 -- HiddenHandles NoInset
52TitleStyle RightJustified #Height 20
53TitleStyle Active Colorset 2 -- Flat
54TitleStyle Inactive Colorset 1 -- Flat
55ButtonStyle 1 17 20x20@1 30x20@1 50x40@1 70x20@1 80x20@1 80x30@0 60x50@0 80x70@1 80x80@0 70x80@0 50x60@0 30x80@0 20x80@0 20x70@0 40x50@1 20x30@0 20x20@1
56ButtonStyle 2 5 25x25@1 25x75@1 75x75@0 75x25@0 25x25@1
57ButtonStyle 4 5 40x40@1 60x40@1 60x60@0 40x60@0 40x40@1
58ButtonStyle All -- UseTitleStyle Flat
59
60MenuStyle * MenuColorset 3
61MenuStyle * TitleColorset 4
62MenuStyle * GreyedColorset 5
63MenuStyle * ActiveColorset 4
64MenuStyle * SidePic menu.png
65
66Style * Colorset 3
67Style * HilightColorset 4
68#######################################
69
70## Global-Styles ######################
71Style * BorderWidth 4
72Style * HandleWidth 4
73
74# calculate the size of the iconbox
75PipeRead "$[HOME]/.fvwm/calc.py SetEnv geo {$[vp.width] 128 - i}x{$[vp.height] 256 - i}+64+128"
76Style * IconBox $[geo]
77Style * IconGrid 128 128
78Style * IconSize 48 48
79Style * SnapAttraction 15 Windows
80Style * EdgeMoveResistance 25
81Style * SmartPlacement
82Style * DecorateTransient
83Style * ResizeOpaque
84
85## We want to decorate all windows.. sometimes undecorated wins suck hard.
86Style "Untitled" Title
87Style "NoClass" Title
88Style "NoRessource" Title
89#######################################
90
91## Key Bindings #######################
92Key T       A SM    Exec $[TERMINAL]
93Key B       A SM    Exec $[BROWSER]
94Key M       A SM    Exec $[MAILER]
95Key J       A SM    Exec $[JABBER]
96Key F       A SM    Exec $[FILER]
97Key E       A SM    Exec $[EDITOR]
98
99Key Tab     A M     Next (!Sticky) WarpToWindow 50 50
100Key Tab     A C     Prev (!Sticky) WarpToWindow 50 50
101Key Tab     A 4     All (CurrentPage, !Sticky) WarpToWindow 50 50
102
103Key 1       A SM    GoToPage 0 0
104Key 2       A SM    GoToPage 1 0
105Key 3       A SM    GoToPage 2 0
106Key 4       A SM    GoToPage 3 0
107Key 5       A SM    GoToPage 4 0
108Key 6       A SM    GoToPage 5 0
109Key 7       A SM    GoToPage 6 0
110Key 8       A SM    GoToPage 7 0
111
112Key Right       A CM            GoToPage +1p 0
113Key Left        A CM            GoToPage -1p 0
114
115Key Right       A SM            Function MoveWindowRightAndFollow
116Key Left        A SM            Function MoveWindowLeftAndFollow
117
118#######################################
119
120Key F1      A N     Nop
121Key F1      A SM    Maximize grow grow
122Key F2      A SM    Iconify
123Key F3      A SM    Module FvwmRearrange -tile -m -h 0 8 100 100
124Key F4      A SM    Module FvwmRearrange -tile -m 0 8 100 100
125
126Key F5      A SM    Exec xscreensaver-command -lock
127
128Key F9      A SM    Delete
129Key F11     A SM    Menu MenuSystem
130Key F12     A SM    Restart
131#######################################
132
133## Mouse bindings #####################
134# special functions
135# - (1) on the cross closes a window
136# - (3) on the cross destroys a window
137# - (2) on the maximize button grows horizontally
138# - (3) on the maximize button grows vertically
139# - (1) on the title raises window
140# - double (1) on the title lowers window
141# - (2) on the title shows windows of the same kind
142# - (3) on the title shades the window
143# - (1 + CTRL) on the root opens FvwmConsole
144# - (6) on titlebar moves the window one page left
145# - (7) on titlebar moves the window one page right
146# - (6) everywhere else goes one page left
147# - (7) everywhere else goes one page right
148Mouse 1     I A Iconify
149Mouse 1     1 A Close
150Mouse 3     1 A Destroy
151Mouse 1     2 A Maximize grow grow
152Mouse 1     4 A Iconify
153Mouse 3     T A WindowShade
154
155Mouse 2     2 A Maximize grow 0
156Mouse 3     2 A Maximize 0 grow
157
158Mouse 2     T A WindowList ($[w.resource])
159Mouse 2     R A WindowList
160Mouse 1     R C Module FvwmConsole
161Mouse 1     R N Nop
162
163## Functions ##########################
164DestroyFunc StartFunction
165AddToFunc StartFunction
166+ I     Exec fvwm-root -r $[WALLPAPER]
167+ I     Exec exec $[STARTSTOP] start
168
169DestroyFunc RestartFunction
170AddToFunc RestartFunction
171+ I     Nop
172
173DestroyFunc ExitFunction
174AddToFunc ExitFunction
175+ I     Exec exec $[STARTSTOP] stop
176
177DestroyFunc WindowListFunc
178AddToFunc WindowListFunc
179+ I     Iconify off
180+ I     FlipFocus
181+ I     Raise
182+ I     WarpToWindow 50% 50%
183
184DestroyFunc MoveWindowLeftAndFollow
185AddToFunc MoveWindowLeftAndFollow
186+ I     ThisWindow MoveToPage -1p 0
187+ I     GotoPage -1p 0
188
189DestroyFunc MoveWindowRightAndFollow
190AddToFunc MoveWindowRightAndFollow
191+ I     ThisWindow MoveToPage +1p 0
192+ I     GotoPage +1p 0
193
194DestroyFunc Shutdown
195AddToFunc Shutdown
196+ I     Exec $[SUDOTOOL] "shutdown -h now"
197
198#######################################
199
200# Modules
201Style   "FvwmPager"     NoTitle, Sticky, WindowListSkip, FixedSize, NeverFocus, CirculateSkip
202Style   "FvwmPager"     BorderWidth 0
203*FvwmPager: Colorset * 1
204*FvwmPager: HighlightColorset * 2
205*FvwmPager: WindowColorsets 1 2
206*FvwmPager: Font None
207
208## Menus ##############################
209DestroyMenu MenuAll
210AddToMenu MenuAll
211 + "Internet"                                                               Popup MenuInternet
212 + "Office"                                                                     Popup MenuOffice
213 + "Graphics"                                                               Popup MenuGraphics
214 + "Multimedia"                                                             Popup MenuMulti
215 + "Tools"                                                                      Popup MenuTools
216 + "Games"                                                                      Popup MenuGames
217 + "System"                                             Popup MenuSystem
218
219#DestroyMenu Desktop
220#AddToMenu Desktop
221# + DynamicPopupAction PipeRead "fvwm-menu-directory -r -na Desktop --dir=$[HOME]/Desktop --exec-file='$[FVWM_USERDIR]/open.sh'"
222
223DestroyMenu MenuConfig
224AddToMenu MenuConfig "Config" Title
225 + "Oleum-Configuration"%16x16/categories/applications-system.png%      Module FvwmForm Oleum-Config
226 + "Synergy-Client"%16x16/apps/preferences-desktop-remote-desktop.png%  Module FvwmForm Oleum-Synergy
227 + "MPD Control"%16x16/mimetypes/sound.png%                             Module FvwmButtons MpdControl
228 + "GTK-Theme"                                                          Exec gtk-chtheme
229 + "QT-Config"                                                          Exec qtconfig
230
231DestroyMenu MenuSystem
232AddToMenu MenuSystem "System" Title
233# + "Desktop"                                            Popup Desktop
234 + "Configuration"%16x16/categories/applications-system.png%   Popup MenuConfig
235 + ""                                                   Nop
236 + "Lock"                                               Exec xscreensaver-command -lock
237 + "Restart FVWM"%16x16/actions/gtk-refresh.png%        Restart
238 + "Exit"%16x16/actions/system-log-out.png%             Quit
239 + "Shutdown"%16x16/actions/system-shutdown.png%        Function Shutdown
240
241DestroyMenu MenuInternet
242AddToMenu MenuInternet "Internet" Title
243 + "Browser"%16x16/apps/browser.png%                    Exec $[BROWSER]
244 + "Jabber"%16x16/apps/internet-group-chat.png%         Exec $[JABBER]
245 + "Mail"%16x16/apps/email.png%                         Exec $[MAILER]
246 + "Transmission"%16x16/status/network-transmit-receive.png%  Exec transmission
247 + "sim"%16x16/apps/internet-group-chat.png%            Exec /opt/kde/bin/sim
248
249DestroyMenu MenuOffice
250AddToMenu MenuOffice "Office" Title
251 + "Abiword"%16x16/apps/text-editor.png%                Exec abiword
252 + "Ding"%16x16/apps/locale.png%                        Exec ding
253 + "Evince"%16x16/mimetypes/document.png%               Exec evince
254 + "Sunbird"%16x16/apps/date.png%                       Exec sunbird
255Read MenuOpenOffice
256
257DestroyMenu MenuGraphics
258AddToMenu MenuGraphics "Graphics" Title
259 + "Comix"%16x16/mimetypes/image.png%                   Exec comix
260 + "Gimp"%16x16/apps/gimp.png%                          Exec gimp
261 + "GQview"%16x16/mimetypes/image.png%                  Exec gqview
262 + "Inkscape"%16x16/mimetypes/image.png%                Exec inkscape
263 + "MTPaint"%16x16/mimetypes/image.png%                 Exec mtpaint
264 + "QCad"%16x16/mimetypes/image.png%                    Exec qcad
265
266DestroyMenu MenuMulti
267AddToMenu MenuMulti "Multimedia" Title
268 + "Kaffeine"%16x16/mimetypes/video.png%                Exec gmplayer
269 + "Sonata"%16x16/mimetypes/sound.png%                  Exec sonata
270 + "Miro"%16x16/mimetypes/miro.png%                     Exec miro
271 + "Gnome-Alsamixer"%16x16/status/stock_volume.png%     Exec gnome-alsamixer
272
273PipeRead $[HOME]/.fvwm/vboxmenu.py
274
275DestroyMenu MenuTools
276AddToMenu MenuTools "Tools" Title
277 + "Filemanager"%16x16/apps/system-file-manager.png%    Exec $[FILER]
278 + "Terminal"%16x16/apps/terminal.png%                  Exec $[TERMINAL]
279 + "NMap"%16x16/status/network-idle.png%                Exec $[SUDOTOOL] nmapfe
280 + "Wireshark"%16x16/status/network-idle.png%           Exec $[SUDOTOOL] wireshark
281 + "Virtual Box"                                        Popup vboxmachines
282
283DestroyMenu MenuGames
284AddToMenu MenuGames "Games" Title
285 + "Crack-Attack"%crack-attack.xpm%                     Exec crack-attack
286 + "Enigma"%enigma.png%                                 Exec enigma
287 + "gnubg"%gnubg.png%                                   Exec gnubg
288#######################################
289
290
291## Load Extensions
292Read ConfigExtension
293
294Read Oleum-Config
295Read Oleum-Synergy
Note: See TracBrowser for help on using the repository browser.