brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: give a Mac app its own desktop with Assign To in the Dock

macOS
~/tips/tip-macos-dock-assign-app-to-desktop

Control-click app in Dock > Options > Assign To:

Makes an app always open on the same desktop, or on every desktop.

Spaces (the extra desktops in Mission Control) only help if things stay where you put them. If Mail keeps opening on whatever desktop you happen to be on, the whole idea falls apart. macOS lets you pin an app to one desktop, and the setting is hidden in a right-click on its Dock icon.

With at least two desktops set up, go to the desktop where the app should live. Control-click the app’s icon in the Dock, choose Options, and pick an option under Assign To.

Control-click app in Dock > Options > Assign To:
  All Desktops            open in every space
  This Desktop            open only in this space
  Desktop on Display [n]  open on one display's desktop
  None                    back to normal

My advice is to give the apps that run all day a home. Put Mail and Calendar on desktop 2 with This Desktop, and from then on their windows open there, even when you start them from desktop 1. Something like Music or a note app is a good fit for All Desktops: it follows you around instead of dragging you to another space whenever you click it. Apple lets you create up to 16 spaces, so you won’t run out.

The caveat is the Dock itself. The app needs an icon in the Dock for this menu, so open it first if it isn’t kept there. The “Desktop on Display” option only shows up when you have more than one display. And it works together with the Mission Control setting “When switching to an application, switch to a Space with open windows for the application” (System Settings, Desktop & Dock): with that on, clicking an assigned app jumps you to its desktop, which is usually exactly what you want.

Further reading: Work in multiple spaces on Mac

More macOS tips System Settings > Accessibility > Hover Text > When using the pointer A Smart Folder in Notes collects notes by tag, checklist or date Type # in a Mac note to tag it, then filter by tag in the sidebar tmutil isexcluded ~/Projects/app/node_modules Crop an image in Preview by dragging a frame and clicking Crop All macOS tips (99) All topics

Link