Difference between revisions of "Media keys and default keybindings"

From GalliumOS Wiki
Jump to: navigation, search
(Tag: visualeditor)
(Keyboard Shortcuts)
 
(22 intermediate revisions by 6 users not shown)
Line 1: Line 1:
'''Media keys'''
+
GalliumOS includes five keyboard layouts customized for Chromebooks. They can be configured from the GalliumOS/Whisker Menu, in Settings >> Keyboard >> Layout >> Keyboard Model.
  
Media keys are accessible either directly pressing them or with and overlay + the media key. The overlay
+
Media keys and Function keys can be accessed either with or without pressing the "Overlay" key first, depending on your choice of keyboard layout.
  
key is based on the keyboard map. More information about the overlay key is below.
+
== Keyboard Layouts ==
  
'''How we modified the keyboard'''
+
{| class="wikitable"
 +
!Layout Name
 +
!Overlay Key
 +
!Top row keys (alone)
 +
!Top row keys (with Overlay)
 +
|-
 +
| Chromebook / No overlay / F keys mapped to media keys
 +
| None
 +
| Media keys
 +
| Media keys
 +
|-
 +
| Chromebook / Right alt overlay
 +
| <code>Right-Alt</code>
 +
| Function keys
 +
| Media keys
 +
|-
 +
| style="background-color:#e0e8ff" | '''Chromebook / Right alt overlay / F keys mapped to media keys'''<br>'''** default for GalliumOS 1.0 and later **'''
 +
| style="background-color:#e0e8ff" | <code>Right-Alt</code>
 +
| style="background-color:#e0e8ff" | Media keys
 +
| style="background-color:#e0e8ff" | Function keys
 +
|-
 +
| Chromebook / Search overlay<br>previous default (1.0beta1), and Crouton default
 +
| <code>Super (Search)</code>
 +
| Function keys
 +
| Media keys
 +
|-
 +
| Chromebook / Search overlay / F keys mapped to media key
 +
| <code>Super (Search)</code>
 +
| Media keys
 +
| Function keys
 +
|}
  
We included Crouton's keyboard model for Chromebooks: [https://github.com/dnschneid/crouton/wiki/Keyboard] and we created our own for additional
+
These layouts are stored in /usr/share/X11/xkb/symbols/chromebook* . To modify the functionality of a key, one can make changes to the appropriate file (as root).<br>
 +
For instance, to remap the power key to Delete, add the following line in the appropriate file: <code>key <POWR> {[ Delete ]       };</code>, and set the power button to "Do nothing" in the Power Manager menu.
  
