FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
NoSleep: A Lightweight macOS Menu Bar App with SwiftUI
How-ToTools

NoSleep: A Lightweight macOS Menu Bar App with SwiftUI

via Dev.toSergio Farfan Cardenete3h ago

Have you ever been mid-presentation, watching a long build compile, or waiting for a large file to download — only for your Mac to decide it's nap time? macOS ships a built-in tool for exactly this: caffeinate . But running it from the terminal every time is clunky. So I built NoSleep — a tiny macOS menu bar utility that wraps caffeinate in a one-click toggle. No Dock icon. No main window. Just a cup icon in your menu bar. Features One-click toggle — start/stop caffeinate from the menu bar Duration presets — 15 min, 30 min, 1 hr, 2 hr, 4 hr, 8 hr, 10 hr, or Indefinite Live countdown — shows remaining time while active (e.g. 2h 34m ) Start at Login — optional LaunchAgent so it auto-starts on boot Prevents display + idle sleep — uses caffeinate -d -i The Stack Swift 6.0 with strict concurrency SwiftUI + MenuBarExtra (macOS 13+) Swift Package Manager — no Xcode project file required Minimum target: macOS 14 (Sonoma) App Entry Point: MenuBarExtra The entire app lives in the menu bar, which

Continue reading on Dev.to

Opens in a new tab

Read Full Article
0 views

Related Articles

The Art of Motivation and Inspiration ✨
How-To

The Art of Motivation and Inspiration ✨

Medium Programming • 55m ago

When Understanding Comes Later
How-To

When Understanding Comes Later

Medium Programming • 1h ago

Top 10 Skills Every Developer Must Learn in 2026
How-To

Top 10 Skills Every Developer Must Learn in 2026

Medium Programming • 1h ago

If you are using context.Context Like this, You-re doing it wrong
How-To

If you are using context.Context Like this, You-re doing it wrong

Medium Programming • 2h ago

How to Simulate Billiards and Similar Systems
How-To

How to Simulate Billiards and Similar Systems

Dev.to • 3h ago

Discover More Articles