Latest monitor setup.

This commit is contained in:
Bill Thiede 2023-06-05 19:09:10 -07:00
parent 333119a00d
commit fa892c9650

View File

@ -2,17 +2,24 @@ use anyhow::Result;
use fixscreen::*; use fixscreen::*;
fn main() -> Result<()> { fn main() -> Result<()> {
let dell = Screen { let dell24 = Screen {
name: ("DELL U2415".to_string()), name: ("DELL U2415".to_string()),
resolution: Resolution { resolution: Resolution {
width: 1920, width: 1920,
height: 1200, height: 1200,
}, },
offset: Offset { offset: Offset { x: 0, y: 950 },
x: 0, //orientation: Orientation::Left,
y: 1440 * 2 - 1920, 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()], workspaces: vec!["distortion".to_string()],
..Default::default() ..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 // 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 // is flush with the left, the bottom monitor will have a hard edge that prevents the
// mouse from moving to the left monitor. // mouse from moving to the left monitor.
x: 1 + dell.resolution.height as isize, x: 1 + dell24.resolution.height as isize,
y: 0, y: 0,
}, },
workspaces: vec!["virtue".to_string()], workspaces: vec!["virtue".to_string()],
@ -39,15 +46,12 @@ fn main() -> Result<()> {
width: 2560, width: 2560,
height: 1440, height: 1440,
}, },
offset: Offset { offset: Offset { x: 1920, y: 1600 },
x: (dell.resolution.height + (lg.resolution.width - 2560) / 2) as isize,
y: (lg.resolution.height) as isize,
},
primary: true, primary: true,
workspaces: vec!["fraud".to_string(), "twilight".to_string()], workspaces: vec!["fraud".to_string(), "twilight".to_string()],
..Default::default() ..Default::default()
}; };
let screens = vec![dell, lg, lenovo]; let screens = vec![dell24, dell30, lenovo];
let cfg = Config { let cfg = Config {
screens: screens.clone(), screens: screens.clone(),
}; };