Registry / utility / i3-v4
library4.24.0gogounverified

Provides a convenient, concurrent-safe interface to the i3 window manager's IPC protocol, managing UNIX socket connections transparently.

go get go.i3wm.org/i3/v4
INSTALL
IMPORT
SIG · I3-V4
I
i3-v4
utilitygov4.24.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.

i3
go.i3wm.org/i3/v4

Retrieves the i3 window tree and prints the root node ID.

package main import ( "fmt" "go.i3wm.org/i3/v4" ) func main() { tree, err := i3.GetTree() if err != nil { panic(err) } fmt.Printf("Root node ID: %d\n", tree.Root.ID) }
Debug
Known issues
breakingVersion compatibility: major.minor must match the i3 release (e.g., v4.14 for i3 4.14). Using a mismatched version may cause runtime errors.
fix
Use the version corresponding to your i3 version (e.g., v4.24.0 for i3 4.24).
affects: < 4.24.0
Upgrade
Version history
4.24.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
i3-v4 — go get i3-v4 · libregistry