rendered paste body############
## SetEnv ##
############
SetEnv fvwm_home $[HOME]/.fvwm/
SetEnv fvwm_wallpaper_path $[HOME]/wallpapers/
SetEnv icons $[fvwm_home]/icons/
SetEnv fvwm_icon_size 128
ImagePath $[icons]:$[icons];.png:+
SetEnv fvwm_video_exec mplayer
SetEnv fvwm_video_path $[HOME]/datashare/video
SetEnv fvwm_audio_exec cplay
SetEnv fvwm_audio_path $[HOME]/datashare/Music
#####
## If you use Thumbnails, how big would you like the Icons to be?
##
## Try one of these, from tiny to large: 32, 64, 96, 128
##
## Note that the aspect ratio is maintained, so tall and thin windows may get larger icons,
## but you can change that if it annoys you.
##################
setEnv fvwm_icon_size 96
################
## End SetEnv ##
################
################
## Misc Stuff ##
################
OpaqueMoveSize -1
SnapAttraction 3 SameType
####################
## End Misc Stuff ##
####################
#############
## Animate ##
#############
DestroyModuleConfig FvwmAnimate: *
*FvwmAnimate: Color white
*FvwmAnimate: Delay 3
*FvwmAnimate: Iterations 100
*FvwmAnimate: Width 1
*FvwmAnimate: Effect frame
#################
## End Animate ##
#################
#####################
## Mouse & Desktop ##
#####################
CursorStyle root top_left_arrow
CursorStyle sys top_left_arrow
EdgeResistance 25 200
EdgeThickness 0
EdgeScroll 100 100
ClickTime 150
EwmhBaseStruts 0 0 28 28
IgnoreModifiers L2
OpaqueMoveSize 5
#########################
## End Mouse & Desktop ##
#########################
##################
## Virtual Desk ##
##################
DesktopSize 2x2
DesktopName 0 Main
EdgeScroll 100 100
EdgeResistance 10000 100
EdgeThickness 1
######################
## End Virtual Desk ##
######################
###############
## Functions ##
###############
DestroyFunc StartFunction
AddToFunc StartFunction
+ I Test (Init) Exec Esetroot -s $[HOME]/wallpapers/default.png
+ I Module FvwmAnimate
+ I Module FvwmEvent
+ I Module FvwmCommandS
+ I Module FvwmButtons Bottombar
+ I Test (Init) Exec exec gkrellm
+ I Test (Init) Exec Eterm --trans --shade 50 --buttonbar 0 --borderless --scrollbar off --geometry 120x78+130 -e screen -x
+ I Test (Init) Exec Eterm --trans --shade 50 --buttonbar 0 --borderless --scrollbar off --geometry 18x78+860 -e cat ~/.irssi/nicklistfifo
+ I Test (Init) Exec iceweasel --height 1003 --width 1205
AddToFunc ExitFunction
+ I Test (!ToRestart) Exec exec rm -f $[FVWM_USERDIR]/icon.tmp.*
+ I KillModule FvwmAnimate
+ I Exec sync
DestroyFunc InitFunction
AddToFunc InitFunction
DestroyFunc RestartFunction
AddToFunc RestartFunction
+ I All (Iconic) ReThumbnail
+ I Test (Init) Exec Eterm --trans --shade 50 --buttonbar 0 --borderless --scrollbar off --geometry 100x78+11
5 -e screen -x
DestroyFunc ReThumbnail
AddToFunc ReThumbnail
+ I Iconify
+ I Thumbnail
DestroyFunc FocusFunc
AddToFunc FocusFunc
+ I Iconify Off
+ I WindowShade False
+ I Raise
+ I Focus
DestroyFunc MoveOrIconify
AddToFunc MoveOrIconify
+ C Thumbnail
+ M Move
DestroyFunc MoveOrShadeOrRaise
AddToFunc MoveOrShadeOrRaise
+ C Raise
+ D WindowShade
+ M Move
DestroyFunc FuncFvwmResizeOrRaiseOrShade
AddToFunc FuncFvwmResizeOrRaiseOrShade
+ H Resize %0
+ M Resize %0
+ C Raise
+ D FuncShadeMe
DestroyFunc FuncShadeMe
AddToFunc FuncShadeMe
+ I PipeRead `case $[func.context] in "t") echo 'ThisWindow \(!Shaded\) WindowStyle TitleAtTop'; echo WindowShade toggle;; "[") echo 'ThisWindow \(!Shaded\) WindowStyle TitleAtLeft' && echo WindowShade [;; "]") echo 'ThisWindow \(!Shaded\) WindowStyle TitleAtRight' && echo WindowShade ];; "-") echo 'ThisWindow \(!Shaded\) WindowStyle TitleAtTop' && echo WindowShade -;; "_") echo 'ThisWindow \(!Shaded\) WindowStyle TitleAtBottom' && echo WindowShade _;;esac`
DestroyFunc Thumbnail
AddToFunc Thumbnail
+ I Raise
+ I SetEnv Icon-$[w.id] $[w.iconfile]
+ I ThisWindow (!Shaded Iconifiable !Iconic) PipeRead "xwd -silent -id $[w.id] | convert -scale $[fvwm_icon_size] -frame 1x1 -mattecolor black -quality 0 xwd:- png:$[FVWM_USERDIR]/icon.tmp.$[w.id].png && echo WindowStyle IconOverride, Icon $[FVWM_USERDIR]/icon.tmp.$[w.id].png || echo Nop"
+ I TestRc (Match) Test (f $[HOME]/icons/$[w.miniiconfile]) PipeRead "composite -geometry +2+4 $[HOME]/icons/$[w.miniiconfile] $[FVWM_USERDIR]/icon.tmp.$[w.id].png $[FVWM_USERDIR]/icon.tmp.$[w.id].png && echo Nop || echo Beep"
+ I Iconify
###################
## End Functions ##
###################
################
## Color Sets ##
################
Colorset 0 fg grey, bg black, Transparent 30
Colorset 1 fg gold, bg black
Colorset 2 fg white, Pixmap bar/title-back.png
Colorset 3 fg black, Pixmap bar/pager.png
Colorset 4 RootTransparent, fg white, bg darkgray, sh white, Tint white 20, bgTint white 20
Colorset 6 fg white, bg black, IconAlpha 40
Colorset 7 fg white, bg black, fgsh black, IconAlpha 100
Colorset 51 RootTransparent, fg rgb:ff/ff/c4, bg average, Tint black 20, bgTint black 20
Colorset 54 fg white, bg darkgray, Pixmap bar/iconman1.png
Colorset 55 fg black, bg darkgray, sh white
###################
## End Color Set ##
###################
##########################
## Mouse & Key Bindings ##
##########################
Mouse 1 R A Menu MenuRoot Nop
Mouse 1 I A MoveOrIconify
Mouse 3 R A Menu MenuFvwmConfig
Mouse 1 2 A Close
Mouse 1 4 A Maximize
Mouse 1 6 A Thumbnail
Mouse 3 T A Menu MenuFvwmWindowOps Nop
Mouse 1 8 A Resize
Mouse 3 8 A Stick
Mouse 1 SF A FuncFvwmResizeOrRaiseOrShade Maximize
Mouse 1 WTFS M FuncFvwmRaiseLowerX move
Mouse 2 WTFS M FuncFvwmRaiseLowerX resize
Mouse 2 R A WindowList SortByClass MaxLabelWidth 60
Mouse 0 1 N Menu MenuFvwmWindowOps
Mouse 0 6 A Thumbnail
Mouse 0 4 A Maximize
Mouse 2 I A Iconify
Mouse 3 TSIF A RaiseLower
Key F1 A M GotoPage 0 0
Key F2 A M GotoPage 1 0
Key F3 A M GotoPage 2 0
Key F4 A M GotoPage 3 0
Key F5 A M GotoPage 0 4
Key F6 A M GotoPage 1 5
Key F6 A M GotoPage 2 6
Key F7 A M GotoPage 3 7
##############################
## End Mouse & Key Bindings ##
##############################
#######################
## Window Decoration ##
#######################
DestroyDecor Cathode
AddToDecor Cathode
+ TitleStyle LeftJustified Height 18
+ TitleStyle AllActive Colorset 3
+ TitleStyle AllInActive Colorset 4
+ TitleStyle AllActive TiledPixmap cathode/wtitle_active.png
+ TitleStyle AllInActive TiledPixmap cathode/wtitle_inactive.png
+ TitleStyle -- Flat
+ ButtonStyle 2 InActive (Pixmap cathode/close_inactive.png) Active (Pixmap cathode/close_active.png)
+ ButtonStyle 3 MiniIcon
+ ButtonStyle 4 InActive (Pixmap cathode/maximize_inactive.png) Active (Pixmap cathode/maximize_active.png) ToggledInActive (Pixmap cathode/maximize_inactive_toggled.png) ToggledActive (Pixmap cathode/maximize_active_toggled.png)
+ ButtonStyle 6 InActive (Pixmap cathode/minimize_inactive.png) Active (Pixmap cathode/minimize_active.png)
+ ButtonStyle 2 - Clear
+ ButtonStyle 4 - MwmDecorMax
+ ButtonStyle 6 - MwmDecorStick
+ ButtonStyle All -- UseTiTleStyle
+ ButtonStyle All -- Flat
+ BorderStyle -- HiddenHandles !NoInset Raised
Style * UseDecor Cathode
Style * TitleAtTop
Style * Font "Shadow=0 b bl r br r :xft:Verdana:bold:pixelsize=10:minspace=True"
Style * HandleWidth 0, BorderWidth 0
Style * MwmBorder
Style * MwmButtons
Style * MwmDecor
Style * MwmFunctions
Style * Colorset 1
Style * HilightColorset 2
Style * BorderColorset 3
Style * HilightBorderColorset 4
Style * NoButton 1, NoButton 3
###########################
## End Window Decoration ##
###########################
############
## Styles ##
############
Style * DecorateTransient
Style FvwmPager NoTitle, Sticky, WindowListSkip, CirculateSkipIcon, CirculateSkip
Style FvwmPager StaysOnBottom, HandleWidth 0, BorderWidth 0
Style FvwmIconMan Sticky, NoTitle, WindowListSkip, CirculateSkipIcon, CirculateSkip, NoHandles, BorderWidth 0, FixedPosition, FixedSize, !Iconifiable, StaysOnBottom, NeverFocus
Style Bottombar Sticky, NoTitle, WindowListSkip, CirculateSkipIcon, CirculateSkip, NoHandles, BorderWidth 0, FixedPosition, FixedSize, !Iconifiable, StaysOnBottom, NeverFocus
Style Exit NoTitle, NoHandles, BorderWidth 0
ColormapFocus FollowsFocus
Style * Font "Shadow=1 b bl r br r :xft:Verdana:bold:pixelsize=8:minspace=True"
Style * Colorset 6
Style * MWMFunctions, MWMDecor, HintOverride, DecorateTransient, NoPPosition
Style * SmartPlacement, WindowShadeSteps 20, ResizeOpaque
Style * Button 1, Button 2, Button 4, Button 6, GrabFocusOff
Style * NoIconTitle
Style * IconTitle, IconTitleColorset 60, HilightIconTitleColorset 60, IconTitleRelief 0
Style * IconFont "Shadow=0 1 SE:xft:Aquafont:size=8", IndexedIconName, IconBackgroundPadding 0
Style * IconBox 20 52 100 -15, IconFill left top, SloppyFocus, MouseFocusClickRaises
BorderStyle Active Solid black -- NoInset HiddenHandles
BorderStyle Inactive Solid black -- NoInset HiddenHandles
################
## End Styles ##
################
###########
## Pager ##
###########
DestroyModuleConfig FvwmPager: *
*Pager: Geometry 100x20
*Pager: MiniIcons
*Pager: Colorset * 51
*Pager: HilightColorset * 4
*Pager: WindowColorsets 3 4
*Pager: BalloonColorset * 60
*Pager: Font none
*Pager: SmallFont none
*Pager: Balloons All
*Pager: BalloonFont "Shadow=1 b bl r br r :xft:Verdana:bold:pixelsize=8:minspace=True"
*Pager: BalloonYOffset +2
*Pager: BalloonBorderWidth 1
*Pager: UseSkipList
*Pager: MoveThreshold 0
*Pager: SolidSeparators
*Pager: WindowBorderWidth 1
###############
## End Pager ##
###############
################
## Bottom Bar ##
################
DestroyModuleConfig Bottombar: *
*Bottombar: Geometry 200x64-0-0
*Bottombar: Columns 199
*Bottombar: Rows 26
*Bottombar: Colorset 51
*Bottombar: Frame 0
*Bottombar: (199x18+0+0, Padding 3 0, Swallow "Pager" `ModuleFvwmPager Pager * *`)
####################
## End Bottom Bar ##
####################
################
## Menu Style ##
################
MenuStyle * Hilight3DThin, PopupOffset 0 100, PopupDelay 300
MenuStyle * Font "Shadow=0 1 SE:xft:vizung:style=vizung:size=12"
MenuStyle * MenuColorset 0, HilightBack, ActiveColorset 1
MenuStyle * BorderWidth 1, TitleUnderlines1, SeparatorsLong, TrianglesSolid, Animation
MenuStyle * ItemFormat "%.2|%.5i%.5l%.5i%2.3>%2|"
####################
## End Menu Style ##
####################
##########
## Menu ##
##########
DestroyMenu MenuFvwmConfig
AddToMenu MenuFvwmConfig
+ ".:Config:." Title
+ "Edit Config" Popup MenuEdit
+ MissingSubmenuFunction WallpaperBrowser
+ "Wallpaper" Popup $[fvwm_wallpaper_path]
+ "Start FvwmModules" Popup MenuFvwmModules
+ "Stop FvwmModules" Popup MenuFvwmStopModule
+ "Configure FvwmForm" Module FvwmForm FvwmForm-Form
+ "Configure Cursor" Module FvwmForm FvwmForm-RootCursor
+ "Keyboard Settings" Module FvwmScript FvwmScript-KeyboardSetup
DestroyMenu MenuEdit
AddToMenu MenuEdit
+ "Edit Main" Exec Eterm --trans --shade 50 --buttonbar 0 --scrollbar off -g 109x56 -e vi ~/.fvwm/config
DestroyMenu MenuRoot
AddToMenu MenuRoot
+ ".:$[USER]:." Title
+ "Startup" Popup MenuStartup Applications
+ "File Utils" Popup MenuFile
+ "Terminals" Popup MenuTerm
+ "Graphics" Popup MenuGraphics
+ "Video" Popup MenuVideo
+ "Editors" Popup MenuEditors
+ "Multimedia" Popup MenuMultimedia
+ "System" Popup MenuSystem
+ "Tools" Popup MenuTools
+ "" Nop
+ "Exit Fvwm" Popup MenuQuit-Verify
DestroyMenu MenuStartup
AddToMenu MenuStartup
+ "IceWeasel" Exec iceweasel
+ "Xchat" Exec xchat-2
+ "Screen" Exec Eterm --trans --shade 50 --buttonbar 0 --borderless --scrollbar off --geometry 120x78+13
0 -e screen
+ "Screen -x" Exec Eterm --trans --shade 50 --buttonbar 0 --borderless --scrollbar off --geometry 100x77+670+0 -e screen -x
DestroyMenu MenuFile
AddToMenu MenuFile
+ "Krusader" Exec krusader
+ "Worker" Exec worker
+ "Gentoo" Exec gentoo
DestroyMenu MenuTerm
AddToMenu MenuTerm
+ "Eterm (trans)" Exec Eterm --trans --buttonbar 0 --scrollbar off
+ "Eterm (trans+shade)" Exec Eterm --trans --shade 50 --buttonbar 0 --scrollbar off
+ "Eterm (trans+shade+borderless)" Exec Eterm --trans --shade 50 --buttonbar --scrollbar off --borderless
+ "Eterm" Exec Eterm
+ "Aterm" Exec aterm
+ "xterm" Exec xterm
+ "rxvt" Exec rxvt-unicode
DestroyMenu MenuVideo
AddToMenu MenuVideo
+ "Movie Apps" Popup MenuMovies
+ "Webcam" Popup MenuCam
+ "TV" Popup MenuTV
DestroyMenu MenuMovies
AddToMenu MenuMovies
+ "Mplayer" Exec gmplayer
+ "Vlc" Exec vlc
+ "Xine" Exec xine
DestroyMenu MenuTV
AddToMenu MenuTV
+ "Video0" Title
+ "Xawtv" Exec xawtv -c /dev/video0
+ "TvTime" Exec tvtime -d /dev/video0
+ "Video1" Title
+ "Xawtv" Exec xawtv -c /dev/video1
+ "TvTime" Exec tvtime -d /dev/video1
+ "Video2" Title
+ "Xawtv" Exec xawtv -c /dev/video2
+ "TvTime" Exec tvtime -d /dev/video2
DestroyMenu MenuCam
AddToMenu MenuCam
+ "Video0" Title
+ "Gqcam" Exec gqcam -v /dev/video0
+ "Xawtv" Exec xawtv -c /dev/video0
+ "Video1" Title
+ "Gqcam" Exec gqcam -v /dev/video1
+ "Xawtv" Exec xawtv -c /dev/video1
+ "Video2" Title
+ "Gqcam" Exec gqcam -v /dev/video2
+ "Xawtv" Exec xawtv -c /dev/video2
+ "" Nop
+ "Cam Stream" Exec camstream
DestroyMenu MenuMultimedia
AddToMenu MenuMultimedia
+ MissingSubmenuFunction FuncFvwmMenuDirectory
+ "Movies" Popup $[fvwm_video_path]
+ "" Nop
+ "Audacious" Exec audacious
+ "Mplayer" Exec gmplayer
+ "k3b" Exec k3b
+ "Grip" Exec grip
+ "Nero" Exec nero
DestroyMenu MenuGraphics
AddToMenu MenuGraphics
+ "Gimp2" Exec gimp
+ "Pr0nview" Exec pornview
+ "XV" Exec xv
DestroyMenu MenuEditors
AddToMenu MenuEditors
+ "Vim" Exec Eterm --trans --shade 80 --buttonbar 0 --scrollbar off --borderless -e vi
+ "Nano" Exec Eterm --trans --shade 80 --buttonbar 0 --scrollbar off --borderless -e nano
DestroyMenu MenuSystem
AddToMenu MenuSystem
+ "Root" Exec Eterm --trans --shade 50 --buttonbar 0 --scrollbar off -e su
DestroyMenu MenuTools
AddToMenu MenuTools
+ "Vmware" Exec vmware
+ "Gtk Themes" Exec switch2
+ "DVD Tools" Popup MenuDVD
DestroyMenu MenuDVD
AddToMenu MenuDVD
+ "AcidRip" Exec acidrip
+ "k3b" Exec k3b
DestroyMenu MenuQuit-Verify
AddToMenu MenuQuit-Verify
+ "Quit Fvwm" Quit
+ "Restart Fvwm" Restart
DestroyMenu FvwmMoveMethods
AddToMenu FvwmMoveMethods
+ "Move To Page" Popup MenuPageList
DestroyMenu MenuPageList
AddToMenu MenuPageList
+ "1" Pick MoveToPage 0 0
+ "2" Pick MoveToPage 1 0
+ "3" Pick MoveToPage 2 0
+ "4" Pick MoveToPage 3 0
+ "5" Pick MoveToPage 0 4
+ "6" Pick MoveToPage 0 5
+ "7" Pick MoveToPage 0 6
+ "8" Pick MoveToPage 0 7
DestroyMenu MenuFvwmWindowOps
AddToMenu MenuFvwmWindowOps
+ "X&kill" Pick Destroy
+ "&Tile Windows" Module FvwmRearrange -tile -animate -mn 2
+ "" Nop
+ "Resize" Pick Resize
+ "Thumbnail" Pick Thumbnail
+ "Move To Page" Popup MenuPageList
DestroyMenu MenuFvwmModules
AddToMenu MenuFvwmModules
+ "Start Animation" Module FvwmAnimate
+ "Identify Window" Module FvwmIdent
+ "Start FvwmIconMan" Module FvwmIconMan
+ "Display Banner" Module FvwmBanner
+ "Start FvwmConsole" Module FvwmConsole -terminal rxvt
+ "Start FvwmPager" Module FvwmPager *
+ "Start FvwmBacker" Module FvwmBacker
+ "Scroll Window" Module FvwmScroll 50 50
+ "Start FvwmTaskBar" Module FvwmTaskBar
+ "AutoRaise Windows" Module FvwmAuto 200 Raise Nop
DestroyMenu MenuFvwmStopModule
AddToMenu MenuFvwmStopModule
+ "Close FvwmButtons" KillModule FvwmButtons
+ "Close Icon Managers" KillModule FvwmIconMan
+ "Close Pagers" KillModule FvwmPager
+ "Stop FvwmBacker" KillModule FvwmBacker
+ "Stop FvwmTaskBar" KillModule FvwmTaskBar
+ "Disable AutoRaise" KillModule FvwmAuto
##############
## End Menu ##
##############
#######################
## Wallpaper Browser ##
#######################
DestroyFunc WallpaperBrowser
AddToFunc WallpaperBrowser I PipeRead 'test ! -d "$0/.thumbs" && mkdir "$0/.thumbs"; for i in "$0/"*; do test -f "$0/.thumbs/${i##*/}" -a "${i}" -ot "$0/.thumbs/${i##*/}" || { convert -resize 32x32 "${i}" "png:$0/.thumbs/${i##*/}" 2>/dev/null || continue; }; done; fvwm-menu-directory --icon-file __PIXMAP__ --dir "$0" --exec-file "^$[fvwm_exec_path]setroot" --exec-t="^xv -wait 2 *" | sed -e "s#FuncFvwmMenuDirectory#WallpaperBrowser#g" -e "s#__PIXMAP__\\(.*\\)\\\"\\(.*/\\)\\(.*\\)\\\"#\\2.thumbs/\\3\\1\\2\\3#g"'
###########################
## End Wallpaper Browser ##
###########################
##################
### Video Script ##
###################
DestroyFunc FuncFvwmMenuDirectory
AddToFunc FuncFvwmMenuDirectory
+ I PipeRead 'case "$0" in "$[fvwm_video_path]"*) myexec="$[fvwm_video_exec]" ; esac; fvwm-menu-directory --dir "$0" --exec-t="^${myexec:-leafpad} *" --exec-file "^${myexec:-leafpad}"'
######################
## End Video Script ##
######################