Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. # Notes for Chromebook keyboard settings
  2.  
  3. ## Make the search key an additional Escape
  4. The chromebook search key sends the keycode 133, or `LWIN`. This can be mapped
  5. as an additional escape key (useful for vim users) using XKB.
  6.  
  7. Create the file `/usr/share/X11/xkb/symbols/chromebook` with the following:
  8.  
  9. // Make LWIN an additional Escape
  10. hidden partial modifier_keys
  11. xkb_symbols "lwin_escape" {
  12. key <LWIN> { [ Escape ] };
  13. modifier_map Mod4 { <LWIN> };
  14. };
  15.  
  16. Edit `/usr/share/X11/xkb/rules/evdev` and add a new line in the
  17. `! option = symbols` section:
  18.  
  19. chromebook:lwin_escape = +chromebook(lwin_escape)
  20.  
  21. Edit `/usr/share/X11/xkb/evdev.lst` and addl
  22.  
  23. chromebook:lwin_escape Make Chromebook search key (LWIN) an additional Escape
  24.  
  25. Then, run dconf-editor, and add the `'chromebook:lwin_escape'` xkb option for
  26. Gnome under `org.gnome.desktop.input-sources`.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement