|
|
|
|
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.
|