4 Commits

Author SHA1 Message Date
9cd6e4a6b9 fix build path 2025-12-05 20:48:59 +01:00
T. von Dein
61ff94f09c make v2 the migration version to codeberg (#2) 2025-12-05 20:46:16 +01:00
47c55fae5c apply patch https://github.com/TLINDEN/swayipc/pull/1 by 2025-11-10 21:08:03 +01:00
T. von Dein
1cde07a07b migrate to codeberg (#1) 2025-11-10 20:59:46 +01:00
17 changed files with 8 additions and 8 deletions

View File

@@ -13,7 +13,6 @@ steps:
event: [push]
image: golang:${goversion}
commands:
- cd v1
- go get
- go build
@@ -23,7 +22,6 @@ steps:
image: golang:${goversion}
commands:
- 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 run ./...
depends_on: [build]

View File

@@ -1,7 +1,7 @@
[![status-badge](https://ci.codeberg.org/api/badges/15565/status.svg)](https://ci.codeberg.org/repos/15565)
[![Go Report Card](https://goreportcard.com/badge/codeberg.org/scip/swayipc/v1)](https://goreportcard.com/report/codeberg.org/scip/swayipc/v1)
[![Go Report Card](https://goreportcard.com/badge/codeberg.org/scip/swayipc)](https://goreportcard.com/report/codeberg.org/scip/swayipc)
[![License](https://img.shields.io/badge/license-GPL-blue.svg)](https://codeberg.org/scip/swayipc/raw/branch/main/LICENSE)
[![GoDoc](https://godoc.org/codeberg.org/scip/swayipc?status.svg)](https://godoc.org/codeberg.org/scip/swayipc/v1)
[![GoDoc](https://godoc.org/codeberg.org/scip/swayipc?status.svg)](https://godoc.org/codeberg.org/scip/swayipc)
# 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).
For details on how to use the library, see the
[reference documentation](https://godoc.org/codeberg.org/scip/swayipc/v1).
[reference documentation](https://godoc.org/codeberg.org/scip/swayipc).
## Example usage
@@ -39,7 +39,7 @@ import (
"fmt"
"log"
"codeberg.org/scip/swayipc/v1"
"codeberg.org/scip/swayipc/v2"
)
func main() {
@@ -79,7 +79,7 @@ which is using this module.
Execute this to add the module to your project:
```sh
go get codeberg.org/scip/swayipc/v1
go get codeberg.org/scip/swayipc/v2
```
## Acknowledgements

View File

View File

View File

@@ -1,4 +1,4 @@
module codeberg.org/scip/swayipc/v1
module codeberg.org/scip/swayipc/v2
go 1.23

View File

View File

View File

View File

@@ -11,9 +11,11 @@ type Node struct {
Id int `json:"id"`
Type string `json:"type"` // output, workspace or container
Name string `json:"name"` // workspace number or app name
Output string `json:"output"`
Nodes []*Node `json:"nodes"`
FloatingNodes []*Node `json:"floating_nodes"`
Focused bool `json:"focused"`
Visible bool `json:"visible"`
Urgent bool `json:"urgent"`
Sticky bool `json:"sticky"`
Border string `json:"border"`

View File