Skip to content

Commit

Permalink
Merge pull request #7 from waycrate/aakash/dev-feat
Browse files Browse the repository at this point in the history
refactor(libwaysip): Separate state and dispatch files
  • Loading branch information
Decodetalkers authored Apr 7, 2024
2 parents 6256101 + 8365535 commit f221125
Show file tree
Hide file tree
Showing 11 changed files with 804 additions and 641 deletions.
106 changes: 106 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ readme = "README.md"

[workspace.dependencies]
libwaysip = { version = "0.2.2", path = "./libwaysip" }
tracing = "0.1"
40 changes: 31 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,34 @@
# Waysip
<p align=center>
<!-- <img src="https://git.sr.ht/~shinyzenith/wayshot/blob/main/docs/assets/wayshot.png" alt=wayshot width=60%> -->
<p align=center>A native, blazing-fast 🚀🚀🚀 area selection tool for wlroots based compositors such as sway and river.</p>

it is a crate like slurp, to select area on wayland, which support layershell.
<p align="center">
<a href="./LICENSE.md"><img src="https://img.shields.io/github/license/waycrate/wayshot?style=flat-square&logo=appveyor"></a>
<img src="https://img.shields.io/badge/cargo-v0.2.2-green?style=flat-square&logo=appveyor">
<img src="https://img.shields.io/github/issues/waycrate/waysip?style=flat-square&logo=appveyor">
<img src="https://img.shields.io/github/forks/waycrate/waysip?style=flat-square&logo=appveyor">
<img src="https://img.shields.io/github/stars/waycrate/waysip?style=flat-square&logo=appveyor">
<br>
<img src="https://repology.org/badge/vertical-allrepos/waysip.svg">
</p>
</p>

usage
# Some usage examples:

```rust
use libwaysip::{get_area, WaySipKind};
fn main() {
println!("{:?}", get_area(WaySipKind::Area));
}
```
TODO:

# Installation

## Compile time dependencies:
TODO:

## Compiling:

- `git clone https://github.com/waycrate/waysip && cd waysip`
- `cargo buid --release`
- `sudo mv ./target/release/waysip /usr/local/bin`

# Support:

1. https://matrix.to/#/#waycrate-tools:matrix.org
2. https://discord.gg/KKZRDYrRYW
4 changes: 2 additions & 2 deletions libwaysip/examples/base.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use libwaysip::{get_area, WaySipKind};
use libwaysip::{get_area, SelectionType};
fn main() {
println!("{:?}", get_area(WaySipKind::Area));
println!("{:?}", get_area(SelectionType::Area));
}
Loading

0 comments on commit f221125

Please sign in to comment.