14 lines
220 B
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
|
||
|
}
|