configurations. See: [https://github.com/GalliumOS/galliumos-distro/issues/50] for more info.
+
== Key Mappings ==
  
== Common key combinations ==
 
 
{| class="wikitable"
 
{| class="wikitable"
 
!Key
 
!Key
 
!Combination
 
!Combination
 
|-
 
|-
|F1-F9
+
|F1-F10
|[Overlay + 1] - [Overlay + 9]
+
|Accessed directly or with <code>Overlay</code>, depending on Keyboard layout<br>Also available with <code>Overlay</code> + number key (0 for F10)
 
|-
 
|-
|KBD Brightness Toggle
+
|F11
|[Overlay + 0]
+
|<code>Overlay</code> + <code>-</code>
 
|-
 
|-
|KBD Brightness Down
+
|F12
|[Overlay + - ]
+
|<code>Overlay</code> + <code>+</code>
|-
 
|KBD Brightness Up
 
|[Overlay + = ]
 
 
|-
 
|-
 
|Home
 
|Home
|[Overlay + Left]
+
|<code>Overlay</code> + <code>Left Arrow</code>
 
|-
 
|-
 
|End
 
|End
|[Overlay + Right]
+
|<code>Overlay</code> + <code>Right Arrow</code>
 
|-
 
|-
 
|Page Up
 
|Page Up
|[Overlay + Up]
+
|<code>Overlay</code> + <code>Up Arrow</code>
 
|-
 
|-
 
|Page Down
 
|Page Down
|[Overlay + Down]
+
|<code>Overlay</code> + <code>Down Arrow</code>
 
|-
 
|-
 
|Insert
 
|Insert
|[Overlay + . ]
+
|<code>Overlay</code> + <code>.</code>
 
|-
 
|-
 
|Delete
 
|Delete
|[Overlay + Backspace]
+
|<code>Overlay</code> + <code>Backspace</code>
 
|-
 
|-
 
|Caps Lock
 
|Caps Lock
|[Overlay + Alt] (for keyboard maps that use Super as the overlay)
+
|Right-Alt as Overlay: <code>Overlay</code> + <code>Right Shift</code><br>Super as Overlay: <code>Overlay</code> + <code>Left Alt</code>
 
|}
 
|}
''Note: The overlay key will be different depending on the keyboard map chosen. ''
 
  
''The default overlay key for Beta 1 was the Super key (Search). For Beta 2, the overlay key is ''
+
Crouton keyboard layout: https://github.com/dnschneid/crouton/wiki/Keyboard
  
''the right alt key.''
+
Other discussion: https://github.com/GalliumOS/galliumos-distro/issues/50
  
== 1.0beta2 ==
+
== Keyboard Shortcuts ==
  
There are five keyboard maps in current nightlies (actually there are a ton, but five that are customized for Chromebooks):
+
{| class="wikitable"
 
+
!Key
# Chromebook | No overlay | F keys mapped to media keys
+
!Combination
# Chromebook | Right alt overlay
+
|-
# Chromebook | Right alt overlay | F keys mapped to media keys '''(Default for Beta 2 for Chromebook builds)'''
+
|Screenshot (fullscreen)
# Chromebook | Search overlay '''(Default for Beta 1)'''
+
|<code>Ctrl</code> + <code>F5(display)</code>
# Chromebook | Search overlay | F keys mapped to media key
+
|-
 
+
|Screenshot (window)
Keyboard maps which include "F keys mapped to media keys" in the description mean that the media keys (the top row of keys)
+
|<code>Ctrl</code> + <code>Shift</code> + <code>F5(display)</code>
 
+
|-
are media keys without pressing an additional key. To use the media keys as function keys,
+
|Whisker Menu/Search
 
+
|Right-Alt as Overlay: <code>Super</code> + <code>M</code><br>Super as Overlay: <code>Left-Alt</code> + <code>M</code>
you can press the overlay key + the media key.
+
|-
 
+
|Keyboard Backlight Toggle
Keyboard maps that do not include "F keys mapped to media keys" in the description require an overlay key + the
+
|<code>Overlay</code> + <code>\</code> '''(not working!)'''
 
+
|-
media key to use the media key. Without an overlay key pressed, the media keys are function keys.
+
|Keyboard Backlight Brightness Down
 
+
|<code>Overlay</code> + <code>[</code>
==== Shortcuts specific to the keyboard maps ====
+
|-
* Options 1,2,3 open the Whisker Menu when the Super + M keys are pressed
+
|Keyboard Backlight Brightness Up
* Options 1,4,5 open the Whisker Menu when the Alt + M keys are pressed
+
|<code>Overlay</code> + <code>]</code>
* Options 1,2,3,4,5 will take a screen shot of a window with the keys: Shift+Ctl+Display Media key (5th media key)
+
|}
* Options 1,2,3,4,5 will take a screen shot of the entire screen with the keys: Ctl+Display Media key (5th media key)
 
 
 
Noteworthy quirk: the settings dialog doesn't always save your selection...it works better if you switch to another tab of the dialog and then back to "Layout" before selecting "Close".
 

Latest revision as of 22:40, 20 April 2020

GalliumOS includes five keyboard layouts customized for Chromebooks. They can be configured from the GalliumOS/Whisker Menu, in Settings >> Keyboard >> Layout >> Keyboard Model.

Media keys and Function keys can be accessed either with or without pressing the "Overlay" key first, depending on your choice of keyboard layout.

Keyboard Layouts

Layout Name Overlay Key Top row keys (alone) Top row keys (with Overlay)
Chromebook / No overlay / F keys mapped to media keys None Media keys Media keys
Chromebook / Right alt overlay Right-Alt Function keys Media keys
Chromebook / Right alt overlay / F keys mapped to media keys
** default for GalliumOS 1.0 and later **
Right-Alt Media keys Function keys
Chromebook / Search overlay
previous default (1.0beta1), and Crouton default
Super (Search) Function keys Media keys
Chromebook / Search overlay / F keys mapped to media key Super (Search) Media keys Function keys

These layouts are stored in /usr/share/X11/xkb/symbols/chromebook* . To modify the functionality of a key, one can make changes to the appropriate file (as root).
For instance, to remap the power key to Delete, add the following line in the appropriate file: key <POWR> {[ Delete ] };, and set the power button to "Do nothing" in the Power Manager menu.

Key Mappings

Key Combination
F1-F10 Accessed directly or with Overlay, depending on Keyboard layout
Also available with Overlay + number key (0 for F10)
F11 Overlay + -
F12 Overlay + +
Home Overlay + Left Arrow
End Overlay + Right Arrow
Page Up Overlay + Up Arrow
Page Down Overlay + Down Arrow
Insert Overlay + .
Delete Overlay + Backspace
Caps Lock Right-Alt as Overlay: Overlay + Right Shift
Super as Overlay: Overlay + Left Alt

Crouton keyboard layout: https://github.com/dnschneid/crouton/wiki/Keyboard

Other discussion: https://github.com/GalliumOS/galliumos-distro/issues/50

Keyboard Shortcuts

Key Combination
Screenshot (fullscreen) Ctrl + F5(display)
Screenshot (window) Ctrl + Shift + F5(display)
Whisker Menu/Search Right-Alt as Overlay: Super + M
Super as Overlay: Left-Alt + M
Keyboard Backlight Toggle Overlay + \ (not working!)
Keyboard Backlight Brightness Down Overlay + [
Keyboard Backlight Brightness Up Overlay + ]