fix examples to use correct RunContainerCommand() api

This commit is contained in:
2025-08-21 10:39:06 +02:00
parent af9eaaf8ae
commit 3102978317
2 changed files with 2 additions and 2 deletions

View File

@@ -77,7 +77,7 @@ func retrieveWindow(ipc *swayipc.SwayIPC, scratch *swayipc.Node, id int) {
// scratched windows are floating, so we move it to current // scratched windows are floating, so we move it to current
// workspace, disable the floating state and switch focus to it // 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 { if err != nil {
repr.Println(responses) repr.Println(responses)
log.Fatal(err) log.Fatal(err)

View File

@@ -37,7 +37,7 @@ func main() {
// finally execute the given commands on it, you can use any run // finally execute the given commands on it, you can use any run
// command, see sway(5) // 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 { if err != nil {
repr.Println(responses) repr.Println(responses)
log.Fatal(err) log.Fatal(err)