sway/get_current_binding_mode.go

14 lines
220 B
Go

package sway
import (
"context"
)
func (c *Client) GetCurrentBindingMode(ctx context.Context) (string, error) {
mode, err := sendMessage[name](c, 12, "")
if err != nil {
return "", err
}
return mode.Name, nil
}