
#
# Section: Styles, colors, fonts, and related things
#
# This section defines the looks, behavior, and other attributes of windows.
# These are also quite personal.  Modify them in post.hook.
#
#
# The following sets window colors.  This is highly personal,
# of course.
#

#=====================================================  6. styles
# 6. Set the decoration styles and window options
# Order is important!!!!
# If compatible styles are set for a single window in multiple Style
# commands, then the styles are ORed together. If conflicting styles
# are set, the last one specified is used.

# These commands should command before any menus or functions are
# defined, and before the internal pager is started.

# I think I made a discovery - I asked a day ago about starting
# applications on another desk *without* having fvwm switch back and
# forth between desks when the application(s) are starting.

# When browsing the source (style.c and placement.c) I noticed a style
# called SkipMapping.  I added the SkipMapping style to the apps I
# didnt want to map when starting in my .fvwmrc and lo and behold - IT
# WORKED!

# Is the SkipMapping an - OHH I LOVE THIS - and UNDOCUMENTED feature???
# I couldnt find any ref to it in the man pages..


########################      FOCUS STUFF     ##############################
# Set windows to auto-raise after 750 milliseconds if you like it.
# Autoraise can sometimes obscure pop-up windows. Performance is now
# similar to olvwm's auto-raise feature.
#AutoRaise 750

# Normally, we'll be in focus-follows mouse mode, but uncomment this 
# for mwm-style click-to-focus
#ClickToFocus

# or, you might like SloppyFocus, which is like focus-follow (the default
# mode), but the focus won't be removed until you go into another window
Style "*" SloppyFocus


# BorderStyle
#
# This sets how the border of windows will be displayed.
# Format:  BorderStyle [state] [style] [ -- [!flag] ... ]
# State is either Active or Inactive
# The commands below set the borders to solid colors
# NoInset HiddenHandles
#BorderStyle -- Flat, Noinset
BorderStyle Active -- Raised
BorderStyle Inactive -- Sunk

# Style * TitleAtRight
# Style * RightTitleRotatedCCW    # CCW = counter-clock-wise, default: CW
# Style * !UseTitleDecorRotation  # don't rotate titlebar pixmaps/gradients

# this is used for non-selected windows, menus, and the panner
##Style "*"          	    IconBox -240 540 -1 675
Style "*"            	    IconBox -160 800 -1 1000
Style "Emacs"        	    IconBox -160 400 -1 795
Style "XTerm"        	    IconBox -160 180 -1 395

Style *                        IconTitleRelief 0
Style *                        IconBackgroundRelief 0
Style *                        IconBackgroundPadding 0
Style *                        IndexedIconName

Style "*"            	    BorderWidth 5, HandleWidth 5
Style "*"            	    Icon unknown1.xpm
Style *                     ResizeOpaque

########################      WINDOW PLACEMENT     #######################
# RandomPlacement prevents user interaction while placing windows:
# RandomPlacement

# SmartPlacement makes new windows pop-up in blank regions of screen 
# if possible, or falls back to random or interactive placement.
#Style "*"            	    RandomPlacement, SmartPlacement, CleverPlacement
Style "*"            	    MinOverlapPercentPlacement


Style *  WindowShadeSteps 20, ResizeOpaque

Style FvwmButtons ParentalRelativity
Style Fvwm* ParentalRelativity

# With SmartPlacement, windows will normally place themselves over icons. 
# Uncomment this to change that.
#! StubbornPlacement

# NoPPosition instructs fvwm to ignore the PPosition field in window 
# geometry hints. Emacs annoyingly sets PPosition to (0,0)!
Style "*" NoPPosition

########################      DECORATIONS     #######################
# If you want decorated transient windows, uncomment this:
Style "*"            	    DecorateTransient


########################      MWM EMULATION     #######################
#
# My feeling is that everyone should use MWMDecorHints and MWMFunctionHints,
# since some applications depend on having the window manager respect them

# MWMFunction hints parses the function information in the MOTIF_WM_HINTS
# property, and prohibits use of these functions on the window. Appropriate
# portions of the window decorations are removed.
Style "*" MWMFunctions

# MWM is kinda picky about what can be done to transients, and it was keeping
# me from iconifying some windows that I like to iconify, so here's an
# over-ride that will allow me to do the operation, even tough the menu
# item is shaded out.
Style "*" HintOverride

# MWMDecor hints parses the decoration information in the MOTIF_WM_HINTS
# property, and removes these decoratons from the window. This does not affect
# the functions that can be performed via the menus.
Style "*" MWMDecor

# These are affect minor aspects for the look-and-feel.
# Sub-menus placement mwm-style?
#MWMMenus
# mwm-style border reliefs (less deep than default fvwm) ?
Style "*" MWMBorder
# Maximize button does mwm-inversion thingy
Style "*" MWMButtons
######################################################################


# Leave a band on the right alone?
#EwmhBaseStruts 0 0 0 25
#EWMHPlacementUseWorkingArea ?

# I want to lower the main window but leave the small status window visible
Style * !LowerTransient, RaiseTransient, !StackTransientParent


######
# Menu Settings.
#
#   * PopupOffset allows you to control where submenus will appear, and
#       whether they should overlap or not.
#   * This menu uses a translucent Colorset
#   * The Menu will look flat, with a 2 pixel border.
#   * I changed the default ItemFormat to be a little more spacious.
MenuStyle * MenuFace
MenuStyle * ActiveFore, HilightBack
MenuStyle "*" PopupDelayed, PopupDelay 100, PopdownDelayed, PopdownDelay 200
MenuStyle * Hilight3DThin, PopupOffset 0 100
MenuStyle * PopupActiveArea 100
MenuStyle * BorderWidth 2, TitleUnderlines1, SeparatorsLong, TrianglesSolid, Animation
MenuStyle * ItemFormat "%.2|%.5i%.5l%.5i%2.3>%2|"
MenuStyle * AutomaticHotKeys


#####
# Application specific Style settings
#
# You might be interested in the IconOverride style, which will allow you to specify
# an Icon for an application even if it has set its own previously, This can be very
# useful for applications that insist on setting their own icons even if it doesnt
# fit in with your theme :)
#
# You can change most settings for specific applications, based on Name,
# Class or Resource. you can also use wildcards, eg Style "Fvwm*" NoTitle.
#################

Style "Fvwm*"        NoTitle,NoHandles,Sticky,CirculateSkip
Style "Fvwm*"        BorderWidth 0, WindowListSkip
Style  FvwmCo*       Slippery
Style  FvwmIdent*    Layer 6, WindowListHit ,NoButton 1,NoButton 2, NoButton 4, Title

#Style  FvwmPager*    Layer 6 , NoButton 1 , NoButton 2 , TitleAtRight
Style "FvwmPager"   WindowListSkip, BorderWidth 0, HandleWidth 0, ParentalRelativity, TitleAtRight

Style "FvwmBanner"       StaysOnTop, FocusFollowsMouse, NoTitle,  Sticky, WindowListSkip
Style "FvwmButtons"      BorderWidth 5
Style "FvwmButtons"      WindowListSkip,MouseFocus,NoTitle,Sticky
Style "FvwmButtonsPanel" NoTitle, FocusFollowsMouse, NoTitle,  Sticky, WindowListSkip
Style  FvwmButton*       NoButton 1 , NoButton 2 , TitleAtRight
Style FvwmTabs           Title

Style FvwmButtons NeverFocus
Style fvwm_menu ParentalRelativity

Style FvwmShelf   NoTitle, StaysOnBottom, Sticky, WindowListSkip, CirculateSkipIcon, CirculateSkip
Style FvwmShelf   HandleWidth 2, NeverFocus
Style DeskControl NoTitle, NeverFocus, CirculateSkip, WindowListSkip, Sticky, StaysOnTop, Layer 7
Style FvwmBar     NoTitle, WindowListSkip, CirculateSkip, Sticky, BorderWidth 1, NoHandles, StaysOnBottom
Style FvwmBar     NeverFocus


Style OpenOffice* GNOMEIgnoreHints
Style OpenOffice* EWMHIgnoreStackingOrderHints
Style OpenOffice* EWMHIgnoreStateHints
Style OpenOffice* EWMHIgnoreStrutHints
Style OpenOffice* NoPPosition
Style OpenOffice* NoUsposition 
Style OpenOffice* FixedPPosition

Style  "Xwall"       	    NoIcon
Style "*BBDB*"       	    NoIcon
Style "*Calendar*"   	    NoIcon
Style "*Compilation*"	    NoIcon
Style "*Fancy Diary*"	    NoIcon
Style "*Help*"       	    NoIcon
Style "*Holidays*"   	    NoIcon
Style "*PostScript File"        NoTitle
Style "*TeX Shell*"  	    NoIcon
Style "*compilation*"	    NoIcon
Style "*grep*"       	    NoIcon
Style "*lock"        	    CirculateSkip
Style "*lock"        	    NoTitle, NoHandles, Sticky, WindowListSkip
Style "*x-face*"     	    NoTitle,NoHandles,WindowListSkip
Style "*xfaces*"     	    NoTitle,NoHandles,WindowListSkip
Style "*xbiff"       	    CirculateSkip
Style "*xbiff"       	    NoTitle,NoHandles,Sticky,WindowListSkip
Style "-(Tek)"       	    NoIcon
Style "Appointment"  	    NoButton 2, NoButton 4
Style "Dali Clock"   	    NoTitle,Sticky,WindowListSkip,NoIcon,CirculateSkip
Style "FRAMEPOP"     	    NoTitle,Sticky,WindowListSkip,CirculateSkip

Style "FvwmButtons"  	    Sticky, NoTitle,NoHandles,CirculateSkip
Style "Garbage"      	    Title, Handles
Style "Help On PostScript"  NoTitle,NoIcon
Style "Information"         NoTitle
Style "Load Averages"       NoTitle,Sticky,WindowListSkip,CirculateSkip
Style "Message"             NoTitle
Style "Work1"               Sticky
Style "XClock"              NoTitle
Style "XPbiff"              NoTitle
Style "dctrl"               NoIcon
Style "Dctrl"               NoIcon
Style kcalc                 NoFuncHint, NoDecorHint
Style "pgp-pixie"           NoTitle
Style "popup"               NoTitle
Style "sunclock"            NoTitle,Sticky,WindowListSkip
Style "window info"         NoTitle
Style "wmbattery"           NoTitle,Sticky,WindowListSkip,CirculateSkip
Style "work1"               Sticky
Style "xcb"                 Sticky,WindowListSkip,CirculateSkip
Style "xcd"                 NoTitle
Style "xchat"	            Sticky
Style "xclock"              NoTitle,Sticky,WindowListSkip
Style "xconsole"	          Sticky,WindowListSkip,CirculateSkip
Style "xload"               NoTitle,Sticky,WindowListSkip,NoIcon
Style "xmoondial"           NoTitle
Style "xmultibiff"          CirculateSkip
Style "xmultibiff"          NoTitle,Sticky,StaysOnTop,WindowListSkip
Style "xbuffy"              CirculateSkip
Style "xbuffy"              NoTitle,Sticky,StaysOnTop,WindowListSkip
Style "xticktalk"           NoTitle,Sticky,WindowListSkip,CirculateSkip
Style "gkrellm"             Sticky, WindowListSkip,CirculateSkip, StaysOnBottom, NeverFocus

Style XMMS* BorderWidth 0,Icon,GNOMEIgnoreHints
Style XMMS* Sticky,NoTitle,StaysOnTop,NoHandles
Style xmms          UseUSPosition, UsePPosition
Style XTerm       MiniIcon computer_x11.png
Style Eterm       MiniIcon computer_x11.png
Style Emacs       TitleAtLeft, LeftTitleRotatedCCW
Style xcalc       ClickToFocus
Style xman        ClickToFocus, MiniIcon book_help_paper.png
Style xmag        ClickToFocus, MiniIcon document_database_view.png
Style Gkrellm2    Sticky, WindowListSkip, StaysOnBottom, NeverFocus
Style opera       EWMHMiniIconOverride, MiniIcon opera.png
Style XVroot      GrabFocus
Style gmrun       MiniIcon gears.png, NoFuncHint, NoDecorHint
Style FvwmIdent   MiniIcon label_tag_version.png
Style Calculator  MiniIcon calculator.png
Style gcalctool   EWMHMiniIconOverride,MiniIcon calculator.png
Style beep-media-player MiniIcon audio_horn.png, UsePPosition
Style xmessage    MiniIcon person_face_talking.png
Style xchat-2     !FPFocusByProgram, NoFuncHint, NoDecorHint
Style aterm       WindowShadeShrinks
Style rxvt        WindowShadeShrinks
Style Mulberry    MiniIcon mail.png
Style Message     MiniIcon person_face_talking.png
Style VMware      MiniIcon hardware_computers.png
Style SDL_App     EWMHMiniIconOverride, MiniIcon games_jesters-cap.png
Style XDosEmu     EWMHMiniIconOverride, MiniIcon games_jesters-cap.png
Style FvwmScript-Quit MiniIcon plug.png
Style pan         !FPFocusByProgram
Style nautilus    EWMHMiniIconOverride, MiniIcon floppy_disk.png
Style abiword     EWMHMiniIconOverride, MiniIcon document_letter_word-processor.png
Style grip        EWMHMiniIconOverride, MiniIcon hardware_audio_cd.png
Style xv          MiniIcon graphics_woman_panel.png
Style xwrits      NoDecorHint, NoFuncHint
Style gvim        EWMHMiniIconOverride, MiniIcon gvim.png
Style Firefox-bin EWMHMiniIconOVerride, MiniIcon firefox.png
Style HiddenConsole Sticky, WindowListSkip, Notitle, StaysOnTop, NoHandles
Style HiddenConsole WindowShadeSteps 100, ResizeHintOverride
Style gaim        EWMHMiniIconOverride, MiniIcon instant-messenger.png
Style Ddd         MiniIcon audio_waveform_view.png
Style Eboard      MiniIcon games_chess.png
Style gimp        EWMHMiniIconOverride, MiniIcon graphics_paint_edit.png
Style gimp-2.0    EWMHMiniIconOverride, MiniIcon graphics_paint_edit.png
Style findtextdialog NoFuncHint, NoDecorHint
Style fvwm_menu   MiniIcon gears.png, NoButton 4


