mirror of
https://codeberg.org/scip/swayipc.git
synced 2025-12-16 12:10:57 +01:00
fix examples to use correct RunContainerCommand() api
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user