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

[Feature Request] allow to reload config without password #175

Open
timgreen opened this issue Nov 30, 2022 · 2 comments
Open

[Feature Request] allow to reload config without password #175

timgreen opened this issue Nov 30, 2022 · 2 comments
Labels
Enhancement New feature or request

Comments

@timgreen
Copy link

pkexec pkill -HUP swhkd requires password since there is no default policy for pkill.

One solutoin is to add reload option -r, --reload-config to swhkd

@oneingan
Copy link

workaround, I make a wrapper shellscript around every pkill command: swhkdctl.sh. Then I add a new polkit policy for it and configured systemd service to use new command.

pkexec swhkdctl.sh reload

@Shinyzenith
Copy link
Member

Yep, a pkexec policy file / wrapper script would be ideal for this. Would you mind opening a PR? @uningan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Development

No branches or pull requests

4 participants