polkit.addRule(function(action, subject) { if (action.lookup("program") == "/usr/bin/swhkd") { return polkit.Result.YES; } })