Is there a way to modify the keyboard shortcuts in Geary? I see a file called ui/single-key-shortcuts.css in the source code, with the actual shortcuts. I tried editing that file and putting it in ~/.themes, but it didn’t change the shortcuts in Geary. How to do this without re-building Geary?
You should be able to do that using ~/.config/gtk-3/gtk.css, I believe GTK reads that on app startup. The places GTK reads to load CSS at application startup are noted in the docs for GtkCssProvider.
Thanks for the reply. I never knew about debug-interactive.
After trying that I went back and looked at .themes again and found a way to change some bindings and make Geary go to the next message (newer) after Archive and Delete. Here is how I did it. First:
mkdir -p ~/.themes/Geary/gtk-3.20
In that dir, create the gtk.css file and paste in your edited css. You can change the theme with the import line. I guessed and added trash-conversations, which works. You can’t override existing bindings (apparently), but you can add new ones. May also work by putting the file in~/.config/gtk-3/,as mjog said above, but I haven’t tried that. To run Geary with the gtk.css, use this command:
GTK_THEME=Geary geary
Here is a Desktop file for it, put in ~/Desktop as ~/Desktop/Geary.desktop :