2024-02-14 16:36:12 +01:00
|
|
|
package sway
|
|
|
|
|
2024-02-14 17:21:50 +01:00
|
|
|
// GetBarIDs returns a string array containing the IDs of all sway bars
|
2024-02-14 16:48:50 +01:00
|
|
|
func (c *Client) GetBarIDs() ([]string, error) {
|
2024-02-14 16:36:12 +01:00
|
|
|
return sendMessage[[]string](c, 6, "")
|
|
|
|
}
|
|
|
|
|
2024-02-14 17:21:50 +01:00
|
|
|
// GetBarConfig returns the configuration for the given bar id
|
2024-02-14 16:48:50 +01:00
|
|
|
func (c *Client) GetBarConfig(barID string) (*BarConfig, error) {
|
2024-02-14 16:36:12 +01:00
|
|
|
return sendMessage[*BarConfig](c, 6, barID)
|
|
|
|
}
|