xpdfrc

# Initial Conditions
initialZoom width
initialToolbarState yes
initialDisplayMode continuous
initialSidebarState no

# Everthing j
unbind j any
bind ctrl-j any scrollDown(30)
bind ] any "run(xdotool mousemove_relative 0 60)"
bind j any "run(xdotool mousemove_relative 0 10)"
# bind j any scrollDown(30)

# Everything k
unbind k any
bind ctrl-k any scrollUp(30)
bind [ any "run(xdotool mousemove_relative 0 -60)"
bind k any "run(xdotool mousemove_relative 0 -10)"
# bind k any scrollUp(30)

# Everything l
unbind l any
bind l any "run(xdotool mousemove_relative 10 0)"
unbind ctrl-l any
bind ctrl-l any "run(xdotool mousemove_relative 60 0)"

# Everything h
unbind h any
bind h any "run(xdotool mousemove_relative -- -10 0)"
unbind ctrl-h any
bind ctrl-h any "run(xdotool mousemove_relative -- -60 0)"

# Scrolling
bind space any scrollDown(30)
bind b any "run(xdotool mousemove_relative -- -30 0)"
bind ctrl-d any nextPage
bind ctrl-u any prevPage

# Go to page
# g to go to page

# e sideways faster
bind e any "run(xdotool mousemove_relative 30 0)"

# Selecting
unbind v any
bind v any "run(xdotool mousedown 1)"
unbind c any
bind c any "run(xdotool mouseup 1)"

#Set focus right
bind ctrl-i any focusToDocWin

# o to open file
bind o any open

# usual stuff
#bind gg any gotoPage(0)

Comments