8000 GitHub - nenikitov/consona
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

nenikitov/consona

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Consona

Nix helper that applies a unified theme to all applications.

Installation

  1. Make sure you set up home-manager
  2. Add to your flake.nix
    {
      inputs = {
        # ...
        consona = {
          url = "github:nenikitov/consona"
          inputs.nixpkgs.follows = "nixpkgs"
        };
      };
      outputs = {home-manager, ...} @ inputs: {
        homeConfiguratoins."USERNAME" = home-manager.lib.homeManagerConfiguration {
          # ...
          modules = [
            # ...
            inputs.consona.homeManagerModule
          ];
        };
      };
    }

Creating a new module

Here is an example module that can be followed as a template

args: let
  libConsona = import ../../lib args;
  inherit (libConsona) mkTarget palette;
  inherit (libConsona.transform) hex;
in
  mkTarget {
    name = "alacritty";
    nameHuman = "Alacritty";
    cfg = {
      programs.alacritty.settings.colors.primary.background = hex palette.bg;
      };
    };
  }

Usage

  1. Configure a theme
  2. Select which apps to style
  3. If an app is not supported by Consona, you can manually access colors with
    {inputs, ...}@args: {
      programs.some-program.settings = {
        accent = config.lib.consona.ansiToHex "red";
      }
    }

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0