diff --git a/src/main.rs b/src/main.rs index c709ac2..3150239 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,17 +2,24 @@ use anyhow::Result; use fixscreen::*; fn main() -> Result<()> { - let dell = Screen { + let dell24 = Screen { name: ("DELL U2415".to_string()), resolution: Resolution { width: 1920, height: 1200, }, - offset: Offset { - x: 0, - y: 1440 * 2 - 1920, + offset: Offset { x: 0, y: 950 }, + //orientation: Orientation::Left, + workspaces: vec!["distortion".to_string()], + ..Default::default() + }; + let dell30 = Screen { + name: ("DELL 3007WFP".to_string()), + resolution: Resolution { + width: 2560, + height: 1600, }, - orientation: Orientation::Left, + offset: Offset { x: 1920, y: 0 }, workspaces: vec!["distortion".to_string()], ..Default::default() }; @@ -27,7 +34,7 @@ fn main() -> Result<()> { // monitors have a gap, you can move the mouse between any combo. When the top monitor // is flush with the left, the bottom monitor will have a hard edge that prevents the // mouse from moving to the left monitor. - x: 1 + dell.resolution.height as isize, + x: 1 + dell24.resolution.height as isize, y: 0, }, workspaces: vec!["virtue".to_string()], @@ -39,15 +46,12 @@ fn main() -> Result<()> { width: 2560, height: 1440, }, - offset: Offset { - x: (dell.resolution.height + (lg.resolution.width - 2560) / 2) as isize, - y: (lg.resolution.height) as isize, - }, + offset: Offset { x: 1920, y: 1600 }, primary: true, workspaces: vec!["fraud".to_string(), "twilight".to_string()], ..Default::default() }; - let screens = vec![dell, lg, lenovo]; + let screens = vec![dell24, dell30, lenovo]; let cfg = Config { screens: screens.clone(), };