Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/labi-le/hyprland-ipc-client
Hyprland ipc client and event receiver
https://github.com/labi-le/hyprland-ipc-client
golang hypr hyprland
Last synced: 6 days ago
JSON representation
Hyprland ipc client and event receiver
- Host: GitHub
- URL: https://github.com/labi-le/hyprland-ipc-client
- Owner: labi-le
- License: mit
- Created: 2022-10-28T01:04:06.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-31T04:23:25.000Z (3 months ago)
- Last Synced: 2024-10-04T15:24:29.255Z (about 1 month ago)
- Topics: golang, hypr, hyprland
- Language: Go
- Homepage:
- Size: 49.8 KB
- Stars: 18
- Watchers: 1
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hyprland - Hyprland IPC Client
README
# hypland ipc client
This is a client for the Hyprland IPC server. It is used to communicate with the Hyprland server.
### Installation
```sh
go get -u github.com/labi-le/hyprland-ipc-client/v3
```## Example
```go
package mainimport (
"fmt"
"os"
"github.com/labi-le/hyprland-ipc-client/v3"
)type ed struct {
client.DummyEvHandler
}func main() {
c := client.MustClient(os.Getenv("HYPRLAND_INSTANCE_SIGNATURE"))
e := &ed{}
client.Subscribe(c, e, client.EventActiveLayout)
}func (e *ed) ActiveLayout(layout client.ActiveLayout) {
fmt.Println("ActiveLayout", layout.Type, layout.Name)
}```
### Notice
I stopped using Hyprland as my main wm and so I don't follow its development, hence the addition of which api functionality should not be expected, you can make a pull request or ask me to add something\
That doesn't mean I've abandoned the project, my attention is focused on other things, but I continue to support this project