Add some configs from generic Ubuntu

This commit is contained in:
2020-05-11 05:16:27 -04:00
parent f32c1048d1
commit 754f64f135
16037 changed files with 205635 additions and 137 deletions

View File

@@ -0,0 +1,12 @@
polkit.addRule(function(action, subject) {
var idx = action.id.lastIndexOf('.');
var username_stripped = action.id.substring(0, idx);
var username = action.id.substring(idx + 1);
if (username_stripped === "mko.cpupower.setcpufreq") {
if (subject.user === username) {
return polkit.Result.YES;
} else {
return polkit.Result.NO;
}
}
});

View File

@@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" version="1.1">
<path style="fill:#b3b3b3" d="M 5,0 V 3 H 6 V 0 Z M 7,0 V 3 H 8 V 0 Z M 9,0 V 3 H 10 V 0 Z M 11,0 V 3 H 12 V 0 Z M 1,4 V 5 H 4 V 4 Z M 5,4 V 11 H 12 V 4 Z M 13,4 V 5 H 16 V 4 Z M 1,6 V 7 H 4 V 6 Z M 13,6 V 7 H 16 V 6 Z M 1,8 V 9 H 4 V 8 Z M 13,8 V 9 H 16 V 8 Z M 1,10 V 11 H 4 V 10 Z M 13,10 V 11 H 16 V 10 Z M 5,12 V 15 H 6 V 12 Z M 7,12 V 15 H 8 V 12 Z M 9,12 V 15 H 10 V 12 Z M 11,12 V 15 H 12 V 12 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 493 B

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>
<vendor>MKO Systems</vendor>
<vendor_url>http://mko-sl.de</vendor_url>
<action id="{{ID}}">
<description>Set a new CPU Frequency to intel_pstate</description>
<description xml:lang="de">Neue CPU-Frequenzgrenzen an intel_pstate senden</description>
<message>No Authorization required to set frequency bounds.</message>
<message xml:lang="de">Keine Autorisierung zum Setzen der Frequenzgrenzen notwendig</message>
<defaults>
<allow_any>yes</allow_any>
<allow_inactive>yes</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">{{PATH}}</annotate>
<annotate key="mko.cpupower.polkit-rule.version">3.0.0</annotate>
</action>
</policyconfig>