8

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?

JJD
  • 832
  • 4
  • 19
  • 46

2 Answers2

8

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:

  1. Open evince (or any app) with UBUNTU_MENUPROXY=0 evince
  2. Browse menus, hover an entry, type your shortcut
David Foerster
  • 35,754
  • 55
  • 92
  • 145
user55822
  • 3,115
  • 1
  • 17
  • 13
  • 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. – JJD May 12 '12 at 23:52
  • Im guessing you're using 11.10 or up ? That tutorial is probably outdated. See [gconf vs dconf](http://askubuntu.com/questions/122039/dconf-editor-and-gconf-editor) for explanations. You can still uncheck the box when you're done editing. – user55822 May 13 '12 at 08:19
  • Sorry, I forgot to mention I am still running Ubuntu 10.10. (Maverick). – JJD May 13 '12 at 13:58
  • Im sorry I didnt ask before :p You might want to edit your question with an ubuntu 10.10 tag and add "menu shortcuts" or "accels" in the title. – user55822 May 13 '12 at 15:06
  • 1
    Starting 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! – JJD May 13 '12 at 15:48
  • 1
    [this does not work for toolbar entries](https://bugs.launchpad.net/ubuntu/+source/evince/+bug/1526432), so one cannot create shortcuts for history navigation (back/forward) – sds Dec 15 '15 at 16:51
  • @sds so neither can we modify `next page` = `Ctrl+PgDown` ? :( – Ciprian Tomoiagă May 13 '16 at 12:24
  • 1
    Neither `dconf` nor `gconf` are working for me on Trusty Tahr (14.04). Any suggestions? Thanks! – loved.by.Jesus May 30 '16 at 11:20
  • [Does not work in Ubuntu 16.10](http://askubuntu.com/q/866982/156688). – Håkon Hægland Jan 02 '17 at 10:06
2

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

pauljohn32
  • 3,593
  • 1
  • 20
  • 33