FrameTitle {
	ButtonRelease = "1" { Actions = "Raise; Focus; ActivateClient" }
	ButtonRelease = "Mod1 1" { Actions = "Focus; Raise" }
	ButtonRelease = "2" { Actions = "ActivateClient" }
	ButtonRelease = "Mod4 3" { Actions = "Close" }
	ButtonRelease = "3" { Actions = "ShowMenu Window" }
	ButtonRelease = "4" { Actions = "NextInFrame" }
	ButtonRelease = "5" { Actions = "PrevInFrame" }
	ButtonRelease = "Mod1 4" { Actions = "SendToWorkspace Next; GotoWorkspace Next" }
	ButtonRelease = "Mod1 5" { Actions = "SendToWorkspace Prev; GotoWorkspace Prev" }
	ButtonRelease = "Ctrl Mod1 1" { Actions = "Focus; Raise True" }
	DoubleClick = "2" { Actions = "Toggle Shaded" }
	DoubleClick = "1" { Actions = "MaxFill True True" }
	Motion = "1" { Threshold = "4"; Actions = "Move" }
	Motion = "Mod1 1" { Threshold = "4"; Actions = "Move" }
	Motion = "Mod4 1" { Threshold = "4"; Actions = "Move" }
	Motion = "2" { Threshold = "4"; Actions = "GroupingDrag True" }
	Motion = "Mod1 3" { Actions = "Resize" }
	Enter = "Any Any" { Actions = "Focus" }
}

OtherTitle {
	ButtonRelease = "1" { Actions = "Raise; Focus" }
	ButtonRelease = "2" { Actions = "Focus" }
	ButtonRelease = "3" { Actions = "Close" }
	ButtonRelease = "Mod4 3" { Actions = "ShowMenu Window" }
	ButtonRelease = "Mod1 4" { Actions = "SendToWorkspace Next; GotoWorkspace Next" }
	ButtonRelease = "Mod1 5" { Actions = "SendToWorkspace Prev; GotoWorkspace Prev" }
	Motion = "1" { Threshold = "4"; Actions = "Move" }
	Motion = "Mod1 1" { Threshold = "4"; Actions = "Move" }
	Motion = "Mod4 1" { Threshold = "4"; Actions = "Move" }
	Enter = "Any Any" { Actions = "Focus" }
}

Border {
	TopLeft     { Enter = "Any Any" { Actions = "Focus" }; ButtonPress = "1" { Actions = "Focus; Resize TopLeft" } }
	Top         { Enter = "Any Any" { Actions = "Focus" }; ButtonPress = "1" { Actions = "Focus; Resize Top" } }
	TopRight    { Enter = "Any Any" { Actions = "Focus" }; ButtonPress = "1" { Actions = "Focus; Resize TopRight" } }
	Left        { Enter = "Any Any" { Actions = "Focus" }; ButtonPress = "1" { Actions = "Focus; Resize Left" } }
	Right       { Enter = "Any Any" { Actions = "Focus" }; ButtonPress = "1" { Actions = "Focus; Resize Right" } }
	BottomLeft  { Enter = "Any Any" { Actions = "Focus" }; ButtonPress = "1" { Actions = "Focus; Resize BottomLeft" } }
	Bottom      { Enter = "Any Any" { Actions = "Focus" }; ButtonPress = "1" { Actions = "Focus; Resize Bottom" } }
	BottomRight { Enter = "Any Any" { Actions = "Focus" }; ButtonPress = "1" { Actions = "Focus; Resize BottomRight" } }
}

