I would like to change the keyboard shortcuts for "Previous Page" and
"Next Page" in evince
. I have a Dell Vostro 5568 laptop where the PgUp
and the PgDn
keys are located awkwardly up to the right on the keyboard. Instead I would like to use Ctrl+Left
and Ctrl+Right
(currently bound to "Rotate Left" and "Rotate Right"), or alternatively to use Ctrl+Up
and Ctrl+Down
.
From the Gnome Help page I figured I had to use dconf-editor
. Here are two screenshots showing my settings:
Now when I click "Go" menu in Evince, and move the mouse pointer down to menu item "Previous Page", I should be able to enter a new keyboard shortcut. But if I press Ctrl+Up
and close Evince and reopens it, the shortcut does not work. Here is a screenshot from Evince:
I am using Ubuntu 16.10. There is also an older question for Ubuntu 10.10 here.
Firstly, just in case you don't know, you can use
Space
andShift-Space
instead ofPgDn
andPgUp
.If you still want to change the keybindings, then unfortunately I think that for evince the keybindings are hard-coded. Three possible solutions are:
Switch to
atril
which is the MATE fork of evince and which allows the customisation of keybindings, at least via anaccels
file (at~/.config/atril/accels
). For comparison, you could look at, say,~/.config/nautilus/accels
.Use something with AutoHotkey functionality (for some possibilities, see this stackexchange question).
(If you're feeling adventurous) patch the source of evince and recompile:
To get the source used by Ubuntu:
apt-get source evince
If this doesn't work, uncomment the
deb-src
lines in/etc/apt/sources.list
.The offending lines, responsible for the bindings in evince are:
in
shell/ev-view.c
. (See here on GitHub. GitHub link provided for convenience, but preferably don't get the source from there, but viaapt-get
as described above.)The lines need to be changed to:
Note, however, that you won't get security fixes to evince automatically if you compile it yourself.
For reference, if somebody wishes to modify other keyboard shortcuts in evince, some of the action (as opposed to motion) bindings are specified in
shell/ev-application.c
in the definition ofconst gchar *action_accels[]
(here on GitHub).