Don't set so many parameters. It was upsetting i3.
This commit is contained in:
parent
61e9f4d9b5
commit
4376dc55be
25
src/lib.rs
25
src/lib.rs
@ -1,9 +1,11 @@
|
|||||||
use std::collections::HashMap;
|
use std::{
|
||||||
use std::fmt;
|
collections::HashMap,
|
||||||
use std::fs::File;
|
fmt,
|
||||||
use std::io::{self, BufRead, BufReader};
|
fs::File,
|
||||||
use std::path::Path;
|
io::{self, BufRead, BufReader},
|
||||||
use std::process::{Command, Output};
|
path::Path,
|
||||||
|
process::{Command, Output},
|
||||||
|
};
|
||||||
|
|
||||||
use regex::Regex;
|
use regex::Regex;
|
||||||
use thiserror::Error;
|
use thiserror::Error;
|
||||||
@ -106,6 +108,16 @@ impl Screen {
|
|||||||
None => return Err(CommandError::MissingMonitor(self.name.to_string())),
|
None => return Err(CommandError::MissingMonitor(self.name.to_string())),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Ok(format!(
|
||||||
|
"{connection}: {w}x{h} {x:+}{y:+} {{ForceCompositionPipeline=On, Rotation={rotation}}}",
|
||||||
|
connection = connection,
|
||||||
|
w = width,
|
||||||
|
h = height,
|
||||||
|
x = x,
|
||||||
|
y = y,
|
||||||
|
rotation = rotation,
|
||||||
|
))
|
||||||
|
/*
|
||||||
Ok(format!("{connection}: {w}x{h} @{in_w}x{in_h} {x:+}{y:+} {{ForceCompositionPipeline=On, ViewPortIn={in_w}x{in_h}, ViewPortOut={w}x{h}+0+0, Rotation={rotation}}}",
|
Ok(format!("{connection}: {w}x{h} @{in_w}x{in_h} {x:+}{y:+} {{ForceCompositionPipeline=On, ViewPortIn={in_w}x{in_h}, ViewPortOut={w}x{h}+0+0, Rotation={rotation}}}",
|
||||||
connection=connection,
|
connection=connection,
|
||||||
w=width,
|
w=width,
|
||||||
@ -116,6 +128,7 @@ impl Screen {
|
|||||||
y=y,
|
y=y,
|
||||||
rotation=rotation,
|
rotation=rotation,
|
||||||
))
|
))
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user