Changeset 5516569 in dotfiles for guix/.config/gtk-3.0/gtk.css
- Timestamp:
- Oct 6, 2022, 12:26:10 PM (2 years ago)
- Branches:
- master
- Children:
- 2107e51
- Parents:
- a48604f
- git-author:
- Mikhail Kirillov <w96k@…> (10/06/22 12:24:57)
- git-committer:
- Mikhail Kirillov <w96k@…> (10/06/22 12:26:10)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guix/.config/gtk-3.0/gtk.css
ra48604f r5516569 70 70 } 71 71 72 toolbar icon {73 width: 16px;74 }75 76 72 toolbar button { 77 73 border-radius: 0; … … 80 76 font-size: 10pt 81 77 } 78 79 @binding-set gtk-emacs-text-entry 80 { 81 bind "<ctrl>b" { "move-cursor" (logical-positions, -1, 0) }; 82 bind "<shift><ctrl>b" { "move-cursor" (logical-positions, -1, 1) }; 83 bind "<ctrl>f" { "move-cursor" (logical-positions, 1, 0) }; 84 bind "<shift><ctrl>f" { "move-cursor" (logical-positions, 1, 1) }; 85 86 bind "<alt>b" { "move-cursor" (words, -1, 0) }; 87 bind "<shift><alt>b" { "move-cursor" (words, -1, 1) }; 88 bind "<alt>f" { "move-cursor" (words, 1, 0) }; 89 bind "<shift><alt>f" { "move-cursor" (words, 1, 1) }; 90 91 bind "<ctrl>a" { "move-cursor" (paragraph-ends, -1, 0) }; 92 bind "<shift><ctrl>a" { "move-cursor" (paragraph-ends, -1, 1) }; 93 bind "<ctrl>e" { "move-cursor" (paragraph-ends, 1, 0) }; 94 bind "<shift><ctrl>e" { "move-cursor" (paragraph-ends, 1, 1) }; 95 96 bind "<ctrl>w" { "cut-clipboard" () }; 97 bind "<ctrl>y" { "paste-clipboard" () }; 98 99 bind "<ctrl>d" { "delete-from-cursor" (chars, 1) }; 100 bind "<alt>d" { "delete-from-cursor" (word-ends, 1) }; 101 bind "<ctrl>k" { "delete-from-cursor" (paragraph-ends, 1) }; 102 bind "<alt>backslash" { "delete-from-cursor" (whitespace, 1) }; 103 104 bind "<alt>space" { "delete-from-cursor" (whitespace, 1) 105 "insert-at-cursor" (" ") }; 106 bind "<alt>KP_Space" { "delete-from-cursor" (whitespace, 1) 107 "insert-at-cursor" (" ") }; 108 /* 109 * Some non-Emacs keybindings people are attached to 110 */ 111 bind "<ctrl>u" { "move-cursor" (paragraph-ends, -1, 0) 112 "delete-from-cursor" (paragraph-ends, 1) }; 113 114 bind "<ctrl>h" { "delete-from-cursor" (chars, -1) }; 115 bind "<ctrl>w" { "delete-from-cursor" (word-ends, -1) }; 116 } 117 118 /* 119 * Bindings for GtkTextView 120 */ 121 @binding-set gtk-emacs-text-view 122 { 123 bind "<ctrl>p" { "move-cursor" (display-lines, -1, 0) }; 124 bind "<shift><ctrl>p" { "move-cursor" (display-lines, -1, 1) }; 125 bind "<ctrl>n" { "move-cursor" (display-lines, 1, 0) }; 126 bind "<shift><ctrl>n" { "move-cursor" (display-lines, 1, 1) }; 127 128 bind "<ctrl>space" { "set-anchor" () }; 129 bind "<ctrl>KP_Space" { "set-anchor" () }; 130 } 131 132 /* 133 * Bindings for GtkTreeView 134 */ 135 @binding-set gtk-emacs-tree-view 136 { 137 bind "<ctrl>s" { "start-interactive-search" () }; 138 bind "<ctrl>f" { "move-cursor" (logical-positions, 1) }; 139 bind "<ctrl>b" { "move-cursor" (logical-positions, -1) }; 140 } 141 142 /* 143 * Bindings for menus 144 */ 145 @binding-set gtk-emacs-menu 146 { 147 bind "<ctrl>n" { "move-current" (next) }; 148 bind "<ctrl>p" { "move-current" (prev) }; 149 bind "<ctrl>f" { "move-current" (child) }; 150 bind "<ctrl>b" { "move-current" (parent) }; 151 } 152 153 GtkEntry { 154 -gtk-key-bindings: gtk-emacs-text-entry; 155 } 156 157 GtkTextView { 158 -gtk-key-bindings: gtk-emacs-text-entry, gtk-emacs-text-view; 159 } 160 161 GtkTreeView { 162 -gtk-key-bindings: gtk-emacs-tree-view; 163 } 164 165 GtkMenuShell { 166 -gtk-key-bindings: gtk-emacs-menu; 167 } 168 169 class "GtkMenuShell" binding "gtk-emacs-menu"
Note:
See TracChangeset
for help on using the changeset viewer.