All pastes #1265282 Raw Edit

Miscellany

public text v1 · immutable
#1265282 ·published 2008-11-23 20:08 UTC
rendered paste body
###################################################################################
# FVWM Versatile Configuration                                                    #
# Copyright (C) 2007 Jess Guerrero Botella <6thpink@terra.es>                    #
#                                                                                 #
# This program is free software; you can redistribute it and/or                   #
# modify it under the terms of the GNU General Public License                     #
# as published by the Free Software Foundation; either version 2                  #
# of the License, or (at your option) any later version.                          #
#                                                                                 #
# This program is distributed in the hope that it will be useful,                 #
# but WITHOUT ANY WARRANTY; without even the implied warranty of                  #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                   #
# GNU General Public License for more details.                                    #
#                                                                                 #
# You should have received a copy of the GNU General Public License               #
# along with this program; if not, write to the Free Software                     #
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA. #
###################################################################################

#########################
# FVWM main config file #
#########################

SetEnv debug 0
LocalePath	+:/usr/share/locale/;fvwm
LocalePath	+:$[FVWM_USERDIR]/locale/;versatile-fvwm
ModulePath	+:$[FVWM_USERDIR]/modules/
ModulePath	+:$[HOME]/libexec/fvwm/2.5.25/

# Where to search for icons
ImagePath	$[FVWM_USERDIR]/images
ImagePath	+:$[FVWM_USERDIR]/images/menu/
ImagePath +:$[FVWM_USERDIR]/decorations/
ImagePath +:$[HOME]/gallery/

# Default font if all else fails
DefaultFont -*-fixed-*-*-*-*-14-*-*-*-*-*-iso10646-1

##################
# Basic commands #
##################

DesktopSize 2x2
DesktopName 0 $[gt.Desktop]
EdgeScroll 100 100
CursorStyle root top_left_arrow
CursorStyle stroke hand2
ClickTime 150
MoveThreshold 3
OpaqueMoveSize -1
HideGeometryWindow Always
IgnoreModifiers L25
EdgeResistance $[edgeres]
EdgeThickness 1

DestroyModuleConfig FE:*
*FE: iconify "All (Iconic, CurrentPage) PlaceAgain Icon"
*FE: deiconify "All (Iconic, CurrentPage) PlaceAgain Icon"
*FE: deiconify DeThumbnail 
*FE: map FvwmCheckSizeAndMaximizeIfBigWindow
*FE: add_window FvwmCheckSizeAndMaximizeIfBigWindow
*FE: enter_window FvwmSetWindowTitle
*FE: new_page page_info

#####################
# STARTUP FUNCTIONS #
#####################

DestroyFunc StartFunction
AddToFunc StartFunction
+ I Read $[FVWM_USERDIR]/initvars.config
+ I Test (!r $[FVWM_USERDIR]/fontthemes/.fonttheme) \
	PipeRead '\\ln -sf "$[FVWM_USERDIR]/fontthemes/DejaVu 7.ft" $[FVWM_USERDIR]/fontthemes/.fonttheme'
+ I Read $[FVWM_USERDIR]/fontthemes/.fonttheme
+ I Test (!r $[FVWM_USERDIR]/panels/.panel) \
	PipeRead '\\ln -sf "$[FVWM_USERDIR]/panels/Default.config" $[FVWM_USERDIR]/panels/.panel'
+ I Read $[FVWM_USERDIR]/panels/.panel
+ I Test (!r $[FVWM_USERDIR]/colorsets/.colorset) \
	PipeRead '\\ln -sf "$[FVWM_USERDIR]/colorsets/Kde.cs" $[FVWM_USERDIR]/colorsets/.colorset'
+ I Read $[FVWM_USERDIR]/colorsets/.colorset
+ I Test (!r $[FVWM_USERDIR]/decorations/.decoration) \
	PipeRead '\\ln -sf "$[FVWM_USERDIR]/decorations/crux_kde.deco" \
		$[FVWM_USERDIR]/decorations/.decoration'
+ I Read $[FVWM_USERDIR]/decorations/.decoration
+ I Read $[FVWM_USERDIR]/functions.config
+ I Read $[FVWM_USERDIR]/bindings.config
+ I Read $[FVWM_USERDIR]/styles.config
+ I Read $[FVWM_USERDIR]/menu/menu.config
+ I Read $[FVWM_USERDIR]/menu/menu_data.config
+ I Read $[FVWM_USERDIR]/menu/menu_windowops.config
+ I All (maximized) WindowStyle !Borders, !Title, ResizeHintOverride
+ I UpdateStyles
+ I Module FvwmEvent FE
+ I Test (!r $[FVWM_USERDIR]/user_defined.config) Exec touch $[FVWM_USERDIR]/user_defined.config
+ I Read $[FVWM_USERDIR]/user_defined.config
+ I Module FvwmCommandS
+ I Test (EnvMatch slideshow 1) Schedule Periodic 3600000 1 RandomWall

