Last active
May 9, 2022 23:42
-
-
Save tpope/179e711026307aa6f7e34c82a7c14398 to your computer and use it in GitHub Desktop.
Alt-X/C/V as cut/copy/paste in GTK apps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ~/.config/gtk-3.0/gtk.css */ | |
@import url("file:///usr/share/themes/Emacs/gtk-3.0/gtk-keys.css"); | |
@binding-set gtk-alt-clipboard { | |
bind "<alt>x" { "cut-clipboard" () }; | |
bind "<alt>c" { "copy-clipboard" () }; | |
bind "<alt>v" { "paste-clipboard" () }; | |
} | |
entry { | |
-gtk-key-bindings: gtk-emacs-text-entry, gtk-alt-clipboard; | |
} | |
textview { | |
-gtk-key-bindings: gtk-emacs-text-entry, gtk-emacs-text-view, gtk-alt-clipboard; | |
} | |
treeview { | |
-gtk-key-bindings: gtk-emacs-tree-view; | |
} | |
GtkMenuShell { | |
-gtk-key-bindings: gtk-emacs-menu; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment