Skip to content

macOS Desktop Unit ​

Desktop edition: CuteAC 3D Unit—pins a low-poly mini air conditioner into your macOS menu bar or directly onto your desktop wallpaper, synced with your Mac's own thermal sensors.

apps/macos is a native macOS app written in Swift, SwiftUI, and SceneKit. It puts an interactive 3D mini AC in your menu bar and optionally floats as a borderless desktop widget—the native counterpart to the web components.

CuteAC menu bar popover preview
Play animated preview (GIF)CuteAC menu bar popover demo

Features ​

  • Interactive 3D air conditioner inside the menu bar popover: drag to rotate, toggle power, adjust temperature (16–31°C), and switch Cool / Heat.
  • Animated louver and Digital-7 Mono temperature display—matching the Vue and React web editions.
  • Snowflakes drift when cooling; warm breeze lines flow when heating.
  • Room Temperature: Treats your Mac as the room. Displays CPU/SoC temperature, fan RPM, and macOS thermal pressure; faster fans produce denser, faster airflow animations. Read-only, no root required, sampled only while visible.
  • Fan Speed: Auto / Low / Medium / High. Auto follows your Mac's physical fans; Cool and Heat remember their target temperatures independently.
  • Wall / Tower Form Factors: Switch between wall-mounted and floor-standing tower units with one click.
  • Desktop Widget: Toggle "Show on Desktop" for a transparent borderless window you can drag around, double-click to power on/off, and right-click to pin or hide.
  • Shares the exact state schema { status, mode, temperature, temperatures, fan } with @yunlefun-home/air-conditioner.
CoolHeatOff
CoolHeatOff

Building ​

Requires macOS 14+ and Xcode (Swift 6):

bash
cd apps/macos
scripts/bundle.sh
open build/CuteAC.app

CuteAC runs strictly in the menu bar with no Dock icon. Click Quit in the bottom-right of the popover to exit.

Shared Swift Package CuteACKit ​

The root Package.swift exports CuteACCore (state, thermal telemetry) and CuteACKit (LCD textures, airflow animations, palettes, fonts, models). Both CuteAC and the native Yun Home app depend on it so both render identically and share one sensor implementation. Inside Yun Home, the AC plugin reads room temperature via the first-party sensor:thermal permission.

Why Native? ​

Because a menu-bar companion stays open all day, power efficiency comes first:

  • No WebView, no extra browser process, and no continuous WebGL render loop.
  • SceneKit renders only on state transitions.
  • Snowflakes and wind lines run in Core Animation on the system render server.

Measured on Apple Silicon: ~0% CPU and ~22 MB RAM with the popover closed; ~0% CPU and ~42 MB RAM while snowing; ~0.1% CPU and ~34 MB RAM as a standalone desktop widget.

3D Models ​

Both wall and tower meshes are generated in Blender via apps/macos/Model/build_cute_ac.py, exporting USDZ for SceneKit/RealityKit and GLB for Three.js on the web. See 3D Model Conventions.

bash
/Applications/Blender.app/Contents/MacOS/Blender -b -P apps/macos/Model/build_cute_ac.py

Low-poly AC model

For debugging options, GIF capture, and node naming details, check apps/macos/README.md.

Released under the MIT License · The only catch is no actual wind