summarylogtreecommitdiffstats
path: root/bucklespring.rules
diff options
context:
space:
mode:
authorsomini2021-02-26 22:41:29 +0000
committersomini2021-02-26 22:41:29 +0000
commit8b77423a3aeb5d98d08715374927c7b895f8ebb2 (patch)
tree21f2ec3753cff06bfb8e744cc4ca7af075214d8a /bucklespring.rules
parenta30a8036f3d8d1d112911b2e592fc0ea0b808440 (diff)
downloadaur-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.rules10
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;
+ }
+});