apognu / tuigreet

Graphical console greeter for greetd
GNU General Public License v3.0
986 stars 45 forks source link

Set terminal colors #59

Closed rogueai closed 2 years ago

rogueai commented 2 years ago

Hi, I'm trying to achieve what's shown in the screenshot in the README, basically I'd like to be able to change the color scheme of the login screen.

I've tried setting escape codes in my .bashrc for the "linux" term, but that only seems to affect the tty after login.

I understand this is probably a general question not strictly related to your project, but would you mind sharing how you were able to achieve that?

Thanks!

rogueai commented 2 years ago

Ok so I've done some more researching and found out vt colors can actually be set as kernel parameters, using setvtrgb

On Arch, a simple mkinitcpio hook can be added to take care of setting the colors back on upgrades, there's a project doing exactly that: https://github.com/coderonline/base16-vtrgb

I'm going to close the issue and leave this here for future reference. Thanks!

Jarvvski commented 1 year ago

For anyone else coming here, but not on Arch (like ubuntu / debian), check out this great blog post that explains how to use an initramfs hook. Similar to mkinitcpio as in Arch

stevensonmt commented 1 year ago

See also https://github.com/evanpurkhiser/mkinitcpio-colors