11 lines
245 B
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
|
|
}
|