ScreenEdge {
	Down {
		Enter = "Mod4 Any" { Actions = "ViewportMoveDirection Down" }
		ButtonRelease = "3" { Actions = "ShowMenu Root" }
		ButtonRelease = "Mod4 1" { Actions = "ViewportMoveDirection Down" }
		ButtonRelease = "2" { Actions = "ShowMenu Goto" }
		ButtonRelease = "4" { Actions = "GoToWorkspace Right" }
		ButtonRelease = "5" { Actions = "GoToWorkspace Left" }
		ButtonRelease = "Mod1 4" { Actions = "GoToWorkspace Next" }
		ButtonRelease = "Mod1 5" { Actions = "GoToWorkspace Prev" }
		EnterMoving = "Mod4 Any" { Actions = "WarpToViewport Down" }
	}
	Up {
		Enter = "Mod4 Any" { Actions = "ViewportMoveDirection Up" }
		ButtonRelease = "3" { Actions = "ShowMenu Root" }
		ButtonRelease = "Mod4 1" { Actions = "ViewportMoveDirection Up" }
		ButtonRelease = "2" { Actions = "ShowMenu Goto" }
		ButtonRelease = "Mod1 4" { Actions = "GoToWorkspace Next" }
		ButtonRelease = "Mod1 5" { Actions = "GoToWorkspace Prev" }
		EnterMoving = "Mod4 Any" { Actions = "WarpToViewport Up" }
	}
	Left {
		Enter = "Mod1 Any" { Actions = "GoToWorkspace Left" }
		Enter = "Mod4 Any" { Actions = "ViewportMoveDirection Left" }
		ButtonRelease = "3" { Actions = "ShowMenu Root" }
		ButtonRelease = "Mod4 1" { Actions = "ViewportMoveDirection Left" }
		ButtonRelease = "1" { Actions = "GoToWorkspace Left" }
		DoubleClick = "1" { Actions = "GoToWorkspace Left" }
		ButtonRelease = "2" { Actions = "ShowMenu Goto" }
		ButtonRelease = "4" { Actions = "GoToWorkspace Right" }
		ButtonRelease = "5" { Actions = "GoToWorkspace Left" }
		ButtonRelease = "Mod1 4" { Actions = "GoToWorkspace Next" }
		ButtonRelease = "Mod1 5" { Actions = "GoToWorkspace Prev" }
		EnterMoving = "Mod4 Any" { Actions = "WarpToViewport Left" }
		EnterMoving = "Any Any" { Actions = "WarpToWorkspace Left" }
	}
	Right {
		Enter = "Mod1 Any" { Actions = "GoToWorkspace Right" }
		Enter = "Mod4 Any" { Actions = "ViewportMoveDirection Right" }
		ButtonRelease = "3" { Actions = "ShowMenu Root" }
		ButtonRelease = "Mod4 1" { Actions = "ViewportMoveDirection Right" }
		ButtonRelease = "1" { Actions = "GoToWorkspace Right" }
		DoubleClick = "1" { Actions = "GoToWorkspace Right" }
		ButtonRelease = "2" { Actions = "ShowMenu Goto" }
		ButtonRelease = "4" { Actions = "GoToWorkspace Right" }
		ButtonRelease = "5" { Actions = "GoToWorkspace Left" }
		ButtonRelease = "Mod1 4" { Actions = "GoToWorkspace Next" }
		ButtonRelease = "Mod1 5" { Actions = "GoToWorkspace Prev" }
		EnterMoving = "Mod4 Any" { Actions = "WarpToViewport Right" }
		EnterMoving = "Any Any" { Actions = "WarpToWorkspace Right" }
	}
}

Client {
	ButtonPress = "1" { Actions = "Focus" }
	# or ButtonPress = "1" { Actions = "Focus; Raise" } if you want windows to raise when you click on the client area.
	ButtonRelease = "Mod1 1" { Actions = "Focus; Raise" }
	ButtonRelease = "Mod4 1" { Actions = "Lower" }
	ButtonRelease = "Mod1 4" { Actions = "SendToWorkspace Next; GotoWorkspace Next" }
	ButtonRelease = "Mod1 5" { Actions = "SendToWorkspace Prev; GotoWorkspace Prev" }
	ButtonRelease = "Ctrl Mod1 1" { Actions = "Focus; Raise True" }
	Motion = "Mod1 1" { Actions = "Focus; Raise; Move" }
	Motion = "Mod4 1" { Actions = "Focus; Raise; Move" }
	Motion = "Mod1 2" { Threshold = "4"; Actions = "GroupingDrag True" }
	Motion = "Mod1 3" { Actions = "Resize" }
	Enter = "Any Any" { Actions = "Focus" }
}

Root {
	ButtonRelease = "3" { Actions = "ShowMenu Root" }
	ButtonRelease = "2" { Actions = "ShowMenu Goto" }
	ButtonRelease = "4" { Actions = "GoToWorkspace Right" }
	ButtonRelease = "5" { Actions = "GoToWorkspace Left" }
	ButtonRelease = "1" { Actions = "HideAllMenus" }
	Motion = "1" { Threshold = "10"; Actions = "ViewportMoveDrag" }
}

Menu {
	Enter = "Any Any" { Actions = "Focus" }
	Motion = "Mod1 1" { Actions = "Focus; Raise; Move" }
}

Other {
	Enter = "Any Any" { Actions = "Focus" }
	ButtonRelease = "3" { Actions = "Close" }
	Motion = "1" { Actions = "Focus; Raise; Move" }
	Motion = "Mod1 1" { Actions = "Focus; Raise; Move" }
}
