module Music where
import Xmobar
import Monitors
import qualified Bottom
import Config (defaultHeight)
mpris client =
Mpris2 client -- "clementine" --
["-t", " \
\ \
\ "
, "-T", "165", "-E", "...", "-M", "100", "-x", ""] 10
mprisConfig client p = Bottom.config [Run (mpris client)] "|mpris2|" p
mpd = MPD [ "-W", "12", "-b", "░", "-f", "▒", "-t"
, " "] 10
autoMPD = AutoMPD [ "-T", "150", "-E", "...", "-W", "10", "-t"
, " / \
\ \
\ \
\ \
\ "]
mpdConfig p = (Bottom.config [Run mpd, Run autoMPD] "|mpd| |autompd|" p)
{
textOffsets = [defaultHeight - 7, defaultHeight - 6]
}
compMPD = concatMonitor " " mpd autoMPD
alt x = altMonitor (mpris x) compMPD
config cl =
if cl == "mpd"
then mpdConfig
else Bottom.config [Run (alt cl)] "|mpris2_mpd_autompd|"