summaryrefslogtreecommitdiffhomepage
path: root/src/Bottom.hs
blob: a13662b25312cdc1df622abdde7ead8fcac31558 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import Xmobar
import Config
import qualified Music

import System.Environment (getArgs)


main :: IO ()
main = do
  args <- getArgs
  let mpris = if null args then "spotify" else last args
  palette >>= configFromArgs . Music.config mpris >>= xmobar