mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[etc] add mkinitcpio for setting console colors
This commit is contained in:
parent
5444d2b78a
commit
4ed961d434
6 changed files with 62 additions and 0 deletions
|
@ -10,6 +10,7 @@ declare -A apps=(
|
|||
[iterm]=itermcolors
|
||||
[kitty]=conf
|
||||
[nvim]=vim
|
||||
[setvtrgb]=txt
|
||||
[shell]=zsh
|
||||
[termux]=properties
|
||||
)
|
||||
|
|
3
colorschemes/out/setvtrgb.txt
Normal file
3
colorschemes/out/setvtrgb.txt
Normal 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
13
colorschemes/setvtrgb.py
Executable 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
29
etc/bootmsg
Normal file
|
@ -0,0 +1,29 @@
|
|||
|
||||
|
||||
[1;34m`
|
||||
[1;34m-:
|
||||
[1;34m.//:
|
||||
[1;34m`////-
|
||||
[1;34m`://///.
|
||||
[1;34m:///////.
|
||||
[1;34m-/////////. [1;37m`://- [1;34m./- .-[0m
|
||||
[1;34m`://////////` [1;37m.///- [1;34m./- `[0m
|
||||
[1;34m-:..://///////` [1;37m -:::::::-` .--- `--:- `.-----.`` .///-`.....`` [1;34m./- ` ` `````` `[0m
|
||||
[1;34m-////:::////////` [1;37m.//////////:` `////:////..://////////- .//::////////:. [1;34m./- .: :-`-:::::::. -:. -: `:. --[0m
|
||||
[1;34m-/////////////////` [1;37m.---.---////- `/////:-.`:////:--.-:/:` .////:....-////` [1;34m./- -/` //:.` `-/. -/. :/` .::` `::`[0m
|
||||
[1;34m-//////////++++/////` [1;37m.:/[0;37m++++++++++- [1;37m`////. [0;37m./++/` [1;37m` .///: -///. [1;34m./- -[0;34m+` `++ [1;34m/: -/. :/` `-:..:-`[0m
|
||||
[1;34m-////[0;34m++++oooooooooo+++. [0;37m:hhhhs+/+shdhh/ `yyys` +yyh/ -+++- -+++. [0;34m-+- :o` .oo +/ :o. /+` [0;34m.//-[0m
|
||||
[0;34m-/+++oooooooooooooooooo+. [0;37moddd/ sddd+ .dddd` /dddy` ` :dhh/ +hhh- [0;34m-o: :o` `oo +/ :o. +o` .++/+.[0m
|
||||
[0;34m:+oooooooo+-..-/+oooooooo+. [0;37m:dddy:``./hddd+ .dddd` `sdddy/-``./yo- :ddd+ oddd: [0;34m-o: :o` +o +/ :o- .+o` :+:` -+:`[0m
|
||||
[0;34m`/ooooooooo:` .+oooooooo+. [0;37m/hddddddddsyd+ .dddd` `/hdddddddddds`:ddd+ oddd: [0;34m-o: :o` +o +/ .++-` `.:/+o` `/+- .//.[0m
|
||||
[0;34m`/ooooooooo/ .ooooooooo+- [0;37m`/+ssso/.+o+- `so+: `-/+ssss+/. :ss+- +yso. [0;34m./. ./ /: :: .:/++++/-`//` -/` :/[0m
|
||||
[0;34m`/oooooooooo` /oooooo++++-
|
||||
[0;34m`+ooooooooooo` :oooooo++/-:. [0;37mA simple, lightweight GNU/Linux distribution.
|
||||
[0;34m.+ooooooooooo+` :+oooooooo+/-`
|
||||
[0;34m.+oooooo++/:-.` `..-:/++ooooo+:
|
||||
[0;34m.+oo++/-.` `.-:++ooo:
|
||||
[0;34m-++/-.` [0;34m`-:++/`
|
||||
[0;34m-++/-.` [0;34m`-:++/`
|
||||
[0;34m.:.` .-- [0m
|
||||
|
||||
|
5
etc/initcpio/hooks/consolecolors
Normal file
5
etc/initcpio/hooks/consolecolors
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/ash
|
||||
|
||||
run_hook() {
|
||||
setvtrgb - < /etc/consolecolors
|
||||
}
|
11
etc/initcpio/install/consolecolors
Normal file
11
etc/initcpio/install/consolecolors
Normal 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
|
||||
}
|
Loading…
Reference in a new issue