summaryrefslogtreecommitdiff
path: root/repo/sysconfigs/consolecolor
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-02-02 14:10:02 +0000
committerdavidovski <david@davidovski.xyz>2023-02-02 14:10:02 +0000
commitf29d569cd33a73da5ad675f43a34ad53c5cc9bc6 (patch)
tree76fe6267f8307e7630fc6f53ff99a9767ad40de0 /repo/sysconfigs/consolecolor
parent05d004dfe0c9a9d898fac8a4a0292ca2a74ca391 (diff)
Work
Diffstat (limited to 'repo/sysconfigs/consolecolor')
-rwxr-xr-xrepo/sysconfigs/consolecolor32
1 files changed, 32 insertions, 0 deletions
diff --git a/repo/sysconfigs/consolecolor b/repo/sysconfigs/consolecolor
new file mode 100755
index 0000000..1b55bb6
--- /dev/null
+++ b/repo/sysconfigs/consolecolor
@@ -0,0 +1,32 @@
+#!/sbin/openrc-run
+description="Sets a color for the consoles."
+
+depend()
+{
+ need termencoding
+ after hotplug bootmisc modules
+ keyword -docker -lxc -openvz -prefix -systemd-nspawn -uml -vserver -xenu
+}
+
+start()
+{
+ for tty in /dev/tty*; do {
+ printf "\033]P0191919"
+ printf "\033]P1A54242"
+ printf "\033]P28C9440"
+ printf "\033]P3DE935F"
+ printf "\033]P45F819D"
+ printf "\033]P585678F"
+ printf "\033]P65E8D87"
+ printf "\033]P7707880"
+ printf "\033]P8373B41"
+ printf "\033]P9CC6666"
+ printf "\033]PAB5BD68"
+ printf "\033]PBF0C674"
+ printf "\033]PC81A2BE"
+ printf "\033]PDB294BB"
+ printf "\033]PEB4D6D1"
+ printf "\033]PFFEFEFE"
+ printf "\033[2J"
+ } > $tty; done
+}