removed main.rs

This commit is contained in:
Michael 2022-12-13 22:20:34 +00:00
parent 293c037ecb
commit 5d6ddfbf6b
Signed by: michael
GPG Key ID: 523BD9EF68BDD44C

View File

@ -1,31 +0,0 @@
use std::env;
fn main() -> std::io::Result<()> {
let mut i3 = sway_ipc::I3msg::new(env!("SWAYSOCK"));
match i3.get_workspaces() {
Ok(workspaces) => {
for ws in workspaces {
for float in ws.floating_nodes {
match float.app_id {
Some(app_id) => println!("{}", app_id),
None => println!("none"),
}
}
}
},
Err(e) => {
eprintln!("error: {e:?}");
}
}
match i3.get_outputs() {
Ok(outputs) => {
for output in outputs {
println!("output: {}", output.name);
}
},
Err(e) => {
eprintln!("error: {e:?}");
}
}
Ok(())
}