Skip to content

Instantly share code, notes, and snippets.

@mogigoma
Created November 7, 2009 18:05
Show Gist options
  • Save mogigoma/228799 to your computer and use it in GitHub Desktop.
Save mogigoma/228799 to your computer and use it in GitHub Desktop.
###############################################################################
# Environment Variables
###############################################################################
# Programs
SetEnv fvwm_terminal uxterm
SetEnv fvwm_monitor "gkrellm --geometry +1612+0"
SetEnv fvwm_web firefox
###############################################################################
# Desktop Settings
###############################################################################
# Desktops
DesktopName 0 Primary
DesktopName 1 Secondary
DesktopName 2 Tertiary
DesktopName 3 Quaternary
# Page Behaviour
DesktopSize 1x1 # 1 wide, 1 high
EdgeScroll 0 0 # Scrolls to the next page all at once
EdgeResistance 0 0 # Time delay (milliseconds) before scrolling
EdgeThickness 1 # Width of dead space between pages
# Mouse Settings
ClickTime 350 # Double-click wait
MoveThreshold 3 # Mouse sensitivity in pixels
Style * SloppyFocus, MouseFocusClickRaises
CursorStyle TITLE left_ptr
CursorStyle DEFAULT left_ptr
CursorStyle MENU left_ptr
CursorStyle ROOT left_ptr
###############################################################################
# Window Settings
###############################################################################
Colorset 0 fg #000000, bg #000000
Colorset 1 fg #FF0000, bg #FF0000
Colorset 2 fg #00FF00, bg #00FF00
Colorset 3 fg #0000FF, bg #0000FF
Colorset 4 fg #FF0000, bg #000000
Colorset 5 fg #00FF00, bg #000000
Colorset 6 fg #0000FF, bg #000000
EwmhBaseStruts 0 69 0 0 # Unmaximizable screen area
Style "*" UseDecor Matrix
Style "*" HilightColorset 5 # Active window
Style "*" Colorset 6 # Inactive window
Style "*" BorderColorset 3
Style "*" HilightBorderColorset 0
Style "gkrellm" Sticky,NoTitle,NeverFocus,BorderWidth 0,HandleWidth 0
SnapAttraction 10 SameType Screen
###############################################################################
# Mouse Focus and Behavior
###############################################################################
ClickTime 350
MoveThreshold 3
Style * SloppyFocus, MouseFocusClickRaises
###############################################################################
# Desktop Menu
###############################################################################
#####
# Menu Colorsets
###########
Colorset 7 fg #FF0000, bg #000000
Colorset 8 fg #00FF00, bg #000000
#####
# MenuStyles
###########
MenuStyle * PopupDelayed, PopupDelay 300, PopdownImmediately
MenuStyle * PopupOffset -5 100, TitleWarpOff
MenuStyle * TitleUnderlines2, SeparatorsLong, TrianglesSolid
MenuStyle * AnimationOff, AutomaticHotkeysOff
MenuStyle * BorderWidth 2
MenuStyle * PopupAsSubmenu, HoldSubmenus, SubmenusRight
MenuStyle * ItemFormat "%|%5.5i%1.3l%2.3>%|"
MenuStyle * VerticalItemSpacing 1 1, VerticalTitleSpacing 2 2
MenuStyle * MenuColorset 7
MenuStyle * ActiveFore, Hilight3DOff
MenuStyle * ActiveColorset 8
MenuStyle * Font "Shadow=2:xft:Sans:Bold:size=11:antialias=True"
#####
# FvwmRootMenu
###########
DestroyMenu FvwmRootMenu
AddToMenu FvwmRootMenu "Root Menu" Title
+ "" DestroyFunc
#####
#
# Nop FuncName
# AddToFunc FuncName
# + I (Action to happen immediately)
# + C (Action to happen on a mouse 'click)
# + D (Action to happen on a mouse 'double click')
# + H (Action to happen on a mouse 'hold')
# + M (Action to happen on a mouse 'motion')
#
###########
# Runs first on every (re)start
DestroyFunc StartFunction
AddToFunc StartFunction
+ I Exec fvwm-root $[HOME]/.fvwm/bps_green-1600x1200.png
+ I Exec $[fvwm_monitor]
# Runs after StartFunction on start
DestroyFunc InitFunction
AddToFunc InitFunction
+ I Nop
# Runs after StartFunction on restart
DestroyFunc RestartFunction
AddToFunc RestartFunction
+ I Nop
#####
# Key and Mouse Bindings
#
# Syntax:
# Key key_name Context Modifier Action
# Mouse button_name Context Modifier Action
#
# Contexts:
# A = Anywhere
# R = Root window
# I = Icon
# F = Frame corners
# S = Frame sides
# T = Title bar
# W = Application window
# # = Window buttons
#
# Modifiers:
# A = Any
# C = Control
# S = Shift
# M = Meta (ALT)
# N = Nothing
# # = X Modifiers (1 to 5, see xmodmap for details)
###########
# Ignore Numlock
IgnoreModifiers L25
# Desktop Management
Key Z A CS GoToDesk 0 0
Key X A CS GoToDesk 0 1
Key C A CS GoToDesk 0 2
Key V A CS GoToDesk 0 3
# Window Management
Mouse 1 W CM Move
Mouse 2 W CM Close
Mouse 3 W CM Maximize
Mouse 1 W CSM FvwmIdent
Mouse 3 W CSM Resize
Key Z W CM MoveToDesk 0 0
Key X W CM MoveToDesk 0 1
Key C W CM MoveToDesk 0 2
Key V W CM MoveToDesk 0 3
# FVWM Management
#Key F1 A SM xscreensaver --lock
Key F4 A SM Quit
Key F5 A SM Restart
# Applications
Key M A CM Exec $[fvwm_monitor]
Key S A CM Exec synergys
Key T A CM Exec $[fvwm_terminal]
Key W A CM Exec firefox-bin
Key Delete A CM Exec xkill
# Music
Key Space A CMS Exec mpc toggle
Key Left A CMS Exec mpc prev
Key Right A CMS Exec mpc next
Key Up A CMS Exec mpc volume +10
Key Down A CMS Exec mpc volume -10
Key Delete A CMS Exec amixer set PCM toggle
# VoIP
Key KP_Enter A CMS Exec twinkle --cmd answerbye
Key KP_0 A CMS Exec twinkle --cmd mute
Key KP_7 A CMS Exec twinkle --call david.curry@voip.nepharia.org
Key KP_8 A CMS Exec twinkle --call brad.bowles@voip.nepharia.org
#####
# FvwmIdent
###########
DestroyModuleConfig FvwmIdent: *
*FvwmIdentFore color black
#####
# Window Decor
###########
# Decor Parts:
# TitleStyle = Title
# ButtonStyle = Buttons
# BorderStyle = Borders
#
# Button Locations:
# | 13579 | TITLE | 08642 |
###########
DestroyDecor Matrix
AddToDecor Matrix
+ TitleStyle Center Height 5
+ AddButtonStyle 1 ActiveUp Pixmap $[fvwm_img]/closebuttonup.xpm -- flat
+ AddButtonStyle 1 ActiveDown Pixmap $[fvwm_img]/closebuttondown.xpm -- flat
#####
# Buttons and such
###########
DestroyDecor Default
AddToDecor Default
+ ButtonStyle Reset
+ ButtonStyle All Active (Colorset 0 -- flat) Inactive (Colorset 1 -- flat)
+ AddButtonStyle a Active Pixmap $[fvwm_img]/buttonclose.png -- flat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment