sway/get_current_binding_mode.go

11 lines
245 B
Go

package sway
// GetCurrentBindingMode returns the currently active binding mode
func (c *Client) GetCurrentBindingMode() (string, error) {
mode, err := sendMessage[name](c, 12, "")
if err != nil {
return "", err
}
return mode.Name, nil
}