updated README and created release profile
This commit is contained in:
parent
5a4a2b7f09
commit
f8ff9425a2
2 changed files with 28 additions and 1 deletions
10
Cargo.toml
10
Cargo.toml
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "i3-sec"
|
name = "i3-sec"
|
||||||
version = "0.1.0"
|
version = "0.0.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
@ -8,3 +8,11 @@ edition = "2021"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
i3ipc = "0.10.1"
|
i3ipc = "0.10.1"
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
opt-level = 's'
|
||||||
|
codegen-units = 1
|
||||||
|
debug = false
|
||||||
|
lto = true
|
||||||
|
panic = "abort"
|
||||||
|
strip = "debuginfo"
|
||||||
|
|
||||||
|
|
19
README.md
Normal file
19
README.md
Normal file
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue