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.
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 thebuild
target and the static polkit file has been removed from the repo completely.