swhkd
swhkd copied to clipboard
[Feature Request] allow to reload config without password
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
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
Yep, a pkexec policy file / wrapper script would be ideal for this. Would you mind opening a PR? @uningan