Provides a hook for Arch Linux's mkinitcpio utility to set VT colors during early userspace
Switch branches/tags
Nothing to show
Clone or download

Mkinitcpio colors hook

Use this mkinitcpio hook to set the virtual terminal colors during early userspace.

Requires the setcolors utility.


First add the colors hook to your /etc/mkinitcpio.conf files HOOKS list. You will probably want to place the hook fairly eairly if you don't want the colors to abruptly change.

To define colors you will want to edit your /etc/vconsole.conf file and specify the colors in the format COLOR_X=hexcode. Where X is a number between 0 and 15. For example:


You will need to run `mkinitcpio -p linux` each time you make changes to your
color configuration.

### Converting from `setcolors` format

You may use this sed command to convert from a [setcolors color configuration
to the required format for the `/etc/vconsole.conf` file.

$ sed 's/^\(.*\)#\(.\{6\}\).*$/COLOR_\1=\2/'