diff --git a/src/main.rs b/src/main.rs deleted file mode 100644 index 8030b9c..0000000 --- a/src/main.rs +++ /dev/null @@ -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(()) -} \ No newline at end of file