I am using the Ubuntu document viever Evince. Lately, I found out how to add custom keyboard shortcuts for the program. I was searching for a way to add a shortcut e.g. for View / Best fit (also available as a button). What I found was the Keyboard shortcut page which describes how to setup shortcuts using gconf-editor. That worked as described. However, once I restart my system the shortcuts are gone. How can I set them permanently?
2 Answers
For Ubuntu 12.04 and up:
Use dconf-editor
instead of gconf-editor
:
sudo apt-get install dconf-tools
Then set the key /org/gnome/desktop/interface/can-change-accels
to true.
Setting shortcuts when using global menu:
- Open evince (or any app) with
UBUNTU_MENUPROXY=0 evince
- Browse menus, hover an entry, type your shortcut
-
The tutorial does not use dconf but gconf. They also state that I can "Uncheck the value box for can_change_accels in the right side of the window." after I am done.– JJDMay 12, 2012 at 23:52
-
Im guessing you're using 11.10 or up ? That tutorial is probably outdated. See gconf vs dconf for explanations. You can still uncheck the box when you're done editing. May 13, 2012 at 8:19
-
1Starting evince with
UBUNTU_MENUPROXY=0 evince
from the command line to set the shortcuts helped. One should add this to the tutorial I started with. Thank you, user55822!– JJDMay 13, 2012 at 15:48 -
1this does not work for toolbar entries, so one cannot create shortcuts for history navigation (back/forward)– sdsDec 15, 2015 at 16:51
-
1Neither
dconf
norgconf
are working for me on Trusty Tahr (14.04). Any suggestions? Thanks! May 30, 2016 at 11:20
This question is identical to another one, where I suggested a way to edit the config file to alter the keys: https://askubuntu.com/a/899956/495717