Guide pages

Guide › Automation

Automation

Control Rotara from Keyboard Maestro, Raycast, Shortcuts or a script with rotara:// links.

The rotara:// links

Go to a workspacerotara://switch?name=Work
Go to workspace 2rotara://switch?number=2
Move the front window there and follow itrotara://move?name=Work
Move it and stayrotara://move?name=Work&follow=0
Make a workspace and go thererotara://new?name=Work
Delete a workspacerotara://delete?name=Work
Make an app open in a workspacerotara://assign?app=com.apple.TextEdit&name=Work
Open a Settings pagerotara://settings?tab=app-pie
Open a pierotara://pie?open=workspace

Workspace names match whatever their case. A name with spaces needs %20 in place of each space: rotara://switch?name=Launch%20Video.

switch

Goes to the workspace with that name. ?number=N goes to the workspace with that number instead, the one ⌃N goes to.

With Each display switches on its own on, add &display= to switch that display and leave the pointer where it is. See Choosing a display.

move

Moves the window you used last in the current workspace to the named workspace, and takes you along. Add &follow=0 to stay where you are. The workspace must already exist. ?number=N names the workspace by its number instead.

With Each display switches on its own on, add &display= to move the window you used last on that display, in the workspace it shows.

new

Makes a workspace with that name, or finds the one that has it, and goes there.

With Each display switches on its own on, add &display= to switch that display to it.

delete

Deletes the named workspace. Its windows move to Main; nothing is closed. ?number=N names the workspace by its number instead.

assign

Makes an app always open its new windows in a workspace: rotara://assign?app=com.apple.TextEdit&name=Work. The app is its bundle ID. ?number=N names the workspace by its number instead. Leave the name out to clear it. A pinned app can't be given a workspace. See Make an app always open in one workspace.

Choosing a display

&display= works on switch, move and new, and only with Each display switches on its own on. Without it, these act on the display under the pointer. With the setting off, display is ignored.

The value is main, secondary (the first display that is not the main one), a number, or a display's ID. Number 1 is the main display, then the others from left to right. An unknown value does nothing.

open "rotara://switch?name=Work&display=2"

settings

Opens Settings on a page: general, workspaces, pinned-apps, smart-freeze, keyboard, workspace-pie, app-pie, window-pie, pie-look, license or about. This one also works when the trial has ended.

pie

rotara://pie?open=workspace, app or window opens that pie at the pointer, as a tap of its key would: open until you click. Add &x=…&y=… to centre it on a point, counted from the top-left of the main display. rotara://pie?close=1 closes it without picking anything.

Examples

Terminal or a script

open "rotara://switch?name=Work"
open "rotara://move?name=Work&follow=0"

Put the link in quotes so the shell leaves & and ? alone.

Keyboard Maestro

Add an Open URL action with a rotara:// link, and give the macro any trigger you like: a key, a time, an app launching.

Shortcuts

Add a URL action with the link, then Open URLs. You can run the shortcut from the menu bar, Spotlight or a key.

To run a shortcut each time you go to a workspace, the other way round, see Run a Shortcut when you switch.

Raycast

Get the Rotara extension from the Raycast Store. It has three commands: Switch Workspace, Move Window to Workspace and New Workspace, each with your workspaces listed by name. You can also save any rotara:// link as a Raycast Quicklink.