github synle/display-dj v2.1.0
v2.1.0 - Keep Awake

5 hours ago

What's New

Keep Awake (Caffeine-style sleep prevention)

A new Keep Awake toggle button at the bottom of the popup prevents your system from idle-sleeping and the display from turning off - similar to the Caffeine app for macOS.

  • Click to toggle: shows "Keep Awake" when active, "Keep Awake: Off" when inactive
  • Cross-platform: works on macOS (IOKit assertions), Windows (SetThreadExecutionState), and Linux (D-Bus inhibit)
  • Uses the keepawake crate (v0.6)
  • RAII-based: the assertion is automatically released when the app exits

Technical Details

  • New Rust module keep_awake.rs with get_keep_awake / set_keep_awake Tauri commands
  • Guard stored as Mutex> in AppState (drop to release)
  • set_keep_awake is async to avoid the macOS tray icon pitfall
  • New KeepAwakeToggle React component with full test coverage
  • 9 new frontend tests, 2 new Rust unit tests

Don't miss a new display-dj release

NewReleases is sending notifications on new releases.