6 Commits

2 changed files with 14 additions and 3 deletions

View File

@@ -3,6 +3,13 @@
![GitHub License](https://img.shields.io/github/license/tlinden/swayipc)
[![GoDoc](https://godoc.org/github.com/tlinden/swayipc?status.svg)](https://godoc.org/github.com/tlinden/swayipc)
> [!CAUTION]
> This software is now being maintained on [Codeberg](https://codeberg.org/scip/swaycycle/).
>
> You may still use the `github.com/tlinden/swayipc` module, but this
> version here is no longer being maintained. To use the current version,
> import `codeberg.org/scip/swayipc/v1`.
# swayipc - go bindings to control sway and swayfx
Package swayipc can be used to control [sway](https://swaywm.org/),
@@ -66,9 +73,13 @@ func main() {
}
```
Also take a look into the **_examples** folder for more examples.
Also take a look into the **_examples** folder for more examples.
You may take a look at the [tool swaycycle](https://github.com/tlinden/swaycycle)
For a more comprehensive and practical example look at the
[descratch](https://github.com/TLINDEN/sway-descratch) program which
you can use to selectively retrieve a window from the scratchpad.
You may also take a look at the [tool swaycycle](https://github.com/tlinden/swaycycle)
which is using this module.
## Installation

View File

@@ -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)