From f8ff9425a22d2511c7deb9ea8c3549482e97af9d Mon Sep 17 00:00:00 2001 From: Valerie Date: Tue, 20 Jun 2023 12:48:53 -0400 Subject: [PATCH] updated README and created release profile --- Cargo.toml | 10 +++++++++- README.md | 19 +++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/Cargo.toml b/Cargo.toml index c42460c..9d2f9e4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "i3-sec" -version = "0.1.0" +version = "0.0.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -8,3 +8,11 @@ edition = "2021" [dependencies] i3ipc = "0.10.1" +[profile.release] +opt-level = 's' +codegen-units = 1 +debug = false +lto = true +panic = "abort" +strip = "debuginfo" + diff --git a/README.md b/README.md new file mode 100644 index 0000000..4921cef --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ + +# i3 Workspaces Section for EWW + +This project is an i3 state reader built for [EWW](https://github.com/elkowar/eww). +I switched my main bar from [Polybar](https://github.com/polybar/polybar) to EWW, +and this project bridges basic IPC from EWW to i3 (something Polybar did natively). + +It emits the i3 workspace state as a single element in EWW's unnecessary and +poorly-documented in-house [Yuck](https://elkowar.github.io/eww/configuration.html) +format. + +The workspace numbers emitted will have the `ws-btn` class, `focused` and +`urgent` classes where appropriate, and an `onclick` handler that switches to the +workspace it represents. + +## Libraries + +- [i3ipc](https://crates.io/crates/i3ipc) — handles IPC to i3 +