# This is an example fxred config file.
# Lines starting with a # are comments.

# Empty lines are skipped.

# All other lines are:
# "<window id>"
# or
# <direction> <string to emit>

# <window id> is a regular expression that is verified against window name and
#   class.

# <direction> is l, r, u, d, < or > for left, right, up, down, push and
#   release. The push sequence is sent upon pushing the red button, the 
#   release sequence upon releasing it.
# <string to emit> is the string that is sent to the application.
#   If you want to send special keys, use the X names like this:
#     l Left
#   In order to fake a simultaneous pushing use a pipe:
#     l Shift_L|Left
#   More than a character is possible. The commata are not sent.
#     l Esc,z,h
#   In order to ignore a direction, use an empty key or leave it out.
#     u
#   You may place any of the following characters immediately after the
#   direction to instruct fxred to check for the modifier and emit a different
#   key sequence. 
#      1        Button 1 (Left Mouse Button)
#      2        Button 2 (Middle Mouse Button)
#      3        Button 3 (Right Mouse Button)
#      4        Button 4 (Red Button on Marble FX)
#      5        Button 5 
#      S,s      Shift 
#      L,l      Shift-Lock
#      C,c      Control
#      A,a      Alt
#   
#   Hint 1: On the Marble FX only button 3 is reachable at the
#     same time. 
#   Hint 2: Press the scroll button, then the modifier.
#   Hint 3: Don't put too many different things on the mouse.

# The regular expressions are checked in the same order as in this file
# without any tricks (hashes etc.). Remember that when using wildcards.

# for gvim we return to normal mode and scroll.
"VIM"
> Escape
l z,h
r z,l
u Control_L|y
d Control_L|e
u3 Page_Up
d3 Page_Down

# Konsole uses shift for up and down. Shift left/right switches sessions.
"Konsole|Terminal"
u Shift_L|Up
d Shift_L|Down

# KDE2's advanced editor and Konqueror scrolls up and down when holding control.
"Advanced Editor|Konqueror"
u Control_L|Up
d Control_L|Down

# Acrobat reader simply displays the filename, but the class is set correctly. 
# We disable the left/right as this flips pages. It makes navigation too jerky.
"AcroRead"
u Up
d Down

# The defaults. Should remain at the end.
".*"
l Left
r Right
u Up
d Down
u3 Page_Up
d3 Page_Down

