
#
# DESCRIPTION FILE FOR vtwm - $(HOME)/vtwm/vtwmrc-binds
#
# PRE-PROCESSED BY vtwm-5.4.6 USING m4
# 

#
# Functions and Bindings
#

Function "VTWM Profile"
{
	f.exec "startxclients &"
}

Function "move-or-raise"
{
# These two set up a click-to-type focus policy
# (omitting the first allows it to be "togglable")...
#	f.unfocus
#	f.focus
	f.move
	f.deltastop
	f.raise
}

Function "move-or-iconify"
{
	f.move
	f.deltastop
	f.iconify
}

# This is for warping to the iconified...
Function "deiconify-or-warp"
{
	f.deiconify
	f.warp
}

Button1 = : root : f.version
Button3 = : root : f.menu "XWindowsMenu"

Button1 = : title : f.function "move-or-raise"
Button2 = : title : f.resize
Button3 = : title : f.lower

Button1 = : frame : f.function "move-or-raise"
Button2 = : frame : f.resize
Button3 = : frame : f.iconify

Button1 = : icon : f.function "move-or-iconify"
Button3 = : icon : f.menu "ArrangeMenu"

Button1 = : iconmgr : f.iconify
Button3 = : iconmgr : f.function "deiconify-or-warp"

Button1 = : door : f.enterdoor
Button2 = : door : f.namedoor
Button3 = : door : f.deletedoor

Button1 = : virtual | desktop : f.movescreen
#Button2 = : virtual | desktop : f.function "decorate-virtual"
Button2 = : desktop : f.resize
#Button3 = : virtual | desktop : f.function "clear-virtual"
Button3 = : desktop : f.lower

"Up" = : iconmgr : f.backiconmgr
"Down" = : iconmgr : f.forwiconmgr
"Return" = : iconmgr : f.function "deiconify-or-warp"
"BackSpace" = : iconmgr : f.iconify

"Return" = : door : f.enterdoor

"Up" = : virtual | desktop : f.panup "100"
"Down" = : virtual | desktop : f.pandown "100"
"Left" = : virtual | desktop : f.panleft "100"
"Right" = : virtual | desktop : f.panright "100"

"Alt_L" = c : all : f.warpring "prev"
"Control_R" = m : all : f.warpring "prev"
"Control_L" = m : all : f.warpring "next"
"Alt_R" = c : all : f.warpring "next"

"Shift_L" = c : all : f.warpclassprev ""
"Shift_R" = c : all : f.warpclassprev ""
"Control_L" = s : all : f.warpclassnext ""
"Control_R" = s : all : f.warpclassnext ""

"Shift_L" = m : all : f.warptoiconmgr ""
"Shift_R" = m : all : f.warptoiconmgr ""
"Alt_L" = s : all : f.warptoiconmgr ""
"Alt_R" = s : all : f.warptoiconmgr ""

