From 0f939cdc304f3cbadc172eb375a34ea8011266ed Mon Sep 17 00:00:00 2001 From: ShootingStarDragons Date: Tue, 8 Oct 2024 21:29:29 +0900 Subject: [PATCH] chore: update document and README --- iced_layershell/README.md | 7 ++++++- iced_layershell/src/lib.rs | 4 ++-- iced_sessionlock/src/lib.rs | 1 + 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/iced_layershell/README.md b/iced_layershell/README.md index bbb30fe..2cd4bdc 100644 --- a/iced_layershell/README.md +++ b/iced_layershell/README.md @@ -31,12 +31,17 @@ pub fn main() -> Result<(), iced_layershell::Error> { binded_output_name = Some(args[1].to_string()) } + let start_mode = match binded_output_name { + Some(output) => StartMode::TargetScreen(output), + None => StartMode::Active, + }; + Counter::run(Settings { layer_settings: LayerShellSettings { size: Some((0, 400)), exclusive_zone: 400, anchor: Anchor::Bottom | Anchor::Left | Anchor::Right, - binded_output_name, + start_mode, ..Default::default() }, ..Default::default() diff --git a/iced_layershell/src/lib.rs b/iced_layershell/src/lib.rs index 81a9b40..e5fba2d 100644 --- a/iced_layershell/src/lib.rs +++ b/iced_layershell/src/lib.rs @@ -1,6 +1,6 @@ -pub mod application; - +#![doc = include_str!("../README.md")] pub mod actions; +pub mod application; mod clipboard; mod conversion; mod error; diff --git a/iced_sessionlock/src/lib.rs b/iced_sessionlock/src/lib.rs index e87c398..e21cab3 100644 --- a/iced_sessionlock/src/lib.rs +++ b/iced_sessionlock/src/lib.rs @@ -1,3 +1,4 @@ +#![doc = include_str!("../README.md")] pub mod actions; pub mod multi_window; pub mod settings;