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

@@ -20,6 +20,7 @@ func main() {
if err != nil {
log.Fatal(err)
}
defer ipc.Close()
// retrieve the sway tree
tree, err := ipc.GetTree()
@@ -36,7 +37,7 @@ func main() {
// finally execute the given commands on it, you can use any run
// command, see sway(5)
responses, err := ipc.RunCommand(focused.Id, "floating toggle, border toggle")
responses, err := ipc.RunContainerCommand(focused.Id, "floating toggle, border toggle")
if err != nil {
repr.Println(responses)
log.Fatal(err)