summaryrefslogtreecommitdiff
path: root/polkit-1/rules/90-set-brightness.rules
diff options
context:
space:
mode:
Diffstat (limited to 'polkit-1/rules/90-set-brightness.rules')
-rw-r--r--polkit-1/rules/90-set-brightness.rules9
1 files changed, 9 insertions, 0 deletions
diff --git a/polkit-1/rules/90-set-brightness.rules b/polkit-1/rules/90-set-brightness.rules
new file mode 100644
index 0000000..f8b158a
--- /dev/null
+++ b/polkit-1/rules/90-set-brightness.rules
@@ -0,0 +1,9 @@
+polkit.addRule(function(action, subject) {
+ if (1
+ && action.id == "com.sigexec.polkit.set-brightness"
+ && subject.seat == "seat0"
+ )
+ {
+ return polkit.Result.YES;
+ }
+});