DestroyFunc RestartFunction
AddToFunc   RestartFunction
+ I All (Iconic) Test (f $[FVWM_USERDIR]/tmp/icon.tmp.$[w.id].png) WindowStyle IconOverride, icon $[FVWM_USERDIR]/tmp/icon.tmp.$[w.id].png 
+ I Piperead 'pkill kxkb'
+ I Pipered 'pkill klipper'
+ I Exec 'kxkb'
+ I Exec 'klipper'
+ I Nop

DestroyFunc InitFunction
AddToFunc InitFunction
+ I RandomWall
+ I Exec amarok
+ I Exec klipper
+ I Exec kxkb

DestroyFunc ExitFunction
AddToFunc ExitFunction
+ I All (FvwmKuakeTerm) Close
+ I Test (!torestart) exec exec rm -f /dev/shm/icon.tmp.* 
+ I Test (!torestart) Piperead 'dcop amarok MainApplication-Interface quit'

################
# Some Modules #
################

# Config for the module FvwmIdent
DestroyModuleConfig FvwmIdent: *
*FvwmIdent: Colorset 8
*FvwmIdent: Font $[ThemeFont]

# Config for the module FvwmScroll
DestroyModuleConfig FvwmScroll
*FvwmScroll: Colorset 6

# Config for the module FvwmWallpaperChanger (FvwmButtons)
DestroyFunc pepe
AddToFunc pepe
+ I DestroyModuleConfig FvwmWallpaperChanger: *
+ I *FvwmWallpaperChanger: Frame 0
+ I *FvwmWallpaperChanger: Font $[ThemeTitleFont]
+ I *FvwmWallpaperChanger: Colorset 6
+ I *FvwmWallpaperChanger: ActiveColorset 5
+ I *FvwmWallpaperChanger: ButtonGeometry $[x]x$[y]
+ I *FvwmWallpaperChanger: Columns $[z]
+ I Piperead 'nice -n19 $[FVWM_USERDIR]/scripts/panel_thumbnailer.sh'
+ I Module FvwmButtons FvwmWallpaperChanger
+ I Wait FvwmWallpaperChanger
+ I All (FvwmWallpaperChanger) Module FvwmScroll
+ I UnsetEnv x
+ I UnsetEnv y
+ I UnsetEnv z






STYLES.CONFIG:

#Style * Icon xapp.png
Style * MiniIcon xapp.png
Style * IconBox screen 0 15 10 -10 -10, IconGrid 24 24, \
	IconFill left bottom, IconSize 128 96
Style * IconTitleColorset 16
Style * HilightIconTitleColorset 1
Style * IconTitleRelief 0
Style * IconFont $[ThemeHeadFont]
Style * IconBackgroundPadding 5
Style * StickyAcrossPagesIcon
Style * StickyIcon
Style * IconBackgroundRelief 0

Style * StartsOnScreen 0
Style * WindowShadeShrinks
Style * MinOverlapPlacement
Style * MouseFocusClickRaises
Style * $[focus_policy]
Style * !AllowMaximizeFixedSize
Style * FPReleaseFocus
Style * MWMBorder, FirmBorder
Style * DecorateTransient
Style * ResizeOpaque
Style * SnapGrid 1 1 
Style * SnapAttraction 8 Windows Screen
Style * EdgeMoveDelay $[edgeres]
Style * EdgeMoveResistance $[edgeres] $[edgeres]
Style * Colorset 1
Style * HilightColorset 2

Style FvwmPager FixedPosition, FixedSize, BorderWidth 0, HandleWidth 0, \
	!Title, WindowListSkip, Sticky, NeverFocus, Layer 1

Style "FvwmTaskbar" NoTitle, Sticky, !Iconifiable, \
	WindowListSkip, CirculateSkip, NeverFocus

Style "FvwmIconbar" NoTitle, Sticky, !Iconifiable, FixedSize, \
    WindowListSkip, Layer 5, BorderWidth 1, HandleWidth 0, CirculateSkip

