Background: I got an Acer Chromebook yesterday and I am running Ubuntu on it (I am also somewhat new to Linux). The keyboard does not have dedicated Home and End buttons since in ChromeOS there are replacement key bindings (that do not work under the running Linux).
My question: is if there is a way to assign certain key binding in Linux to Home and End key actions so that I can recover those two keys by key combinations.
Best Answer
In xkeyboard-config-1.7-nav-keys.patch is explained how it used to be done, with XKB. More recent versions of Chrome OS now use Ash.
Create directories called
~/.xkb/keymap
,~/.xkb/types
and~/.xkb/symbols
. Create a file~/.xkb/types/chromebook
containing the following definition:Create a file
~/.xkb/symbols/chromebook
containing the following definition:Run the command
setxkbmap -print >~/.xkb/keymap/chromebook
. Edit the resulting file and add+chromebook
inside theinclude
directives forxkb_types
andxkb_symbols
; the file should look like this:Add the following command to the startup applications:
Note: this is untested, I'm not very familiar with XKB and it's poorly documented. I tried to follow Vincent Lefèvre's XKB tips.