swhkd icon indicating copy to clipboard operation
swhkd copied to clipboard

[Feature Request] allow to reload config without password

Open timgreen opened this issue 3 years ago • 2 comments

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

timgreen avatar Nov 30 '22 23:11 timgreen

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

oneingan avatar Dec 17 '22 08:12 oneingan

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

Shinyzenith avatar Dec 17 '22 10:12 Shinyzenith