mkinitcpio-colors
mkinitcpio-colors copied to clipboard
Provides a hook for Arch Linux's mkinitcpio utility to set VT colors during early userspace
mkinitcpio setcolors hook
Archlinux mkinitcpio hook to
set the Virtual Console
colors during early userspace.
Depends on linux-vt-setcolors.
Usage
Install this by either using the AUR or by copying:
-
install/*
to/etc/initcpio/install/
-
hooks/*
to/etc/initcpio/hooks/
-
setcolors.service
to/etc/systemd/system/
Then, add to HOOKS
in /etc/mkinitcpio.conf
either colors
or sd-colors
after udev
or systemd
respectively.
Configuration
Define colors in /etc/vconsole.conf
with the format COLOR_X=hexcode
, being
X a number between 0 and 15, like:
COLOR_0=000000 # black
COLOR_1=550000 # darkred
...
COLOR_15=ffffff # white
Regenerate the initramfs
to apply the changes.
Converting
The following sed command can be used to convert from a setcolors configuration
to the /etc/vconsole.conf
format.
$ sed 's/^\(.*\)#\(.\{6\}\).*$/COLOR_\1=\2/'