- # ~nstickney/.fvwm/config [elisha]
- # Designed for 13.3" (1280x800), Arch Linux
- #
- # "frustra fit per plura quod potest fieri per pauciora"
- # ~William of Ockham
- #
- # CONTENTS:
- # Global Settings
- # Colorsets
- # Window Decor and Styles
- # -Application Specific Configuration
- # Modules:
- # -FvwmPager
- # -FvwmEvent
- # -FvwmIdent
- # Bindings
- # -Mouse On Desktop
- # -Window Buttons
- # -Icons
- # -Keyboard
- # -Music Controls
- # Menus
- # Functions
- #
- # THOMAS ADAM'S RECOMMENDED LAYOUT:
- # SetEnv (Ugh!)
- # Colorsets
- # Style lines
- # Bindings
- # Functions
- #########################
- ### GLOBAL STUFF ###
- #########################
- DesktopSize 2x2
- EdgeScroll 100 100
- EdgeResistance 0 0
- EdgeThickness 1 1
- Clicktime 100
- MoveThreshold 3
- EwmhBaseStruts 210 5 5 5
- IgnoreModifiers L25
- OpaqueMoveSize -1
- HideGeometryWindow Always
- CursorStyle root top_left_arrow
- DefaultFont "xft:DejaVu Sans Mono:size=09:antialias=True"
- Style * IconBox 200x240+5+161, IconGrid 1 1
- #########################
- ### COLORSETS ###
- #########################
- # 0 = Default colors
- # 1 = Inactive windows
- # 2 = Active windows
- # 3 = Inactive menu entry and menu
- # 4 = Active menu entry
- # 5 = greyed out menu entry (only bg used)
- # 6 = module foreground and background
- # 7 = hilight colors
- Colorset 0 RootTransparent buffer, Tint #331100 50, fg #999999
- Colorset 1 RootTransparent buffer, Tint #331100 70, fg #999999
- Colorset 2 RootTransparent buffer, Tint #331100 90, fg #EEEEEE
- Colorset 3 RootTransparent buffer, Tint #331100 80, fg #999999
- Colorset 4 fg #EEEEEE
- #Colorset 5 RootTransparent buffer, Tint #111111 80
- #########################
- ### WINDOW DECOR ###
- #########################
- DestroyDecor DefaultDecor
- AddToDecor DefaultDecor
- + BorderStyle Active Colorset 2 -- Flat
- + BorderStyle Inactive Colorset 1 -- Flat
- + ButtonStyle All ActiveUp Colorset 2 -- Flat
- + ButtonStyle All ActiveDown Colorset 2 -- Flat
- + ButtonStyle All Inactive Colorset 1 -- Flat
- + TitleStyle RightJustified Height 23 -- Flat
- + TitleStyle Active Colorset 2 -- Flat
- + TitleStyle Inactive Colorset 1 -- Flat
- + AddButtonStyle 2 ActiveUp Vector 7 40x45@1 45x40@1 55x40@1 60x50@4 50x60@1 50x75@4 50x75@1 -- Flat
- + AddButtonStyle 2 Active Vector 9 40x40@3 45x35@3 55x35@3 60x40@3 60x45@3 50x50@3 50x55@3 50x65@4 50x65@3 -- Flat
- + AddButtonStyle 2 Active MiniIcon -- Flat
- + AddButtonStyle 2 InActive MiniIcon -- Flat
- + AddButtonStyle 1 ActiveUp Vector 4 30x35@1 70x75@1 70x35@4 30x75@1 -- Flat
- + AddButtonStyle 1 Active Vector 4 30x30@3 70x70@3 70x30@4 30x70@3 -- Flat
- + AddButtonStyle 3 ActiveUp Vector 7 30x35@1 30x75@4 70x75@1 70x35@4 30x35@1 30x40@4 70x40@1 -- Flat
- + AddButtonStyle 3 Active Vector 7 30x30@3 30x70@3 70x70@3 70x30@3 30x30@3 30x35@3 70x35@3 -- Flat
- + AddButtonStyle 5 ActiveUp Vector 4 30x65@1 70x65@1 70x55@4 30x55@1 -- Flat
- + AddButtonStyle 5 Active Vector 5 30x60@3 70x60@3 70x50@3 30x50@3 30x60@3 -- Flat
- Style * UseDecor DefaultDecor
- Style * TitleAtLeft
- Style * Colorset 1, HilightColorset 2
- Style * BorderColorset 1, HilightBorderColorset 2
- Style * BorderWidth 2, HandleWidth 2
- Style * WindowShadeScrolls, WindowShadeSteps 25
- Style * IconTitleColorset 1, HilightIconTitleColorset 2, IconTitleRelief 1
- Style * IconBackgroundColorset 1, IconBackgroundRelief 1
- Style * SloppyFocus, MouseFocusClickRaises
- Style * DecorateTransient, StackTransientParent
- Style * DontLowerTransient, DontRaiseTransient
- Style * GrabFocusOff, GrabFocusTransientOff
- ### APP SPECIFIC CONF ###
- Style "Buddy List" !Title, Sticky, WindowListSkip, CirculateSkip
- Style "QuakeTerm" !Title, Sticky, WindowListSkip, CirculateSkip, PositionPlacement +210p +0p
- Style "Quick Search Box" !Title, !Borders, !Handles, WindowListSkip, CirculateSkip
- Style "stalonetray" !Title, !Borders, !Handles, Sticky, WindowListSkip, CirculateSkip
- Style "Conky" !Title, !Borders, !Handles, Sticky, WindowListSkip, CirculateSkip
- Style "nstickney - Skype*" !Title, Sticky, WindowListSkip, CirculateSkip
- #########################
- ### MODULES ###
- #########################
- ### PAGER MODULE ###
- DestroyModuleConfig FvwmPager: *
- *FvwmPager: Geometry 200x125+5+5
- *FvwmPager: Colorset 0
- *FvwmPager: Colorset * 1
- *FvwmPager: HilightColorset * 2
- *FvwmPager: WindowColorsets 1 2
- *FvwmPager: BalloonColorset * 1
- *FvwmPager: SloppyFocus
- *FvwmPager: MiniIcons
- *FvwmPager: UseSkipList
- *FvwmPager: Font none
- *FvwmPager: WindowBorderWidth 1
- *FvwmPager: NoSeparators
- *FvwmPager: Balloons All
- *FvwmPager: BalloonYOffset +1
- *FvwmPager: BalloonBorderWidth 0
- Style FvwmPager NoTitle, !Handles, !Borders, Sticky, NeverFocus
- Style FvwmPager WindowListSkip, CirculateSkip, !Iconifiable
- ### EVENT MODULE ###
- DestroyModuleConfig FvwmEvent: *
- *FvwmEvent: add_window SetFocusTrans
- *FvwmEvent: leave_window SetUnfocusTrans
- *FvwmEvent: enter_window SetFocusTrans
- *FvwmEvent: deiconify DeThumbnail
- *FvwmEvent: deiconify RearrangeThumbs
- ### IDENT MODULE ###
- DestroyModuleConfig FvwmIdent: *
- *FvwmIdent: Colorset 0
- #########################
- ### BINDINGS ###
- #########################
- ### Mouse on Desktop ###
- Mouse 1 R A Menu LeftMenu
- Mouse 1 R C Menu RightMenu
- Mouse 1 R M Menu CenterMenu
- Mouse 2 R A Menu CenterMenu
- Mouse 3 R A Menu RightMenu
- ### Window Buttons ###
- Mouse 1 2 A FvwmIdentOrClose
- Mouse 3 2 A Menu WindowMenu
- Mouse 1 T A MoveOrRaise
- Mouse 2 T A LeftMaximize
- Mouse 3 T A RightMaximize
- Mouse 1 5 A Thumbnail
- Mouse 2 5 A WindowShade
- Mouse 3 5 A Stick
- Mouse 1 3 A Maximize 100 100
- Mouse 2 3 A Maximize 0 100
- Mouse 3 3 A Maximize 100 0
- Mouse 1 1 A DeleteOrDestroy
- ### Icons ###
- Mouse 2 I A Menu WindowMenu
- Mouse 3 I A Iconify
- ### Keyboard ###
- Key Super_L A A QuakeTerm
- Key Super_R A A QuakeChat
- Key Space A M QuakeChat
- Key Super_L A M Menu LeftMenu
- Key Super_R A M Menu CenterMenu
- Key Menu A M Menu RightMenu
- Key Tab A M WindowList NoGeometry, NoDeskNum, NoCurrentDeskTitle
- Key L A M Lock
- Key Print A A DesktopShot
- Key Print A M WindowShot
- ### Music Controls ###
- Key XF86AudioNext A A Exec exec mpc next
- Key XF86AudioPrev A A Exec exec mpc prev
- Key XF86AudioPlay A A Exec exec mpc toggle
- Key XF86AudioRaiseVolume A A Exec exec amixer -c 0 set Master 2+
- Key XF86AudioLowerVolume A A Exec exec amixer -c 0 set Master 2-
- Key XF86AudioMute A A Exec exec amixer -c 0 set Master toggle
- #########################
- ### MENUS ###
- #########################
- MenuStyle * PopupDelay 50, PopdownImmediately
- MenuStyle * PopupOffset 1 80
- MenuStyle * BorderWidth 1
- MenuStyle * Hilight3DThin
- MenuStyle * PopupAsSubmenu, HoldSubmenus, SubmenusRight
- MenuStyle * VerticalItemSpacing 3 3
- MenuStyle * MenuColorset 3
- MenuStyle * ActiveColorset 4
- MenuStyle * ActiveFore
- ## Read in menus from separate file
- Read /home/nstickney/Dropbox/Config/menus.fvwm
- #########################
- ### FUNCTIONS ###
- #########################
- DestroyFunc UrgencyFunc
- DestroyFunc StartFunction
- AddToFunc StartFunction
- # Set the background
- + I Exec exec fvwm-root --retain-pixmap ~/Pictures/Backgrounds/current.png
- # Turn on powersave mode
- + I Exec exec xset +dpms
- # Start the pager and Event module
- + I Module FvwmPager
- + I Module FvwmEvent
- # Get rid of Adobe Flash cookies
- + I Exec exec rm -rf ~/.macromedia/Flash_Player/#SharedObjects/*
- # Start the composite manager
- + I Exec exec xcompmgr -cC
- # Remove any leftover thumbnail icons
- + I Test (init) Exec exec rm -rf /tmp/*.png
- # Start the "Kuake" terminal
- + I Test (init) QuakeURXVT
- # Start a bunch of stuff I use
- + I Test (init) Exec exec mpdscribble
- + I Test (init) Exec exec conky
- + I Test (init) Exec exec stalonetray --dockapp-mode
- + I Test (init) Exec exec pidgin
- + I Test (init) Exec exec skype
- + I Test (init) Exec exec dropboxd
- + I Test (init) Exec exec keepassx
- + I Test (init) Exec exec transmission-gtk
- # Fix stuff on restart
- + I Test (restart) All (Iconic) ReThumbnail
- + I Test (restart) All ("QuakeTerm" Shaded) WindowShade N
- + I Test (restart) All ("Buddy List" Shaded) WindowShade E
- + I Test (restart) All ("* - Skype*" Shaded) WindowShade E
- + I Test (restart) All SetUnfocusTrans
- + I All (QuakeURXVT) Move +210p +0p
- DestroyFunc LeftMaximize
- AddToFunc LeftMaximize
- + C Raise
- + C ThisWindow (Maximized) Maximize
- + C Maximize 75 100
- DestroyFunc RightMaximize
- AddToFunc RightMaximize
- + C Raise
- + C ThisWindow (Maximized) Maximize
- + C Maximize 75 100
- + C ThisWindow (Maximized) Move -+5p +5p
- DestroyFunc MoveOrRaise
- AddToFunc MoveOrRaise
- + C Raise
- + M MovePretty
- DestroyFunc MovePretty
- AddToFunc MovePretty
- + I SetUnfocusTrans
- + I Move
- + I SetFocusTrans
- DestroyFunc FvwmIdentOrClose
- AddToFunc FvwmIdentOrClose
- + C FvwmIdent
- + D Delete
- SetEnv fvwm_icon_size 96
- DestroyFunc Thumbnail
- AddToFunc Thumbnail
- + I Raise
- + I ThisWindow (!Shaded, Iconifiable, !Iconic) PipeRead \
- "~/bin/thumb $[w.id] $[fvwm_icon_size] /tmp/icon.tmp.$[w.id].png \
- && echo WindowStyle IconOverride, Icon /tmp/icon.tmp.$[w.id].png"
- + I Iconify
- DestroyFunc DeThumbnail
- AddToFunc DeThumbnail
- + I Exec exec rm -rf /tmp/icon.tmp.$[w.id].png
- DestroyFunc ReThumbnail
- AddToFunc ReThumbnail
- + I Iconify
- + I Thumbnail
- DestroyFunc RearrangeThumbs
- AddToFunc RearrangeThumbs
- + I All (CurrentPage, Iconic) PlaceAgain Icon
- DestroyFunc SetUnfocusTrans
- AddToFunc SetUnfocusTrans
- + I ThisWindow (!URxvt) SetUnfocusTrans2
- DestroyFunc SetUnfocusTrans2
- AddToFunc SetUnfocusTrans2
- + I Exec exec transset-df --dec .5 -m .72 -i $[w.id]
- DestroyFunc SetFocusTrans
- AddToFunc SetFocusTrans
- + I Exec exec transset-df --inc .5 -x .97 -i $[w.id]
- DestroyFunc QuakeTerm
- AddToFunc QuakeTerm
- + I All ("QuakeTerm") WindowShade N
- + I All ("QuakeTerm" !Shaded) Raise
- DestroyFunc QuakeChat
- AddToFunc QuakeChat
- + I All ("Buddy List") WindowShade E
- + I All ("nstickney - Skype*") WindowShade E
- + I All ("Buddy List" !Shaded) Raise
- + I All ("nstickney - Skype*" !Shaded) Raise
- DestroyFunc Lock
- AddToFunc Lock
- + I Exec exec xlock
- DestroyFunc DeleteOrDestroy
- AddToFunc DeleteOrDestroy
- + C Delete
- + D Destroy
- DestroyFunc QuakeURXVT
- AddToFunc QuakeURXVT
- + I Exec exec urxvt -geometry 107x25+210+0 -name QuakeTerm
- + I Wait QuakeTerm
- + I All ("QuakeTerm") Move +210p +0p
- + I QuakeTerm
- DestroyFunc DesktopShot
- AddtoFunc DesktopShot
- + I Exec exec scrot -d 5 ~/Pictures/Screenshots/`uname -n`-`date +%R.%d%b%Y`.png
- DestroyFunc WindowShot
- AddToFunc WindowShot
- + I ThisWindow Exec exec ~/bin/screenshot $[w.id] $[w.width] ~/Pictures/Screenshots/$[w.name]-`date +%R.%d%b%Y`.png