Skip to content
Edith

Docs

Command reference

Quick Toggles

Quick Toggles has no command group of its own. Every switch and action on its page and Home card is an operation of the running extension, sent through ed invoke with a JSON payload. Results are JSON on stdout; a refused request prints a JSON error on stderr and exits non-zero.

Terminal
ed invoke quickToggles listed invoke quickToggles set --json '{"item":"darkMode","on":true}'ed invoke quickToggles run --json '{"action":"ejectAll"}'ed invoke quickToggles trashed invoke quickToggles run --json '{"action":"emptyTrash","confirm":true}'ed invoke quickToggles layout --json '{"item":"lockScreen","surface":"card","visible":false}'ed invoke quickToggles restore

Items

Item Kind What it does
darkMode switch Light or dark appearance for the whole Mac, through System Events
hideDesktopIcons switch Finder CreateDesktop; Finder restarts to apply it
showHiddenFiles switch Finder AppleShowAllFiles; Finder restarts to apply it
bluetoothSleep switch Turns Bluetooth off at sleep and back on at wake, only when Quick Toggles turned it off
ejectAll action Ejects every external disk and disk image; internal and system volumes are skipped
emptyTrash action Empties the Trash through Finder after confirmation
lockScreen action Locks the screen now
sleepDisplays action Puts every display to sleep now
screenSaver action Starts the macOS screen saver now

Operations

  • list takes {} and returns items, in the saved order. Each item has item, kind (toggle or action), title, detail, on (switches only), available, reason when unavailable, changedByQuickToggles, onPage and onCard.
  • set takes item and on for a switch and returns that item's new state. Sending an action returns an error that says to use run.
  • run takes action and, for emptyTrash, confirm. It returns action, done and message. ejectAll adds eject with ejected, refused (name and reason, such as the app holding the disk) and skipped. emptyTrash adds trash; without "confirm": true it changes nothing and returns needsConfirmation: true with the item count and size.
  • trash takes {} and returns items, knownBytes and unknownSizes.
  • layout changes the order and where items show. Send order, hiddenOnPage or hiddenOnCard as lists of items, or item with move (a signed offset) or with surface (page or card) and visible. It returns order, hiddenOnPage and hiddenOnCard.
  • restore takes {} and puts back every original value Quick Toggles changed, the same work it does when it is turned off or removed. It returns restored, failed and bluetoothRestored.

Quick Toggles records each switch's original value before its first change. Turning the extension off or removing it puts those values back and turns Bluetooth back on if Quick Toggles turned it off. If Edith quits while that is unfinished, the next launch finishes it.

Dark mode asks macOS once for permission to control System Events, and the Trash count and Empty Trash ask once for permission to control Finder.