sway/get_config.go

14 lines
209 B
Go

package sway
import (
"context"
)
func (c *Client) GetConfig(ctx context.Context) (string, error) {
cfg, err := sendMessage[config](c, 9, "")
if err != nil {
return "", err
}
return cfg.Config, nil
}