Style "run" Sticky, !Iconifiable, FixedSize, \
	WindowListSkip, StickyAcrossPages, \
	BorderWidth 4, HandleWidth 4, NoTitle, GrabFocus, Layer 5

Style "kicker" BorderWidth 0, HandleWidth 0, !Title, Sticky, WindowListSkip, \
	FixedPosition, NeverFocus

Style "FvwmKuakeTerm" !Button 1, !Button 2, !Button 3, !Button 4, \
	!Button 5, !Button 6, !Button 7, !Button 8, !Button 9, !Button 0

Style "FvwmWallpaperChanger" StartsOnScreen 0, Layer 6, EWMHMaximizeIgnoreWorkingArea
Style "FvwmIdent"	!Button 1, !Button 4, !Button 6
Style "Plasma"			BorderWidth 0, HandleWidth 0
Style "Gmrun"			PositionPlacement Center, GrabFocus
Style "Grun"			PositionPlacement Center, GrabFocus
Style "fbrun"			PositionPlacement Center, GrabFocus
Style "xclock"			!Title, FixedSize, FixedPosition, Layer 1, WindowListSkip, Sticky
Style "xcalendar"		Sticky, !Title, FixedSize, WindowListSkip
Style "dclock"          !Title, WindowListSkip

Style "XMMS_Player"		NoTitle
Style "XMMS_Equalizer"	NoTitle
Style "EQEqualizer"		NoTitle, HandleWidth 0, BorderWidth 0
Style "CDcover"			NoTitle, HandleWidth 0, BorderWidth 0
Style "XMMS_Playlist"	NoTitle

Style "player"			NoTitle, HandleWidth 0, BorderWidth 0
Style "playlist"		NoTitle, HandleWidth 0, BorderWidth 0
Style "equalizer"		NoTitle, HandleWidth 0, BorderWidth 0

#Style "MPlayer"			NoTitle, StartsOnScreen 1, EWMHIgnoreStrutHints
Style "kaffeine"			StartsOnScreen 1
Style "MPlayer -*"		Title
Style "Equalizer"		Title
Style "FileSelect"		Title
Style "Message"			Title
Style "Preferences"		Title
Style "Playlist"		Title
Style "SkinBrowser"		Title
Style "About"			Title

Style "SDL_App"			BorderWidth 0, HandleWidth 0, NoTitle, NoHandles, EWMHIgnoreStrutHints, EWMHMaximizeIgnoreWorkingArea
Style "nwmain"			BorderWidth 0, HandleWidth 0, NoTitle, NoHandles, EWMHIgnoreStrutHints, EWMHMaximizeIgnoreWorkingArea
Style "xine*"			BorderWidth 0, HandleWidth 0, NoTitle
Style "xiTK*"			BorderWidth 0, HandleWidth 0, NoTitle
Style "fortune"			NeverFocus, WindowListSkip, Sticky, FixedPosition, NoTitle, BorderWidth 0, HandleWidth 0, Layer 1, NeverFocus
Style "yakuake"			NeverFocus, WindowListSkip, Sticky, FixedPosition, NoTitle, BorderWidth 0, HandleWidth 0, Layer 6, NeverFocus
Style "stalonetray"		NeverFocus, WindowListSkip, Sticky, FixedPosition, NoTitle, BorderWidth 0, HandleWidth 0, Layer 1
Style "gkrellm"			NeverFocus, WindowListSkip, Sticky, FixedPosition, NoTitle, BorderWidth 0, HandleWidth 0, Layer 1
Style "Gkrellm_dialog"	Layer 4
Style "wesnoth"			Layer 6, BorderWidth 0, HandleWidth 0, !Title
Style "cedega"			Layer 6, BorderWidth 0, HandleWidth 0, !Title
Style "aumix"			Layer 6, BorderWidth 3, HandleWidth 3, !Title, GrabFocus
Style "alsamixer"		Layer 6, BorderWidth 3, HandleWidth 3, !Title, GrabFocus
Style "Midnight Commander"	GrabFocus
Style "FvwmConsole"		GrabFocus
Style "gxine"			GrabFocus
Style "urxvt"			GrabFocus
Style "xterm"			GrabFocus
Style "aterm"			GrabFocus
Style "terminal"		GrabFocus
Style "Amarokapp"       StartsOnPage 0 5
Style "amarok"          Layer 6
Style "Xchat"           StartsOnPage 0 1
Style "Iceweasel"       StartsOnPage 0 0
Style "psi"             StartsOnPage 0 4