[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

gtk key theme




Running Sid (and KDE), it seems that I cannot get GTK key theme "Emacs" to work.

I used to have a file .gtkrc-3.0 with the line:

gtk-key-theme-name = "Emacs"

which gave me Emacs style key bindings on applications like Firefox.  It stopped working recently, as apparently a new version of GTK came in (3.20 I think). 

Googling around, it seemed like the configuration file now has to be on .config/gtk-3.0/settings.ini.  So, I've added the line above to this new configuration file.  I thought it worked for a while (maybe I'm mistaken , though), but it is not working now.  (I have now both files with the key theme line.)

The closest I've come to a solution was these threads:

https://bugzilla.mozilla.org/show_bug.cgi?id=1269058
https://bugzilla.gnome.org/show_bug.cgi?id=766166

I've tried making a file (as in the second thread) for the usual key bindings named .config/gtk-3.0/gtk.css with the content

-----------------
@binding-set text-entry
{
  bind "<Control>a"
  {
    "move-cursor" (paragraph-ends, -1, 0)
  };
  bind "<Control>e"
  {
    "move-cursor" (paragraph-ends, 1, 0)
  };
  bind "<Control>k"
  {
    "delete-from-cursor" (paragraph-ends, 1)
  };                                                                                                                                
  bind "<Control>u"                                                                                                                 
  {                                                                                                                                 
    "move-cursor" (paragraph-ends, -1, 0)                                                                                           
    "delete-from-cursor" (paragraph-ends, 1)                                                                                        
  };                                                                                                                                
  bind "<Control>w"                                                                                                                 
  {                                                                                                                                 
    "delete-from-cursor" (word-ends, -1)                                                                                            
  };                                                                                                                                
}                                                                                                                                   
                                                                                                                                    
entry { -gtk-key-bindings: text-entry; }                                                                                            
textview { -gtk-key-bindings: text-entry; }
-----------------

but also did not work.  (I also tried adding the content above directly on settings.ini, but did not work either.)

I'm at a loss.  Does anyone have any ideas?

Thanks,

Luis

Reply to: