# Add your own switches for anything else.

Canonical page: https://leversmac.com/features/custom-switches

> Turn a shell command or a shortcut from the Shortcuts app into a Levers switch, with a hotkey, a place in your modes and rules, and the palette.

Give it a command to turn it on, one to turn it off, and one that tells Levers whether it’s on, or a shortcut for each. It then works everywhere the others do.

## Three commands make a switch.

One command turns it on, one turns it off, and one tells Levers whether it’s on, so the switch shows the truth even when something else changed it. They run as you, in your shell.

- On, off and a status check
- Any shell command
- Runs as you, in your shell
- The switch shows what is really so

## Or a shortcut for each.

Prefer the Shortcuts app? Pick a shortcut to turn it on and one to turn it off. Anything Shortcuts can do becomes a switch in the menu bar.

- A shortcut for on and one for off
- Anything the Shortcuts app can do
- No commands needed
- Mix them with commands if you like

## A switch like the others.

Your switch shows up in the dropdown, the palette, the step menus of modes and rules, Settings › Shortcuts and the Shortcuts app. A mode that turns it on turns it off again when it stops.

- In the palette, by its name
- As a step in modes and rules
- On a hotkey of its own
- In the Shortcuts app and with Siri

## Your own switches, before and after

Some things you turn on and off every day have no switch: a VPN, a dev server, studio lights, a background sync. They live in Terminal history or in a shortcut you have to find.

Levers gives each one a switch next to the built-in ones, with a hotkey and a place in your modes, so a call mode can turn the VPN on and put it back off after.

## Where it is in Levers

The menu, the switch and the setting, in the order you would reach for them.

1. ### Open Settings › Switches

   Click Add Switch.

2. ### Name it

   Give it a name and a symbol.

3. ### Give it its commands

   Commands to turn it on and off and to check it, or a shortcut for each.

4. ### Use it

   It shows up in the dropdown, the palette, modes, rules and Settings › Shortcuts.

## Your own switches: macOS on its own, and with Levers

macOS on its own Levers

A switch for a command

macOSNo

LeversYes

Shows whether it’s on

macOSNo

LeversYes, from a status command

In a mode, and put back

macOSNo

LeversYes

A hotkey

macOSThrough Shortcuts

LeversYes

## Questions

The ones people ask about your own switches before they buy.

### Can it turn Tailscale or a VPN on and off?

Yes, if it has a command or a shortcut for on and off.

### Do the commands run with administrator rights?

No. They run as you, in your shell. Levers doesn’t check what they do.

### What if I don’t have a status command?

Without one, the switch shows what you last set it to.

## A tidy menu bar for your Mac.

Shelves for your icons, sixty switches and modes, from $6.99, paid once.

[Buy Levers](https://leversmac.com/pricing) [Try free for 3 days](https://leversmac.com/download)

3-day free trial · one payment
