Keyboard shortcuts

Thanks for the reply. I never knew about debug-interactive. :grin:

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 :

[Desktop Entry]
Version=1.0
Type=Application
Name=Geary
Icon=org.gnome.Geary
Terminal=false
StartupNotify=true
Exec=env GTK_THEME=Geary geary

gtk.css file

@import url("/usr/share/themes/TraditionalGreen/gtk-3.0/gtk.css");

@binding-set SingleKeyShortcuts {
  bind "c" { 
    "archive-conversations" () 
    "navigate" (step-up)
  };
  bind "d" { 
    "trash-conversations" () 
    "navigate" (step-up)
  };
  bind "r" { "reply-conversation-sender" () };
  bind "R" { "reply-conversation-all" () };
  bind "f" { "forward-conversation" () };
  bind "slash" { "find" () };
  bind "k" { "navigate" (step-up) };
  bind "j" { "navigate" (step-down) };
}

window.geary-main-window {
  -gtk-key-bindings: SingleKeyShortcuts;
}
2 Likes