Replies: 3 comments 3 replies
-
see #473 i'd love this, i'm sad that #477 is closed for now. |
Beta Was this translation helpful? Give feedback.
-
It's possible to do this by setting something like { pkgs, ... }:
{
base16Scheme = ...;
image = pkgs.runCommand "wallpaper.png" {} ''
gruvbox-factory ... $out ...
'';
} |
Beta Was this translation helpful? Give feedback.
-
I put this at the top of my homemanager file:
I chose these colors because in most (if not all) themes, there would be alot of grey colors in the later "slots". I had to adjust the code a little bit after switching over to nix-unstable. Try to fiddle around with magick (imagemagick) if the above code does not work. Edit: Isn't Stylix already able to get a theme from the chosen background image? |
Beta Was this translation helpful? Give feedback.
-
Generating a palette from an image reminded me of when I was using Arch and pywal to rice my system, and back then, I loved it. Nowadays, I am a simple man, and I am running Gruvbox since it gives nice colors for the UI and in my editor of choice (Helix). But I am still aching for a matching wallpaper, and I am not the only one with the problem: I have a nice wallpaper (image-wise) and a color scheme I prefer/love, but neither matches.
Generating a palette from the image is one way to solve it, but doing so can negatively impact readability or UI elements in specific programs. People take their time to design a color palette so the end-user has a pleasant experience using it.
On the other hand, when we pick an image, it is usually, but not always, because of its elements. And even if it is about the colors, we can sometimes make a trade-off by slightly changing them, and it still packs that punch we initially saw.
I came across gruvbox-factory, which was made specifically for applying the Gruvbox color palette to an image but can be easily extended to support any palette. This is also what I am currently rocking on my setup. I applied the change to my most used wallpapers, and it looks amazing!
I wanted to see if someone else is also interested in this and if gruvbox-factory could be extended/modified to our needs. The end goal would be to have flags like
applySchemeToImage
andextractSchemeFromImage
, with the first applying the described feature to the image, and the second one extracting the palette from the image, like it is done now! (if none are set, the image and palette are applied separately)What are your thoughts on this?
Beta Was this translation helpful? Give feedback.
All reactions