💾 Archived View for gem.sdf.org › jdd › docs › fvwmconfig.txt captured on 2022-04-28 at 17:56:33.
⬅️ Previous capture (2022-03-01)
-=-=-=-=-=-=-
############################################################################## # Modified FVWM2 Config # January 21 2022 # For 1998 Computer project ############################################################################## ############################################################################## # # # Global Settings # # ############################################################################## ImagePath $[HOME]/.fvwm/icons;.xpm:$[HOME]/.fvwm/pngs;.png:$[HOME]/.icons/GNUstep/apps/48;.png ClickTime 250 DeskTopSize 2x2 DesktopName 0 FVWM Desktop OpaqueMoveSize 0 #was 150, set to 0 because I like the wireframe effect SnapAttraction 10 All Screen XorValue 55555 EdgeScroll 0 0 EdgeThickness 1 EdgeResistance 800 20 EdgeCommand Left nop ColormapFocus FollowsMouse EWMHUseStackingOrderHints EwmhBaseStruts 4 4 4 4 DefaultLayers 2 4 6 IgnoreModifiers L25 MoveThreshold 10 HideGeometryWindow Move, Resize BugOpts FlickeringMoveWorkaround True, EWMHIconicStateWorkaround True BusyCursor DynamicMenu True, Read True, Wait True ############################################################################## # # # Functions # # ############################################################################## # Startup Modules DestroyFunc StartFunction AddToFunc StartFunction + I Module FvwmCommandS + I Module FvwmPager + I Module FvwmAnimate + I Module FvwmButtons StatusBar # Startup Sript DestroyFunc InitFunction AddToFunc InitFunction # + I Test (F $[FVWM_USERDIR]/autostart)\ # Exec exec /bin/sh $[FVWM_USERDIR]/autostart + I Exec xsetroot -solid DimGray & + I Exec xsettingsd & + I Exec xosview -geometry -20-160 & + I Exec xclock -norender -hd grey28 -hl magenta \ -foreground cyan -background grey28 -geometry 120x120-10+354 & + I Exec xscreensaver -nosplash & + I Exec guake & + I Exec xplanet -utclabel -target earth -north body -latitude 0 -longitude -90 -background grey34 -starmap BSC -config /home/jdd/.xplanet/config/default & + I Exec xrdb -merge ~/.Xdefaults & DestroyFunc RestartFunction AddToFunc RestartFunction + I Nop DestroyFunc SessionInitFunction AddToFunc SessionInitFunction + I Nop DestroyFunc SessionRestartFunction AddToFunc SessionRestartFunction + I Nop # Suckless WindowList AddToFunc PickWindow + I WindowList (CurrentPage) Root c c CurrentDesk NoDeskNum, \ NoNumInDeskTitle, NoGeometryWithInfo, IconifiedAtEnd, \ SelectOnRelease, MaxLabelWidth 45 # Raise & Move / Shade DestroyFunc Move-or-Raise AddToFunc Move-or-Raise + I Raise + M Move + D Windowshade # Move to Bottom Layer/Unmaximize AddToFunc MoveLower + I Layer 0 4 + C Lower + M ThisWindow (Maximized) Maximize false + D RaiseLower # Automatic IconBox Elements Rearrange AddToFunc Deiconify-and-Rearrange + I Iconify + I All (CurrentPage, Iconic) PlaceAgain Icon DestroyFunc Move-or-Iconify AddToFunc Move-or-Iconify + I Raise + M Move + D Deiconify-and-Rearrange # Raise & Resize / (Undo)Lower DestroyFunc Resize-or-Raise AddToFunc Resize-or-Raise + I Raise + M Resize + D RaiseLower # Maximize/Expand with EWMH compliance AddToFunc Max + C Maximize ewmhiwa 100 100 + M Maximize ewmhiwa growonlayers $[w.layer] -1 grow grow # Toggle FullScreen On/Off AddToFunc FullScreen + I ThisWindow (Maximized) Fullscreen-Stop + I TestRc (False) ThisWindow (!Maximized) FullScreen-Start AddToFunc FullScreen-Start + I ThisWindow (Maximized) WindowStyle Title, Borders + I TestRc (!Match) WindowStyle !Title, \ !Borders, FixedSize, FixedPosition + I TestRc (!Match) Raise + I TestRc (!Match) UpdateStyles + I Maximize ewmhiwa 100 100 + I SetEnv CurrentWindowState_$[w.id] Maximize AddToFunc FullScreen-Stop + I DestroyWindowStyle + I UpdateStyles + I ThisWindow (Maximized) Maximize # Tiling AddToFunc TileLeft + I ThisWindow (!Shaded, !Iconic) Maximize 50 100 + I ThisWindow (Maximized, !Shaded, !Iconic) Move +0 +0 AddToFunc TileRight + I ThisWindow (!Shaded, !Iconic) Maximize 50 100 + I ThisWindow (Maximized, !Shaded, !Iconic) Move -0 +0 AddToFunc TileTop + I ThisWindow (!Shaded, !Iconic) Maximize 100 50 + I ThisWindow (Maximized, !Shaded, !Iconic) Move +0 +0 AddToFunc TileBottom + I ThisWindow (!Shaded, !Iconic) Maximize 100 50 + I ThisWindow (Maximized, !Shaded, !Iconic) Move +0 -0 AddToFunc TileTopLeft + I ThisWindow (!Shaded, !Iconic) Maximize 50 50 + I ThisWindow (Maximized, !Shaded, !Iconic) Move +0 +0 AddToFunc TileTopRight + I ThisWindow (!Shaded, !Iconic) Maximize 50 50 + I ThisWindow (Maximized, !Shaded, !Iconic) Move -0 +0 AddToFunc TileBottomLeft + I ThisWindow (!Shaded, !Iconic) Maximize 50 50 + I ThisWindow (Maximized, !Shaded, !Iconic) Move +0 -0 AddToFunc TileBottomRight + I ThisWindow (!Shaded, !Iconic) Maximize 50 50 + I ThisWindow (Maximized, !Shaded, !Iconic) Move -0 -0 # Increase/Decrease Window Size by 10 lines AddToFunc IncVerticalSize + I ThisWindow (!Shaded, !Iconic) Resize keep w+10c AddToFunc IncHorizontalSize + I ThisWindow (!Shaded, !Iconic) Resize w+10c keep AddToFunc DecVerticalSize + I ThisWindow (!Shaded, !Iconic) Resize keep w-10c AddToFunc DecHorizontalSize + I ThisWindow (!Shaded, !Iconic) Resize w-10c keep # Dynamically Circulate Focus Across Windows AddToFunc Raise-and-FlipFocus + I Raise + I FlipFocus AddToFunc CirculateFocus + I Raise-and-FlipFocus + I WarpToWindow !raise 5 5 # Go to 'x' Page (Focusing first not Iconified/Shaded Window) AddToFunc GotoPageFocus + I GotoPage $* + I PointerWindow (CurrentPage, !Sticky, !Shaded, !Iconic) Focus + I TestRc (!Match) Next (CurrentPage, !Sticky, \ !Shaded, !Iconic) Raise-and-Focus # Move 'Window' to 'x' Page, Go to $x (focusing $Window) AddToFunc MoveAndGotoPage + I MoveToPage $* + I GotoPageFocus $* # (De)Iconify dock at will AddToFunc HideShowPanel + I All (StatusBar) Iconify DestroyFunc ExitFunction AddToFunc ExitFunction + I Exec pkill xplanet ############################################################################## # # # # Mouse Bindings # # ############################################################################## #===========[Button][Context] [Mod] [Action] # Root Window (Desktop): Mouse 1 R A Menu RootMenu Nop Mouse 3 R A Menu Window-Ops Nop Mouse 8 R A PickWindow Mouse 2 R A WindowList # TitleBar Buttons: Mouse 0 1 A Menu Window-Ops Mouse 1 2 A Max Mouse 3 2 A ThisWindow (Maximized) Maximize false Mouse 0 2 M FullScreen Mouse 0 3 A MoveLower Mouse 0 4 A Iconify # Borders/Icons: Mouse 1 FS A Resize-or-Raise Mouse 1 TS A Move-or-Raise Mouse 1 I A Move-or-Iconify Mouse 3 I A Iconify Mouse 3 FST A Menu Window-Ops Nop Mouse 8 TSIF A RaiseLower # Scrollwheel to go up/down Pages Mouse 4 R A GotoPageFocus +0p -1p Mouse 5 R A GotoPageFocus +0p +1p # Scrollwheel (+S) to go left/right Pages Mouse 4 R S GotoPageFocus +1p -0p Mouse 5 R S GotoPageFocus -1p +0p # Mouse-grab with Alt for various Window-Ops Mouse 1 W M Move-or-Raise Mouse 3 W M Resize-or-Raise Mouse 8 W M Iconify Mouse 9 W M Close ############################################################################## # # # # Keyboard Bindings # # ############################################################################## #===============[Key] [Context] [Mod] [Action] # Ctrl + Arrow scrolls by 1 page. Key Left A S Scroll -100 0 Key Right A S Scroll +100 +0 Key Up A S Scroll +0 -100 Key Down A S Scroll +0 +100 # Alt + Arrow scrolls by 1/10 of a page. Key Left A C Scroll -10 +0 Key Right A C Scroll +10 +0 Key Up A C Scroll +0 -10 Key Down A C Scroll +0 +10 # Shift-Control + Arrow moves 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 # Shift-Alt + Arrow moves 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 # Ctrl-Alt + Arrow moves windows to different pages Key Up A CM MoveToPage +0p -1p Key Right A CM MoveToPage +1p +0p Key Left A CM MoveToPage -1p +0p Key Down A CM MoveToPage +0p +1p # Ctrl-Shift-Alt + Arrow moves window to page, goes to $page focusing $window Key Up A CSM MoveAndGotoPage +0p -1p Key Right A CSM MoveAndGotoPage +1p +0p Key Left A CSM MoveAndGotoPage -1p +0p Key Down A CSM MoveAndGotoPage +0p +1p # Super + Arrow tiles window to half screen Key Left A 4 TileLeft Key Right A 4 TileRight Key Up A 4 TileTop Key Down A 4 TileBottom # Super-Shift + Arrow tiles window to screen quarter Key Up A S4 TileTopLeft Key Left A S4 TileBottomLeft Key Right A S4 TileTopRight Key Down A S4 TileBottomRight # Ctrl-Super + Arrow resizes window by 10 lines Key Left A C4 DecHorizontalSize Key Right A C4 IncHorizontalSize Key Up A C4 DecVerticalSize Key Down A C4 IncVerticalSize # Alt + Tab Cycles between windows Key Tab A M Next (CurrentPage, !Iconic, !Shaded, \ AcceptsFocus) CirculateFocus Key Tab A SM Prev (CurrentPage, !Iconic, !Shaded, \ AcceptsFocus) CirculateFocus # Function Keys bindings Key F1 A S PickWindow Key F2 A S Popup Window-Ops Key F3 A S Popup Applications Key F4 A S Iconify Key F5 A S Max Key F6 A S Move Key F7 A S Resize Key F8 A S TileLeft Key F9 A S TileRight Key F10 A S HideShowPanel Key F11 A S FullScreen Key F12 A S Popup X11-Session # XF86/Fn Keyboard Symbols bindings Key XF86AudioMute A N Exec exec mixer -f \ /dev/mixer vol 0:0 > /dev/null 2>&1 Key XF86AudioLowerVolume A N Exec exec mixer -f \ /dev/mixer vol -5:-5 > /dev/null 2>&1 Key XF86AudioRaiseVolume A N Exec exec mixer -f \ /dev/mixer vol +5:+5 > /dev/null 2>&1 Key XF86AudioPlay A N Exec exec mpc play > /dev/null 2>&1 Key XF86AudioStop A N Exec exec mpc pause > /dev/null 2>&1 Key XF86AudioPrev A N Exec exec mpc prev > /dev/null 2>&1 Key XF86AudioNext A N Exec exec mpc next > /dev/null 2>&1 key XF86WWW A N Exec exec seamonkey key XF86Terminal A N Exec exec urxvtc -pe tabbed key XF86Go A N Exec exec rofi -show run Key XF86Mail A N Exec exec sylpheed Key XF86HomePage A N Exec exec pcmanfm Key XF86Sleep A N Exec exec acpiconf -s3 > /dev/null 2>&1 Key XF86LogOff A N Exec exec xscreensaver-command -lock ############################################################################## # # # Basic Style Settings # # # ############################################################################## # General Emulate Mwm DefaultFont "xft:Terminus\ (TTF):medium:antialias=true:size=10" # Color scheme CleanupColorsets DefaultColorset 0 ColorSet 0 fg \#000000, bg \#aeb2c3, hi \#dcdee5, sh \#5d6069 ColorSet 1 fg \#000000, bg \#758898, hi \#94a4b1, sh \#55646f #Fix awful plum colour window borders ColorSet 2 fg \#ffffff, bg SteelBlue3, hi SteelBlue1, sh SteelBlue4 ColorSet 3 fg \#000000, bg \#aeb2c3, hi \#dcdee5, sh \#5d6069 # Windows Style * BorderWidth 6 Style * HandleWidth 6 Style * ColorSet 1 #inactive windows Style * HilightColorset 2 #active windows #Style * SloppyFocus Style * ClickToFocus #Sloppy Focus drives me nuts Style * MouseFocusClickRaises Style * FPClickRaisesFocused Style * FPGrabFocus Style * FPReleaseFocus Style * FPLenient Style * FPSortWindowlistByFocus Style * FPIgnoreRaiseClickMotion Style * NoPPosition Style * TileCascadePlacement Style * DecorateTransient Style * StackTransientParent Style * EWMHUseStackingOrderHints Style * EdgeMoveDelay 250 Style * EdgeMoveResistance 10 Style * Font "xft:Terminus\ (TTF):medium:antialias=true:size=10" Style * WindowShadeSteps 64 Style * WindowShadeShrinks Style * HintOverride #Style * ResizeOpaque #show wireframe when resizing Style * ResizeHintOverride Style * MwmDecor Style * MwmBorder Style * MwmButtons Style * MwmFunctions Style * Title, Handles #Application Styles #xosview is cool ColorSet 98 bg grey60, fg grey28, hi grey90, sh grey28 #sets border to a darkish grey ColorSet 99 bg DarkBlue, fg DarkBlue, hi DodgerBlue, sh grey18 #sets border to blue Style "xosview" NoTitle, \ NoHandles, \ BorderWidth 6, \ Sticky, \ WindowListSkip, \ NeverFocus, \ ColorSet 98 #xclock is mandatory Style "xclock" NoTitle, \ NoHandles, \ BorderWidth 6, \ Sticky, \ WindowListSkip, \ NeverFocus, \ ColorSet 98 Style "guake" NoTitle, \ NoHandles, \ BorderWidth 6, \ Sticky, \ # WindowListSkip, \ # NeverFocus, \ ColorSet 98 Style "lagrange" IconOverride, \ Icon World.xpm # Cursors CursorStyle ROOT left_ptr CursorStyle TITLE left_ptr CursorStyle DEFAULT left_ptr CursorStyle SYS left_ptr CursorStyle MENU left_ptr CursorStyle WAIT left_ptr # Menus MenuStyle * Mwm, \ MenuColorset 3, \ TitleWarp, \ Hilight3DThick, \ MenuFace TiledPixmap marble.xpm, \ SidePic fvwm_sidebar3.xpm, \ SideColor #9c9fad, \ SeparatorsLong, \ BorderWidth 1, \ VerticalMargins 3 3, \ VerticalItemSpacing 2 4, \ VerticalTitleSpacing 2 4, \ Font "xft:Terminus\ (TTF):medium:antialias=true:size=10", \ TitleFont "xft:Terminus\ (TTF):bold:antialias=true:size=11" # Button Hints ButtonStyle 1 - MWMDecorMenu ButtonStyle 2 - Clear ButtonStyle 3 - MWMDecorShade ButtonStyle 4 - MWMDecorMax ButtonStyle 6 - MWMDecorMin # TitleBar TitleStyle Centered Height 20 #make the TitleBar a bit bigger TitleStyle ActiveUp -- Raised TitleStyle ActiveDown -- Raised TitleStyle Inactive -- Raised #This turns off those little corner bits on the windows, #but we want them, so commented out # Borders #BorderStyle Inactive -- HiddenHandles NoInset #BorderStyle Active -- HiddenHandles NoInset ############################################################################### # # FvwmAnimate # # ############################################################################## SetAnimation 10 -.01 0 .01 .03 .08 .18 .3 \ .45 .6 .75 .85 .90 .94 .97 .99 1.0