| 1 | ## User-Settings ####################### |
|---|
| 2 | # wallpaper |
|---|
| 3 | SetEnv WALLPAPER $HOME/.wallpaper/zitrone_zeichnung.png |
|---|
| 4 | |
|---|
| 5 | Read ConfigProgram |
|---|
| 6 | Read ConfigLNF |
|---|
| 7 | ######################################## |
|---|
| 8 | |
|---|
| 9 | ## Paths ############################### |
|---|
| 10 | ModulePath /usr/lib/fvwm/$[version.num] |
|---|
| 11 | ImagePath /usr/share/icons/fvwm:$HOME/.fvwm/icons:$HOME/.wallpaper:/usr/share/icons/Tango:/usr/share/icons/hicolor:/usr/share/icons |
|---|
| 12 | ######################################## |
|---|
| 13 | |
|---|
| 14 | ## Fonts ############################### |
|---|
| 15 | Style * Font "StringEncoding=UTF-8:xft:URW Gothic L:size=$[FONTSIZE]" |
|---|
| 16 | Style * IconFont "StringEncoding=UTF-8:xft:URW Gothic L:size=$[FONTSIZE]" |
|---|
| 17 | DefaultFont "StringEncoding=UTF-8:xft:URW Gothic L:size=$[FONTSIZE]" |
|---|
| 18 | ######################################## |
|---|
| 19 | |
|---|
| 20 | ## Foo ################################# |
|---|
| 21 | DeskTopSize 8x1 |
|---|
| 22 | EdgeScroll 0 0 |
|---|
| 23 | ClickTime 250 |
|---|
| 24 | ColormapFocus FollowsMouse |
|---|
| 25 | IgnoreModifiers L25 |
|---|
| 26 | OpaqueMoveSize 100 |
|---|
| 27 | ######################################## |
|---|
| 28 | |
|---|
| 29 | ## Colorsets ########################### |
|---|
| 30 | CleanupColorsets |
|---|
| 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 | |
|---|
| 41 | Colorset 0 RootTransparent, fg lightgrey, bg average, tint black 45 |
|---|
| 42 | Colorset 1 RootTransparent, fg lightgrey, bg average, tint black 45 |
|---|
| 43 | Colorset 2 RootTransparent, fg white, bg average, tint black 30 |
|---|
| 44 | Colorset 3 RootTransparent, fg lightgrey, bg average, tint black 45 |
|---|
| 45 | Colorset 4 RootTransparent, fg white, bg average, tint black 30 |
|---|
| 46 | Colorset 5 RootTransparent, fg darkgrey, bg average, tint black 45 |
|---|
| 47 | Colorset 6 RootTransparent, fg lightgrey, bg average, tint black 45 |
|---|
| 48 | Colorset 7 RootTransparent, fg white, bg average, tint black 30 |
|---|
| 49 | |
|---|
| 50 | BorderStyle Active Colorset 2 -- HiddenHandles NoInset |
|---|
| 51 | BorderStyle Inactive Colorset 1 -- HiddenHandles NoInset |
|---|
| 52 | TitleStyle RightJustified #Height 20 |
|---|
| 53 | TitleStyle Active Colorset 2 -- Flat |
|---|
| 54 | TitleStyle Inactive Colorset 1 -- Flat |
|---|
| 55 | ButtonStyle 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 |
|---|
| 56 | ButtonStyle 2 5 25x25@1 25x75@1 75x75@0 75x25@0 25x25@1 |
|---|
| 57 | ButtonStyle 4 5 40x40@1 60x40@1 60x60@0 40x60@0 40x40@1 |
|---|
| 58 | ButtonStyle All -- UseTitleStyle Flat |
|---|
| 59 | |
|---|
| 60 | MenuStyle * MenuColorset 3 |
|---|
| 61 | MenuStyle * TitleColorset 4 |
|---|
| 62 | MenuStyle * GreyedColorset 5 |
|---|
| 63 | MenuStyle * ActiveColorset 4 |
|---|
| 64 | MenuStyle * SidePic menu.png |
|---|
| 65 | |
|---|
| 66 | Style * Colorset 3 |
|---|
| 67 | Style * HilightColorset 4 |
|---|
| 68 | ####################################### |
|---|
| 69 | |
|---|
| 70 | ## Global-Styles ###################### |
|---|
| 71 | Style * BorderWidth 4 |
|---|
| 72 | Style * HandleWidth 4 |
|---|
| 73 | |
|---|
| 74 | # calculate the size of the iconbox |
|---|
| 75 | PipeRead "$[HOME]/.fvwm/calc.py SetEnv geo {$[vp.width] 128 - i}x{$[vp.height] 256 - i}+64+128" |
|---|
| 76 | Style * IconBox $[geo] |
|---|
| 77 | Style * IconGrid 128 128 |
|---|
| 78 | Style * IconSize 48 48 |
|---|
| 79 | Style * SnapAttraction 15 Windows |
|---|
| 80 | Style * EdgeMoveResistance 25 |
|---|
| 81 | Style * SmartPlacement |
|---|
| 82 | Style * DecorateTransient |
|---|
| 83 | Style * ResizeOpaque |
|---|
| 84 | |
|---|
| 85 | ## We want to decorate all windows.. sometimes undecorated wins suck hard. |
|---|
| 86 | Style "Untitled" Title |
|---|
| 87 | Style "NoClass" Title |
|---|
| 88 | Style "NoRessource" Title |
|---|
| 89 | ####################################### |
|---|
| 90 | |
|---|
| 91 | ## Key Bindings ####################### |
|---|
| 92 | Key T A SM Exec $[TERMINAL] |
|---|
| 93 | Key B A SM Exec $[BROWSER] |
|---|
| 94 | Key M A SM Exec $[MAILER] |
|---|
| 95 | Key J A SM Exec $[JABBER] |
|---|
| 96 | Key F A SM Exec $[FILER] |
|---|
| 97 | Key E A SM Exec $[EDITOR] |
|---|
| 98 | |
|---|
| 99 | Key Tab A M Next (!Sticky) WarpToWindow 50 50 |
|---|
| 100 | Key Tab A C Prev (!Sticky) WarpToWindow 50 50 |
|---|
| 101 | Key Tab A 4 All (CurrentPage, !Sticky) WarpToWindow 50 50 |
|---|
| 102 | |
|---|
| 103 | Key 1 A SM GoToPage 0 0 |
|---|
| 104 | Key 2 A SM GoToPage 1 0 |
|---|
| 105 | Key 3 A SM GoToPage 2 0 |
|---|
| 106 | Key 4 A SM GoToPage 3 0 |
|---|
| 107 | Key 5 A SM GoToPage 4 0 |
|---|
| 108 | Key 6 A SM GoToPage 5 0 |
|---|
| 109 | Key 7 A SM GoToPage 6 0 |
|---|
| 110 | Key 8 A SM GoToPage 7 0 |
|---|
| 111 | |
|---|
| 112 | Key Right A CM GoToPage +1p 0 |
|---|
| 113 | Key Left A CM GoToPage -1p 0 |
|---|
| 114 | |
|---|
| 115 | Key Right A SM Function MoveWindowRightAndFollow |
|---|
| 116 | Key Left A SM Function MoveWindowLeftAndFollow |
|---|
| 117 | |
|---|
| 118 | ####################################### |
|---|
| 119 | |
|---|
| 120 | Key F1 A N Nop |
|---|
| 121 | Key F1 A SM Maximize grow grow |
|---|
| 122 | Key F2 A SM Iconify |
|---|
| 123 | Key F3 A SM Module FvwmRearrange -tile -m -h 0 8 100 100 |
|---|
| 124 | Key F4 A SM Module FvwmRearrange -tile -m 0 8 100 100 |
|---|
| 125 | |
|---|
| 126 | Key F5 A SM Exec xscreensaver-command -lock |
|---|
| 127 | |
|---|
| 128 | Key F9 A SM Delete |
|---|
| 129 | Key F11 A SM Menu MenuSystem |
|---|
| 130 | Key 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 |
|---|
| 148 | Mouse 1 I A Iconify |
|---|
| 149 | Mouse 1 1 A Close |
|---|
| 150 | Mouse 3 1 A Destroy |
|---|
| 151 | Mouse 1 2 A Maximize grow grow |
|---|
| 152 | Mouse 1 4 A Iconify |
|---|
| 153 | Mouse 3 T A WindowShade |
|---|
| 154 | |
|---|
| 155 | Mouse 2 2 A Maximize grow 0 |
|---|
| 156 | Mouse 3 2 A Maximize 0 grow |
|---|
| 157 | |
|---|
| 158 | Mouse 2 T A WindowList ($[w.resource]) |
|---|
| 159 | Mouse 2 R A WindowList |
|---|
| 160 | Mouse 1 R C Module FvwmConsole |
|---|
| 161 | Mouse 1 R N Nop |
|---|
| 162 | |
|---|
| 163 | ## Functions ########################## |
|---|
| 164 | DestroyFunc StartFunction |
|---|
| 165 | AddToFunc StartFunction |
|---|
| 166 | + I Exec fvwm-root -r $[WALLPAPER] |
|---|
| 167 | + I Exec exec $[STARTSTOP] start |
|---|
| 168 | |
|---|
| 169 | DestroyFunc RestartFunction |
|---|
| 170 | AddToFunc RestartFunction |
|---|
| 171 | + I Nop |
|---|
| 172 | |
|---|
| 173 | DestroyFunc ExitFunction |
|---|
| 174 | AddToFunc ExitFunction |
|---|
| 175 | + I Exec exec $[STARTSTOP] stop |
|---|
| 176 | |
|---|
| 177 | DestroyFunc WindowListFunc |
|---|
| 178 | AddToFunc WindowListFunc |
|---|
| 179 | + I Iconify off |
|---|
| 180 | + I FlipFocus |
|---|
| 181 | + I Raise |
|---|
| 182 | + I WarpToWindow 50% 50% |
|---|
| 183 | |
|---|
| 184 | DestroyFunc MoveWindowLeftAndFollow |
|---|
| 185 | AddToFunc MoveWindowLeftAndFollow |
|---|
| 186 | + I ThisWindow MoveToPage -1p 0 |
|---|
| 187 | + I GotoPage -1p 0 |
|---|
| 188 | |
|---|
| 189 | DestroyFunc MoveWindowRightAndFollow |
|---|
| 190 | AddToFunc MoveWindowRightAndFollow |
|---|
| 191 | + I ThisWindow MoveToPage +1p 0 |
|---|
| 192 | + I GotoPage +1p 0 |
|---|
| 193 | |
|---|
| 194 | DestroyFunc Shutdown |
|---|
| 195 | AddToFunc Shutdown |
|---|
| 196 | + I Exec $[SUDOTOOL] "shutdown -h now" |
|---|
| 197 | |
|---|
| 198 | ####################################### |
|---|
| 199 | |
|---|
| 200 | # Modules |
|---|
| 201 | Style "FvwmPager" NoTitle, Sticky, WindowListSkip, FixedSize, NeverFocus, CirculateSkip |
|---|
| 202 | Style "FvwmPager" BorderWidth 0 |
|---|
| 203 | *FvwmPager: Colorset * 1 |
|---|
| 204 | *FvwmPager: HighlightColorset * 2 |
|---|
| 205 | *FvwmPager: WindowColorsets 1 2 |
|---|
| 206 | *FvwmPager: Font None |
|---|
| 207 | |
|---|
| 208 | ## Menus ############################## |
|---|
| 209 | DestroyMenu MenuAll |
|---|
| 210 | AddToMenu 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 | |
|---|
| 223 | DestroyMenu MenuConfig |
|---|
| 224 | AddToMenu 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 | |
|---|
| 231 | DestroyMenu MenuSystem |
|---|
| 232 | AddToMenu 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 | |
|---|
| 241 | DestroyMenu MenuInternet |
|---|
| 242 | AddToMenu 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 | |
|---|
| 249 | DestroyMenu MenuOffice |
|---|
| 250 | AddToMenu 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 |
|---|
| 255 | Read MenuOpenOffice |
|---|
| 256 | |
|---|
| 257 | DestroyMenu MenuGraphics |
|---|
| 258 | AddToMenu 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 | |
|---|
| 266 | DestroyMenu MenuMulti |
|---|
| 267 | AddToMenu 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 | |
|---|
| 273 | PipeRead $[HOME]/.fvwm/vboxmenu.py |
|---|
| 274 | |
|---|
| 275 | DestroyMenu MenuTools |
|---|
| 276 | AddToMenu 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 | |
|---|
| 283 | DestroyMenu MenuGames |
|---|
| 284 | AddToMenu 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 |
|---|
| 292 | Read ConfigExtension |
|---|
| 293 | |
|---|
| 294 | Read Oleum-Config |
|---|
| 295 | Read Oleum-Synergy |
|---|