mirror of
https://codeberg.org/scip/swayipc.git
synced 2025-12-16 12:10:57 +01:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7079004e63 | |||
| d64c1ddcc0 | |||
| e516aeab72 | |||
| 3102978317 | |||
| af9eaaf8ae | |||
| ce6d836234 |
15
README.md
15
README.md
@@ -3,6 +3,13 @@
|
||||

|
||||
[](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
|
||||
|
||||
@@ -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