implemented everything else and added more examples and docs

This commit is contained in:
2025-08-15 12:16:08 +02:00
parent f5b0ee026f
commit 4f7e27528b
37 changed files with 954 additions and 3027 deletions

View File

@@ -8,12 +8,13 @@ import (
)
func main() {
ipc := i3ipc.NewI3ipc("SWAYSOCK")
ipc := i3ipc.NewI3ipc()
err := ipc.Connect()
if err != nil {
log.Fatal(err)
}
defer ipc.Close()
tree, err := ipc.GetTree()
if err != nil {