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

lotrfan/mkinitcpio-colors

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mkinitcpio colors hook

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

Requires the setcolors utility.

Usage

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:

COLOR_0=ff0000
COLOR_1=00ff00
...
COLOR_15=0000ff
```

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
file](https://github.com/EvanPurkhiser/linux-vt-setcolors/blob/master/example-colors/solarized)
to the required format for the `/etc/vconsole.conf` file.

````sh
$ 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