sway/get_config.go

12 lines
249 B
Go
Raw Permalink Normal View History

package sway
2024-02-14 17:21:50 +01:00
// GetConfig returns the content of the content file.
// Includes are not handled
2024-02-14 16:48:50 +01:00
func (c *Client) GetConfig() (string, error) {
cfg, err := sendMessage[config](c, 9, "")
if err != nil {
return "", err
}
return cfg.Config, nil
}