Open ca5ua1 opened 1 year ago
home-manager's programs.pywal
module is also setting some settings there.
i feel that can get kinda so big they might not be the best place for that, which makes me wonder if this could be a better place as well.
the basic process seems to be about ensuring there's a template file for the application in question, then from nix having the application's actual style/configuration file include a dynamic include to that (presuming their format supports this), e.g. see my attempt for Zathura.
i feel like we could do stuff like that here, so maybe the question would be if it's in scope. if anything tho, it would seem desirable to have these play nice, i.e. ensuring stylix wouldn't like override its colors with static ones, so that could be an argument in favor of handling this from the stylix repo.
Hey @KiaraGrouwstra,
I stumbled upon this issue and I was wondering whether you were aware that stylix has builtin support for generating colorschemes based on the wallpaper similarly to what pywal does (although the details elude me):
https://stylix.danth.me/configuration.html#generated-schemes
@99linesofcode thanks for mentioning that.
i guess the unfortunate part of stylix for this purpose tho would be having to rebuild your nixos config just to change wallpaper, which seems like a bunch of unnecessary cpu cycles. delegating the theme generation stuff to the likes of pywal for that would alleviate that need.
i guess the unfortunate part of stylix for this purpose tho would be having to rebuild your nixos config just to change wallpaper, which seems like a bunch of unnecessary cpu cycles.
In the future, this operation would mostly happen at runtime: https://github.com/danth/stylix/pull/477#issuecomment-2254170449
with pywal and it's -R flag you can apply colors to I guess any terminal. There is other wal programs that works with wal colors such as wal-telegram. There is my approach of doing that:
home.nix
pywal.json.mustache