Gtk GUI option for changing keybindings?

While looking for information on whether Ctrl+Shift+z is standard for ‘redo’ on Linux (as opposed to Windows using Ctrl+y), I ran across this tidbit in the “GTK Configuration” documentation for ArchLinux

Is it actually this straight-forward to add a GUI option for configuring hotkeys?

4.3 Keyboard shortcuts

Keyboard shortcuts (otherwise known as accelerators in GTK) may be changed by hovering the mouse over the respective menu item, and pressing the desired key combination. To enable this feature, set:
gtk-can-change-accels = 1

4.31 Emacs key bindings

To have Emacs-like key bindings in GTK applications add the following:
~/.gtkrc-2.0
gtk-key-theme-name = "Emacs"

~/.config/gtk-3.0/settings.ini
[Settings] gtk-key-theme-name = Emacs

For GTK3 also run:
$ gsettings set org.gnome.desktop.interface gtk-key-theme "Emacs"

XFCE has a similar setting:
$ xfconf-query -c xsettings -p /Gtk/KeyThemeName -s Emacs

The configuration files in /usr/share/themes/Emacs/ determine what the Emacs bindings are, and can be changed. Copying sections to the users ~/.gtkrc-2.0 file allows for changes on a per user basis.

Yes. Our Mac version already redefines accelerators.

It uses the gtk-key-theme-name setting in the settings.ini file, and the gramps.accel file with some changes to our standard accelerators.

1 Like

No. It’s been deprecated since 3.10. And that was released 10 years ago.

See Gtk.Settings:gtk-can-change-accels

1 Like

This is an interesting read (even with the whiny and entitled tone of the OP):

1 Like

I guess those are overrides we need for the Windoze fork too?

@prculley Have you seen the mac settings and accelerators implementation?

Hmm. And the UIManager.dump_all_accels was a good thing to add to the discussion page of the Gramps Keybindings wiki page

And the theme selections in the settings.ini will be good grist for the mill when writing a Theme customizing article.