From 5d6ddfbf6bf9bb5bf9559ec7b9e29a6b122f84dc Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 13 Dec 2022 22:20:34 +0000 Subject: [PATCH] removed main.rs --- src/main.rs | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 src/main.rs 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