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/MPD.hs | |
parent | b364bf310522e8304d644a77f335f47067a05500 (diff) | |
download | xmobar-config-836bcb7286275969ce4b22ad130384652c5821e8.tar.gz xmobar-config-836bcb7286275969ce4b22ad130384652c5821e8.tar.bz2 |
Working xmobar top/bottom configurations
Diffstat (limited to 'app/MPD.hs')
-rw-r--r-- | app/MPD.hs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app/MPD.hs b/app/MPD.hs new file mode 100644 index 0000000..d237867 --- /dev/null +++ b/app/MPD.hs @@ -0,0 +1,27 @@ +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 |