sway/get_current_binding_mode.go

11 lines
245 B
Go
Raw Normal View History

package sway
2024-02-14 17:21:50 +01:00
// GetCurrentBindingMode returns the currently active binding mode
2024-02-14 16:48:50 +01:00
func (c *Client) GetCurrentBindingMode() (string, error) {
mode, err := sendMessage[name](c, 12, "")
if err != nil {
return "", err
}
return mode.Name, nil
}