Scan med din iPhone for at installere
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.
Nyheder
Version 1.0
First release
Hvad den gør
9 handlinger-
Get Audio Playback Destinationcom.sindresorhus.Actions
-
If
-
Play/Pause
-
If
-
Get Current Focus
-
If
-
Set Focus
-
If
-
Set Focus
Vis som kode
Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.
#define color gray
rawAction("com.sindresorhus.Actions.GetAudioPlaybackDestinationIntent", {
"AppIntentDescriptor": ""
})
if AudioPlaybackDestination == "Bluetooth headphone name" {
togglePlayPause()
} else {
const CurrentFocus = getFocusMode()
if CurrentFocus {
DNDOff()
} else {
DNDOn()
}
}
Å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 nemo-dead
Du vil måske også kunne lide
Annonce