An open API service indexing awesome lists of open source software.

https://github.com/iogamaster/prism

🌈 Convert wallpapers into a colorscheme and place them in your ~/
https://github.com/iogamaster/prism

Last synced: about 1 year ago
JSON representation

🌈 Convert wallpapers into a colorscheme and place them in your ~/

Awesome Lists containing this project

README

          

prism

























With prism you can recolor wallpapers at build time and place them in a home dir.

- ⚙️ A module for recoloring wallpapers:
- 🏭 Runs a command to recolor the wallpaper
- 🫙 Uses home-manager to place them into ~/

🖼️ Gallery

| Original | Oxocarbon | Gruvbox Dark |
|---|---|---|
| ![space324dhsj](https://github.com/IogaMaster/prism/assets/67164465/293620a2-ee45-4d8f-b899-020fb67c2b6f) | ![image](https://github.com/IogaMaster/prism/assets/67164465/ea04e94b-c063-4d29-8e61-1743b92ecf14) | ![image](https://github.com/IogaMaster/prism/assets/67164465/2997db23-ba38-490f-a408-392783edbb2c) |
| ![rose_pine_shape](https://github.com/IogaMaster/prism/assets/67164465/b4592096-7729-489c-97eb-dc91b2df8dde) | ![image](https://github.com/IogaMaster/prism/assets/67164465/019d149f-54f4-441e-999e-98c426ae1ca8) | ![image](https://github.com/IogaMaster/prism/assets/67164465/fbb3bbc2-e2fa-4f77-88b7-33974594f019)
| ![spiral](https://github.com/IogaMaster/prism/assets/67164465/2d72c231-2bff-4f35-8d2a-320c210e120e) | ![image](https://github.com/IogaMaster/prism/assets/67164465/c2ad3db8-3cae-4a8d-bd96-a2eec92a0e36)| ![image](https://github.com/IogaMaster/prism/assets/67164465/ddaab71c-d30f-4ddb-8998-31ef661d163e) |

#### Why?

I have many wallpapers, finding ones I like that are in the colorscheme I am using is a pain.
Recoloring them manually is also time consuming. So I made this module to do it for me.
Hopefully it's useful to you as well!

## 📦 Installation and Usage

Include in your flake
```nix
inputs.prism.url = "github:IogaMaster/prism";
```

Include the `prism.homeModules.prism` module the way you like.

> \[!NOTE\]\
> If you add or remove an image from the wallpapers path, ALL wallpapers will be rebuilt.
>
> Depending on the number and resolution of wallpapers, switching to a new generation can take a long time.

Here are all the colorschemes:
https://github.com/ozwaldorf/lutgen-rs/blob/main/palettes/palettes.json

To use `Gruvbox Dark` you need to specify `colorscheme = "gruvbox-dark";`

Using the module:
```nix
prism = {
enable = true;
wallpapers = ./wallpapers; # Path to the wallpapers directory in your config. (IMAGES ONLY)
outPath = ".config/wallpapers"; # Where in your home directory to output to.

# There are a few different ways of setting the colorscheme.

# If you pass the name it will use a lutgen builtin scheme
colorscheme = "catppuccin-mocha";

# If you pass a list of colors, it will build a scheme from them.
# They are formatted like base16 schemes
# colorscheme = [ "FFFFFF" "FAFAFA" ... ];

# You can also pass a nix-colors scheme attrset and it will parse the colors.
# colorscheme = nix-colors.colorscheme.nord;
};
```

## ❤️ Contributing

Contributions are whole-heartedly welcome! Please feel free to suggest new features,
implement additional builders, helpers, or generally assist if you'd like. We'd be happy to have you.
There's more information in [CONTRIBUTING.md](CONTRIBUTING.md).

## 📜 License

Licensed under the MIT license ([LICENSE](LICENSE) or ).
Unless you explicitly state otherwise, any contribution intentionally
submitted for inclusion in this project by you, shall be licensed as above, without any additional terms or conditions.