Skip to content

Commit

Permalink
chore: update document and README
Browse files Browse the repository at this point in the history
  • Loading branch information
Decodetalkers committed Oct 8, 2024
1 parent 7b9e521 commit 0f939cd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
7 changes: 6 additions & 1 deletion iced_layershell/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions iced_layershell/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pub mod application;

#![doc = include_str!("../README.md")]
pub mod actions;
pub mod application;
mod clipboard;
mod conversion;
mod error;
Expand Down
1 change: 1 addition & 0 deletions iced_sessionlock/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![doc = include_str!("../README.md")]
pub mod actions;
pub mod multi_window;
pub mod settings;
Expand Down

0 comments on commit 0f939cd

Please sign in to comment.