!mouse actions added by fluxbox-update_configs
OnTitlebar Mouse1 :MacroCmd {Focus} {Raise} {ActivateTab}
OnTitlebar Move1 :StartMoving
OnLeftGrip Move1 :StartResizing bottomleft
OnRightGrip Move1 :StartResizing bottomright
OnWindowBorder Move1 :StartMoving
OnTitlebar Mouse2 :StartTabbing
OnTitlebar Double Mouse1 :Shade
OnTitlebar Mouse3 :WindowMenu
OnWindow Mod1 Mouse1 :MacroCmd {Raise} {Focus} {StartMoving}
OnWindow Mod1 Mouse3 :MacroCmd {Raise} {Focus} {StartResizing BottomRight}
OnToolbar Mouse4 :NextWorkspace
OnToolbar Mouse5 :PrevWorkspace
# Affiche toutes les fenetres de toutes les applications.
Control Mod1 Mouse2 :ClientMenu
# Decale la fenetre plus bas dans la pile d'affichage.
OnWindow Mod1 Mouse2 :Lower
# Si roulette haut sur titre ==> maximize vertical, puis maximize
OnTitlebar Mouse4 :If {Matches (Maximized=no)} {If {Matches (MaximizedVertical=no)} {MaximizeVertical} {Maximize}}
# Si roulette bas sur titre ==> demaximize vertical, puis demaximize, puis iconify
OnTitlebar Mouse5 :If {Matches (Maximized=yes)} {MacroCmd {Maximize} {MaximizeVertical}} {If {Matches (MaximizedVertical=yes)} {MaximizeVertical} {Minimize}}
# Gestion de la souris
OnDesktop Mouse1 :HideMenus
OnDesktop Mouse2 :WorkspaceMenu
OnDesktop Mouse3 :RootMenu
OnDesktop Mouse4 :NextWorkspace
OnDesktop Mouse5 :PrevWorkspace
# Gestion du menu
Mod4 space :ToggleCmd {RootMenu} {HideMenus}
# Deplacement dans les espaces de travail.
Mod1 Tab :NextWindow (workspace=[current])
Mod1 Shift Tab :PrevWindow (workspace=[current])
Mod1 F1 :Workspace 1
Mod1 F2 :Workspace 2
Mod1 F3 :Workspace 3
Mod1 F4 :Workspace 4
Mod1 F5 :Workspace 5
Mod1 F6 :Workspace 6
Mod1 F7 :Workspace 7
Mod1 F8 :Workspace 8
Mod1 Shift F1 :Workspace 5
Mod1 Shift F2 :Workspace 6
Mod1 Shift F3 :Workspace 7
Mod1 Shift F4 :Workspace 8
Mod4 Tab :NextWorkspace
Mod4 Shift Tab :PrevWorkspace
Control Shift F1 :SendToWorkspace 1
Control Shift F2 :SendToWorkspace 2
Control Shift F3 :SendToWorkspace 3
Control Shift F4 :SendToWorkspace 4
# Arrange windows
Mod4 a :ToggleCmd {ArrangeWindowsVertical} {ArrangeWindowsHorizontal}
# Fullscreen
Mod4 Escape :Fullscreen
# Close Window
Mod4 BackSpace :Close
# Kill Window
Control Mod4 BackSpace :KillWindow
# lock the screen
#Mod4 l :Exec gnome-screensaver-command --lock
# Applications
Mod4 e :ExecCommand rox-filer
Mod4 r :ExecCommand fbrun -fg black -bg white -nearmouse
Mod4 d :ExecCommand mirage
Shift Mod4 d :ExecCommand gwenview
Mod4 w :ExecCommand rxvt-unicode +sb -rv
Mod4 x :ExecCommand emacs
Mod4 c :ExecCommand gcalctool
# If any navigator opened, go to it, else open firefox
Mod4 f :If {Some Matches (Navigator)} {NextWindow (Navigator)} {Exec firefox}
# Sound control (needs osdsh )
Mod4 Prior :Exec amixer set 'Master' 1+ && amixer set 'PCM' 1+ && osdctl -b "Master Volume",$(amixer |grep "Mono: Playback"|head -1|cut -d "[" -f2|cut -d "%" -f1)
Mod4 Next :Exec amixer set 'Master' 1- && amixer set 'PCM' 1- && osdctl -b "Master Volume",$(amixer |grep "Mono: Playback"|head -1|cut -d "[" -f2|cut -d "%" -f1)
#mplayer control
Mod4 Left :Exec xdotool key --window $(xdotool search ROX_VIDEO|tail -1) less && osdctl -s "Previous track"
Mod4 Right :Exec xdotool key --window $(xdotool search ROX_VIDEO|tail -1) greater && osdctl -s "Next track"
Mod4 Down :Exec xdotool key --window $(xdotool search ROX_VIDEO|tail -1) space && osdctl -s "Music paused"
Mod4 Up :Exec xdotool key --window $(xdotool search ROX_VIDEO|tail -1) q && osdctl -s "Music stopped"
# Mute ON + OFF
Mod4 m :ToggleCmd {Exec amixer sset Master,0 toggle && osdctl -s "Mute on"} {Exec amixer sset Master,0 toggle && osdctl -s "Mute off"}
# Restaure la resolution initiale en cas de probleme
Control Mod4 Return :ExecCommand xrandr -s 1600x900
# Battery power display
Mod4 b :ExecCommand osdctl -s "Battery Power : $(acpi|cut -d "," -f2)"
# Deplacement de la fenetre courante
# TODO: Use key binding mode to avoid conflict with application.
Mod1 Up :MoveUp 16
Mod1 Down :MoveDown 16
Mod1 Left :MoveLeft 16
Mod1 Right :MoveRight 16
# Deplacement rapide vers les bords.
Control Mod1 Up :MoveTo * 0 Upper
Control Mod1 Down :MoveTo * 0 Lower
Control Mod1 Left :MoveTo 0 * Left
Control Mod1 Right :MoveTo 0 * Right
# Redimensionnement de la fenetre courante
Mod4 Left :ResizeHorizontal -1
Mod4 Right :ResizeHorizontal 1
Mod4 Up :ResizeVertical -1
Mod4 Down :ResizeVertical 1