ShareShortcuts

Background Sounds

Enable/disable background sounds

te55eract
Fork “Background Sounds”

Har du bygget noget nyt oven på denne genvej? Del den som en fork: den bliver din egen genvej, som du styrer, og begge sider linker til hinanden, så te55eract får kredit.

  1. 1Hent genvejen og ret den i Genveje-appen. Giv den sit eget navn.
  2. 2Del den fra Genveje-appen og kopiér iCloud-linket.
  3. 3Kom tilbage hertil, indsæt linket og beskriv, hvad der er anderledes, fx “Tilføjet et trin, der bruger Apple Intelligence til at gøre teksten mere personlig.”
Downloads
12K
Gemt
0
Handlinger
11
Kategori
API
Version
1.1
Sprog
EN

Forhåndsvisning

Enable/disable background sounds

Nyheder

Version 1.1

Some housecleaning

Versionshistorik
1.1 4. nov. 2025

Some housecleaning

1.0 17. aug. 2025

First release

Hvad den gør

11 handlinger
  1. Comment
    This shortcut allows you to enable Background Sounds and choose what plays. By running a second time and choosing ‘ON’ again you can change the sound. Run the shortcut again and choose ‘OFF’ to turn it off.
  2. Comment
    This also sets the default volume of background sounds down a bit as the original default is quite loud.
  3. A X Set Background Sound Volume
    com.apple.AccessibilityUtilities.AXSettingsShortcuts
  4. Choose from Menu
    On or Off?
  5. Choose from Menu
    ON / Change sound
  6. A X Set Background Sound
    com.apple.AccessibilityUtilities.AXSettingsShortcuts
  7. Wait
  8. A X Toggle Background Sounds
    com.apple.AccessibilityUtilities.AXSettingsShortcuts
  9. Choose from Menu
    OFF
  10. A X Toggle Background Sounds
    com.apple.AccessibilityUtilities.AXSettingsShortcuts
  11. Stop This Shortcut

Vis som kode
Beta

Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.

#define glyph musicWaveForm

/*
This shortcut allows you to enable Background Sounds and choose what plays. By running a second time and choosing ‘ON’ again you can change the sound. 

Run the shortcut again and choose ‘OFF’ to turn it off.
*/
// This also sets the default volume of background sounds down a bit as the original default is quite loud. 

rawAction("com.apple.AccessibilityUtilities.AXSettingsShortcuts.AXSetBackgroundSoundVolumeIntent", {
	"volumeValue": 30.120772123336792
})

menu "On or Off?" {
item "ON / Change sound":
	rawAction("com.apple.AccessibilityUtilities.AXSettingsShortcuts.AXSetBackgroundSoundIntent", {
		"backgroundSound": "Ask"
	})
	wait(0)
	rawAction("com.apple.AccessibilityUtilities.AXSettingsShortcuts.AXToggleBackgroundSoundsIntent", {
		"operation": "turn",
		"setting": "backgroundSounds",
		"state": 1
	})
item "OFF":
	rawAction("com.apple.AccessibilityUtilities.AXSettingsShortcuts.AXToggleBackgroundSoundsIntent", {
		"operation": "turn",
		"setting": "backgroundSounds",
		"state": 0
	})
	stop()
}
Åbn i Cherri Playground Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.

Bedømmelser og anmeldelser

Skriv en anmeldelse
–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ingen anmeldelser endnu. Vær den første!

Annonce

Mere fra te55eract

Se alle

Du vil måske også kunne lide

Se alle
Annonce