Skip to content

Commit 7a740dc

Browse files
authored
sound150 v13.5.0: Adds the 'mic-mute' shortcut (#7930)
* sound150 v13.5.0: Adds the 'mic-mute' shortcut * sound150 v13.5.0: Translation files
1 parent f86da6f commit 7a740dc

File tree

17 files changed

+672
-574
lines changed

17 files changed

+672
-574
lines changed

sound150@claudiux/files/sound150@claudiux/6.4/applet.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,9 @@ class Sound150Applet extends Applet.TextIconApplet {
399399
this.settings.bind("audio-prev", "audio_prev", () => {
400400
this._setKeybinding()
401401
});
402+
this.settings.bind("mic-mute", "mic_mute", () => {
403+
this._setKeybinding()
404+
});
402405

403406
this.settings.bind("VOLUME_ADJUSTMENT_STEP", "VOLUME_ADJUSTMENT_STEP");
404407

@@ -1002,6 +1005,7 @@ class Sound150Applet extends Applet.TextIconApplet {
10021005

10031006
Main.keybindingManager.removeHotKey("audio-next");
10041007
Main.keybindingManager.removeHotKey("audio-prev");
1008+
Main.keybindingManager.removeHotKey("mic-mute");
10051009

10061010
if (this.audio_stop.length > 2)
10071011
Main.keybindingManager.addHotKey("audio-stop", this.audio_stop,
@@ -1042,6 +1046,10 @@ class Sound150Applet extends Applet.TextIconApplet {
10421046
this._players[this._activePlayer]._mediaServerPlayer.PreviousRemote()
10431047
}
10441048
});
1049+
if (this.mic_mute.length > 2)
1050+
Main.keybindingManager.addHotKey("mic-mute", this.mic_mute, () => {
1051+
this._toggle_in_mute()
1052+
});
10451053
} // End of _setKeybinding
10461054

10471055
_on_maxVolume_changed(value) {
@@ -2094,7 +2102,7 @@ class Sound150Applet extends Applet.TextIconApplet {
20942102
}
20952103

20962104
_changeActivePlayer(player) {
2097-
if (this._activePlayer)
2105+
if (this._activePlayer && this._players[this._activePlayer])
20982106
this.menu.box.remove_actor(this._players[this._activePlayer].actor);
20992107

21002108
this._activePlayer = player;
@@ -2524,6 +2532,9 @@ class Sound150Applet extends Applet.TextIconApplet {
25242532

25252533
const audio_prev = s.get_strv("previous");
25262534
this.audio_prev = audio_prev.join("::");
2535+
2536+
const mic_mute = s.get_strv("mic-mute");
2537+
this.mic_mute = mic_mute.join("::");
25272538
}
25282539

25292540
install_OSD150() {

sound150@claudiux/files/sound150@claudiux/6.4/settings-schema.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@
193193
"volume-up",
194194
"volume-down",
195195
"audio-next",
196-
"audio-prev"
196+
"audio-prev",
197+
"mic-mute"
197198
]
198199
},
199200
"sectionCommands": {
@@ -608,6 +609,12 @@
608609
"default": "::",
609610
"description": "Previous Track"
610611
},
612+
"mic-mute": {
613+
"type": "keybinding",
614+
"dependency": "redefine-volume-keybindings",
615+
"default": "::",
616+
"description": "Microphone Mute"
617+
},
611618
"custom-commands-label": {
612619
"type": "label",
613620
"description": "These commands will appear in the context menu once you've reloaded this applet."

sound150@claudiux/files/sound150@claudiux/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### v13.5.0~20251030
2+
* Adds the 'mic-mute' shortcut. See the FAQ in README to implement it.
3+
14
### v13.4.1~20251030
25
* Fixes a bug when the current player is undefined.
36

sound150@claudiux/files/sound150@claudiux/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"max-instances": "1",
66
"description": "Enhanced sound applet",
77
"hide-configuration": false,
8-
"version": "13.4.1",
8+
"version": "13.5.0",
99
"cinnamon-version": [
1010
"2.8",
1111
"3.0",

sound150@claudiux/files/sound150@claudiux/po/ca.po

Lines changed: 48 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgstr ""
88
"Project-Id-Version: sound150@claudiux 6.16.0\n"
99
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-applets/"
1010
"issues\n"
11-
"POT-Creation-Date: 2025-09-23 19:43+0200\n"
11+
"POT-Creation-Date: 2025-10-30 20:26+0100\n"
1212
"PO-Revision-Date: 2025-09-28 17:01+0200\n"
1313
"Last-Translator: Odyssey <[email protected]>\n"
1414
"Language-Team: \n"
@@ -19,30 +19,30 @@ msgstr ""
1919
"X-Generator: Poedit 3.6\n"
2020

2121
#. 6.2/applet.js:138 4.4/applet.js:72 5.4/applet.js:132 4.6/applet.js:73
22-
#. 2.8/applet.js:65 6.4/applet.js:188 3.4/applet.js:65
22+
#. 2.8/applet.js:65 6.4/applet.js:190 3.4/applet.js:65
2323
msgid "Playing"
2424
msgstr "Reproduint"
2525

2626
#. 6.2/applet.js:139 4.4/applet.js:73 5.4/applet.js:133 4.6/applet.js:74
27-
#. 2.8/applet.js:66 6.4/applet.js:189 3.4/applet.js:66
27+
#. 2.8/applet.js:66 6.4/applet.js:191 3.4/applet.js:66
2828
msgid "Paused"
2929
msgstr "Pausat"
3030

3131
#. 6.2/applet.js:140 4.4/applet.js:74 5.4/applet.js:134 4.6/applet.js:75
32-
#. 2.8/applet.js:67 6.4/applet.js:190 3.4/applet.js:67
32+
#. 2.8/applet.js:67 6.4/applet.js:192 3.4/applet.js:67
3333
msgid "Stopped"
3434
msgstr "Aturat"
3535

3636
#. 6.2/applet.js:238 6.2/applet.js:2042 4.4/applet.js:1034 5.4/applet.js:224
37-
#. 5.4/applet.js:1964 4.6/applet.js:1050 2.8/applet.js:1277 6.4/applet.js:540
37+
#. 5.4/applet.js:1964 4.6/applet.js:1050 2.8/applet.js:1277 6.4/applet.js:556
3838
#. 6.4/lib/volumeSlider.js:37 6.4/lib/volumeSlider.js:43 3.4/applet.js:1199
3939
msgid "Microphone"
4040
msgstr "Micròfon"
4141

4242
#. 6.2/applet.js:254 6.2/applet.js:2954 6.2/applet.js:3122 4.4/applet.js:1403
4343
#. 4.4/applet.js:1497 5.4/applet.js:241 5.4/applet.js:2742 5.4/applet.js:2902
4444
#. 4.6/applet.js:137 4.6/applet.js:1428 4.6/applet.js:1523 2.8/applet.js:1650
45-
#. 2.8/applet.js:1735 6.4/applet.js:1743 6.4/applet.js:1945
45+
#. 2.8/applet.js:1735 6.4/applet.js:1790 6.4/applet.js:1992
4646
#. 6.4/lib/volumeSlider.js:55 3.4/applet.js:1577 3.4/applet.js:1662
4747
msgid "Volume"
4848
msgstr "Volum"
@@ -61,7 +61,7 @@ msgstr "Vídeos"
6161
#. 5.4/applet.js:1401 5.4/applet.js:1404 5.4/applet.js:1407 5.4/applet.js:1441
6262
#. 5.4/applet.js:1450 5.4/applet.js:2715 5.4/applet.js:2749 4.6/applet.js:600
6363
#. 4.6/applet.js:727 4.6/applet.js:731 2.8/applet.js:529 2.8/applet.js:761
64-
#. 2.8/applet.js:765 6.4/applet.js:1709 6.4/applet.js:1752
64+
#. 2.8/applet.js:765 6.4/applet.js:1756 6.4/applet.js:1799
6565
#. 6.4/lib/s150PopupMenu.js:272 6.4/lib/s150PopupMenu.js:586
6666
#. 6.4/lib/s150PopupMenu.js:589 6.4/lib/s150PopupMenu.js:591
6767
#. 6.4/lib/s150PopupMenu.js:625 6.4/lib/s150PopupMenu.js:633 3.4/applet.js:534
@@ -80,7 +80,7 @@ msgstr "Àlbum desconegut"
8080
#. 6.2/applet.js:1497 6.2/applet.js:2964 4.4/applet.js:593 4.4/applet.js:739
8181
#. 5.4/applet.js:1120 5.4/applet.js:1435 5.4/applet.js:1444 5.4/applet.js:1447
8282
#. 5.4/applet.js:1455 5.4/applet.js:2752 4.6/applet.js:602 4.6/applet.js:743
83-
#. 2.8/applet.js:531 2.8/applet.js:777 6.4/applet.js:1755
83+
#. 2.8/applet.js:531 2.8/applet.js:777 6.4/applet.js:1802
8484
#. 6.4/lib/s150PopupMenu.js:274 6.4/lib/s150PopupMenu.js:619
8585
#. 6.4/lib/s150PopupMenu.js:628 6.4/lib/s150PopupMenu.js:631
8686
#. 6.4/lib/s150PopupMenu.js:638 3.4/applet.js:536 3.4/applet.js:782
@@ -160,58 +160,58 @@ msgid "Shuffle"
160160
msgstr "Reproducció aleatòria"
161161

162162
#. 6.2/applet.js:2023 4.4/applet.js:1019 5.4/applet.js:1945 4.6/applet.js:1035
163-
#. 2.8/applet.js:1262 6.4/applet.js:436 3.4/applet.js:1184
163+
#. 2.8/applet.js:1262 6.4/applet.js:448 3.4/applet.js:1184
164164
msgid "Mute output"
165165
msgstr "Silenciar la sortida"
166166

167167
#. 6.2/applet.js:2024 4.4/applet.js:1020 5.4/applet.js:1946 4.6/applet.js:1036
168-
#. 2.8/applet.js:1263 6.4/applet.js:437 3.4/applet.js:1185
168+
#. 2.8/applet.js:1263 6.4/applet.js:449 3.4/applet.js:1185
169169
msgid "Mute input"
170170
msgstr "Silenciar l'entrada"
171171

172172
#. 6.2/applet.js:2034 4.4/applet.js:1026 5.4/applet.js:1956 4.6/applet.js:1042
173-
#. 2.8/applet.js:1269 6.4/applet.js:532 3.4/applet.js:1191
173+
#. 2.8/applet.js:1269 6.4/applet.js:548 3.4/applet.js:1191
174174
msgid "Applications"
175175
msgstr "Aplicacions"
176176

177177
#. 6.2/applet.js:2035 4.4/applet.js:1027 5.4/applet.js:1957 4.6/applet.js:1043
178-
#. 2.8/applet.js:1270 6.4/applet.js:533 3.4/applet.js:1192
178+
#. 2.8/applet.js:1270 6.4/applet.js:549 3.4/applet.js:1192
179179
msgid "Output device"
180180
msgstr "Dispositiu de sortida"
181181

182182
#. 6.2/applet.js:2044 4.4/applet.js:1036 5.4/applet.js:1966 4.6/applet.js:1052
183-
#. 2.8/applet.js:1280 6.4/applet.js:542 3.4/applet.js:1202
183+
#. 2.8/applet.js:1280 6.4/applet.js:558 3.4/applet.js:1202
184184
msgid "Input device"
185185
msgstr "Dispositiu d'entrada"
186186

187-
#. 6.2/applet.js:2057 5.4/applet.js:1979 6.4/applet.js:554
187+
#. 6.2/applet.js:2057 5.4/applet.js:1979 6.4/applet.js:570
188188
msgid "Easy Effects"
189189
msgstr "Easy Effects"
190190

191-
#. 6.2/applet.js:2064 5.4/applet.js:1986 6.4/applet.js:563
191+
#. 6.2/applet.js:2064 5.4/applet.js:1986 6.4/applet.js:579
192192
msgid "Pulse Effects"
193193
msgstr "Pulse Effects"
194194

195-
#. 6.2/applet.js:2116 5.4/applet.js:2030 6.4/applet.js:823 6.4/applet.js:846
195+
#. 6.2/applet.js:2116 5.4/applet.js:2030 6.4/applet.js:860 6.4/applet.js:883
196196
#, javascript-format
197197
msgid "Are you sure you want to remove '%s'?"
198198
msgstr "Segur que voleu eliminar '%s'?"
199199

200-
#. 6.2/applet.js:2970 5.4/applet.js:2758 6.4/applet.js:1763
200+
#. 6.2/applet.js:2970 5.4/applet.js:2758 6.4/applet.js:1810
201201
msgid "The 'playerctl' package is required!"
202202
msgstr "Es necessita el paquet 'playerctl'!"
203203

204-
#. 6.2/applet.js:2971 5.4/applet.js:2759 6.4/applet.js:1764
204+
#. 6.2/applet.js:2971 5.4/applet.js:2759 6.4/applet.js:1811
205205
msgid "Please select 'Install playerctl' in this menu"
206206
msgstr "Si us plau, seleccioneu 'Instal·la playerctl' en aquest menú"
207207

208208
#. 6.2/applet.js:3110 4.4/applet.js:1397 5.4/applet.js:2890 4.6/applet.js:1417
209-
#. 2.8/applet.js:1644 6.4/applet.js:226 3.4/applet.js:1571
209+
#. 2.8/applet.js:1644 6.4/applet.js:235 3.4/applet.js:1571
210210
msgid "Launch player"
211211
msgstr "Iniciar reproductor"
212212

213213
#. 6.2/applet.js:3115 4.4/applet.js:1392 5.4/applet.js:2895 4.6/applet.js:1422
214-
#. 2.8/applet.js:1639 6.4/applet.js:228 3.4/applet.js:1566
214+
#. 2.8/applet.js:1639 6.4/applet.js:237 3.4/applet.js:1566
215215
msgid "Choose player controls"
216216
msgstr "Escollir els controls del reproductor"
217217

@@ -222,65 +222,65 @@ msgstr "Escollir els controls del reproductor"
222222
#. 6.4->settings-schema.json->sectionSound1->title
223223
#. 3.4->settings-schema.json->section3->description
224224
#. 6.2/applet.js:3130 4.4/applet.js:1409 5.4/applet.js:2910 4.6/applet.js:1434
225-
#. 2.8/applet.js:1657 6.4/applet.js:1953 3.4/applet.js:1584
225+
#. 2.8/applet.js:1657 6.4/applet.js:2000 3.4/applet.js:1584
226226
msgid "Sound Settings"
227227
msgstr "Opcions de so"
228228

229229
#. 6.4->settings-schema.json->button-reload-applet->description
230-
#. 6.2/applet.js:3135 5.4/applet.js:2915 6.4/applet.js:153
230+
#. 6.2/applet.js:3135 5.4/applet.js:2915 6.4/applet.js:155
231231
msgid "Reload this applet"
232232
msgstr "Refresca aquesta miniaplicació"
233233

234-
#. 6.2/applet.js:3141 5.4/applet.js:2921 6.4/applet.js:1959
234+
#. 6.2/applet.js:3141 5.4/applet.js:2921 6.4/applet.js:2006
235235
msgid "Remove sound applet"
236236
msgstr "Elimina la miniaplicació"
237237

238-
#. 6.2/applet.js:3150 5.4/applet.js:2930 6.4/applet.js:1979
238+
#. 6.2/applet.js:3150 5.4/applet.js:2930 6.4/applet.js:2026
239239
msgid "Install playerctl"
240240
msgstr "Instal·la playerctl"
241241

242-
#. 6.4/applet.js:214 6.4/applet.js:256 6.4/applet.js:258
242+
#. 6.4/applet.js:223 6.4/applet.js:265 6.4/applet.js:267
243243
msgid "%"
244244
msgstr "%"
245245

246246
#. 6.4->settings-schema.json->custom-commands-list->description
247-
#. 6.4/applet.js:572
247+
#. 6.4/applet.js:588
248248
msgid "Commands"
249249
msgstr "Ordres"
250250

251-
#. 6.4/applet.js:582
251+
#. 6.4/applet.js:598
252252
msgid "Album Art desklet settings"
253253
msgstr "Configuració de la miniaplicació d'escriptori Àlbum Art"
254254

255-
#. 6.4/applet.js:589
255+
#. 6.4/applet.js:605
256256
msgid "Show Album Art on desktop"
257257
msgstr "Mostrar la caràtula de l'àlbum a l'escriptori"
258258

259-
#. 6.4/applet.js:715
259+
#. 6.4/applet.js:751
260260
msgid "You need the 'Album Art 3.0' desklet"
261261
msgstr "Necessiteu la miniaplicació d'escriptori 'Àlbum Art 3.0'"
262262

263-
#. 6.4/applet.js:716
263+
#. 6.4/applet.js:752
264264
msgid ""
265265
"You can install it by clicking on the first button and then searching for "
266266
"Album."
267267
msgstr ""
268268
"Podeu instal·lar-la fent clic al primer botó i buscant la cadena de text "
269269
"Àlbum."
270270

271-
#. 6.4/applet.js:717 6.4/applet.js:735
271+
#. 6.4/applet.js:753 6.4/applet.js:771
272272
msgid "Desklets"
273273
msgstr "Miniaplicacions d'escriptori"
274274

275-
#. 6.4/applet.js:718 6.4/applet.js:736 6.4/applet.js:766
275+
#. 6.4/applet.js:754 6.4/applet.js:772 6.4/applet.js:803
276276
msgid "Cancel"
277277
msgstr "Cancel·la"
278278

279-
#. 6.4/applet.js:733
279+
#. 6.4/applet.js:769
280280
msgid "You need to activate the 'Album Art 3.0' desklet"
281281
msgstr "Necessiteu activar la miniaplicació d'escriptori 'Àlbum Art 3.0'"
282282

283-
#. 6.4/applet.js:734
283+
#. 6.4/applet.js:770
284284
msgid ""
285285
"You can activate it by clicking on the first button, then searching for "
286286
"Album and adding it with button [+]."
@@ -289,44 +289,44 @@ msgstr ""
289289
"afegint-la amb el botó [+]."
290290

291291
#. metadata.json->name
292-
#. 6.4/applet.js:767
292+
#. 6.4/applet.js:804
293293
msgid "Enhanced Sound applet"
294294
msgstr "Miniaplicació de so millorat"
295295

296-
#. 6.4/applet.js:770
296+
#. 6.4/applet.js:807
297297
msgid "Enable the OSD150 extension"
298298
msgstr "Activa l'extensió OSD150"
299299

300-
#. 6.4/applet.js:771
300+
#. 6.4/applet.js:808
301301
msgid "To obtain an horizontal OSD, you need to enable the OSD150 extension."
302302
msgstr "Per a obtenir l'OSD horitzontal, cal que activeu l'extensió OSD150."
303303

304-
#. 6.4/applet.js:787
304+
#. 6.4/applet.js:824
305305
msgid "Download the OSD150 extension"
306306
msgstr "Descarrega l'extensió OSD150"
307307

308-
#. 6.4/applet.js:788
308+
#. 6.4/applet.js:825
309309
msgid ""
310310
"To obtain an horizontal OSD, you need to download the OSD150 extension.\n"
311311
"Click on the Download button then search for OSD150 and select the ⬇ button."
312312
msgstr ""
313313
"Per a obtenir una OSD horitzontal, cal que descarregueu l'extensió OSD150.\n"
314314
"Feu clic al botó de descàrrega, busqueu OSD150 i premeu el botó ⬇."
315315

316-
#. 6.4/applet.js:1768
316+
#. 6.4/applet.js:1815
317317
msgid "The 'imagemagick' package is required!"
318318
msgstr "Es necessita el paquet 'imagemagick'!"
319319

320-
#. 6.4/applet.js:1769
320+
#. 6.4/applet.js:1816
321321
msgid "Please select 'Install imagemagick' in this menu"
322322
msgstr "Si us plau, seleccioneu 'Instal·la imagemagick' en aquest menú"
323323

324324
#. 6.4->settings-schema.json->remove_OsdWithNumberATJosephMcc->description
325-
#. 6.4/applet.js:1967
325+
#. 6.4/applet.js:2014
326326
msgid "Remove the OsdWithNumber extension"
327327
msgstr "Elimina l'extensió OsdWithNumber"
328328

329-
#. 6.4/applet.js:1984
329+
#. 6.4/applet.js:2031
330330
msgid "Install imagemagick"
331331
msgstr "Instal·la imagemagick"
332332

@@ -1166,6 +1166,11 @@ msgstr "Mostra l'OSD horitzontal"
11661166
msgid "Show bar level in OSD"
11671167
msgstr "Mostrar el nivell de la barra a l'OSD"
11681168

1169+
#. 6.4->settings-schema.json->mic-mute->description
1170+
#, fuzzy
1171+
msgid "Microphone Mute"
1172+
msgstr "Micròfon"
1173+
11691174
#. 6.4->settings-schema.json->custom-commands-label->description
11701175
msgid ""
11711176
"These commands will appear in the context menu once you've reloaded this "

0 commit comments

Comments
 (0)