func (w *Mode) Text() (string, string) {
	var buf bytes.Buffer
	playerStatus := w.api.PlayerStatus()
	buf.WriteRune(w.statusRune('z', playerStatus.ShuffleState))
	buf.WriteRune(w.statusRune('s', playerStatus.RepeatState == "track"))
	buf.WriteRune(w.statusRune('r', playerStatus.RepeatState != "off"))
	return buf.String(), `switches`
}
Text implements Fragment.
package topbar
import (
	"bytes"
	"github.com/ambientsound/visp/api"
)
type Mode struct {
	api api.API
}
func NewMode(a api.API, param string) Fragment {
	return &Mode{a}
}