waycrate / swhkd

Sxhkd clone for Wayland (works on TTY and X11 too)
https://git.sr.ht/~shinyzenith/swhkd
BSD 2-Clause "Simplified" License
679 stars 47 forks source link

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

Open timgreen opened 1 year ago

timgreen commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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