ShareShortcuts

Action Button Music

Turn your action button into a play pause and dnd button

nemo-dead
„Action Button Music“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit nemo-dead die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
8K
Gesichert
0
Aktionen
9
Kategorie
API
Version
1.0
Sprache
EN

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.

Neue Funktionen

Version 1.0

First release

Versionsverlauf
1.0 8. Jan 2026

First release

Was er macht

9 Aktionen
  1. Get Audio Playback Destination
    com.sindresorhus.Actions
  2. If
  3. Play/Pause
  4. If
  5. Get Current Focus
  6. If
  7. Set Focus
  8. If
  9. Set Focus

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

#define color gray

rawAction("com.sindresorhus.Actions.GetAudioPlaybackDestinationIntent", {
	"AppIntentDescriptor": ""
})

if AudioPlaybackDestination == "Bluetooth headphone name" {
	togglePlayPause()
} else {
	const CurrentFocus = getFocusMode()
	if CurrentFocus {
		DNDOff()
	} else {
		DNDOn()
	}
}
In Cherri Playground öffnen Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Werbung

Mehr von nemo-dead

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung