Waysip
Wayland native area selector for compositors implementing zwlr_layer_shell.
Install / Use
/learn @waycrate/WaysipREADME
Some usage examples:
NOTE: Run waysip --help for the full list of flags and options.
Interactive rectangular area (prints position and size using the default format):
waysip -d
Pick a single point:
waysip -p
Print information about the focused screen:
waysip -i
Select a display output:
waysip -o
Combined dimensions / output mode (single click selects an output; drag selects a region):
waysip -d -o
Restrict selection to predefined boxes (pipe one box per line: x,y WIDTHxHEIGHT):
printf '100,200 400x300\n' | waysip -r
Custom output format (see % placeholders in --help; default is %x,%y %wx%h\n):
waysip -d -f '%x %y %w %h\n'
Shell completions:
waysip --completions fish | source
waysip --completions zsh > ~/.zfunc/_waysip
waysip --completions bash > /etc/bash_completion.d/waysip
waysip --completions elvish >> ~/.config/elvish/rc.elv
waysip --completions pwsh >> $PROFILE
waysip --completions nushell | save -f ~/.config/nushell/completions/waysip.nu
Optional features
All features are enabled in the default build. To reduce binary size or compile-time dependencies, features can be selectively disabled:
cargo build --no-default-features --features logger
cargo build --no-default-features --features completions
cargo build --no-default-features --features logger,completions
| Feature | What it adds | Extra dependency |
| ------------- | ---------------------------------------------------------- | ------------------------- |
| logger | --log-level flag, tracing output to stderr | tracing-subscriber |
| completions | --completions <SHELL>, generate shell completion scripts | clap_complete (+ nushell) |
Installation
Compile time dependencies:
- rustup (Rust toolchain)
- pkg-config
- wayland
- cairo
- pango
Compiling:
git clone https://github.com/waycrate/waysip && cd waysipcargo build --releasesudo mv ./target/release/waysip /usr/local/bin
Using Nix flakes (nixOS / Nix)
This repository provides a Nix flake for building and running waysip.
Build
nix build github:waycrate/waysip
Run
nix run github:waycrate/waysip
Support:
- https://matrix.to/#/#waycrate-tools:matrix.org
- https://discord.gg/KKZRDYrRYW
Related Skills
node-connect
353.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
353.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
353.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
