mirror of
https://codeberg.org/scip/swayipc.git
synced 2025-12-17 20:41:02 +01:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e7844047c0 | |||
| 9ae7b4167e | |||
| 22835c081a |
@@ -23,6 +23,7 @@ steps:
|
|||||||
image: golang:${goversion}
|
image: golang:${goversion}
|
||||||
commands:
|
commands:
|
||||||
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.5.0
|
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.5.0
|
||||||
|
- cd v1
|
||||||
- golangci-lint --version
|
- golangci-lint --version
|
||||||
- golangci-lint run ./...
|
- golangci-lint run ./...
|
||||||
depends_on: [build]
|
depends_on: [build]
|
||||||
|
|||||||
10
README.md
10
README.md
@@ -1,7 +1,7 @@
|
|||||||
[](https://ci.codeberg.org/repos/15565)
|
[](https://ci.codeberg.org/repos/15565)
|
||||||
[](https://goreportcard.com/report/codeberg.org/scip/swayipc)
|
[](https://goreportcard.com/report/codeberg.org/scip/swayipc/v1)
|
||||||
[](https://codeberg.org/scip/swayipc/raw/branch/main/LICENSE)
|
[](https://codeberg.org/scip/swayipc/raw/branch/main/LICENSE)
|
||||||
[](https://godoc.org/codeberg.org/scip/swayipc)
|
[](https://godoc.org/codeberg.org/scip/swayipc/v1)
|
||||||
|
|
||||||
# swayipc - go bindings to control sway and swayfx
|
# swayipc - go bindings to control sway and swayfx
|
||||||
|
|
||||||
@@ -26,7 +26,7 @@ haven't tested it on i3wm.
|
|||||||
The module uses the i3-IPC proctocol as outlined in sway-ipc(7).
|
The module uses the i3-IPC proctocol as outlined in sway-ipc(7).
|
||||||
|
|
||||||
For details on how to use the library, see the
|
For details on how to use the library, see the
|
||||||
[reference documentation](https://godoc.org/codeberg.org/scip/swayipc).
|
[reference documentation](https://godoc.org/codeberg.org/scip/swayipc/v1).
|
||||||
|
|
||||||
## Example usage
|
## Example usage
|
||||||
|
|
||||||
@@ -39,7 +39,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"codeberg.org/scip/swayipc/v2"
|
"codeberg.org/scip/swayipc/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@@ -79,7 +79,7 @@ which is using this module.
|
|||||||
|
|
||||||
Execute this to add the module to your project:
|
Execute this to add the module to your project:
|
||||||
```sh
|
```sh
|
||||||
go get codeberg.org/scip/swayipc/v2
|
go get codeberg.org/scip/swayipc/v1
|
||||||
```
|
```
|
||||||
|
|
||||||
## Acknowledgements
|
## Acknowledgements
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
module codeberg.org/scip/swayipc/v2
|
module codeberg.org/scip/swayipc/v1
|
||||||
|
|
||||||
go 1.23
|
go 1.23
|
||||||
|
|
||||||
@@ -11,11 +11,9 @@ type Node struct {
|
|||||||
Id int `json:"id"`
|
Id int `json:"id"`
|
||||||
Type string `json:"type"` // output, workspace or container
|
Type string `json:"type"` // output, workspace or container
|
||||||
Name string `json:"name"` // workspace number or app name
|
Name string `json:"name"` // workspace number or app name
|
||||||
Output string `json:"output"`
|
|
||||||
Nodes []*Node `json:"nodes"`
|
Nodes []*Node `json:"nodes"`
|
||||||
FloatingNodes []*Node `json:"floating_nodes"`
|
FloatingNodes []*Node `json:"floating_nodes"`
|
||||||
Focused bool `json:"focused"`
|
Focused bool `json:"focused"`
|
||||||
Visible bool `json:"visible"`
|
|
||||||
Urgent bool `json:"urgent"`
|
Urgent bool `json:"urgent"`
|
||||||
Sticky bool `json:"sticky"`
|
Sticky bool `json:"sticky"`
|
||||||
Border string `json:"border"`
|
Border string `json:"border"`
|
||||||
Reference in New Issue
Block a user