---
title: 'Bunch: Focus Modes and other tips'
date: 2022-03-22 07:55
slug: bunch-focus-modes-and-other-tips
categories:
- Code
tags:
- bunch
- shortcuts
- tagging
- macos
---

I put some time into [Bunch](https://bunchapp.co) this weekend. It's been a little while since I've worked on it --- I haven't needed it to do anything new lately, and the current release hasn't had any major bug reports. So it's been happily humming along. But there was one feature request that I did keep receiving and decided to take another look at.

The request is for support for Monterey's focus modes. Bunch does a decent job of enabling and disabling Do Not Disturb, but the process is a hack that involves nested settings in PLIST data and toggling system daemons. I don't love that I have to do that, but Apple provides no API for such settings. And I haven't found a way (yet) to extend that hack to work with Focus Modes. So I offer a workaround: you can turn Focus Modes on and off using Shortcuts, and you can easily run Shortcuts in a Bunch using the `shortcuts` CLI.

1. Create two shortcuts for each focus mode you want to control from Bunch, one for turning on, and one for turning off. 

	

![workmode.jpg](https://brettterpstra.com/uploads/2022/03/workmode.jpg)

2. Then, in a Bunch, you can use `$ /usr/bin/shortcuts run "SHORTCUT_ON_NAME"` (replacing `SHORTCUT_ON_NAME` with the name of the shortcut that turns the focus mode on), and `!$ /usr/bin/shortcuts run "SHORTCUT_OFF_NAME"`. The combination of these two will turn the focus mode on when the Bunch opens, and off when it closes. You can, of course, reverse these as needed.

	```
	$ /usr/bin/shortcuts run "Work Mode"
	!$ /usr/bin/shortcuts run "Work Mode Off"
	```

3. There is no step 3.

Now when you open and close the Bunch, your desired Focus Mode will toggle on and off with it. It's a couple extra steps beyond having a Bunch command to handle it, but I don't foresee being able to incorporate them directly. Of course, I may just be missing something in the API that would make it possible without deep hacks, in which case I will definitely incorporate it.

### Single Bunch Mode Grouping

Another request I got led to a couple of bug fixes. The following currently only works in the 2.4.8 _beta_ ([download here](https://bunchapp.co/download/)), but if testing goes well, it will be released to the stable version in short order.

What came up was the idea of having Single Bunch Mode apply to subsets of Bunches. 

Single Bunch Mode can be enabled in preferences and simply means that when a Bunch opens, all other Bunches close, so you're only running one at a time. Because Bunch is built for "context switching," this makes switching your working context a single step. You can have any Bunch ignore Single Bunch Mode using frontmatter, so Bunches that should always be running can be easily excluded.

However, you might want to have multiple groups of Bunches where only one Bunch within the group is running at any given time. This can be accomplished with Bunch's tagging features.

To tag a bunch, you just add frontmatter:

```


tags: work


```

Tag all of the Bunches in this subgroup with the same tag. Then, in each Bunch in the group, use the `\tag` syntax to act on the tag. Use `!` to indicate you want to close the tagged Bunches, and include a `%` sign to ignore the directive when closing (so it doesn't reverse it and reopen all of the tagged Bunches).

```
%!\work
```

This effectively gives you Single Bunch Mode for subsets of Bunches. If you ever want to do that, give it a shot.

## Bunch

Project: [Bunch](https://brettterpstra.com/projects/bunch.md)

- [Bunch is back for Golden Gate](https://brettterpstra.com/2026/09/14/bunch-is-back-for-golden-gate.md): 2026-09-14
- [Put all the web browsers in your Dock](https://brettterpstra.com/2026/03/06/put-all-the-web-browsers-in-your-dock.md): 2026-03-06
- [Brett's Favorites 2025](https://brettterpstra.com/2025/12/29/bretts-favorites-2025.md): 2025-12-29
- [Leader Key and Bunch](https://brettterpstra.com/2025/04/30/leader-key-and-bunch.md): 2025-04-30
- [Brett's Favorites 2024: Personal Projects](https://brettterpstra.com/2024/12/31/bretts-favorites-2024-personal-projects.md): 2024-12-31
- [Automating the Dimspirations workflow](https://brettterpstra.com/2024/04/01/automating-the-dimspirations-workflow.md): 2024-04-01
- [Web Excursions for February 29, 2024](https://brettterpstra.com/2024/02/29/web-excursions-for-february-29-2024.md): 2024-02-29
- [Marked and Bunch updates for Sonoma](https://brettterpstra.com/2023/10/05/marked-and-bunch-updates-for-sonoma.md): 2023-10-05
- [Brett's Favorites 2022 - Personal Projects](https://brettterpstra.com/2022/11/30/bretts-favorites-2022-personal-projects.md): 2022-11-30
- [A better Shortcuts command for Bunch](https://brettterpstra.com/2022/08/08/new-in-the-bunch-beta.md): 2022-08-08
- [Project Updates July 2022](https://brettterpstra.com/2022/07/31/project-updates-july-2022.md): 2022-07-31
- [BetterTouchTool and Stream Deck](https://brettterpstra.com/2022/07/02/bettertouchtool-and-stream-deck.md): 2022-07-02
- [Bunch 1.4.8](https://brettterpstra.com/2022/06/14/bunch-1-dot-4-8.md): 2022-06-14
- [Bunch: Focus Modes and other tips](https://brettterpstra.com/2022/03/22/bunch-focus-modes-and-other-tips.md): 2022-03-22
- [He's Doing it again...](https://brettterpstra.com/2022/02/21/doing-it-again-dot-dot-dot.md): 2022-02-21
- [Bunch 1.4.6](https://brettterpstra.com/2021/11/23/bunch-1-dot-4-6.md): 2021-11-23
- [Just your average project update and wellness check-in](https://brettterpstra.com/2021/09/24/just-your-average-project-update-and-wellness-check-in.md): 2021-09-24
- [A Keyboard Maestro macro for cross-linking Markdown docs](https://brettterpstra.com/2021/09/01/keyboard-maestro-markdown-linking.md): 2021-09-01
- [Let's get crazy with BetterTouchTool and Touch Bar Simulator](https://brettterpstra.com/2021/07/21/crazy-bettertouchtool-touch-bar-simulator.md): 2021-07-21
- [Jay Miller: Using Bunch for Creating Newsletters](https://brettterpstra.com/2021/07/06/jay-miller-using-bunch-for-creating-newsletters.md): 2021-07-06
- [Bunch 1.4 is here](https://brettterpstra.com/2021/06/19/bunch-1-dot-4-is-here.md): 2021-06-19
- [A Bunch update, and a Sublime Text package](https://brettterpstra.com/2021/06/08/a-bunch-update-and-a-sublime-text-package.md): 2021-06-08
- [The latest on the Bunch beta](https://brettterpstra.com/2021/03/17/the-latest-on-the-bunch-beta.md): 2021-03-17
- [Bunch gets scheduling (and lots more)](https://brettterpstra.com/2021/02/02/bunch-gets-scheduling-and-lots-more.md): 2021-02-02
- [Another round of Bunch Updates](https://brettterpstra.com/2021/01/19/another-round-of-bunch-updates.md): 2021-01-19
- [And then there were interactive Bunches](https://brettterpstra.com/2021/01/14/and-then-there-were-interactive-bunches.md): 2021-01-14
- [Bunch Updates](https://brettterpstra.com/2021/01/06/bunch-updates.md): 2021-01-06
- [Bunch Snippet Fragments](https://brettterpstra.com/2020/09/17/bunch-snippet-fragments.md): 2020-09-17
- [Bunch and the Stream Deck](https://brettterpstra.com/2020/09/16/bunch-and-stream-deck.md): 2020-09-16
- [Podcasting with Bunch](https://brettterpstra.com/2020/09/15/podcasting-with-bunch.md): 2020-09-15
- [Using Moom with Bunch for window management](https://brettterpstra.com/2020/09/14/using-moom-with-bunch-for-window-management.md): 2020-09-14
- [Bunch gets audio control](https://brettterpstra.com/2020/09/10/bunch-gets-audio-control.md): 2020-09-10
- [Bunch 1.2.2](https://brettterpstra.com/2020/01/14/bunch-1-dot-2-2.md): 2020-01-14
- [Bunch 1.2: no more redundant Bunches](https://brettterpstra.com/2019/09/24/bunch-1-dot-2-no-more-redundant-bunches.md): 2019-09-24
- [Bunch's latest abilities...](https://brettterpstra.com/2019/08/16/bunchs-latest-abilities.md): 2019-08-16
- [Bunch and Timing.app](https://brettterpstra.com/2019/07/02/bunch-and-timing.md): 2019-07-02
- [Bunches LaunchBar Action quick fix](https://brettterpstra.com/2019/06/12/bunches-launchbar-action-quick-fix.md): 2019-06-12
- [Bunch for the menu bar](https://brettterpstra.com/2019/06/11/bunch-for-the-menu-bar.md): 2019-06-11
- [Better Bunch for LaunchBar](https://brettterpstra.com/2019/06/10/better-bunch-for-launchbar.md): 2019-06-10
- [The latest Bunch stuff](https://brettterpstra.com/2019/06/04/the-latest-bunch-stuff.md): 2019-06-04
- [Another day, another Bunch](https://brettterpstra.com/2019/05/20/another-day-another-bunch.md): 2019-05-20
- [Bunch gets its own URL scheme](https://brettterpstra.com/2019/05/17/bunch-gets-its-own-url-scheme.md): 2019-05-17
- [Bunch 1.0.4 with URL schemes support](https://brettterpstra.com/2019/05/16/bunch-1-dot-0-4-with-url-schemes-support.md): 2019-05-16
- [Launch AND quit apps with Bunch 1.0.2](https://brettterpstra.com/2019/05/15/launch-and-quit-apps-with-bunch-1-dot-0-2.md): 2019-05-15
- [Bunch, a batch app launcher for your Dock](https://brettterpstra.com/2019/05/14/bunch-a-batch-app-launcher-for-your-dock.md): 2019-05-14
- [Best of 2017: Real stuff](https://brettterpstra.com/2018/01/22/best-of-2017-real-stuff.md): 2018-01-22
- [Best of 2017: Nerding out on macOS](https://brettterpstra.com/2018/01/15/best-of-2017-nerding-out-on-macos.md): 2018-01-15

---

Brett is a writer and developer living in Minnesota, USA. You can follow him as ttscoff. This content is supported by readers like you. [More about Brett](https://brettterpstra.com/contact.md), including social links.

Copyright © 2026 Brett Terpstra. All rights reserved.
