Skip to content

Instantly share code, notes, and snippets.

@simons-public
Last active December 29, 2018 05:46
Show Gist options
  • Save simons-public/657fcc3278f25bd10421e907bc50c3c8 to your computer and use it in GitHub Desktop.
Save simons-public/657fcc3278f25bd10421e907bc50c3c8 to your computer and use it in GitHub Desktop.
### Behavior ###
NoDefaults
NoGrabServer
NoHighlight
RestartPreviousState
DecorateTransients
RandomPlacement
#OpaqueMove
WarpCursor
Zoom 0
### Appearance ###
# Fonts
#TitleFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
#ResizeFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
#MenuFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
#IconFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*"
#IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*"
# Borders
#TitleButtonBorderWidth 0
#NoMenuShadows
#SqueezeTitle
ClientBorderWidth 0
# Colors
Color
{
BorderColor "slategrey"
DefaultBackground "rgb:2/a/9"
DefaultForeground "gray85"
TitleBackground "rgb:e7/ea/ed"
TitleForeground "rgb:0/0/0"
MenuBackground "rgb:ef/ef/ef"
MenuForeground "rgb:0/0/0"
MenuBorderColor "slategrey"
MenuTitleBackground "gray70"
MenuTitleForeground "rgb:2/a/9"
MenuBorderWidth 0
IconBackground "rgb:ef/ef/ef"
IconForeground "rgb:2d/2d/2d"
IconBorderColor "rgb:ef/ef/ef"
IconManagerBackground "rgb:ef/ef/ef"
IconManagerForeground "rgb:0/0/0"
}
# Titlebars
RightTitleButton ":delete" = f.delete
Pixmaps {
# No crosshatch pattern
TitleHighlight ":delete"
}
### Interaction ###
# Functions
MoveDelta 3
Function "move-or-lower" { f.move f.deltastop f.lower }
Function "move-or-raise" { f.move f.deltastop f.raise }
Function "move-or-iconify" { f.move f.deltastop f.iconify }
# Alt + Mouse Actions
Button1 = m : window|icon : f.function "move-or-lower"
Button2 = m : window|icon : f.iconify
Button3 = m : window|icon : f.resize
# Title Actions
Button1 = : title : f.function "move-or-raise"
Button2 = : title : f.iconify
#Button3 = : title : f.menu "WindowMenu"
# Icon Actions
Button1 = : icon : f.function "move-or-iconify"
Button2 = : icon : f.iconify
# Iconmgr Actions
Button1 = : iconmgr : f.iconify
Button2 = : iconmgr : f.iconify
### Menus ###
# Root Right Click Menu
Button3 = : root : f.menu "RightClickMenu"
menu "RightClickMenu"
{
"Applications" f.menu "Apps"
"Window Manager" f.menu "WinMgr"
}
menu "Apps"
{
"xterm" f.exec "exec xterm &"
}
menu "WinMgr"
{
"Show Icon Manager" f.showiconmgr
"" f.nop
"Kill" f.destroy
"Delete" f.delete
"" f.nop
"Restart" f.restart
"Exit" f.quit
}
# Title Menu
LeftTitleButton ":menu" = f.menu "WindowMenu"
menu "WindowMenu"
{
"Iconify" f.iconify
"Resize" f.resize
"Move" f.move
"Raise" f.raise
"Lower" f.lower
"Focus" f.focus
"Unfocus" f.unfocus
"" f.nop
"Left Zoom" f.leftzoom
"Right Zoom" f.rightzoom
"Top Zoom" f.topzoom
"Bottom Zoom" f.bottomzoom
"Tall Zoom" f.zoom
"Wide Zoom" f.horizoom
"Fullscreen" f.fullzoom
"" f.nop
"Close" f.destroy
}
### Specific Window Behavior ##
IconManagerDontShow
{
# Hide xclock from iconmanager
"xclock"
}
NoTitle
{
# Hide xclock decorations
"xclock"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment