sway/get_config.go

12 lines
249 B
Go

package sway
// GetConfig returns the content of the content file.
// Includes are not handled
func (c *Client) GetConfig() (string, error) {
cfg, err := sendMessage[config](c, 9, "")
if err != nil {
return "", err
}
return cfg.Config, nil
}