Skip to content

Provides a hook for Arch Linux's mkinitcpio utility to set VT colors during early userspace

License

Notifications You must be signed in to change notification settings

evanpurkhiser/mkinitcpio-colors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/'

About

Provides a hook for Arch Linux's mkinitcpio utility to set VT colors during early userspace

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages