# Mouse bindings # # First, for the mouse in the root window # Button 1 gives the MainMenu menu # Button 2 gives the Window Ops menu # Button 3 gives the WindowList (like TwmWindows) # I use the AnyModifier (A) option for the modifier field, so you can hold # down any shift-control-whatever combination you want! # Button Context Modifi Function Mouse 1 R A Menu "MainMenu" Mouse 2 R A Menu "Window Ops" Mouse 3 R A WindowList # Next up, mouse bindings for when you click on title bar buttons # Button 0 means any mouse button will work # The first button is on the left (as is shown by it being an odd no.) # and opens up a menu # The other buttons, in order, toggle the window between sticking and # unsticking the window, toggle between current and full-screen size, # iconify the window, close the window, and kill the whole process. # Button Context Modif Function Mouse 0 1 A Menu "Window-Ops2" #Mouse 0 10 A Resize Mouse 0 8 A Maximize 100 100 Mouse 0 6 A Iconify Mouse 0 4 A Delete Mouse 0 2 A Destroy # This makes the borders of a window resize it with a left-click or move # it with a right-click Mouse 1 FS A Function "Resize-or-Raise" Mouse 3 FS A Function "Move-or-Raise" # Right-click in title moves window, left-click lowers it Mouse 1 T A Function "Move-or-Raise" Mouse 3 T A Lower # Button 3 in the window, with the Modifier-1 key (usually alt or diamond) # gives Raise-Lower. Mouse 0 W M RaiseLower # And now, the keyboard bindings: # First, Cursor/Arrow Keys # press Ctrl-Alt-Arrow anywhere, and scroll by 1 page Key Left A MC Scroll -100 0 Key Right A MC Scroll +100 +0 Key Up A MC Scroll +0 -100 Key Down A MC Scroll +0 +100 # Next, the special keys - the MS keyboard buttons otherwise wasting space # I use the xmodmap command to map the special keys to Function keys, # and shell scripts to perform the actions Key F4 A M Delete Key Space W M Popup "Window-Ops2" Key SLstart A A Popup "MainMenu" Key SRstart A A Menu "Window Ops" Nop Key Smenu A A WindowList Key Sback A A Exec $HOME/.fvwm/scripts/mozillaback Key Sforward A A Exec $HOME/.fvwm/scripts/mozillaforward Key Srefresh A A Exec $HOME/.fvwm/scripts/mozillarefresh Key Ssearch A A Exec $HOME/.fvwm/scripts/mozillasearch Key Sfavourites A A Exec $HOME/.fvwm/scripts/mozillafaves Key Swebhome A A Exec $HOME/.fvwm/scripts/mozillahome Key Smail A A Exec $HOME/.fvwm/scripts/mail Key Smute A A Exec $HOME/.fvwm/scripts/mute Key Svolumedown A A Exec $HOME/.fvwm/scripts/voldown Key Svolumeup A A Exec $HOME/.fvwm/scripts/volup Key Splaypause A A Exec $HOME/.fvwm/scripts/xmmsplay Key Sstop A A Exec $HOME/.fvwm/scripts/xmmsstop Key Sprevtrack A A Exec $HOME/.fvwm/scripts/xmmsprev Key Snexttrack A A Exec $HOME/.fvwm/scripts/xmmsnext Key Smedia A A Popup "Media" Key Smycomputer A A Exec $HOME/.fvwm/scripts/mycomputer Key Scalculator A A Exec $HOME/.fvwm/scripts/calculator Key Ssleep A A Exec $HOME/.fvwm/scripts/sleep