Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # The correct order for inserting configurations is:
- # 1. Colors
- # 2. Assorted configuration paramters such as ClickToFocus, or MWMBorders
- # 3. Path setup (ModulePath, ImagePath)
- # 4. Style settings, including the default style Style "*" ...
- # 5. InitFunction and ResetFunction definitions.
- # 6. Other Functions. Functions cannot be forward referenced from
- # other functions, but they can be backward referenced.
- # 7. Menus definitions. Same caveats about forward referencing
- # 8. Key and Mouse Bindings.
- # 9. Module options.
- # The order of steps 5, 6, and 7 is not critical, as long as there are
- # no forward references to functions or menus.
- # If you get it wrong, the most common problem is that color or font settings
- # are ignored
- Colorset 3 fg black, bg rgb:EF/D2/79, Plain, NoShape
- Colorset 4 fg black, bg rgb:AF/D7/75, Plain, NoShape
- # FPLenient to fix the focus issue of Wine
- Style * SloppyFocus, FPLenient, FPOverrideGrabFocus, !FPGrabFocus, !FPGrabFocusTransient
- Style * TileCascadePlacement, EWMHPlacementUseWorkingArea
- Style * DecorateTransient
- Style * MwmDecor, EWMHUseStackingOrderHints
- # Style * BorderColorset 3, HilightBorderColorset 4
- Style * SnapAttraction 12
- Style * EdgeMoveResistance 12
- Style * IconSize 48 48
- Style * IconBox 256x480-0+220@c, IconFill t r
- Style tint2 StaysOnTop, NeverFocus
- Style Conky NeverFocus
- Style * Icon Unknown.xpm
- Style * NoIconOverride
- Style * IconSize 48 48
- Style urxvt Icon gnome-color-xterm.xpm, MiniIcon mini/mini.display.xpm
- Style urxvtc Icon gnome-color-xterm.xpm, MiniIcon mini/mini.display.xpm
- # SetEnv deffont -xos4-terminus-medium-*-normal--12-120-72-72-c-60-iso10646-1
- SetEnv deffont "xft:Terminus:pixelsize=12:encoding=iso10646-1"
- DefaultFont $[deffont]
- OpaqueMoveSize 0
- EdgeScroll 100 100
- EdgeResistance 1000
- EwmhBaseStruts 0 0 16 0
- MenuStyle * PopupDelayed, PopupDelay 200
- CursorStyle ROOT top_left_arrow
- # NOTES: the Modules are in /usr/local/libexec/fvwm/`fvwm2 -version`
- # the system-wide rc file could be in /usr/local/etc
- # Example module configs could be in /usr/local/share/fvwm
- # Module path and paths to the icons
- # ModulePath is a colon-separated list, just like regular unix PATH
- #
- SetEnv BaseDir $.
- ImagePath $[BaseDir]/images:$[BaseDir]/images/icons
- DesktopSize 1 1
- #############################################################################
- # Stuff to do at start-up
- DestroyFunc StartFunction
- AddToFunc StartFunction
- + I PipeRead 'feh --bg-scale wallpapers/earth.jpg 1>&2'
- + I Function ExecIfNoWindow tint2 tint2
- + I Function ExecIfNoWindow conky conky
- DestroyFunc ExecIfNoWindow
- AddToFunc ExecIfNoWindow
- + I All ($0) Nop
- + I TestRc (NoMatch) Exec exec $1
- #DestroyFunc InitFunction
- # AddToFunc InitFunction
- ######################## MENUS ##############################
- # Program menu (B1)
- DestroyMenu MenuFvwmRoot
- AddToMenu MenuFvwmRoot "$[gt.Root Menu]" Title
- + "&0. tmux" PipeRead "echo -n 'Exec exec urxvtc -e '; tmux has-session 2> /dev/null && echo 'tmux attach' || echo 'tmux';"
- + "&1. gvim" Exec exec gvim
- + "&2. firefox" Exec exec firefox
- + "&3. thunderbird" Exec exec thunderbird
- + "&4. urxvtc" Exec exec urxvtc
- + "&5. chromium" Exec exec chromium
- + "&6. ttsapp" Exec exec wine C:\\Program\ Files\\NeoSpeech\\Paul16\\lib\\TTSApp.exe
- + "&7. goldendict" Exec exec goldendict
- + "&8. skype" Exec exec skype
- + "&9. pidgin" Exec exec pidgin
- + "" Nop
- + "&f. fcitx" Exec exec fcitx
- + "&g. gnote" Exec exec gnote
- + "&u. urxvt" Exec exec urxvt
- # Window ops menu (B2)
- # Middle button root menu
- AddToMenu WindowOps "Window Options" Title
- + "Move" Move
- + "Resize" Resize
- + "Raise" Raise
- + "Lower" Lower
- + "(De)Iconify" Iconify
- + "(Un)Stick" Stick
- + "Maximize" ResizeMove frame 100 -16p 0 16p
- + "Maximize Vertical" ResizeMove frame keep -16p w0 16p
- + "Maximize Horizonal" ResizeMove frame 100 keep 0 w0
- + "(Un)Grow" Maximize grow grow
- + "(Un)Grow Horizonally" Maximize grow 0
- + "(Un)Grow Vertically" Maximize 0 grow
- + "(Un)Stay On Top" Function OnTop
- + "" Nop
- + "Resize to 800x600" Resize 800p 600p
- + "Resize to 1024x768" Resize 1024p 768p
- + "" Nop
- + "Desk move" MoveToDesk 1 0 1
- + "List of Windows" WindowList
- + "" Nop
- + "Delete" Delete
- + "Destroy" Destroy
- # Fvwm configuration menu (B3)
- AddToMenu System "Fvwm Controls" Title
- + "Fvwm Modules" Popup Module-Popup
- + "Fvwm Window Ops" Popup WindowOps
- + "Fvwm Simple Config Ops" Popup Misc-Ops
- + "List of Windows" WindowList
- + "" Nop
- + "Refresh" Refresh
- + "Restart" Restart
- + "" Nop
- + "Exit" Quit
- 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
- AddToMenu Module-Popup "FvwmModules" Title
- + "Identify" Module FvwmIdent
- + "WinList" Module FvwmWinList
- + "" Nop
- + "Tile Windows" Module FvwmRearrange -tile 2 3 98 98 -mn 2
- + "Cascade Windows" Module FvwmRearrange -cascade -resize 5 5 60 60 -incx 2 -incy 2 -noraise
- + "" Nop
- + "FvwmConsole" Module FvwmConsole -terminal urxvtc -bg #101010 -fg #f2f2f2
- + "FvwmConsole (urxvt)" Module FvwmConsole -terminal urxvt -bg #101010 -fg #f2f2f2
- + "Button-Bar" Module FvwmButtons
- + "Pager" Module FvwmPager 0 1
- + "TaskBar" Module FvwmTaskBar
- + "Wharf" Module FvwmWharf
- + "IconBox" Module FvwmIconBox
- + "IconMan" Module FvwmIconMan
- + "" Nop
- + "AutoRaise" Module FvwmAuto 800 Raise Nop
- + "Stop AutoRaise" KillModule FvwmAuto
- + "Audio" Module FvwmAudio
- + "Stop Audio" KillModule FvwmAudio
- + "ScrollBar" Module FvwmScroll 50 50
- + "" Nop
- + "Fvwm Backer" Module FvwmBacker
- + "Stop Backer" KillModule FvwmBacker
- + "Banner" Module FvwmBanner
- + "Talk" Module FvwmTalk
- + "" Nop
- + "Debug" Module FvwmDebug
- + "Stop Debug" KillModule FvwmDebug
- ############################################################################
- # COMPLEX FUNCTIONS
- AddToFunc Move-or-Raise I Raise
- + M Move
- AddToFunc Move-or-Iconify M Move
- + C Iconify
- AddToFunc Resize-or-Raise I Raise
- + M Resize
- DestroyFunc OnTop
- AddToFunc OnTop
- + I ThisWindow (Layer 6) Layer
- + I TestRc (NoMatch) Layer 0 6
- ############################################################################
- # MOUSE Setup
- # Field #2 (Context)
- # R Root
- # W Application window
- # D Desktop application (like kdeskdtop or Nautilus desktop)
- # T Titlebar
- # S Sidebar (side, top, or bottom)
- # F Frame (corners)
- # I Icon window
- # A Any
- # M Tear-off menu
- # Field #3 (Modifier)
- # N none
- # C control
- # S shift
- # M meta
- # L caps lock
- # A any
- # First, the root window.
- Mouse 1 R A Menu MenuFvwmRoot Nop
- # Mouse 1 R S SendToModule FvwmGtk Gnome-applications
- # Mouse 1 R S Menu Gnome-applications
- Mouse 2 R A Menu WindowOps Nop
- Mouse 3 R A Menu System Nop
- # Leftmost has the pulldown the menu
- Mouse 1 1 A Menu WindowOps Close
- Mouse 2 1 A Menu WindowOps
- Mouse 3 1 A Menu WindowOps
- # Title bar buttons
- # 1 3 5 6 4 2
- # Default button decorations:
- # Left:
- # 1 MwmDecorMenu
- # Right:
- # 2 MwmDecorMax
- # 4 MwmDecorMin
- # Others
- # MwmDecorShade
- # MwmDecorLayer
- # MwmDecorStick
- SetEnv MenuButton 1
- SetEnv MaxButton 2
- SetEnv MinButton 4
- Mouse 1 $[MaxButton] A Maximize
- Mouse 2 $[MaxButton] A Maximize 0 100
- Mouse 3 $[MaxButton] A Maximize 100 0
- Mouse 1 $[MinButton] A Iconify
- # Read the decor _before_ the button and pager configs
- # but after the titlebar configs
- #
- # == Menu Styles ==
- #
- #Here comes the menu style description.
- #fvwm tries to draw menus in '3D', which looks
- #ridiculous to me, so this config features flat menus,
- #feel free to change it if you need.
- #fg and bg in dolorset 7 are text and background colors
- #correspondingly. sh and hi are shaded and highlited
- #colors for '3D', setting them to same color forces
- #them to look flat.
- #
- #PopupDelay gives you some time before the submenu pops up.
- #PopupOffset is 2 pixels between menus and 100 stands
- #to avoid menus overlapping.
- #
- #Colorset 8 is for menu item under pointer and has only
- #one color.
- Colorset 7 fg #5a504e, bg #a7bdba, sh #5a504e, hi #5a504e
- Colorset 8 fg #d58c41
- MenuStyle * PopupDelayed, PopupDelay 300, PopdownImmediately
- MenuStyle * PopupOffset 2 100
- MenuStyle * SeparatorsLong, TrianglesSolid
- MenuStyle * BorderWidth 2
- MenuStyle * MenuColorset 7
- MenuStyle * ActiveFore, Hilight3DOff
- MenuStyle * ActiveColorset 8
- # == Window Decorations ==
- #
- #A description of simple pixmap window decoration.
- #
- #Quite a tricky thing indeed, and I hope to write
- #an article on it soon.
- Colorset 5 fg #5a504e, bg #5a504e
- BorderStyle Colorset 5 -- Flat HiddenHandles NoInset
- TitleStyle AllActive MultiPixmap \
- Main TiledPixmap $[FVWM_USERDIR]/decor/title-1-active.xpm
- TitleStyle Inactive MultiPixmap \
- Main TiledPixmap $[FVWM_USERDIR]/decor/title-1-inactive.xpm
- ButtonStyle 1 \
- Active (Pixmap $[FVWM_USERDIR]/decor/close-active.xpm)\
- Inactive (Pixmap $[FVWM_USERDIR]/decor/close-inactive.xpm)
- ButtonStyle 2 \
- Active (Pixmap $[FVWM_USERDIR]/decor/maximize-active.xpm)\
- Inactive (Pixmap $[FVWM_USERDIR]/decor/maximize-inactive.xpm)
- ButtonStyle 4 \
- Active (Pixmap $[FVWM_USERDIR]/decor/hide-active.xpm)\
- Inactive (Pixmap $[FVWM_USERDIR]/decor/hide-inactive.xpm)
- TitleStyle -- Flat
- TitleStyle LeftJustified Height 15
- ButtonStyle All -- Flat
- HilightColor #d58c41 #DEDEDE
- Style "*" BorderWidth 1
- Style "*" HandleWidth 1
- Style "*" Title, Color #a7bdba/#33322F
- Style "*" DecorateTransient
- # Style "*" NoIcon
- *FvwmIconMan: NumManagers 1
- # Icons
- Mouse 1 I A Iconify
- Mouse 2 I A Move
- Mouse 3 I A Menu WindowOps Delete
- Mouse 1 FS A Resize-or-Raise
- Mouse 1 T A Move-or-Raise
- Mouse 2 T A WindowShade
- #Mouse 3 TFS A RaiseLower
- Mouse 1 TFS C Move-or-Raise
- Mouse 2 TFS C WindowList
- Mouse 3 TFS C Resize-or-Raise
- #Mouse 3 A M WindowList
- ############################################################################
- # KEYBOARD Setup
- PointerKey Super_L WTS A MoveToDesk 1 0 1
- # L5 and L7 for Sun Lower and Close keys
- # Key L5 A A RaiseLower
- # Key L7 A A Iconify
- # Use with keycode 115 = Super_L in .Xmodmap to iconify with the Windows key
- # Key Super_L A A Iconify
- Key Super_R A A GotoDesk 1 0 1
- 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
- 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
- ############################################################################
- # FvwmIdent
- # *FvwmIdentBack gray
- # *FvwmIdentFore black
- # *FvwmIdentFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*
- ##########################FvwmWinList##################################
- *FvwmWinListAction Click1 Iconify -1,Focus
- *FvwmWinListAction Click2 Iconify
- *FvwmWinListAction Click3 Module "FvwmIdent" FvwmIdent
- *FvwmWinListUseSkipList
- *FvwmWinListGeometry +0-1
- # Active one defaults to black-on-black if we don't do this
- *FvwmWinListFocusBack gray50
- *FvwmIdent: Font $[deffont]
- *FvwmFormDefault: Font $[deffont]
- *FvwmTaskBar: StatusFont $[deffont]
- *FvwmForm-RootCursor: Font $[deffont]
- # Urgency hint function override, to prevent Pidgin from grabbing the focus
- DestroyFunc UrgencyFunc
- AddToFunc UrgencyFunc
- + I Iconify off
- + I Raise
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement