summaryrefslogtreecommitdiffhomepage
path: root/app/MPD.hs
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2018-12-01 19:13:08 +0000
committerjao <jao@gnu.org>2018-12-01 19:13:08 +0000
commit1cc4f0c1924e20fad7018307c549cee445afbaf7 (patch)
tree2354f077dcb885e13b3b8dec8cfd44952b83f5a3 /app/MPD.hs
parent836bcb7286275969ce4b22ad130384652c5821e8 (diff)
downloadxmobar-config-1cc4f0c1924e20fad7018307c549cee445afbaf7.tar.gz
xmobar-config-1cc4f0c1924e20fad7018307c549cee445afbaf7.tar.bz2
Directory layout directly usable by xmobar executable
Diffstat (limited to 'app/MPD.hs')
-rw-r--r--app/MPD.hs27
1 files changed, 0 insertions, 27 deletions
diff --git a/app/MPD.hs b/app/MPD.hs
deleted file mode 100644
index d237867..0000000
--- a/app/MPD.hs
+++ /dev/null
@@ -1,27 +0,0 @@
-import Xmobar
-import Config (palette)
-import qualified Bottom (config)
-
-mpd = MPD [ "-W", "12", "-b", "░", "-f", "▒", "-t"
- , " <lapsed> <fc=seashell3><fn=1><bar></fn></fc>"] 10
-
-autoMPD = AutoMPD [ "-T", "160", "-E", "...", "-W", "10", "-t"
- , "<length> <ppos>/<plength> \
- \<fn=0><fc=darkolivegreen><title></fc></fn> \
- \<fn=0><album></fn> \
- \<fn=0><fc=dodgerblue4><artist></fc> \
- \<fc=burlywood4><composer></fc> <date></fn>"]
-
-
-config p = (Bottom.config [(Run mpd), (Run autoMPD)] p) {
- template = "|kbd||default:Master| |default:Capture| \
- \|mpd| |autompd| {} |mbox| \
- \|EGPH| \
- \|diskio| |disku| · |bright| · |coretemp| \
- \|memory| · |uptime| |b0| "
- , additionalFonts = ["xft:Hack-7"]
- , textOffsets = [17]
- }
-
-main :: IO ()
-main = palette >>= xmobar . config