fvwm2 BACK .. # Beispiel einer "Fvwm-2"-Konfiguration # this is a bare bones sample .fvwm2rc/system.fvwm2rc file for fvwm-2. # It should be customized before install. See other sample .fvwm2rc files # for hints, as well as pointers from the various links on the official # fvwm web page (see the FAQ). # this is a bare bones sample .fvwm2rc/system.fvwm2rc file for fvwm-2. # It should be customized before install. See other sample .fvwm2rc files # for hints, as well as pointers from the various links on the official # fvwm web page (see the FAQ). ############################################################################## ############################################################################## ############################################################################## # # # Um eine Anwendung in dieser Konfigurationsdatei einzubinden, muss als # # erstes eine "Funktion" Eingerichtet werden # # (es ist auch ohne Funktion moeglich aber dann ist es # # mit Parameteraenderungen im nachhinein einfacher) # # siehe "# Initialization Functions #" anschl. muss diese Funktion dann an # # eine Maustaste (in Verbindung mit einer Mausaktion) oder an # # eine Keyboard-Taste (oder Tastenkombination) oder an # # ein Menu (Mausmenue / button-bar) gebunden werden # # siehe "# bindings Functions #" !!! # # # ############################################################################## ############################################################################## ############################################################################## # make sure these fonts exist on your system: WindowFont -*-lucidatypewriter-medium-*-*-*-*-100-*-*-*-*-*-* IconFont -*-lucidatypewriter-medium-*-*-*-*-100-*-*-*-*-*-* # default Styles: #################### Maus-Fokus-Einstellung ############################ #Style "*" ClickToFocus Style "*" SloppyFocus #Style "*" MouseFocus #Style "*" FocusFollowsMouse ######################################################################## #Style "*" RandomPlacement, SmartPlacement Style "*" SmartPlacement # Styles for various Fvwm modules: #Style "FvwmButtons" Icon toolbox.xpm, ClickToFocus # Styles for your common terminal emulator programs: #Style "XTerm" Icon xterm.xpm, SloppyFocus, IconBox -70 1 -1 -140 #Style "XTerm" MWMBorder, MWMButtons # Styles for various common programs: Style "*lock" NoTitle, NoHandles, Sticky, WindowListSkip, ClickToFocus Style "xbiff" NoTitle, Sticky, WindowListSkip, ClickToFocus Style "xcalc" Icon xcalc.xpm, NoButton 2,RandomPlacement,ClickToFocus Style "xmag" Icon mag_glass.xpm, RandomPlacement, ClickToFocus ############################################################################## ############################################################################## ############################################################################## ######################## bindings Functions ################################## ############################################################################## # some simple default key bindings: ####### Button Context Modifiers Funktion ####### ############################################################################## # bindings Functions ==> Key / Mouse # ############################################################################## # Mouse [Button] [Context] [Modifiers] [Function / Action] # ############################################################################## ############ Context: ## "R" root window (Hintergrund) ######### ######################## "W" application window ######### ######################## "T" window title bar ######### ######################## "S" window side/bottom ######### ######################## "F" window Frame ######### ######################## "1, 3, 5, 7, 9" title-bar buttons (links) ######### ######################## "0, 8, 6, 4, 2" title-bar buttons (rechts) ######### ############################################################################## ########## Modifiers: ## "N" modifiers ################################## ######################## "C" Ctrl (Strg) ################################## ######################## "S" Shift ################################## ######################## "M" Meta (Alt) ################################## ######################## "A" any modifier ################################## ############################################################################## ############################################################################## # Wenn # # Style "*" FocusFollowsMouse # # eingestellt ist (siehe oben), dann genuegt ein "R" statt "RWTSF". # # Denn dann kann man einfach mit der Maus auf den Hintergrung gehen # # und schon funktionieren diese Tastendefinitionen. Darueberhinaus # # sind diese Tastendefinitionen dann fuer die Anwendung frei wenn die # # Anwendingen aktiv sind. # ############################################################################## Key Next A CM Next [*] Focus Key Prior A CM Prev [*] Focus Key F4 WTSF M Delete Key F5 WTSW M Close Key F6 WTSW M Destroy Key a RWTSF CM Function "Aterm" Key b RWTSF CM Function "mc" Key c RWTSF CM Exec xcalc Key d RWTSF CM Function "Aterm" Key e RWTSF CM Function "Aterm" Key f RWTSF CM Function "os4org" Key g RWTSF CM Function "Gimp" Key h RWTSF CM Function "Gnumeric" Key i RWTSF CM Function "IglooFTP" Key j RWTSF CM Function "xv" Key k RWTSF CM Function "Aterm" Key l RWTSF CM Function "xlock" Key m RWTSF CM Function "Messenger" Key n RWTSF CM Function "Netscape" Key o RWTSF CM Function "Office52" Key p RWTSF CM Function "Ghostview" Key q RWTSF CM Function "Exit Fvwm" Key r RWTSF CM Function "Refresh Screen" Key s RWTSF CM Function "X-OS-View" Key t RWTSF CM Function "Top" Key u RWTSF CM Function "Aterm" Key v RWTSF CM Function "Xanim" Key w RWTSF CM Function "Aterm" Key x RWTSF CM Function "XTerm" Key y RWTSF CM Exec reboot Key z RWTSF CM Function "Xmag" # some simple default mouse bindings: # for the root window: Mouse 1 R A Menu RootMenu Nop Mouse 2 R A WindowList Mouse 3 R A Menu Window-Ops Nop # for the title bar buttons: Mouse 0 1 A Menu Window-Ops2 Close Mouse 0 2 A Maximize-Func Mouse 0 4 A Iconify # for other parts of the window/borders/icons: Mouse 1 F A Resize-or-Raise Mouse 1 TS A Move-or-Raise Mouse 1 I A Move-or-Iconify Mouse 2 I A Iconify Mouse 2 FST A Menu Window-Ops2 Nop Mouse 3 TSIF A RaiseLower ############################################################################## ######################## Initialization Functions ############################ ############################################################################## # create Functions # ############################################################################## # AddToFunc [name] [trigger] [Action] # ############################################################################## ############ Trigger: ## "I" Immediate ################################## ######################## "M" Motion (Move) ################################## ######################## "C" Click ################################## ######################## "D" double-click ################################## ############################################################################## AddToFunc "XTerm" "I" Exec xterm AddToFunc "Aterm" "I" Exec aterm -tr -rv -sh 50 -sr -trsb -sl 256\ -fn -*-lucidatypewriter-medium-*-*-*-*-100-*-*-*-*-*-* ############################################################################## ####################### fuer FreeBSD ######################################### AddToFunc "mc" "I" Exec xterm -T mc -n mc -e midc ############################################################################## ####################### fuer Linux ########################################### #AddToFunc "mc" "I" Exec xterm -T mc -n mc -e mc ############################################################################## AddToFunc "Gnumeric" "I" Exec gnumeric ############################################################################## ####################### fuer FreeBSD ######################################### AddToFunc "Office52" "I" Exec /usr/local/office52/program/soffice ############################################################################## AddToFunc "Netscape" "I" Exec netscape AddToFunc "Messenger" "I" Exec netscape "-messenger" AddToFunc "IglooFTP" "I" Exec IglooFTP AddToFunc "xcalc" "I" Exec xcalc AddToFunc "os4org" "I" Exec xterm -T OS4ORG -e ftp -p p7674957@os4.org AddToFunc "AcroRead" "I" Exec acroread4 AddToFunc "Ghostview" "I" Exec ghostview AddToFunc "Gimp" "I" Exec gimp AddToFunc "xv" "I" Exec xv AddToFunc "Xmag" "I" Exec xmag AddToFunc "Xanim" "I" Exec xanim AddToFunc "Top" "I" Exec xterm -T Top -n Top -e top AddToFunc "asclock" "I" Exec asclock AddToFunc "X-OS-View" "I" Exec xosview -geometry 200x240-12-27 AddToFunc "xlock" "I" Exec xlock -mode matrix AddToFunc "xload" "I" Exec xload AddToFunc "Refresh Screen" "I" Refresh AddToFunc "reboot" "I" Exec xterm -T REBOOT -e reboot AddToFunc "Exit Fvwm" "I" Quit AddToFunc InitFunction "I" Module FvwmButtons + "I" exec xsetroot -mod 2 2 -fg \#554055 -bg \#705070 AddToFunc RestartFunction "I" Module FvwmButtons + "I" exec xsetroot -mod 2 2 -fg \#554055 -bg \#705070 ######################## Sample Functions ########################## # Wird unter anderem von der Maus zur Fenstersteuerung verwendet # #################################################################### AddToFunc MailFunction "I" Next [$0] Iconify -1 + "I" Next [$0] Focus + "I" None [$0] Exec $0 $1 AddToFunc Move-or-Raise "I" Raise + "M" Move + "D" Lower AddToFunc Move-or-Raise2 "M" Raise + "M" Move + "D" Lower AddToFunc Maximize-Func "M" Maximize 0 100 + "C" Maximize 0 80 + "D" Maximize 100 100 AddToFunc Move-or-Iconify "I" Raise + "M" Move + "D" Iconify AddToFunc Resize-or-Raise "I" Raise + "M" Resize + "D" Lower AddToFunc Resize-or-Raise2 "M" Raise + "M" Resize + "D" Lower AddToFunc PrintFunction "I" Raise + "I" Exec xdpr -id $w AddToFunc PrintReverseFunction "I" Raise + "I" Exec xdpr 1/2 -h -rv -id $w AddToFunc Iconify-and-Raise "I" Iconify + "I" Raise # TELNET machine fg bg AddToFunc TELNET "I" Exec xterm -fg $1 -bg $2 -e telnet $0 AddToFunc FocusAndWarp "I" Focus + "I" WarpToWindow 2p 2p AddToFunc DeiconifyFocusAndWarp "I" Iconify -1 + "I" FocusAndWarp AddToFunc ChangeDefaultFocus "I" Style "*" $0 + "I" Recapture ############################################################################## # bindings Functions ==> menu # ############################################################################## # AddToMenu [menu-Name] [menu-Bezeichnung] [Aktion] # # + [menu-Bezeichnung] [Aktion] # # + [menu-Bezeichnung] [Aktion] # ############################################################################## #1 ######################## Mouse Menus #################################### AddToMenu RootMenu "Root Menu" Title + "XTerm" Function xterm + "Aterm" Function Aterm + "Xcalc" Function xcalc + "mc" Function mc + "GNumeric" Function Gnumeric + "Office52" Function Office52 + "Netscape" Function Netscape + "Messenger" Function Messenger + "IglooFTP" Function IglooFTP + "os4org" Function os4org + "AcroRead" Function AcroRead + "Ghostview" Function Ghostview + "Gimp" Function Gimp + "xv" Function xv + "Xmag" Function Xmag + "Xanim" Function Xanim + "" Nop + "Top" Function Top + "asclock" Function asclock + "X-OS-View" Function X-OS-View + "xlock" Function xlock + "" Nop + "Utilities" Popup Utilities + "" Nop + "Fvwm Modules" Popup Module-Popup + "Fvwm Window Ops" Popup Window-Ops + "Fvwm Simple Config Ops" Popup Misc-Ops + "" Nop + "Refresh Screen" Refresh + "Recapture Screen" Recapture + "" Nop + "Exit Fvwm" Popup Quit-Verify #2 AddToMenu Utilities "Utilities" Title + "Top" Function Top + "Calculator" Function xcalc + "Xmag" Function Xmag + "Editres" Exec exec editres + "" Nop + "XLock" Function xlock + "" Nop + "Reset X defaults" Exec xrdb -load $HOME/.Xdefaults #3 AddToMenu Module-Popup "FvwmModules" Title + "Identify" Module FvwmIdent + "Talk" Module FvwmTalk + "" Nop + "Button-Bar" Module FvwmButtons + "Pager" Module FvwmPager 0 0 + "Pager (2 desks)" Module FvwmPager 0 1 + "WinList" Module FvwmWinList + "" Nop + "Banner" Module FvwmBanner + "ScrollBar" Module FvwmScroll 50 50 + "Background" Module FvwmBacker + "AutoRaise" Module FvwmAuto 200 Raise Nop + "Stop AutoRaise" KillModule FvwmAuto + "" Nop + "IconBox" Module FvwmIconBox + "IconMan" Module FvwmIconMan + "" Nop + "Form - Rlogin" Module FvwmForm Rlogin + "Form - MyFvwmTalk" Module FvwmForm MyFvwmTalk + "Form - QuitVerify" Module FvwmForm QuitVerify #4 AddToMenu Window-Ops "Window Ops" Title + "Move" Move + "Resize" Resize + "Raise" Raise + "Lower" Lower + "(De)Iconify" Iconify + "(Un)Stick" Stick + "(Un)Maximize" Maximize + "" Nop + "Delete" Delete + "Close" Close + "Destroy" Destroy + "" Nop + "Refresh Window" RefreshWindow #5 AddToMenu Misc-Ops "Misc Config Opts" Title + "Sloppy Focus" ChangeDefaultFocus SloppyFocus + "Click To Focus" ChangeDefaultFocus ClickToFocus + "Focus Follows Mouse" ChangeDefaultFocus FocusFollowsMouse + "" Nop + "Colormap Follows Mouse" ColormapFocus FollowsMouse + "Colormap Follows Focus" ColormapFocus FollowsFocus + "" Nop + "Full Paging ON" EdgeScroll 100 100 + "All Paging OFF" EdgeScroll 0 0 + "Horizontal Paging Only" EdgeScroll 100 0 + "Vertical Paging Only" EdgeScroll 0 100 + "Partial Paging" EdgeScroll 50 50 + "Full Paging && Edge Wrap" EdgeScroll 100000 100000 #6 AddToMenu Quit-Verify "Really Quit Fvwm?" Title + "Yes, Really Quit" Quit + "" Nop + "Restart Fvwm2" Restart fvwm2 + "" Nop + "Start dummy" Restart xterm + "" Nop + "No, Don't Quit" Nop #7 AddToMenu Window-Ops2 "&Move" Move + "&Resize" Resize + "R&aise" Raise + "&Lower" Lower + "(De)&Iconify" Iconify + "(Un)&Stick" Stick + "(Un)Ma&ximize" Maximize + "" Nop + "&Delete" Delete + "&Close" Close + "Destroy" Destroy + "" Nop + "ScrollBar" Module FvwmScroll 2 2 + "Print" PrintFunction + "Print Reverse" PrintReverseFunction ############################################################################ ################## FvwmButtons button-bar ################################## # Make it titlebar-less, sticky, and give it an icon Style "FvwmButtons" Icon toolbox.xpm, NoTitle, Sticky # Make the menu/panel look like CDE Style "FvwmButtonsPanel" Title, NoHandles, BorderWidth 0 Style "FvwmButtonsPanel" NoButton 2, NoButton 4, Sticky ####################### button-bar Eigenschaften ########################### EdgeResistance 250 10 #EdgeScroll 50 50 EdgeScroll 0 0 ClickTime 750 *FvwmButtonsFore Black *FvwmButtonsBack rgb:90/80/90 *FvwmButtonsGeometry 600x40-0+0 *FvwmButtonsRows 1 # Anzahl der "Zeilen" *FvwmButtonsBoxSize smart *FvwmButtonsFont -*-lucidatypewriter-medium-*-*-*-*-100-*-*-*-*-*-* *FvwmButtonsPadding 2 2 ########################## Icon Manager #################################### # this FvwmIconMan setup is for swallowing in above button bar example *FvwmIconMan*numManagers 1 *FvwmIconMan*Resolution page # Pager ist syncronisiert *FvwmIconMan*background rgb:90/80/90 *FvwmIconMan*foreground black *FvwmIconMan*font -*-lucidatypewriter-medium-*-*-*-*-100-*-*-*-*-*-* *FvwmIconMan*format "%t" # zeigt Kurzbezeichnung *FvwmIconMan*action Mouse 1 N sendcommand Focus, sendcommand "Iconify" *FvwmIconMan*action Mouse 2 N sendcommand "Iconify 1" *FvwmIconMan*action Mouse 3 N sendcommand "FvwmIdent" *FvwmIconMan*followfocus true # folgt dem Focus *FvwmIconMan*plainbutton up black rgb:90/80/90 *FvwmIconMan*selectbutton down black rgb:90/80/90 *FvwmIconMan*focusbutton up yellow firebrick *FvwmIconMan*focusandselectButton down yellow firebrick *FvwmIconMan*drawicons true *FvwmIconMan*buttongeometry 67x12 *FvwmIconMan*managergeometry 5x3 *FvwmButtons(8x1 Frame 1 Swallow "FvwmIconMan" "Module FvwmIconMan") ########################################################################## ########################## Die vier Knoepfe ############################### *FvwmButtons(2x1,Container(Rows 2,Frame 1)) *FvwmButtons(Title Kill, Icon bomb.xpm, Action Destroy) *FvwmButtons(Title XMag, Icon magnifying_glass2.xpm, Action Xmag) *FvwmButtons(Title "Matrix",Back yellow, Action "xlock") *FvwmButtons(Title "Xterm", Action "XTerm") *FvwmButtons(End) ########################################################################### ########################### Pager begin ################################### #*FvwmPagerBack #908090 *FvwmPagerFore #484048 *FvwmPagerFont -*-lucidatypewriter-medium-*-*-*-*-100-*-*-*-*-*-* \ turn off desktop names for swallowing in above button bar example: *FvwmPagerFont none *FvwmPagerHilight #cab3ca *FvwmPagerGeometry +1+1 *FvwmPagerSmallFont 5x8 *FvwmPagerBalloons All *FvwmPagerBalloonBack Yellow *FvwmPagerBalloonFore Black *FvwmPagerBalloonFont lucidasanstypewriter-12 *FvwmPagerBalloonYOffset +2 *FvwmPagerBalloonBorderWidth 1 *FvwmPagerBalloonBorderColor Black DeskTopSize 3x2 *FvwmButtons(2x1, Swallow "FvwmPager" `FvwmPager 0 0` Frame 2) ########################### Pager end ##################################### ########################## xload und Uhr ################################## *FvwmButtons(1x1,Container(Rows 2,Frame 1)) *FvwmButtons(1x1 Frame 2 Swallow(UseOld,NoHints,Respawn) \ "xclock" `Exec exec xclock -digital -brief -bg white -fg black \ -hd black -hl black -padding 0 -update 1`) *FvwmButtons(1x1 Frame 2 Swallow(UseOld,NoKill) "xload" `Exec xload \ -title xload -nolabel -bg rgb:90/80/90 &`) *FvwmButtons(End) ########################################################################### ########################## Die drei Knoepfe ############################## *FvwmButtons(1x1,Container(Rows 3,Frame 1)) *FvwmButtons(1x1 Title "reboot", Back red, Action reboot) *FvwmButtons(1x1 Title "logout", Back red, Action Quit) *FvwmButtons(1x1 Title "X-OS-View", Back green, Action "X-OS-View") #*FvwmButtons(Swallow(UseOld,NoKill) "xisdnload" `Exec xisdnload \ # -title xisdnload -nolabel &`) *FvwmButtons(End) ########################################################################### ############################################################################ ############################################################################ ############################################################################ ############################################################################ ########### FvwmButtons button-bar BEISPIEL-Ergaenzungen ################ ############################################################################ ############################################################################ ######################################################################### # *FvwmButtons(1x1,Container(Rows 3,Frame 1)) # enthaelt drei Knoepfe# # *FvwmButtons(Title Resize,Icon resize.xpm ,Action Resize) # # *FvwmButtons(Title Move ,Icon arrows2.xpm,Action Move ) # # *FvwmButtons(Title Kill ,Icon bomb.xpm ,Action Destroy) # # *FvwmButtons(End) # # # # *FvwmButtons(1x1,Container(Rows 3,Frame 1)) # enthaelt drei Knoepfe# # *FvwmButtons(Title Lower ,Icon Down ,Action Lower ) # # *FvwmButtons(Title Raise ,Icon Up ,Action Raise ) # # *FvwmButtons(Title XMag ,Icon magnifying_glass2.xpm, \ # # Action `Exec "xmag" xmag &`) # # *FvwmButtons(End) # # # # *FvwmButtons(Title " Matrix ", Action `Exec "Matrix") # # # # *FvwmButtons(1x1 Frame 2 Swallow(UseOld,NoHints,Respawn) \ # # "xbiff" `Exec exec xbiff -bg bisque3`) # ######################################################################### ######################################################################### ################ Erkraerung der Eingabe zu "FvwmButtons ################# # DeskTopSize 4x2 # Format der Displays im Pager # # *FvwmButtons(3x1, \ # Groesse des gesamten Pagerfeldes # # Swallow "FvwmPager" \ # # # `FvwmPager 0 2` \ # Anzahl: von 0 bis 2 # # Frame 2) # Rahmenbreite in Pixel # ######################################################################### [IMG]