kiosko-plugin-calls 0.1.0 → 0.2.1
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 +5 -0
- package/dist/index.js +3 -1
- package/docs/status.png +0 -0
- package/kiosko-manifest.json +225 -0
- package/package.json +12 -3
package/README.md
CHANGED
|
@@ -20,6 +20,11 @@ npm install --prefix ~/.config/kiosko/plugins kiosko-plugin-calls
|
|
|
20
20
|
|
|
21
21
|
- Linux with PulseAudio or PipeWire (`pipewire-pulse`) and `pactl`. Elsewhere the source reports `available: false` and the widget says "Calls unavailable".
|
|
22
22
|
|
|
23
|
+
## What it does on your machine
|
|
24
|
+
|
|
25
|
+
- **Runs**: `pactl`.
|
|
26
|
+
- **Devices**: audio.
|
|
27
|
+
|
|
23
28
|
## Widgets
|
|
24
29
|
|
|
25
30
|
### On a call — `calls/status`
|
package/dist/index.js
CHANGED
|
@@ -182,7 +182,9 @@ var status = defineWidget({
|
|
|
182
182
|
var index_default = definePlugin({
|
|
183
183
|
id: "calls",
|
|
184
184
|
name: { en: "Calls", es: "Llamadas" },
|
|
185
|
-
version: "0.1
|
|
185
|
+
version: "0.2.1",
|
|
186
|
+
sdk: "^0.2.0",
|
|
187
|
+
permissions: { exec: ["pactl"], devices: ["audio"] },
|
|
186
188
|
description: { en: "Detects video calls by the open microphone, even muted, and shows an on-air light.", es: "Detecta las videollamadas por el micr\xF3fono abierto, aunque est\xE9 silenciado, y muestra un piloto de \xABen el aire\xBB." },
|
|
187
189
|
author: "Kiosko",
|
|
188
190
|
license: "MIT",
|
package/docs/status.png
ADDED
|
Binary file
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
{
|
|
2
|
+
"manifest": 1,
|
|
3
|
+
"id": "calls",
|
|
4
|
+
"package": "kiosko-plugin-calls",
|
|
5
|
+
"name": {
|
|
6
|
+
"en": "Calls",
|
|
7
|
+
"es": "Llamadas"
|
|
8
|
+
},
|
|
9
|
+
"version": "0.2.1",
|
|
10
|
+
"description": {
|
|
11
|
+
"en": "Detects video calls by the open microphone, even muted, and shows an on-air light.",
|
|
12
|
+
"es": "Detecta las videollamadas por el micrófono abierto, aunque esté silenciado, y muestra un piloto de «en el aire»."
|
|
13
|
+
},
|
|
14
|
+
"author": "Kiosko",
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"homepage": "https://github.com/kiosko-lcd/kiosko-plugin-calls#readme",
|
|
17
|
+
"repository": "https://github.com/kiosko-lcd/kiosko-plugin-calls.git",
|
|
18
|
+
"icon": "phone",
|
|
19
|
+
"sdk": "^0.2.0",
|
|
20
|
+
"platforms": [
|
|
21
|
+
"linux",
|
|
22
|
+
"darwin",
|
|
23
|
+
"win32"
|
|
24
|
+
],
|
|
25
|
+
"languages": [
|
|
26
|
+
"en",
|
|
27
|
+
"es"
|
|
28
|
+
],
|
|
29
|
+
"categories": [
|
|
30
|
+
"system"
|
|
31
|
+
],
|
|
32
|
+
"tags": [
|
|
33
|
+
"call",
|
|
34
|
+
"microphone",
|
|
35
|
+
"teams",
|
|
36
|
+
"meeting"
|
|
37
|
+
],
|
|
38
|
+
"permissions": {
|
|
39
|
+
"exec": [
|
|
40
|
+
"pactl"
|
|
41
|
+
],
|
|
42
|
+
"devices": [
|
|
43
|
+
"audio"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"riskyOptions": [],
|
|
47
|
+
"requires": [],
|
|
48
|
+
"optional": [],
|
|
49
|
+
"widgets": [
|
|
50
|
+
{
|
|
51
|
+
"type": "calls/status",
|
|
52
|
+
"name": {
|
|
53
|
+
"en": "On a call",
|
|
54
|
+
"es": "En llamada"
|
|
55
|
+
},
|
|
56
|
+
"description": {
|
|
57
|
+
"en": "An on-air light: lit while an app holds the microphone (even muted), with how long the call has lasted. Dark otherwise.",
|
|
58
|
+
"es": "Un piloto de «en el aire»: encendido mientras una aplicación tiene el micrófono abierto (aunque esté silenciado), con lo que dura la llamada. Apagado el resto del tiempo."
|
|
59
|
+
},
|
|
60
|
+
"icon": "phone",
|
|
61
|
+
"category": "system",
|
|
62
|
+
"tags": [
|
|
63
|
+
"call",
|
|
64
|
+
"microphone",
|
|
65
|
+
"teams",
|
|
66
|
+
"meeting"
|
|
67
|
+
],
|
|
68
|
+
"size": {
|
|
69
|
+
"min": {
|
|
70
|
+
"w": 140,
|
|
71
|
+
"h": 40
|
|
72
|
+
},
|
|
73
|
+
"preferred": {
|
|
74
|
+
"w": 320,
|
|
75
|
+
"h": 90
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"chrome": "card",
|
|
79
|
+
"sources": [
|
|
80
|
+
"calls/active"
|
|
81
|
+
],
|
|
82
|
+
"options": {
|
|
83
|
+
"default": {
|
|
84
|
+
"label": "",
|
|
85
|
+
"showApp": true,
|
|
86
|
+
"onlyDuringCall": false
|
|
87
|
+
},
|
|
88
|
+
"x-ui": {},
|
|
89
|
+
"type": "object",
|
|
90
|
+
"properties": {
|
|
91
|
+
"label": {
|
|
92
|
+
"title": "Text",
|
|
93
|
+
"description": "Empty = \"On a call\". \"ON AIR\", \"Do not disturb\"… for whoever walks in.",
|
|
94
|
+
"default": "",
|
|
95
|
+
"x-ui": {
|
|
96
|
+
"label": {
|
|
97
|
+
"en": "Text",
|
|
98
|
+
"es": "Texto"
|
|
99
|
+
},
|
|
100
|
+
"help": {
|
|
101
|
+
"en": "Empty = \"On a call\". \"ON AIR\", \"Do not disturb\"… for whoever walks in.",
|
|
102
|
+
"es": "Vacío = «En llamada». «ON AIR», «No molestar»… para quien entre en el despacho."
|
|
103
|
+
},
|
|
104
|
+
"placeholder": "ON AIR"
|
|
105
|
+
},
|
|
106
|
+
"type": "string",
|
|
107
|
+
"maxLength": 40
|
|
108
|
+
},
|
|
109
|
+
"showApp": {
|
|
110
|
+
"title": "Show the app",
|
|
111
|
+
"description": "Which app holds the mic (Teams, Chrome…).",
|
|
112
|
+
"default": true,
|
|
113
|
+
"x-ui": {
|
|
114
|
+
"label": {
|
|
115
|
+
"en": "Show the app",
|
|
116
|
+
"es": "Mostrar la aplicación"
|
|
117
|
+
},
|
|
118
|
+
"help": {
|
|
119
|
+
"en": "Which app holds the mic (Teams, Chrome…).",
|
|
120
|
+
"es": "Qué aplicación tiene el micro (Teams, Chrome…)."
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"type": "boolean"
|
|
124
|
+
},
|
|
125
|
+
"onlyDuringCall": {
|
|
126
|
+
"title": "Only during a call",
|
|
127
|
+
"description": "Skipped in its cell rotation when there is no call.",
|
|
128
|
+
"default": false,
|
|
129
|
+
"x-ui": {
|
|
130
|
+
"label": {
|
|
131
|
+
"en": "Only during a call",
|
|
132
|
+
"es": "Sólo durante una llamada"
|
|
133
|
+
},
|
|
134
|
+
"help": {
|
|
135
|
+
"en": "Skipped in its cell rotation when there is no call.",
|
|
136
|
+
"es": "Sale del turno de su celda cuando no hay llamada."
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"type": "boolean"
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"screenshot": "docs/status.png",
|
|
144
|
+
"animated": false,
|
|
145
|
+
"urgent": true
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"sources": [
|
|
149
|
+
{
|
|
150
|
+
"type": "calls/active",
|
|
151
|
+
"name": {
|
|
152
|
+
"en": "Video call",
|
|
153
|
+
"es": "Videollamada"
|
|
154
|
+
},
|
|
155
|
+
"description": {
|
|
156
|
+
"en": "Whether you are on a call: an app (browser, Teams, Zoom…) holding the microphone open, even muted. Linux with PulseAudio or PipeWire.",
|
|
157
|
+
"es": "Si estás en una llamada: una aplicación (navegador, Teams, Zoom…) con el micrófono abierto, aunque esté silenciado. Linux con PulseAudio o PipeWire."
|
|
158
|
+
},
|
|
159
|
+
"polled": true,
|
|
160
|
+
"intervalMs": 15000,
|
|
161
|
+
"options": {
|
|
162
|
+
"default": {
|
|
163
|
+
"apps": [
|
|
164
|
+
"chrome",
|
|
165
|
+
"google-chrome",
|
|
166
|
+
"msedge",
|
|
167
|
+
"microsoft-edge",
|
|
168
|
+
"chromium",
|
|
169
|
+
"brave",
|
|
170
|
+
"firefox",
|
|
171
|
+
"teams",
|
|
172
|
+
"teams-for-linux",
|
|
173
|
+
"zoom",
|
|
174
|
+
"slack",
|
|
175
|
+
"discord",
|
|
176
|
+
"skypeforlinux"
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
"x-ui": {},
|
|
180
|
+
"type": "object",
|
|
181
|
+
"properties": {
|
|
182
|
+
"apps": {
|
|
183
|
+
"title": "Apps that count",
|
|
184
|
+
"description": "Process names. Empty = any app recording from a microphone.",
|
|
185
|
+
"default": [
|
|
186
|
+
"chrome",
|
|
187
|
+
"google-chrome",
|
|
188
|
+
"msedge",
|
|
189
|
+
"microsoft-edge",
|
|
190
|
+
"chromium",
|
|
191
|
+
"brave",
|
|
192
|
+
"firefox",
|
|
193
|
+
"teams",
|
|
194
|
+
"teams-for-linux",
|
|
195
|
+
"zoom",
|
|
196
|
+
"slack",
|
|
197
|
+
"discord",
|
|
198
|
+
"skypeforlinux"
|
|
199
|
+
],
|
|
200
|
+
"x-ui": {
|
|
201
|
+
"label": {
|
|
202
|
+
"en": "Apps that count",
|
|
203
|
+
"es": "Aplicaciones que cuentan"
|
|
204
|
+
},
|
|
205
|
+
"help": {
|
|
206
|
+
"en": "Process names. Empty = any app recording from a microphone.",
|
|
207
|
+
"es": "Nombres de proceso. Vacío = cualquier aplicación que grabe de un micrófono."
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"type": "array",
|
|
211
|
+
"items": {
|
|
212
|
+
"default": "",
|
|
213
|
+
"x-ui": {
|
|
214
|
+
"placeholder": "firefox"
|
|
215
|
+
},
|
|
216
|
+
"type": "string"
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
],
|
|
223
|
+
"interludes": [],
|
|
224
|
+
"templates": []
|
|
225
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kiosko-plugin-calls",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Are you on a video call? Detects open microphone captures (PulseAudio/PipeWire), even with the mic muted, as a shared source and an on-air light.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,10 +28,14 @@
|
|
|
28
28
|
},
|
|
29
29
|
"kiosko": {
|
|
30
30
|
"plugin": "./dist/index.js",
|
|
31
|
-
"id": "calls"
|
|
31
|
+
"id": "calls",
|
|
32
|
+
"sdk": "^0.2.0",
|
|
33
|
+
"manifest": "./kiosko-manifest.json"
|
|
32
34
|
},
|
|
33
35
|
"files": [
|
|
34
36
|
"dist",
|
|
37
|
+
"docs",
|
|
38
|
+
"kiosko-manifest.json",
|
|
35
39
|
"README.md",
|
|
36
40
|
"LICENSE"
|
|
37
41
|
],
|
|
@@ -44,8 +48,13 @@
|
|
|
44
48
|
"check": "tsc -p tsconfig.json",
|
|
45
49
|
"prepublishOnly": "npm run build"
|
|
46
50
|
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"@kiosko/sdk": "^0.2.0"
|
|
53
|
+
},
|
|
47
54
|
"devDependencies": {
|
|
48
|
-
"@kiosko/sdk": "^0.1
|
|
55
|
+
"@kiosko/sdk": "^0.2.1",
|
|
56
|
+
"@loksly/lcd-canvas-kit": "^0.2.0",
|
|
57
|
+
"@napi-rs/canvas": "^1.0.10",
|
|
49
58
|
"@types/node": "^24.0.0",
|
|
50
59
|
"esbuild": "^0.25.0",
|
|
51
60
|
"typescript": "^5.9.3"
|