initial commit

This commit is contained in:
2026-09-26 17:37:13 +02:00
commit 839bebd8d4
226 changed files with 58701 additions and 0 deletions
@@ -0,0 +1,21 @@
use crate::runtime::session_agent::{
brightness_sync::BrightnessSync, rotation::RotationWatcherSupervisor, send_runtime_notification,
};
/// Supervises session-agent watcher lifecycles.
///
/// The concrete watchers still own their OS-specific implementations; this
/// Module owns when and how they are spawned and how failures are surfaced.
pub(crate) fn start_all() {
tokio::spawn(RotationWatcherSupervisor::supervise());
tokio::spawn(async {
if let Err(err) = BrightnessSync::watch().await {
log::warn!("session-agent brightness watcher failed: {err}");
let _ = send_runtime_notification(
"Zenbook Duo Runtime Error",
&format!("Brightness sync watcher failed: {err}"),
true,
);
}
});
}