Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pywal integration #249

Open
array-in-a-matrix opened this issue Jan 13, 2022 · 7 comments
Open

pywal integration #249

array-in-a-matrix opened this issue Jan 13, 2022 · 7 comments

Comments

@array-in-a-matrix
Copy link

array-in-a-matrix commented Jan 13, 2022

Is it possible to be able to get color palettes from pywal and use it to theme sites? I feel like this can be done easily but idk

@ikskuh
Copy link
Owner

ikskuh commented Jan 13, 2022

Can you explain how that should work? pywall uses source images for the palette, which we don't have. Also someone has to port over the python code to C++

@array-in-a-matrix
Copy link
Author

array-in-a-matrix commented Jan 13, 2022

pywal generates color palettes and places them in $XDG_CACHE_HOME/wal. The palettes are expressed in a bunch of formats like json, css, pure text, etc. The different file formats are viewed here. We can just import one of these and make kristall use it.

@array-in-a-matrix
Copy link
Author

array-in-a-matrix commented Jan 13, 2022

I created a basic preset and managed to theme kristall using pywal, however once the theme is updated by pywal kristall won't update it automatically and need to manually readd the .kthm from $XDG_CACHE_HOME/wal/templates and load the preset.

@ikskuh
Copy link
Owner

ikskuh commented Jan 14, 2022

You can generate the themes directly into the Kristall theme folder. Instead of the wal folder

@array-in-a-matrix
Copy link
Author

Where can I find this folder exactly?

@ikskuh
Copy link
Owner

ikskuh commented Jan 16, 2022

It's typically located at ~/.config/kristall/styles/ for Unixoids, different for windows and macos

@array-in-a-matrix
Copy link
Author

I system linked the palette from cache to the config location and it works but to update the theme we have to just reapply the theme. Idk how we can make this work better. Could kristall look for the palette and system link it if it exists?

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

No branches or pull requests

2 participants