diff --git a/_examples/descratch/main.go b/_examples/descratch/main.go index a293de8..58b2783 100644 --- a/_examples/descratch/main.go +++ b/_examples/descratch/main.go @@ -77,7 +77,7 @@ func retrieveWindow(ipc *swayipc.SwayIPC, scratch *swayipc.Node, id int) { // scratched windows are floating, so we move it to current // workspace, disable the floating state and switch focus to it - responses, err := ipc.RunContainerCommand(id, "move workspace current, floating toggle, focus") + responses, err := ipc.RunContainerCommand(id, "move workspace current", "floating toggle", "focus") if err != nil { repr.Println(responses) log.Fatal(err) diff --git a/_examples/run_command/main.go b/_examples/run_command/main.go index 8396663..3e91755 100644 --- a/_examples/run_command/main.go +++ b/_examples/run_command/main.go @@ -37,7 +37,7 @@ func main() { // finally execute the given commands on it, you can use any run // command, see sway(5) - responses, err := ipc.RunContainerCommand(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)