diff options
author | somini | 2021-02-26 22:41:29 +0000 |
---|---|---|
committer | somini | 2021-02-26 22:41:29 +0000 |
commit | 8b77423a3aeb5d98d08715374927c7b895f8ebb2 (patch) | |
tree | 21f2ec3753cff06bfb8e744cc4ca7af075214d8a /bucklespring.rules | |
parent | a30a8036f3d8d1d112911b2e592fc0ea0b808440 (diff) | |
download | aur-8b77423a3aeb5d98d08715374927c7b895f8ebb2.tar.gz |
Create new libinput bucklespring alternative
Includes polkit support so that it works out of the box.
Diffstat (limited to 'bucklespring.rules')
-rw-r--r-- | bucklespring.rules | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bucklespring.rules b/bucklespring.rules new file mode 100644 index 000000000000..eebd3149b0cb --- /dev/null +++ b/bucklespring.rules @@ -0,0 +1,10 @@ +// vim: ft=javascript + +// Allow any user on the "wheel" group to run this deamon +// Note that this is a keylogger, do not give permissions to this program lightly +polkit.addRule(function(action, subject) { + if (action.id == "nl.zevv.bucklespring.run" && + subject.isInGroup("wheel")) { + return polkit.Result.YES; + } +}); |