Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Caffenate UI

日本語版はこちら

Menu bar app for macOS that provides caffeinate-like behavior with a tray icon.

Features

  • Keep-awake defaults to -i -d -s on first launch.
  • Eye icon in the menu bar:
  • Enabled: open eye (eye.fill)
  • Disabled: closed eye (eye.slash.fill)
  • Duration options: infinite, 15m, 30m, 1h, custom.
  • Launch at login toggle.
  • Startup registration uses SMAppService with a LaunchAgent fallback for dev/unsigned builds.

Requirements

  • macOS 13+
  • Xcode command line tools (swift, iconutil)

Build

swift build

Run (Debug)

swift run CaffenateMenuBar

Build .app Bundle

Default output is inside this repo (not /Applications):

./scripts/install_app.sh

Generated app:

  • dist/Caffenate.app

Run it:

open dist/Caffenate.app

If you explicitly want /Applications:

./scripts/install_app.sh /Applications

Tests

This repository includes an executable test runner:

swift run CaffenateCoreTestRunner

Project Structure

  • Sources/CaffenateCore: state, settings, timer.
  • Sources/CaffenateMenuBar: menu bar app, power assertions, startup registration.
  • Sources/CaffenateCoreTestRunner: automated logic tests.
  • docs/requirements.md: requirements.
  • docs/design.md: design document.

About

UI for caffenate command for Mac

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages