Scanne avec ton iPhone pour installer
Turn your action button into a play pause and dnd button. How it works: This shortcut uses the App Store app called “actions” to detect headphones and will pause or play your music, if AirPods aren’t detected, then you can set a focus mode to use. Instructions: Rename your audio playback destination in the shortcut to the name of your Bluetooth device, once you are done with that, you can set your focus mode on the shortcut too! I have mine set to reduce interruptions.
Nouveautés
Version 1.0
First release
Ce qu’il fait
9 actions-
Get Audio Playback Destinationcom.sindresorhus.Actions
-
If
-
Play/Pause
-
If
-
Get Current Focus
-
If
-
Set Focus
-
If
-
Set Focus
Afficher en tant que code
Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.
#define color gray
rawAction("com.sindresorhus.Actions.GetAudioPlaybackDestinationIntent", {
"AppIntentDescriptor": ""
})
if AudioPlaybackDestination == "Bluetooth headphone name" {
togglePlayPause()
} else {
const CurrentFocus = getFocusMode()
if CurrentFocus {
DNDOff()
} else {
DNDOn()
}
}
Ouvrir dans Cherri Playground
Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.
Notes et avis
Écrire un avis–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aucun avis pour le moment. Sois le premier à partager ton avis !
Publicité
Plus de nemo-dead
Ça pourrait aussi te plaire
Publicité