Knowledge Base

Preserving for the future: Shell scripts, AoC, and more

Package for Devuan: gtk3-automnemonics

I have packaged up another nifty little thing that can improve the desktop experience for GTK3-based desktops and applications. Gtk3-automnemonics allows GTK3 themes to set the old "gtk-auto-mnemonics = true" or false, where false means that the underscores that highlight the accelerator keys are always visible. An accelerator key is the F in " F ile" where pressing ALT+F will open that File menu. You can go install gtk3-automnemonics from my OBS now. Its sources are also visible on the OBS. The upstream project is written by Gord Squash. How to use gtk3-automnemonics, once installed, is to modify the gtk-3.0/settings.ini file of a theme directory (probably under /usr/share/themes or ~/.local/share/themes) to include:

[Settings]
gtk-auto-mnemonics = 0
gtk-modules = sgm-flexible-mnemonics

The gtk-modules line is optional, because the gtk3-automnemonics package already adds an Xsession.d snippet that adds to/defines environment variable GTK3_MODULES value "sgm-flexible-mnemonics".

Backstory

GTK 3.10 removed the ability to configure the ability to always show the underscores. It is now hardcoded to 300ms after pressing the ALT key. Some people may prefer to hide the underscores until asked for, by the use of the ALT key. Some of us prefer always showing the underscores. But we all lose when it is no longer configurable.

References

Weblinks

  1. GTK 3.10 Drops Menu Icons and Mnemonics « IgnorantGuru's Blog
  2. gtk - How to enable mnemonics in 12.04 and/or 14.04 GTK3? - Ask Ubuntu
  3. Deprecate and ignore gtk-enable-mnemonics and gtk-auto-mnemonics" pro… · GNOME/gtk@7e3a494

Comments