From: tfheen Date: Fri, 27 Sep 2002 16:39:10 +0000 (+0000) Subject: initial checkin X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32d2ff3523833938909f3dfa1f740440ea0b97f2;p=dotfiles initial checkin git-svn-id: file:///svn/tfheen/trunk/dotfiles@44 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- diff --git a/fvwm2rc b/fvwm2rc new file mode 100644 index 0000000..1288aa7 --- /dev/null +++ b/fvwm2rc @@ -0,0 +1,598 @@ +# +# .fvwm2rc95 example configuration file for fvwm95-2.0.41 +# + +#========================================================================# + +# +# Fonts - one for window titles, another for icons, and another for the menus +# + +WindowFont "-gimpers-smooth-*-*-*-*-*-*-*-*-*-*-*-*" +#WindowFont "-adobe-helvetica-medium-r-normal-*-*-70-*-*-m-*-*" +#-misc-fixed-medium-r-semicondensed-*-*-90-*-*-c-*-iso8859-1 +# "-gimpers-tixus-*-*-*-*-8-*-*-*-*-*-*-*" +IconFont +MenuStyle * Background MidnightBlue, Foreground Wheat, Font "-gimpers-tixus-*-*-*-*-10-*-*-*-*-*-*-*", ActiveFore White + +ModulePath /usr/lib/fvwm/2.4.6:/usr/X11R6/lib/X11/fvwm2/ +ImagePath /usr/include/X11/pixmaps/:/usr/share/icons/mini/:/usr/X11R6/include/X11/3dpixmaps/:/usr/share/icons:/usr/share/pixmaps:/usr/X11R6/lib/X11/icewm/icons/ + +# You can also use the Style command to set the colors of individual +# title bars of some non-selected windows + +TitleStyle LeftJustified +# Height 12 + +TitleStyle Inactive Solid #f0f0ff +TitleStyle ActiveUp Solid #a0a0ff +TitleStyle ActiveDown Solid White + +ButtonStyle All Inactive Solid #f0f0ff +ButtonStyle All ActiveUp Solid #a0a0ff +ButtonStyle All ActiveDown Solid White + +ButtonStyle All (-- flat) +TitleStyle -- flat + + +AddButtonStyle 1 Vector 4 25x25@1 75x25@1 50x75@0 25x25@0 + +AddButtonStyle 2 Vector 14 20x30@1 30x20@1 50x40@1 70x20@1 70x20@1 80x30@1 60x50@0 80x70@1 70x80@0 50x60@0 30x80@0 20x70@0 40x50@1 20x30@0 + +AddButtonStyle 4 Vector 4 50x30@1 70x70@0 30x70@0 50x30@1 + + +#========================================================================# + +# +# Set up the major operating modes +# + +#Style "*" ClickToFocus +# Comment the above and uncomment one of the following if you prefer +# focus follow mouse. +#Style "*" MouseFocus +Style "*" SloppyFocus + +# If we use the FvwmTaskBar we don't need the icons :-) +# Style "..." Icon are also commented below. +# Style "*" NoIcon +Style "*" MWMFunctions +Style "*" HintOverride +Style "*" MWMDecor +Style "*" MWMBorder +Style "*" DecorateTransient +Style "*" ForeColor #000000 +Style "*" BackColor #d7d7d7 +Style "*" BorderWidth 0, HandleWidth 0 +Style "*" IconBox 80x500+1+1 +# Style "*" IconFill bottom left + +OpaqueMoveSize 100 +EdgeScroll 100 100 +EdgeResistance 320 100 + +# +# RandomPlacement prevents user interaction while placing windows: +# +Style "*" RandomPlacement + +# +# NoPPosition instructs fvwm to ignore the PPosition field in window +# geometry hints. Emacs annoyingly sets PPosition to (0,0)! +# +# Style "*" NoPPosition + +Style "Emacs" NoPPosition + +#========================================================================# + +# +# Set the desk top size in units of physical screen size +# +DeskTopSize 1x1 + +#========================================================================# + +# +# Module path and paths to the icons +# ModulePath is a colon-separated list, just like regular unix PATH +# + +#========================================================================# + +# Set the decoration styles and window options +# If compatible styles are set for a single window in multiple Style +# commands, then the styles are ORed together. If conflicting styles +# are set, the last one specified is used. + +# These commands should command before any menus or functions are defined, +# and before the internal pager is started. + +# +# Default border and handle widths +# + +Style "Fvwm*" NoTitle, Sticky, WindowListSkip +Style "FvwmButtons" NoTitle, NoHandles, Sticky, WindowListSkip,BorderWidth 1 +Style "*lock" NoTitle, NoHandles, Sticky, WindowListSkip +Style "xmailbox" NoTitle, NoHandles, Sticky, WindowListSkip + +# +# Some mini-icons for the title bar +# +Style "*" MiniIcon mini-x2.xpm +Style "*xterm*" MiniIcon xterm_16x16.xpm +Style "rxvt" MiniIcon mini-term.xpm +Style "xcalc" MiniIcon mini-calc.xpm +Style "xsession" MiniIcon mini-bx2.xpm +Style "xv" MiniIcon mini-xv.xpm +Style "Netscape" MiniIcon mini-netscape.xpm +Style "xmag" MiniIcon mini-zoom.xpm +Style "textedit" MiniIcon mini-edit.xpm +Style "tkps" MiniIcon mini-run.xpm +Style "Ghostview" MiniIcon mini-gv.xpm +Style "Xcolorsel" MiniIcon mini-colors.xpm +Style "IDL*" MiniIcon mini-zoom.xpm +Style "xeyes" MiniIcon mini-eyes.xpm +Style "*fm*" MiniIcon mini-filemgr.xpm +# xman resource names +Style "topBox" MiniIcon mini-book1.xpm +Style "help" MiniIcon mini-book2.xpm +Style "manualBrowser" MiniIcon mini-book2.xpm +Style "xpaint" MiniIcon mini-paint.xpm +Style "Canvas" MiniIcon mini-paint.xpm +Style "fatbits" MiniIcon mini-paint.xpm +Style "filebrowser" MiniIcon mini-ofolder.xpm + +Style "FvwmFile" MiniIcon mini-ofolder.xpm +Style "XDbx" MiniIcon mini-bug2.xpm +Style "Emacs" MiniIcon mini-edit.xpm +Style "Gimp" MiniIcon mini-wilbur.xpm + + +Style "rxvt" Icon term.xpm +Style "xterm" Icon xterm-linux.xpm +Style "Xterm" Icon xterm-linux.xpm +Style "color_xterm" Icon rterm.xpm +Style "Appointment" Icon datebook.xpm +Style "xcalc" Icon Rcalc.xpm +Style "xbiff" Icon mail1.xpm +Style "xmh" Icon mail1.xpm, StartsOnDesk 2 +Style "xman" Icon xman.xpm +Style "xvgr" Icon graphs.xpm +Style "xmag" Icon mag_glass.xpm +Style "xgraph" Icon graphs.xpm +Style "xv" Icon xview.xpm +Style "FvwmButtons" Icon toolbox.xpm +Style "xconsole" Icon koala.xpm +Style "xsession" Icon koala.xpm +Style "textedit" Icon textedit.xpm +Style "ghostview" Icon gv.xpm +Style "Emacs" Icon gnu-animal.xpm +Style "GMIX 3.0" Icon gnome-audio2.png + + +#========================================================================# + +# +# Stuff to do at start-up +# + +#AddToFunc "InitFunction" Exec exec panel & +#+ Exec exec xterm -ls -geometry 80x25+115+0 -sl 1000 -e /bin/bash -login & + +# Exec exec xearth -pos "fixed 60 10" & + + +# AddToFunc "RestartFunction" + +# Module FvwmButtons +# + Module FvwmTaskBar + + +#========================================================================# + +# Now define some handy complex functions + +# +# This one moves and then raises the window if you drag the mouse, +# only raises the window if you click, or does a full maximize if +# you double click +# +AddToFunc "Move-or-Raise" "M" Move ++ "M" Raise ++ "C" Raise ++ "D" Maximize 100 100 + +# +# This one moves and then lowers the window if you drag the mouse, +# only lowers the window if you click, or does a RaiseLower if you double +# click +# +AddToFunc "Move-or-Lower" "M" Move ++ "M" Lower ++ "C" Lower ++ "D" RaiseLower + +# +# This one moves or (de)iconifies: +# +AddToFunc "Move-or-Iconify" "M" Move ++ "D" Iconify + +# +# This one resizes and then raises the window if you drag the mouse, +# only raises the window if you click, or does a RaiseLower if you double +# click +# +AddToFunc "Resize-or-Raise" "M" Resize ++ "M" Raise ++ "C" Raise ++ "D" RaiseLower + + +#========================================================================# + +# +# Now define the menus - defer bindings until later +# + + + +AddToMenu Module-Popup Modules ++ "FvwmConfig" Module FvwmConfig ++ "FvwmIconMan" Module FvwmIconMan ++ "FvwmAudio" Module FvwmAudio ++ "FvwmAuto" Module FvwmAuto 750 ++ "FvwmBacker" Module FvwmBacker ++ "FvwmButtons" Module FvwmButtons ++ "FvwmCpp" Module FvwmCpp ++ "FvwmForm" Module FvwmForm ++ "FvwmIconBox" Module FvwmIconBox ++ "FvwmIdent" Module FvwmIdent ++ "FvwmM4" Module FvwmM4 ++ "FvwmPager" Module FvwmPager 0 1 ++ "FvwmPrompt" Module FvwmPrompt ++ "FvwmSave" Module FvwmSave ++ "FvwmSaveDesk" Module FvwmSaveDesk ++ "FvwmScroll" Module FvwmScroll ++ "FvwmTalk" Module FvwmTalk ++ "NoClutter" Module FvwmClean ++ "FvwmWinList" Module FvwmWinList + + +# This menu is invoked as a sub-menu - it allows you to quit, +# restart, or switch to another WM. +AddToMenu Quit-Verify "Quit" Title ++ "Yes, Really Quit" Quit ++ "Restart fvwm " Restart ++ "" Nop ++ "No, Don't Quit" Nop + + +#Games +AddToMenu Xgames Games ++ "Xearth..." Exec exec xearth -pos "fixed 60 10" & ++ "Xtetris..." Exec exec xtetris & ++ "Xsolitair..." Exec exec xsol & ++ "PacMan..." Exec exec xchomp & ++ "Crossfire..." Exec exec crossfire -xpm & ++ "Lander..." Exec exec xlander & + + + +# Editing SystemTools +AddToMenu System-Configuration "Sysconfig" ++ "FvwmConfig..." Module FvwmConfig ++ "System.fvwmrc..." Exec exec emacs $HOME/.fvwmrc & ++ "Xinitrc..." Exec exec emacs $HOME/.xinitrc & ++ "Xresources..." Exec exec emacs $HOME/.Xresources & ++ "Xdefaults..." Exec exec emacs $HOME/.Xdefaults & ++ "Bashrc..." Exec exec emacs $HOME/.bashrc & ++ "" Nop ++ "Fontinstaller..." Exec exec cfi & ++ "Editresources..." Exec exec editres & ++ "Viewresources..." Exec exec viewres & ++ "Xload..." Exec exec xload & ++ "Xsysinfo..." Exec exec xsysinfo -geometry 170x106-2+102 -notitle & + +#This Menu will fire up some Screen-savers +AddToMenu ScreenSavers Screensavers ++ "Screen -> Swarm..." Exec exec xlock -mode swarm & ++ "Screen -> Galaxy..." Exec exec xlock -mode galaxy & ++ "Screen -> Pyro..." Exec exec xlock -mode pyro & ++ "Screen -> World..." Exec exec xlock -mode world & ++ "Screen -> Nose..." Exec exec xlock -mode nose & ++ "Screen -> Rock..." Exec exec xlock -mode rock & ++ "Screen -> Rock..." Exec exec xlock -mode spiral & ++ "Screen -> Bat..." Exec exec xlock -mode bat & ++ "Screen -> Sphere..." Exec exec xlock -mode sphere & ++ "Screen -> Rect..." Exec exec xlock -mode rect & ++ "Screen -> Qix..." Exec exec xlock -mode qix & ++ "Screen -> Maze..." Exec exec xlock -mode maze & ++ "Screen -> Life..." Exec exec xlock -mode life & ++ "Screen -> Hop..." Exec exec xlock -mode hop & ++ "Screen -> Spline..." Exec exec xlock -mode spline & ++ "Screen -> Grav..." Exec exec xlock -mode grav & ++ "Screen -> Bounce..." Exec exec xlock -mode bounce & ++ "Screen -> Rotor..." Exec exec xlock -mode rotor & ++ "Screen -> Worm..." Exec exec xlock -mode worm & ++ "Screen -> Flame..." Exec exec xlock -mode flame & ++ "Screen -> Hyper..." Exec exec xlock -mode hyper & ++ "Screen -> Helix..." Exec exec xlock -mode helix & ++ "Screen -> Blot..." Exec exec xlock -mode blot & ++ "Screen -> Blank..." Exec exec xlock -mode blank & ++ "Screen -> Random..." Exec exec xlock -mode random & + +# This menu will fire up some very common utilities +AddToMenu Utilities "Apps" Title ++ "Restart fvwm " Restart ++ "emacs..." Exec exec emacs & ++ "gnus..." Exec exec emacs -f gnus & ++ "Opera..." Exec exec opera & ++ "xterm..." Exec exec xterm -ls & ++ "gabber..." Exec exec gabber & ++ "root xterm..." Exec exec xterm -name XTermRoot -ls -T "Root xterm" -e su - & ++ "xrefresh..." Exec exec xrefresh & ++ "gmix..." Exec exec gmix & + ++ "Configuration" Popup System-Configuration ++ "Modules" Popup Module-Popup ++ "Games" Popup Xgames ++ "Lock Screen" Popup ScreenSavers ++ "" Nop ++ "Exit Fvwm" Popup Quit-Verify + + + +# +# This defines the most common window operations +# +AddToMenu "Window" "Window Ops" Title ++ "&Move" Function Move-or-Raise ++ "&Resize" Function Resize-or-Raise ++ "R&aise" Raise ++ "&Lower" Lower ++ "(De)Iconify" Iconify ++ "(Un)Stick" Stick ++ "(Un)Maximize" Maximize 100 100 ++ "" Nop ++ "Kill" Destroy ++ "&Close" Delete ++ "" Nop ++ "Switch to..." WindowList ++ "Refresh Screen" Refresh + +# +# A trimmed down version of "Window Ops", good for binding to decorations +# +AddToMenu "Window-Ops2" "&Restore" Iconify -1 ++ "&Move" Move-or-Raise ++ "&Size" Resize-or-Raise ++ "Mi&nimize" Iconify 1 ++ "Ma&ximize" Maximize 100 100 ++ "" Nop ++ "&Kill" Destroy ++ "&Close Alt+F4" Delete + +#========================================================================# + +# +# One more complex function - couldn't be defined earlier because it used +# pop-up menus +# +# This creates the "system" menu for the title-bar window-ops +# pop-up +# +AddToFunc "window_ops_func" "C" PopUp Window-Ops2 ++ "M" PopUp Window-Ops2 ++ "D" Delete + + +#========================================================================# + +# +# Mouse bindings +# + +# First, for the mouse in the root window +# Button 1 gives the Utilities menu +# Button 2 gives the Window Ops menu +# Button 3 gives the WindowList (like TwmWindows) +# I use the AnyModifier (A) option for the modifier field, so you can hold down +# any shift-control-whatever combination you want! + +# Button Context Modifi Function +Mouse 1 R A Menu "Utilities" Nop +Mouse 2 R A Menu "Window Ops" Nop +Mouse 3 R A WindowList +#Mouse 3 R A Module "winlist" FvwmWinList transient + +# Now the title bar buttons +# Any button in the left title-bar button gives the window ops menu +# Any button in the first right title-bar button Iconifies the window +# Any button in the second title-bar button full-maximizes +# Any button in the third (rightmost) title-bar button closes +# Note the use of "Mouse 0" for AnyButton. + +# Button Context Modif Function +Mouse 0 1 A Iconify +Mouse 1 2 A Delete +Mouse 2 2 A Function "window_ops_func" +Mouse 3 2 A Destroy +Mouse 1 4 A Maximize 0 100 +Mouse 2 4 A Maximize 100 100 + +# +# Now the rest of the frame +# Here I invoke my complex functions for Move-or-lower, Move-or-raise, +# and Resize-or-Raise. +# +# Button 1 in the corner pieces, with any modifiers, gives resize or raise +Mouse 1 FS A Function "Resize-or-Raise" +# Button 1 in the title, sides, or icon, w/ any modifiers, gives move or raise +Mouse 1 T A Function "Move-or-Raise" + +# Button 1 in an icons gives move for a drag, de-iconify for a double-click, +# nothing for a single click +# Button 2 in an icon, w/ any modifiers, gives de-iconify +Mouse 1 I A Function "Move-or-Iconify" +Mouse 2 I A Iconify + +# Button 2 in the corners, sides, or title-bar gives the window ops menu +Mouse 3 FSIT A Function "window_ops_func" + +# Button 3 anywhere in the decoration (except the title-bar buttons) +# does a raise-lower +#Mouse 3 TSIF A RaiseLower + +# Button 3 in the window, with the Modifier-1 key (usually alt or diamond) +# gives Raise-Lower. Used to use control here, but that interferes with xterm +Mouse 3 W M RaiseLower +Mouse 1 W M Move +#========================================================================# + +# Now some keyboard shortcuts. + +AddToFunc "MoveAndGotoDesk" ++ I MoveToDesk $0 ++ I GotoDesk $0 + +AddToFunc "SmallerHoriz" ++ I Current PipeRead 'echo Current Resize "`expr $[w.width] - 10`"p keep' + +AddToFunc "BiggerHoriz" ++ I Current PipeRead 'echo Current Resize "`expr $[w.width] + 10`"p keep' + +AddToFunc SmallerVert ++ I Current PipeRead 'echo Current Resize keep "`expr $[w.height] - 25`"p' + +AddToFunc BiggerVert ++ I Current PipeRead 'echo Current Resize keep "`expr $[w.height] + 25`"p' + + +Key Left A C GotoDesk -1 +Key Right A C GotoDesk 1 + +Key Left A SC MoveAndGotoDesk -1 +Key Right A SC MoveAndGotoDesk 1 + +Key Left A CM SmallerHoriz +Key Right A CM BiggerHoriz +Key Up A CM SmallerVert +Key Down A CM BiggerVert + +Key Left A SCM Move w-5p w +Key Right A SCM Move w+5p w +Key Up A SCM Move w w-5p +Key Down A SCM Move w w+5p + +Key Up A M Raise +Key Down A M Lower + +# Arrow Keys +# press arrow + control anywhere, and scroll by 1 page +#Key Left A CM Scroll -100 0 +#Key Right A CM Scroll +100 +0 +#Key Up A CM Scroll +0 -100 +#Key Down A CM Scroll +0 +100 + +# press shift arrow + control anywhere, and move the pointer by 1% of a page +#Key Left A SC CursorMove -1 0 +#Key Right A SC CursorMove +1 +0 +#Key Up A SC CursorMove +0 -1 +#Key Down A SC CursorMove +0 +1 + +# press shift arrow + meta key, and move the pointer by 1/10 of a page +#Key Left A SM CursorMove -10 +0 +#Key Right A SM CursorMove +10 +0 +#Key Up A SM CursorMove +0 -10 +#Key Down A SM CursorMove +0 +10 + +# Keyboard accelerators +Key F1 A M Popup Window-Ops +Key F2 A M Popup Utilities +Key F3 A M Move +Key F4 A M Resize +Key F5 A M Next [*] focus +Key F6 A M Prev [*] focus +Key Escape A M Iconify + +#Key Tab A M Next [CurrentDesk * !Sticky] RaiseLower +#Key Tab A MS Prev [CurrentDesk * !Sticky] RaiseLower + +Key Escape A C WindowList + +#========================================================================# + +# Definitions used by the modules + +#------------------ FvwmButtons (from 2.0.42) +*FvwmButtonsFore Black +*FvwmButtonsBack LightSteelBlue +*FvwmButtonsFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-* +# Geometry - really likes to pick its own size, but giving a position is OK +*FvwmButtonsGeometry +80+1 +# Layout: specify rows or columns, not both +*FvwmButtonsRows 2 + +# Define the buttons to use..... + + +*FvwmButtons(Swallow(UseOld,Nokill) "xconsole" 'Exec xconsole -bg "LightSteelBlue" &' 4x1) +*FvwmButtons (Swallow(UseOld,Nokill) "asmixer" 'Exec asmixer &' ) +*FvwmButtons - whatever Swallow "XSysinfo" Exec xsysinfo -bg "LightSteelBlue" & +*FvwmButtons(Swallow(UseOld,NoKill) "XLoad" `Exec xload -bg "LightSteelBlue" -update 15 -nolabel &` Frame 1) +# *FvwmButtons - whatever SwallowModule Exec "FvwmPager" FvwmPager 0 1 + +*FvwmButtons(Container(Rows 3, Columns 2, Frame 1)) + *FvwmButtons(Title mp3cd, Action 'Exec /home/tfheen/bin/mp3cd > /dev/console') + *FvwmButtons(Title 'kill mp3cd', Action 'Exec /usr/bin/killall amp mp3cd') + *FvwmButtons(Title 'neste sang', Action 'Exec /usr/bin/killall amp') + *FvwmButtons(Title 'xconsole', Action 'Exec /usr/X11R6/bin/xconsole -geometry 329x54+0-0 -notify -verbose &') +*FvwmButtons Restart - Restart +*FvwmButtons(End) + +#------------------ Identify +*FvwmIdentBack #000080 +*FvwmIdentFore Yellow +*FvwmIdentFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-* + +#------------------ FvwmWinList +*FvwmWinListBack #c0c0c0 +*FvwmWinListFore Black +*FvwmWinListFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-* +*FvwmWinListAction Click1 Iconify -1,Focus +*FvwmWinListAction Click2 Iconify +*FvwmWinListAction Click3 Module "FvwmIdent" FvwmIdent +*FvwmWinListUseSkipList +*FvwmWinListGeometry +0-1 +*FvwmWinListShowCurrentDesk + +#------------------ FvwmTaskBar +#Style "FvwmTaskBar" NoTitle,BorderWidth 0,HandleWidth 0,Sticky,StaysOnTop,WindowListSkip,CirculateSkip + +#*FvwmTaskBarGeometry +0-0 +#*FvwmTaskBarFore Black +#*FvwmTaskBarBack LightSteelBlue +#*FvwmTaskBarTipsFore black +#*FvwmTaskBarTipsBack bisque +#*FvwmTaskBarFont -adobe-helvetica-medium-r-*-*-*-120-*-*-*-*-*-* +#*FvwmTaskBarSelFont -adobe-helvetica-bold-r-*-*-*-120-*-*-*-*-*-* +#*FvwmTaskBarAction Click1 Iconify -1,Raise,Focus +#*FvwmTaskBarAction Click2 Iconify +#*FvwmTaskBarAction Click3 Module "FvwmIdent" FvwmIdent +#*FvwmTaskBarUseSkipList +#*FvwmTaskBarAutoStick +# *FvwmTaskBarStartName Start +# *FvwmTaskBarStartMenu StartMenu +*FvwmTaskBarStartIcon mini-exp.xpm +# *FvwmTaskBarShowTips +*FvwmTaskBarShowTransients +# *FvwmTaskBarClockFormat %I:%M%p +# *FvwmTaskBarUpdateInterval +#*FvwmTaskBarHighlightFocus +#*FvwmTaskBarAutoHide +# *FvwmTaskBarMailCommand Exec color_xterm -T Mail -ls -fn 8x13 -e pine -i