-
Notifications
You must be signed in to change notification settings - Fork 18
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
[Request] Add live refresh for following apps #94
Comments
It would be nice to add |
I suggest adding an option to the TOML config file under the template section, such as
I believe this approach would be more effective than implementing commands for each requested app individually. It would give users the flexibility to restart or perform any necessary actions before or after generating templates according to their needs. I recall something similar might have been added before, possibly called Anyway, Here’s an example using the [templates.swaync]
input_path = '~/.config/swaync/style-template.css'
output_path = '~/.config/swaync/style.css'
exec = 'swaync-client --reload-config && swaync-client --reload-css' And here’s an example using the [templates.some_app]
input_path = '~/.config/some_app/template.ext'
output_path = '~/.config/some_app/generated.ext'
pre_exec = 'echo "before generating" >> ~/logs'
post_exec = 'echo "after generating" >> ~/logs' |
I've also been thinking of automatically reloading when the template has a specific name like |
This would be a great feature. However, my suggestion to implement after/before generation hooks is to allow users to write custom scripts tailored to their own environments. From my perspective, adding specific code for auto-reloading based on template names like |
I already added the |
honestly I don't think this is a good idea. |
I didn't get your idea. Could you make it clear? |
Take a look at #100 |
These apps don't auto reload, and need these commands to read new colors
App: command
bat:
bat cache --build
swaync:
swayns-client -rs
The text was updated successfully, but these errors were encountered: