A macOS menu bar app that counts down to your layoff. You enter the moment you're out, and the menu bar shows how much of your career here is left (💀 23d 4h). There's also a desktop widget with a ticking clock, a red progress bar for the notice period and a new dark one-liner each day. It's a joke for the team, so treat it like one.
The app has no network access. Your date stays on your Mac and nothing is sent anywhere.
Requires macOS 14 (Sonoma) or later.
- Open
LayoffCountdown.dmgand dragLayoffCountdown.apptoApplications. - Open the app. macOS blocks it the first time, because the app isn't signed by a registered developer.
- Go to System Settings › Privacy & Security, scroll down and click Open Anyway next to the message about LayoffCountdown. Then open the app again.
You can also clear the quarantine flag in Terminal instead of step 3:
xattr -dr com.apple.quarantine /Applications/LayoffCountdown.appRight-click › Open no longer gets past Gatekeeper on macOS 15 and later.
The app lives in the menu bar only. It has no Dock icon. To quit it, click the menu bar item and choose Quit Layoff Countdown.
On first launch the settings window opens by itself. Later you can open it from the menu bar item › Settings….
- Layoff moment: the date and time you're out (defaults to 17:00, in this Mac's time zone)
- Announced on: the day you got the news, which the widget uses for its progress bar
- Menu bar: pick an emoji and a style, either short (
💀 23d 4h) or full (💀 23d 4:17:52) - Open at login: start the app when you log in
Click Save. When the moment passes, the menu bar says 💀 Goodbye.
The full style shows hours without padding and drops to M:SS in the last hour of a day (💀 0d 17:52), the same way the widget does.
A "day" is exactly 24 hours counted back from the layoff moment, not a calendar day. Across a daylight saving change the day number ticks over one hour off from the wall clock. That's expected.
If Open at login needs your approval, the settings window shows an Open System Settings button that takes you to System Settings › General › Login Items.
The app is sandboxed. In a DMG or other ad-hoc build, its settings live in ~/Library/Containers/com.layoffcountdown.app/Data/Library/Preferences/com.layoffcountdown.app.plist. To start over, quit the app, then run:
defaults delete ~/Library/Containers/com.layoffcountdown.app/Data/Library/Preferences/com.layoffcountdown.app layoffSettings.v1In a build signed with your Personal Team, the settings also live in the shared App Group. Delete that copy too, with your team ID in place of <TEAM>:
defaults delete ~/Library/Group\ Containers/<TEAM>.com.layoffcountdown.shared/Library/Preferences/<TEAM>.com.layoffcountdown.shared layoffSettings.v1The widget can't read the app's settings from the shared DMG. That needs both signed with a real team and sharing an App Group, and the DMG is not signed that way on purpose (see below). So the widget has its own dates: right-click it › Edit Widget, then set Layoff date, Layoff time (whole hours, default 17:00) and, for the progress bar, Notice started. Dates show in your Mac's Region format (System Settings › General › Language & Region), so 3/31/2027 is 31 March 2027 on a US-format Mac. Until you do, it shows Right-click › Edit Widget to set your date. The second-Mac widget test checks what a teammate's Mac actually does.
In a build signed with your own Personal Team, the widget also falls back to the app's settings when its own date is empty. A date set on the widget always wins.
Install a new DMG the same way as the first one. Each DMG build looks like a different app to macOS, so you may need to enter your date again and turn Open at login off and on again.
You need Xcode 16 or later. The generated LayoffCountdown.xcodeproj is committed, so open it and run the LayoffCountdown scheme.
XcodeGen is needed only if you change project.yml:
brew install xcodegen
xcodegen generateShared logic lives in Packages/LayoffCore and has its own tests:
swift test --package-path Packages/LayoffCoreApp/ menu bar app (SwiftUI MenuBarExtra + settings Window)
Widget/ WidgetKit extension, medium size only
Packages/LayoffCore/ shared logic, no UI: countdown maths, formatting,
settings storage, jokes, widget schedule
Config/Signing.xcconfig signing settings; overrides go in Signing.local.xcconfig
Config/AdHoc.entitlements sandbox-only entitlements used by the DMG script
project.yml XcodeGen source for LayoffCountdown.xcodeproj
scripts/make-dmg.sh Release build + DMG
scripts/make-icon.sh redraws the app icon (drawing code in make-icon.swift)
docs/superpowers/ design spec and implementation plan
project.yml is the source of truth. Don't hand-edit the .xcodeproj, the Info.plist files or the .entitlements in App/ and Widget/; change project.yml and run xcodegen generate.
The app icon is drawn in code. To change it, edit scripts/make-icon.swift and run bash scripts/make-icon.sh, which rewrites App/Assets.xcassets/AppIcon.appiconset.
- Countdown.
CountdownStateisnotSet,countingordone.CountdownFormatterturns the remaining seconds into23d 4hor23d 4:17:52. One day is 86,400 seconds counted back from the layoff moment, so the menu bar and the widget always agree. - Menu bar.
Tickerpublishes the time once a second, aligned to whole seconds. Only the menu bar label, the dropdown and the settings preview observe it, so the settings form doesn't redraw while you type.AppModelholds the settings and saves them. - Settings storage.
SettingsStorekeepsLayoffSettingsas JSON under thelayoffSettings.v1key. It uses the App Group when the build has a team (AppGroup.current), and the app's own defaults otherwise. When a team is added later, it copies the existing settings into the App Group once. - Widget. Widgets can't redraw every second, so the clock is
Ndplus a system timer (Text(timerInterval:)) counting down to the next day boundary.WidgetScheduleadds a timeline entry one second after each day boundary, at the deadline, and at local midnight for the daily joke. The progress bar is a self-updatingProgressView(timerInterval:)from Announced on to the layoff moment. - Jokes. 30 one-liners in
Jokes.swift, one per day, picked by days since 2026-01-01. Keep them about the situation; never name a person or a company.
Without a team the app builds ad-hoc ("Sign to Run Locally") and the menu bar works fully. To get the widget reading your settings, sign with your free Apple ID Personal Team:
-
Create
Config/Signing.local.xcconfig(gitignored) with both lines:DEVELOPMENT_TEAM = XXXXXXXXXX CODE_SIGN_IDENTITY = Apple DevelopmentSetting only the team leaves the build ad-hoc signed, and the widget won't see your settings.
-
Build and run from Xcode.
Use this for your own Mac only. Personal Team signing puts your Apple ID name and team ID into the app's signature, so never share a build signed this way.
bash scripts/make-dmg.shThis writes two DMGs to build/:
LayoffCountdown-unsigned.dmgis the one to share. It is always ad-hoc without the App Group, even whenSigning.local.xcconfigsets a team, so no name or team ID ends up in teammates' copies. The script stops with an error if a team ID, network entitlement or App Group slips into the build.LayoffCountdown.dmgis signed with the identity inSIGN_IDENTITY, and the widget reads the app's settings. The team ID comes from the certificate (override withDEVELOPMENT_TEAM). It carries your team ID, so keep it for your own Macs. Without an identity the script builds only the unsigned DMG.
Run this once on a Mac that didn't build the app, to tell the team what to expect from the DMG:
- Install the DMG on the second Mac as described in Install
- Set a layoff moment a few days out and click Save
- Check the menu bar shows the countdown
- Right-click the desktop › Edit Widgets, search for "Layoff Countdown"
- Note whether the widget appears in the gallery
- Add the medium widget. It shows
Right-click › Edit Widget to set your date - Right-click it › Edit Widget, set Layoff date, Layoff time and Notice started to match the app, and note whether it counts down with a progress bar and matches the menu bar
Expected result from the DMG: if the widget is listed, it counts down once its own dates are set.