Ver código fonte

use include_url for autobrightness kwin script

Thomas B 9 meses atrás
pai
commit
8eaa6fd3ba
1 arquivos alterados com 3 adições e 5 exclusões
  1. 3
    5
      input/projects/auto_brightness.md

+ 3
- 5
input/projects/auto_brightness.md Ver arquivo

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.
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
 <pre class="sh_javascript">
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
 </pre>
154
 </pre>
157
 
155
 
158
 As usual I'm also sending all these values to my local InfluxDB.
156
 As usual I'm also sending all these values to my local InfluxDB.

Carregando…
Cancelar
Salvar