ShareShortcuts
Fork “Code Control”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so cillian0941 gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
2K
Saved
0
Actions
21
Category
Fun
Version
1.0
Language
EN

If you don’t know what the codes are check the command I’ll have all the codes there and if you don’t know what it does it’s basically let you turn off and turn on Pacific stuff

What's New

Version 1.0

First release

Version History
1.0 Oct 2, 2026

First release

What it does

21 actions
  1. Ask for Input
    Enter code
  2. If
  3. Set Airplane Mode
  4. If
  5. Set Bluetooth
  6. If
  7. Set Wi-Fi
  8. If
  9. Set Silent Mode
    com.apple.ShortcutsActions
  10. If
  11. Set Low Power Mode
  12. If
  13. Show Control Center
    com.apple.ShortcutsActions
  14. If
  15. Set AirDrop
  16. If
  17. Lock Screen
  18. If
  19. Set Appearance
  20. If
  21. Set Orientation Lock

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#define mac false
#include 'actions/device'
#define color violet

const ProvidedInput = prompt("Enter code", "Number")

if ProvidedInput == 1234 {
	setAirplaneMode(false)
}

if ProvidedInput == 1111 {
	setBluetooth(false)
}

if ProvidedInput == 2222 {
	setWifi(false)
}

if ProvidedInput == 3333 {
	rawAction("com.apple.ShortcutsActions.SetSilentModeAction", {
		"AppIntentDescriptor": "",
		"operation": "toggle"
	})
}

if ProvidedInput == 4444 {
	setLowPowerMode(false)
}

if ProvidedInput == 5555 {
	showControlCenter()
}

if ProvidedInput == 6666 {
	setAirdropReceiving("Off")
}

if ProvidedInput == 7777 {
	lockScreen()
}

if ProvidedInput == 8888 {
	darkMode()
}

if ProvidedInput == 9999 {
	setOrientationLock(false)
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

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

Advertisement

You Might Also Like

See All
Advertisement