Skip to content

konsole: allow defining custom colorschemes with Nix values#564

Merged
magnouvean merged 3 commits into
nix-community:trunkfrom
folliehiyuki:ini-konsole-colorscheme
Jul 9, 2026
Merged

konsole: allow defining custom colorschemes with Nix values#564
magnouvean merged 3 commits into
nix-community:trunkfrom
folliehiyuki:ini-konsole-colorscheme

Conversation

@folliehiyuki

Copy link
Copy Markdown
Contributor

This approach allows further override of useful values like Blur and Achor.

@bmrips

bmrips commented Jan 1, 2026

Copy link
Copy Markdown
Contributor

I like this change.

What do you think about a more fine-grained approach like this one? This would yield colour names more descriptive than Color0Intense while still allowing to set arbitrary attributes via extraSettings.

@folliehiyuki

Copy link
Copy Markdown
Contributor Author

I'd like to keep the module simple, so we don't need to keep up with any schema changes of the file from Konsole in the future. I can add an example config to the option so users reading the documentation have an idea how to create a custom colorscheme right away.

@magnouvean

Copy link
Copy Markdown
Collaborator

Yeah I probably agree that this is the right way of doing this. If you could add an example though then it would be great! Otherwise looks fine 👍

@folliehiyuki folliehiyuki force-pushed the ini-konsole-colorscheme branch from 75c845d to fcdd678 Compare July 9, 2026 03:34
@folliehiyuki

Copy link
Copy Markdown
Contributor Author

Example string added for the colorscheme option.

@magnouvean

Copy link
Copy Markdown
Collaborator

Looks good!

@magnouvean magnouvean merged commit c551f06 into nix-community:trunk Jul 9, 2026
1 check passed
scarlet-storm added a commit to scarlet-storm/plasma-manager that referenced this pull request Jul 11, 2026
Regression from nix-community#564 passing store paths for
programs.konsole.customColorSchemes no longer works.
builtins.isPath is only true for primitive types and not string
interpolated nix store paths (eg. "${pkgs.foo}/bar.colorscheme"). this
causes iniFormat.generate to be called for store paths. Instead use
lib.types.path.check which uses the same check as lib.types.path
(primitive path or strings starting with /)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants