@domicile-desktop/system-backlight 0.0.0-alpha-e612f0697e41 → 0.0.0-alpha-ab2d2f0e2a24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
# @domicile-desktop/system-backlight
|
|
2
2
|
|
|
3
3
|
Screen brightness for a Domicile shell, on the `files`, `processes` and `dbus`
|
|
4
|
-
namespaces of [`
|
|
4
|
+
namespaces of the [`Domicile`](/packages/chrome-sdk/src/desktop/desktop.ts) a
|
|
5
|
+
shell is handed. See
|
|
5
6
|
[SHELL-SYSTEM-ACCESS.md](/docs/SHELL-SYSTEM-ACCESS.md).
|
|
6
7
|
|
|
7
8
|
## Usage
|
|
8
9
|
|
|
9
10
|
```ts
|
|
10
|
-
import { desktop } from "@domicile-desktop/sdk/desktop/desktop";
|
|
11
11
|
import { brightnessSetter } from "@domicile-desktop/system-backlight/set-brightness";
|
|
12
12
|
import { watchBrightness } from "@domicile-desktop/system-backlight/watch-brightness";
|
|
13
13
|
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const set = brightnessSetter(host);
|
|
14
|
+
const watch = await watchBrightness(domicile, (level) => show(level));
|
|
15
|
+
const set = brightnessSetter(domicile);
|
|
17
16
|
await set(0.5);
|
|
18
17
|
```
|
|
19
18
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
3
|
"@cprussin/option-result": "^2.0.1",
|
|
4
|
-
"@domicile-desktop/sdk": "0.0.0-alpha-
|
|
4
|
+
"@domicile-desktop/sdk": "0.0.0-alpha-ab2d2f0e2a24",
|
|
5
5
|
"zod": "^4.5.4"
|
|
6
6
|
},
|
|
7
7
|
"description": "Screen brightness for a Domicile shell: reads /sys/class/backlight, watches it and sets it through logind, on @domicile-desktop/sdk/system.",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"test:unit": "bun test"
|
|
50
50
|
},
|
|
51
51
|
"type": "module",
|
|
52
|
-
"version": "0.0.0-alpha-
|
|
52
|
+
"version": "0.0.0-alpha-ab2d2f0e2a24"
|
|
53
53
|
}
|