Remove Dell monitor that is no longer physically present.
This commit is contained in:
parent
2e9f3f2ea0
commit
4a5428f3a8
11
src/main.rs
11
src/main.rs
@ -3,6 +3,7 @@ use anyhow::Result;
|
|||||||
use fixscreen::*;
|
use fixscreen::*;
|
||||||
|
|
||||||
fn main() -> Result<()> {
|
fn main() -> Result<()> {
|
||||||
|
/*
|
||||||
let dell = Screen {
|
let dell = Screen {
|
||||||
name: ("DELL U2415".to_string()),
|
name: ("DELL U2415".to_string()),
|
||||||
resolution: Resolution {
|
resolution: Resolution {
|
||||||
@ -12,16 +13,14 @@ fn main() -> Result<()> {
|
|||||||
offset: Offset { x: 0, y: 360 },
|
offset: Offset { x: 0, y: 360 },
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
|
*/
|
||||||
let lg = Screen {
|
let lg = Screen {
|
||||||
name: ("LG Electronics 34UM95".to_string()),
|
name: ("LG Electronics 34UM95".to_string()),
|
||||||
resolution: Resolution {
|
resolution: Resolution {
|
||||||
width: 3440,
|
width: 3440,
|
||||||
height: 1440,
|
height: 1440,
|
||||||
},
|
},
|
||||||
offset: Offset {
|
offset: Offset { x: 0, y: 0 },
|
||||||
x: dell.resolution.width as isize,
|
|
||||||
y: 0,
|
|
||||||
},
|
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
let lenovo = Screen {
|
let lenovo = Screen {
|
||||||
@ -31,13 +30,13 @@ fn main() -> Result<()> {
|
|||||||
height: 1440,
|
height: 1440,
|
||||||
},
|
},
|
||||||
offset: Offset {
|
offset: Offset {
|
||||||
x: (dell.resolution.width + lg.resolution.width) as isize,
|
x: (lg.resolution.width) as isize,
|
||||||
y: 0,
|
y: 0,
|
||||||
},
|
},
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
let cfg = Config {
|
let cfg = Config {
|
||||||
screens: vec![dell, lg, lenovo],
|
screens: vec![lg, lenovo],
|
||||||
};
|
};
|
||||||
|
|
||||||
let map = screen_mapping_from_xorg_log("/var/log/X.0.log")?;
|
let map = screen_mapping_from_xorg_log("/var/log/X.0.log")?;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user