14 lines
282 B
Go
14 lines
282 B
Go
|
package sway
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
)
|
||
|
|
||
|
func (c *Client) GetBarIDs(ctx context.Context) ([]string, error) {
|
||
|
return sendMessage[[]string](c, 6, "")
|
||
|
}
|
||
|
|
||
|
func (c *Client) GetBarConfig(ctx context.Context, barID string) (*BarConfig, error) {
|
||
|
return sendMessage[*BarConfig](c, 6, barID)
|
||
|
}
|