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

Live reload? #7

Open
MyGitHubBlueberry opened this issue May 19, 2024 · 2 comments
Open

Live reload? #7

MyGitHubBlueberry opened this issue May 19, 2024 · 2 comments

Comments

@MyGitHubBlueberry
Copy link

I'm checking out your templates (only for gradience for now).
Themes looks cool - 0 complains.

Are you planning to add a build-in functionality to live reload themes?
I'm changing a sceme and them, apply it, and then i need to reopen an app (pkill nautilus, in my case) for theme to be applied.

Maybe there's a way to reload live using xsettingsd? I heard wpgtk use something like that. But, from my experience it wont work on nautilus anyway)))

@eylles
Copy link
Owner

eylles commented May 19, 2024

wpgtk just tries to use the gnome settings daemon, xfce settings daemon and xsettingsd

https://github.com/deviantfero/wpgtk/blob/141fe3dc10578a74508f3952779225360ba1eda6/wpgtk/data/reload.py#L48-L126

my plan is to deprecate the templates and lean heavily into the python scripts, build-gradience.py already works and i need to retake work on build-kvantum.py doing the same type of replace done in adw-gtk2-colorizer with the latest version of kvlibadwaita

that way only build-gradience depends on pywal directly, the others are "hooked" on a bootstrapping like process and every required theme is built from the gradience preset (kvantum, steam, discord).

as for managing the different scripts and reloading i have another project on the works for that, still not ready to use anywhere ouside my machine tho...
image

@MyGitHubBlueberry
Copy link
Author

Great!
I will keep an eye on this project :)

I slightly modified your script for personal use:

#!/usr/bin/env bash

source "$HOME/.cache/wallust/colors.sh"

~/nixos/packages/pywal-sixteen/result/bin/wal -i $wallpaper -s --cols16




mkdir -p ~/.config/presets/user
cp ~/.cache/wal/colors-gradience.json ~/.config/presets/user/colors-gradience.json

gradience-cli apply -n pywal



mkdir -p "${HOME}"/.config/Kvantum/pywal
cp "${HOME}"/.cache/wal/pywal.kvconfig "${HOME}"/.config/Kvantum/pywal/pywal.kvconfig
cp "${HOME}"/.cache/wal/pywal.svg "${HOME}"/.config/Kvantum/pywal/pywal.svg

kvantummanager --set "pywal"

And here is a pywal16 theme applied to nautilus and kvantum :)

image

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