Registry / other / swayipc

swayipc

JSON →
library4.0.0rscratesunverified

A library for controlling the Sway window manager through its IPC interface.

# Cargo.toml [dependencies] swayipc = "4.0.0"
INSTALL
IMPORT
SIG · SWAYIPC
S
swayipc
otherrustv4.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Connection
use swayipc::Connection;

Connect to Sway and list workspaces

use swayipc::Connection; fn main() { let mut conn = Connection::new().unwrap(); let workspaces = conn.get_workspaces().unwrap(); println!("Workspaces: {:?}", workspaces); }
Debug
Known issues
gotchaRequires Sway window manager running.
fix
Ensure Sway is installed and running.
affects: >=0.0.0
Upgrade
Version history
4.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
20
Resources
swayipc — cargo add swayipc · libregistry