removed main.rs
This commit is contained in:
parent
293c037ecb
commit
5d6ddfbf6b
31
src/main.rs
31
src/main.rs
@ -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(())
|
||||
}
|
Loading…
Reference in New Issue
Block a user