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

Polkit policy file generation #184

Closed ajanon closed 1 year ago

ajanon commented 1 year ago

This adds the build-polkit-policy.sh script (in the newly added 'scripts' folder) which builds a polkit policy file for swhkd. It has a number of optional arguments to make it easy to extend and adapt to different use cases. The output path, the swhkd binary path, and even the custom authentication message and the action ID are configurable.

The Makefile also now builds the polkit file in the build target and the static polkit file has been removed from the repo completely.