Documentation
¶
Index ¶
- Constants
- func GetBestPlayer() (*mpris.Player, error)
- func GetDbusConn() (*dbus.Conn, error)
- func GetPreferedPlayerName() (string, error)
- func HideGotroller() error
- func ListPlayersName() ([]string, error)
- func ListenToChanges(ch chan fsnotify.Event) error
- func RemovePreferedPlayerName() error
- func SetPreferedPlayerName(name string) error
- type ErrDisabled
Constants ¶
View Source
const ( PLAYING = "" PAUSED = "" STOPPED = "" PREVIOUS = "" NEXT = "" VOLUME = "" MENU = "" )
Font Awesome 5
View Source
const PREFERED_PLAYER_STORE_PATH = "/dev/shm/gotroller-player.txt"
Variables ¶
This section is empty.
Functions ¶
func GetBestPlayer ¶
func GetBestPlayer() (*mpris.Player, error)
GetBestPlayer Returns the "best" player to be displayed. THIS IS NOT CACHED, so avoid calling it twice. The "best" is the one selected by the user. If not players were selected or the selected player isn't running then the best is the first player in the list that isn't "Stopped". If all players are stopped, fallback to the first one in the list.
func GetDbusConn ¶
func GetDbusConn() (*dbus.Conn, error)
GetDbusConn Creates and cache a dbus connection. The cache is used in subsequent calls.
func GetPreferedPlayerName ¶
func HideGotroller ¶
func HideGotroller() error
func ListPlayersName ¶
func ListenToChanges ¶
func RemovePreferedPlayerName ¶
func RemovePreferedPlayerName() error
func SetPreferedPlayerName ¶
Types ¶
type ErrDisabled ¶
type ErrDisabled struct{}
func (ErrDisabled) Error ¶
func (e ErrDisabled) Error() string
Click to show internal directories.
Click to hide internal directories.