# click on the desktop to get menus
OnDesktop Mouse1 :HideMenus
OnDesktop Mouse2 :WorkspaceMenu
OnDesktop Mouse3 :RootMenu
# scroll on the desktop to change workspaces
OnDesktop Mouse5 :PrevWorkspace
OnDesktop Mouse4 :NextWorkspace
# scroll on the toolbar to change workspaces
OnToolbar Mouse5 :PrevWorkspace
OnToolbar Mouse4 :NextWorkspace
# alt + left/right click to move/resize a window
OnWindow Mod1 Mouse1 :MacroCmd {Raise} {Focus} {StartMoving}
OnWindow Mod1 Mouse3 :MacroCmd {Raise} {Focus} {StartResizing NearestCorner}
# middle click a window's titlebar and drag to attach windows
OnTitlebar Mouse2 :StartTabbing
# double click on the titlebar to shade
OnTitlebar Double Mouse1 :Shade
# right click on the titlebar for a menu of options
OnTitlebar Mouse3 :WindowMenu
# alt-tab
Mod1 Tab :NextWindow {groups}
Mod1 Shift Tab :PrevWindow {groups}
# cycle through tabs in the current window
Mod4 Tab :NextTab
Mod4 Shift Tab :PrevTab
# open a terminal
Mod4 x :Exec rxvt -bg black -fg lightblue +sb
Mod4 f :Exec firefox
Mod4 e :Exec thunderbird
Mod4 t :Exec thunar
Mod4 v :Exec xterm -bg black -fg green alsamixer
Mod4 w :Exec soffice
Mod4 a :Exec audacious
Mod4 c :Exec rxvt -bg black -fg lightblue +sb -e irssi
# open a dialog to run programs
Mod4 r :Exec fbrun
# current window commands
Mod1 F4 :Close
Mod1 F9 :Minimize
Mod1 F10 :Maximize
Mod1 F11 :Fullscreen
# open the window menu
Mod1 space :WindowMenu
# exit fluxbox
Control Mod1 Delete :Exit
# change to a specific workspace
Mod4 1 :Workspace 1
Mod4 2 :Workspace 2
Mod4 3 :Workspace 3
Mod4 4 :Workspace 4
Mod4 5 :Workspace 5
Mod4 6 :Workspace 6
Mod4 7 :Workspace 7
Mod4 8 :Workspace 8
Mod4 Left :PrevWorkspace
Mod4 Right :NextWorkspace
Mod4 Up :PrevWorkspace -4
Mod4 Down :NextWorkspace 4