Style "login" HilightFore White 
Style "login" HilightBack #9a5a9187d9da


# FlickeringMoveWorkaround disables ConfigureNotify events that
# are usually sent to an application while it is moved. If some
# windows flicker annoyingly while being moved, this option may
# help you. Note that if this problem occurs it is not an fvwm
# bug, it is a problem of the application.

BugOpts FlickeringMoveWorkaround True


# TitleStyle RightJustified


TitleStyle            Inactive Colorset 51 -- flat
AddTitleStyle         Inactive Colorset 52 50     # alpha == 60% here

ButtonStyle    All AllInactive Colorset 51 -- flat
AddButtonStyle All AllInactive Colorset 52 50


ButtonStyle    All AllInactive -- !UseTitleStyle flat
TitleStyle              Active Colorset 52 -- raised

ButtonStyle    All   AllActive --  UseTitleStyle raised


BorderStyle                   -- UseTitleStyle


AddToDecor login
#+ TitleStyle TiledPixmap purple-marble.xpm
#+ TitleStyle Inactive TiledPixmap teal.xpm
#+ BorderStyle Active TiledPixmap purple-marble.xpm
#+ BorderStyle Inactive TiledPixmap teal.xpm
+ ButtonStyle 1 5 25x75@0 75x75@0 75x25@0 25x25@1 25x75@1
+ ButtonStyle 3 5 25x60@0 75x60@0 75x40@0 25x40@1 25x60@1
+ ButtonStyle 4 5 50x20@1 20x45@1 50x80@1 80x45@0 50x20@0
+ ButtonStyle 2 4 50x65@1 35x35@1 65x35@1 50x65@0
+ AddButtonStyle All -- UseTitleStyle
+ TitleStyle RightJustified

Style XTerm StickyIcon
Style "xterm" HilightFore Black 
#Style "xterm" HilightFore #99ffaa 
Style "xterm" HilightBack #9a5a9187d9da

AddToDecor xterm
#+ TitleStyle TiledPixmap purple-marble.xpm
#+ TitleStyle Inactive TiledPixmap grey-marble.xpm.xpm
#+ BorderStyle Active TiledPixmap purple-marble.xpm
#+ BorderStyle Inactive TiledPixmap grey-marble.xpm.xpm
+ ButtonStyle 1 5 25x75@0 75x75@0 75x25@0 25x25@1 25x75@1
+ ButtonStyle 3 5 25x60@0 75x60@0 75x40@0 25x40@1 25x60@1
+ ButtonStyle 4 5 50x20@1 20x45@1 50x80@1 80x45@0 50x20@0
+ ButtonStyle 2 4 50x65@1 35x35@1 65x35@1 50x65@0
+ AddButtonStyle All -- UseTitleStyle
+ TitleStyle RightJustified


# Default
#TitleStyle ActiveUp TiledPixmap purple-marble.xpm
#TitleStyle ActiveDown TiledPixmap purple-marble.xpm
#BorderStyle Active TiledPixmap purple-marble.xpm
DestroyDecor recreate DecorBase
AddToDecor DecorBase
+       TitleStyle      Centered
