Lunar Documentation

repository·master·Indexed 25 days ago

https://github.com/alin23/lunar

A macOS application for advanced control of external and built-in monitors via DDC/CI protocol. Features include adaptive brightness (sensor, sync, and location-based), input management, screen orientation control, and 'BlackOut' mode. Includes the ddcctl CLI tool for managing brightness, contrast, volume, and input sources, as well as a comprehensive Lunar CLI for remote control, EDID reading, and low-level CoreDisplay and DisplayServices method access.

Tokens
19K
Snippets
35
Records
288
Agent score
91%

What's inside Lunar

  1. Overview of Lunar Features

    master

    Lunar provides advanced control over external and built-in displays using the DDC protocol to change hardware brightness directly. Key features include:

    • Adaptive Brightness: Supports sensor-based (external sensor), sync-based (MacBook/iMac built-in sensor), and location-based (sunrise/sunset) adjustments.
    • Brightness Control: Supports 1000-to-1600 nits for XDR/HDR displays and "Subzero" dimming (below 0%) for low-light environments.
    • Input Management: Switch monitor inputs via dropdown or up to 3 input-specific hotkeys.
    • Screen Orientation: Change orientation via the menu bar or hotkeys (Ctrl+0/9/8/7 mapped to 0°/90°/180°/270° for the display with the cursor on it).
    • App Presets: Configure specific brightness levels for different activities (e.g., design work, movies).
    • BlackOut: Selectively turn off monitors while maintaining USB-C charging, monitor audio, USB hub functionality, and built-in keyboard/trackpad access.
    • Hidden Resolutions: Access additional resolutions via the Display Settings menu.
  2. Use macOS Shortcuts to control Lunar

    master

    Lunar supports macOS Shortcuts, allowing you to automate screen controls and display configurations. You can use Shortcuts to:

    • Control brightness and volume of a screen.
    • Change Lunar adaptive modes and apply global presets.
    • Exclusive Shortcut Actions:
      • Swap monitors.
      • Mirror any combination of screens.
      • Arrange screens in various layouts.
      • Change resolution and frame rate.
      • Change presets (e.g., Design & Print or Photography) using hotkeys.
  3. Plan for Lunar v7 migration

    master

    Lunar v7 is a complete rewrite of the brightness control engine and UI. Note the following upcoming changes for the v7 release (expected September-October):

    • Minimum OS: Support for macOS versions older than 14.0 will be dropped.
    • Architecture: Support for Intel-based Macs will be dropped.

    If your workflow relies on Intel Macs or older macOS versions, you should plan your migration strategy accordingly.