diff options
author | jao <jao@gnu.org> | 2018-12-01 13:00:04 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2018-12-01 13:00:04 +0000 |
commit | 836bcb7286275969ce4b22ad130384652c5821e8 (patch) | |
tree | e06b1adda60eefa75e74a128312b083c62aec441 /app/Mpris.hs | |
parent | b364bf310522e8304d644a77f335f47067a05500 (diff) | |
download | xmobar-config-836bcb7286275969ce4b22ad130384652c5821e8.tar.gz xmobar-config-836bcb7286275969ce4b22ad130384652c5821e8.tar.bz2 |
Working xmobar top/bottom configurations
Diffstat (limited to 'app/Mpris.hs')
-rw-r--r-- | app/Mpris.hs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/app/Mpris.hs b/app/Mpris.hs new file mode 100644 index 0000000..09c155d --- /dev/null +++ b/app/Mpris.hs @@ -0,0 +1,20 @@ +import Xmobar +import Config (palette) +import qualified Bottom (config) + +mpris = + Mpris2 "spotify" -- "clementine" -- + ["-t", " <tracknumber>\ + \ <title> <fc=sienna4><artist></fc>\ + \ <album> <length>" + , "-T", "180", "-E", "...", "-M", "100", "-x", ""] 10 + +config p = (Bottom.config [Run mpris] p) { + template = "|kbd||default:Master| |default:Capture| \ + \|mpris2| {} |mbox| \ + \|EGPH| \ + \|diskio| |disku| · |bright| · |coretemp| \ + \|memory| · |uptime| |b0| " + } +main :: IO () +main = palette >>= xmobar . config |