# This file is copied to a new user's FVWM_USERDIR by FvwmForm-Setup form.
# This file contains the commands fvwm reads while starting.
#
EdgeResistance 250 10
EdgeScroll 0 0
ClickTime 750
ImagePath /usr/X11R6/share/fvwm/pixmaps
DeskTopSize 6x1
MenuStyle * Mwm, Foreground lightgrey, Background rgb:9f/45/5, Greyed lightgrey
MenuStyle * Font "StringEncoding=utf-8:xft:simsun:size=10:iso10646-1"
ColormapFocus FollowsMouse
# default Styles:
# make sure these fonts exist on your system:
Style * Font "StringEncoding=utf-8:xft:simsun:size=10:iso10646-1"
Style * IconFont "StringEncoding=utf-8:xft:simsun:size=10:iso10646-1"
Style * HilightFore lightgrey, HilightBack rgb:9f/45/5
Style * BorderWidth 5, HandleWidth 5
Style * Icon Monitor.xpm, Color lightgrey/rgb:80/80/80
Style * MWMFunctions, MWMDecor, HintOverride
Style * DecorateTransient, NoPPosition
Style * IconBox 0 -10 -280 -1
Style * SloppyFocus, ClickToFocusPassesClick
Style * TileCascadePlacement
Style * EWMHUseStackingOrderHints
# Styles for various Fvwm modules:
Style Fvwm* Sticky, WindowListSkip
Style Fvwm* BorderWidth 2, CirculateSkipIcon, CirculateSkip
Style FvwmPager StaysOnTop, BorderWidth 0, Sticky, NoTitle, NoHandles
# Styles for various common programs:
Style systime NoTitle, NoHandles, Sticky, WindowListSkip, StaysOnTop, BorderWidth 0, NeverFocus, NoLenience
Style systat NoTitle, NoHandles, Sticky, WindowListSkip, BorderWidth 0, NeverFocus, NoLenience, Layer 0
Style xconsole NoTitle, NoHandles, Sticky, WindowListSkip, BorderWidth 0, NeverFocus, NoLenience, Layer 1
Style login NoTitle, NoHandles, Sticky, WindowListSkip, StaysOnTop, BorderWidth 0,
Style xcalc Icon xcalc.xpm, NoButton 2,ClickToFocus
Style xman Icon xman.xpm, ClickToFocus
Style Console Icon Monitor.xpm, Sticky, WindowListSkip, StaysOnTop, CenterPlacement
# some simple default key bindings:
Key 1 A M GotoPage 0 0
Key 2 A M GotoPage 1 0
Key 3 A M GotoPage 2 0
Key 4 A M GotoPage 3 0
Key 5 A M GotoPage 4 0
Key 6 A M GotoPage 5 0
Key Print A A Exec scrot
Key F1 A M Menu MenuFvwmRoot Nop
Key F2 A M Module FvwmConsole
Key F4 A M Current Close
Key F5 A A Refresh
Key F7 A A Exec urxvtc -fn "xft:simsun:size=10" -name Urxvt_C -sl 3000
Key F7 A M Exec urxvt -fn "xft:simsun:size=10" -name Console -sl 3000
Key Tab A M WindowList NoGeometryWithInfo, NoCurrentDeskTitle, SortByClass
Key VolumeRaise A A Exec mixer vol +5
Key VolumeLower A A Exec mixer vol -5
# some simple default mouse bindings:
# for the root window:
Mouse 1 R A
Mouse 3 R A Menu MenuFvwmRoot Nop
# for the title bar buttons:
Mouse 0 1 A Menu MenuFvwmWindowOps2 Close
Mouse 0 2 A FuncFvwmMaximize
Mouse 0 4 A Iconify
# for other parts of the window/borders/icons:
Mouse 1 FS A FuncFvwmResizeOrRaise
Mouse 1 T A FuncFvwmMoveOrRaise
Mouse 1 I A FuncFvwmMoveOrIconify
######################## Initialization Functions ############################
AddToFunc StartFunction
+ I exec xsetroot -mod 2 2 -fg rgb:55/40/55 -bg rgb:80/50/80
+ I Module FvwmPager 0 0
+ I exec urxvtc -tr +sb -fn 7x13bold -name systime -geometry 30x2+1070+782 -fg rgb:ff/ff/ff -e ~/.fvwm/clock
+ I exec urxvtc -tr +sb -fn 6x13 -name systat -geometry 80x25+140+20 -fg rgb:80/80/80 -e systat -vm 3
+ I exec urxvtc -tr +sb -fn 6x13 -name systat -geometry 80x10+140+350 -fg rgb:80/80/80 -e systat 3
+ I exec urxvtc -tr +sb -fn 6x13 -name systat -geometry 80x15+140+500 -fg rgb:80/80/80 -e systat -if 3
+ I exec urxvtc -tr +sb -fn 6x13 -name systat -geometry 80x52+700+20 -fg rgb:80/80/80 -e top -P
+ I exec urxvtc -C -tr +sb -fn 6x13 -name xconsole -geometry 80x10+140+650 -fg rgb:ff/80/80
+ I exec stardict
+ I wait stardict
+ I All (StarDict) Iconify
+ I Refresh
+ I Exec urxvtc -fn "xft:simsun:size=10" -name Urxvt_C -sl 3000
AddToFunc InitFunction
AddToFunc ExitFunction
+ I All (systime) Close
+ I All (systat) Close
+ I All (StarDict) Close
+ I All (xsetroot) Close
+ I All (xconsole) Close
######################## Menus ###################
Read /etc/X11/fvwm/menudefs.hook Quiet
Read menudefs.hook Quiet
DestroyMenu MenuFvwmRoot
AddToMenu MenuFvwmRoot "$[gt.Root Menu]" Title
+ "$[gt.Urxvt]" Exec urxvtc -fn "xft:simsun:size=10" -name Urxvt_C -sl 3000
+ "$[gt.Emacs]" Exec emacs
+ "" Nop
+ "$[gt.Applications]" Popup MenuApplications
+ "" Nop
+ "$[gt.Fvwm Window Ops]" Popup MenuFvwmWindowOps
+ "" Nop
+ "$[gt.Exit Fvwm]" Popup MenuFvwmQuitVerify
DestroyMenu MenuApplications
AddToMenu MenuApplications
+ "$[gt.Firefox]" Exec firefox3
+ "$[gt.Pidgin]" Exec pidgin
+ "" Nop
+ "$[gt.Emacs]" Exec emacs
+ "" Nop
DestroyFunc FuncFvwmWindowCommon
AddToFunc FuncFvwmWindowCommon
+ I AddToMenu $0 "$[gt.&Move]" Move
+ I AddToMenu $0 "$[gt.&Resize]" Resize
+ I AddToMenu $0 "$[gt.&Stick]" Stick
+ I AddToMenu $0 "" Nop
+ I AddToMenu $0 "$[gt.Move&To]" Popup MenuMoveToPage
+ I AddToMenu $0 "$[gt.&Close]" Close
DestroyMenu MenuFvwmWindowOps
AddToMenu MenuFvwmWindowOps "$[gt.Window Ops]" Title
FuncFvwmWindowCommon MenuFvwmWindowOps
DestroyMenu MenuFvwmWindowOps2
AddToMenu MenuFvwmWindowOps2
FuncFvwmWindowCommon MenuFvwmWindowOps2
DestroyMenu MenuMoveToPage
AddToMenu MenuMoveToPage
+ "Page 1" MoveToPage 0 0
+ "Page 2" MoveToPage 1 0
+ "Page 3" MoveToPage 2 0
+ "Page 4" MoveToPage 3 0
+ "Page 5" MoveToPage 4 0
+ "Page 6" MoveToPage 5 0
DestroyMenu MenuFvwmQuitVerify
AddToMenu MenuFvwmQuitVerify "$[gt.Really Quit Fvwm?]" Title
+ "$[gt.Restart Fvwm]" Restart
+ "" Nop
+ "$[gt.Quit Session]"
+ "" Nop
+ "$[gt.Reboot]" Exec sudo /sbin/init 6
+ "$[gt.Shutdown]" Exec sudo /sbin/init 0
######################## Sample Functions ##########################
DestroyFunc FuncFvwmMoveOrRaise
AddToFunc FuncFvwmMoveOrRaise
+ I Raise
+ M Move
+ D Lower
DestroyFunc FuncFvwmMaximize
AddToFunc FuncFvwmMaximize
+ C Maximize 100 98
+ D Maximize 100 100
DestroyFunc FuncFvwmMoveOrIconify
AddToFunc FuncFvwmMoveOrIconify
+ I Raise
+ M Move
+ D Iconify
DestroyFunc FuncFvwmResizeOrRaise
AddToFunc FuncFvwmResizeOrRaise
+ I Raise
+ M Resize
+ D Lower
############################### Pager #########################################
DestroyModuleConfig FvwmPager: *
*FvwmPager: Geometry 175x18+895+782
*FvwmPager: Rows 1
*FvwmPager: Columns 1
*FvwmPager: Back rgb:9b/30/FF
*FvwmPager: Fore rgb:55/40/55
*FvwmPager: Font none
*FvwmPager: Hilight rgb:ff/ff/ff
*FvwmPager: DeskHilight
*FvwmPager: SmallFont 5x8
###############################################################################
|