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

[enchancement] Auto reload when config file changes #278

Open
manthanabc opened this issue Dec 20, 2024 · 2 comments
Open

[enchancement] Auto reload when config file changes #278

manthanabc opened this issue Dec 20, 2024 · 2 comments

Comments

@manthanabc
Copy link

We could use inotify to set up a watcher for changes in the config file in the swhkd daemon. After the config file is loaded, whenever the config file changes, we call load_config. This should be a simple change.

We could also add a new argument (-r) to enable it or have it enabled by default.

@newtoallofthis123
Copy link
Collaborator

That is an awesome idea!
The config file reload can also probably be triggered pressing a keyboard shortcut or the -r flag.
Will be looking into this!

@manthanabc
Copy link
Author

triggered pressing a keyboard shortcut

hotkey based reload could just be part of a default config file like

super + r
	pkill -HUP swhkd

(this way user can also remove it or change it if they want)
for the auto reloading i can create a pull request for it, if you would assign this to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants