Pārlūkot izejas kodu

use include_url for autobrightness kwin script

Thomas B 2 mēnešus atpakaļ
vecāks
revīzija
8eaa6fd3ba
1 mainītis faili ar 3 papildinājumiem un 5 dzēšanām
  1. 3
    5
      input/projects/auto_brightness.md

+ 3
- 5
input/projects/auto_brightness.md Parādīt failu

@@ -148,11 +148,9 @@ Telling ddcutil [to directly talk to the I2C bus](https://git.xythobuz.de/thomas
148 148
 To alleviate this a bit I'm now using a [KWin script](https://develop.kde.org/docs/plasma/kwin/) to check for a full-screen app so I can pause brightness updates.
149 149
 
150 150
 <pre class="sh_javascript">
151
-var win = workspace.activeWindow;
152
-var name = win.caption;
153
-var pid = win.pid;
154
-var state = (win.bufferGeometry == win.output.geometry);
155
-print('{ "name": "' + name + '", "pid": ' + pid + ', "fullscreen": ' + state + ' }');
151
+<!--%
152
+include_url("https://git.xythobuz.de/thomas/AutoBrightness/raw/branch/main/client/kwin_check.js")
153
+%-->
156 154
 </pre>
157 155
 
158 156
 As usual I'm also sending all these values to my local InfluxDB.

Notiek ielāde…
Atcelt
Saglabāt