[etc] add mkinitcpio for setting console colors

This commit is contained in:
Dmytro Meleshko 2019-10-06 13:23:31 +03:00
parent 5444d2b78a
commit 4ed961d434
6 changed files with 62 additions and 0 deletions

View file

@ -10,6 +10,7 @@ declare -A apps=(
[iterm]=itermcolors
[kitty]=conf
[nvim]=vim
[setvtrgb]=txt
[shell]=zsh
[termux]=properties
)

View file

@ -0,0 +1,3 @@
45,242,153,255,102,204,102,211,116,242,153,255,102,204,102,242
45,119,204,204,153,153,204,208,115,119,204,204,153,153,204,240
45,122,153,102,204,204,204,200,105,122,153,102,204,204,204,236

13
colorschemes/setvtrgb.py Executable file
View file

@ -0,0 +1,13 @@
#!/usr/bin/env python3
import _theme as theme
for i in range(3):
print(
",".join(
[
str(int(color[2 * i + 1 : 2 * i + 3], 16))
for color in theme.ansi_colors[:16]
]
)
)

29
etc/bootmsg Normal file
View file

@ -0,0 +1,29 @@
`
-:
.//:
`////-
`://///.
:///////.
-/////////. `://- ./- .-
`://////////` .///- ./- `
-:..://///////`  -:::::::-` .--- `--:- `.-----.`` .///-`.....`` ./- ` ` `````` `
-////:::////////` .//////////:` `////:////..://////////- .//::////////:. ./- .: :-`-:::::::. -:. -: `:. --
-/////////////////` .---.---////- `/////:-.`:////:--.-:/:` .////:....-////` ./- -/` //:.` `-/. -/. :/` .::` `::`
-//////////++++/////` .:/++++++++++- `////. ./++/` ` .///: -///. ./- -+` `++ /: -/. :/` `-:..:-`
-////++++oooooooooo+++. :hhhhs+/+shdhh/ `yyys` +yyh/ -+++- -+++. -+- :o` .oo +/ :o. /+` .//-
-/+++oooooooooooooooooo+. oddd/ sddd+ .dddd` /dddy` ` :dhh/ +hhh- -o: :o` `oo +/ :o. +o` .++/+.
:+oooooooo+-..-/+oooooooo+. :dddy:``./hddd+ .dddd` `sdddy/-``./yo- :ddd+ oddd: -o: :o` +o +/ :o- .+o` :+:` -+:`
`/ooooooooo:` .+oooooooo+. /hddddddddsyd+ .dddd` `/hdddddddddds`:ddd+ oddd: -o: :o` +o +/ .++-` `.:/+o` `/+- .//.
`/ooooooooo/ .ooooooooo+- `/+ssso/.+o+- `so+: `-/+ssss+/. :ss+- +yso. ./. ./ /: :: .:/++++/-`//` -/` :/
`/oooooooooo` /oooooo++++-
`+ooooooooooo` :oooooo++/-:. A simple, lightweight GNU/Linux distribution.
.+ooooooooooo+` :+oooooooo+/-`
.+oooooo++/:-.` `..-:/++ooooo+:
.+oo++/-.` `.-:++ooo:
-++/-.` `-:++/`
-++/-.` `-:++/`
.:.` .-- 

View file

@ -0,0 +1,5 @@
#!/usr/bin/ash
run_hook() {
setvtrgb - < /etc/consolecolors
}

View file

@ -0,0 +1,11 @@
#!/bin/bash
build() {
add_file /etc/consolecolors && add_binary /usr/bin/setvtrgb && add_runscript
}
help() {
cat <<HELPEOF
This hooks will setup console colors during early user space.
HELPEOF
}