feat(tuigreet): add TUIgreet target and ANSI theme helpers #1893
+222
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
feat(tuigreet): add TUIgreet target and ANSI theme helpers
Introduces first-class support for TUIgreet by generating an ANSI theme derived from the active Base16 scheme. Also includes a warning scheme nudging users to wire it into greetd, but does not interact with their configuration directly (intentionally -- user config is out of scope).
config.lib.stylix.ansi
helpers:themeMapNearest
: maps UI components to the nearest ANSI color name.themeStringNearest
: produces a single-line--theme
string liketext=…;time=…;…
.bright-black
,bright-red
,bright-green
,bright-yellow
,bright-blue
,bright-magenta
,bright-cyan
,bright-white
.tuigreet
:services.greetd.enable = true
and itsdefault_session.command
contains “tuigreet”./etc/tuigreet/stylix.theme
with the computed--theme
string (newline-terminated).--theme
is not present in the greetd command.--theme "$(cat /etc/tuigreet/stylix.theme)"
.Testing performed
config.lib.stylix.ansi.themeStringNearest
and ensure the file is generated as/etc/tuigreet/stylix.theme
.