Difference between revisions of "Linux on MacBook"
(→xkb) |
|||
Line 1: | Line 1: | ||
{{TocRight}} |
|||
Installation of Ubuntu/Linux on MacBook is straightforward nowadays. |
Installation of Ubuntu/Linux on MacBook is straightforward nowadays. |
||
However, there are a few small things that may need to be improved. |
However, there are a few small things that may need to be improved. |
||
Line 23: | Line 24: | ||
Make a backup of /usr/share/X11/xkb/keycodes/evdev and edit it as follows |
Make a backup of /usr/share/X11/xkb/keycodes/evdev and edit it as follows |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
... |
... |
||
// Assign Delete to R_opt |
// Assign Delete to R_opt |
||
<DELE> = 108; |
<DELE> = 108; |
||
//<DELE> = 119; |
//<DELE> = 119; |
||
== Remapping the CMD_L to Control == |
|||
Make a backup of /usr/share/X11/xkb/keycodes/evdev and edit it as follows |
|||
⚫ | |||
⚫ | |||
⚫ | |||
... |
|||
⚫ | |||
⚫ | |||
== Reversing the Fn key == |
== Reversing the Fn key == |
||
As an example, to make F10 act as F10 instead of Mute, we need to reverse the Fn key, so that by default the F keys act as the F keys and with Fn+F* they do the extended functions. |
|||
Do this: |
Do this: |
Latest revision as of 23:20, 28 October 2017
Installation of Ubuntu/Linux on MacBook is straightforward nowadays. However, there are a few small things that may need to be improved.
Keyboard
Remapping the Alt_R to Delete
This can be done either with xmodmap or xkb manipulation.
xmodmap
Edit the ~/.Xmodmap file:
Then run this to test
xmodmap ~/.Xmodmap
Add the same command to the Startup Aplications.
Note, this may not survive wakeup from Sleep.
xkb
Make a backup of /usr/share/X11/xkb/keycodes/evdev and edit it as follows
//<RALT> = 108; ... // Assign Delete to R_opt <DELE> = 108; //<DELE> = 119;
Remapping the CMD_L to Control
Make a backup of /usr/share/X11/xkb/keycodes/evdev and edit it as follows
// Swap Rctrl and LCmd <RCTL> = 133; //<RCTL> = 105; ... // Microsoft keyboard extra keys //<LWIN> = 133;
Reversing the Fn key
As an example, to make F10 act as F10 instead of Mute, we need to reverse the Fn key, so that by default the F keys act as the F keys and with Fn+F* they do the extended functions.
Do this:
sudo bash -c "echo 2 > /sys/module/hid_apple/parameters/fnmode"