Compare commits

..

No commits in common. "61e9f4d9b576e293b75a4f50d3d4c5deac14ee98" and "4a5428f3a88804f00b697ea3831a2f093c1405f6" have entirely different histories.

View File

@ -1,30 +1,26 @@
use anyhow::Result;
use fixscreen::*;
fn main() -> Result<()> {
/*
let dell = Screen {
name: ("DELL U2415".to_string()),
resolution: Resolution {
width: 1920,
height: 1200,
},
offset: Offset {
x: 0,
y: 1440 * 2 - 1920,
},
orientation: Orientation::Right,
offset: Offset { x: 0, y: 360 },
..Default::default()
};
*/
let lg = Screen {
name: ("LG Electronics 34UM95".to_string()),
resolution: Resolution {
width: 3440,
height: 1440,
},
offset: Offset {
x: dell.resolution.height as isize,
y: 0,
},
offset: Offset { x: 0, y: 0 },
..Default::default()
};
let lenovo = Screen {
@ -34,14 +30,13 @@ fn main() -> Result<()> {
height: 1440,
},
offset: Offset {
x: dell.resolution.height as isize,
//x: (dell.resolution.height + (lg.resolution.width - 2560) / 2) as isize,
y: (lg.resolution.height) as isize,
x: (lg.resolution.width) as isize,
y: 0,
},
..Default::default()
};
let cfg = Config {
screens: vec![dell, lg, lenovo],
screens: vec![lg, lenovo],
};
let map = screen_mapping_from_xorg_log("/var/log/X.0.log")?;