Revert "[taffybar] Add battery display"

This reverts commit 2341457723.
This commit is contained in:
Ivan Malison 2016-11-14 05:49:29 -06:00
parent 2341457723
commit 2b3b892350
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -1,7 +1,6 @@
import System.Taffybar import System.Taffybar
import System.Taffybar.Systray import System.Taffybar.Systray
import System.Taffybar.Battery
import System.Taffybar.TaffyPager import System.Taffybar.TaffyPager
import System.Taffybar.SimpleClock import System.Taffybar.SimpleClock
import System.Taffybar.MPRIS2 import System.Taffybar.MPRIS2
@ -28,16 +27,14 @@ main = do
] ]
, graphLabel = Just "cpu" , graphLabel = Just "cpu"
} }
batteryCfg = defaultBatteryConfig
let clock = textClockNew Nothing "<span fgcolor='orange'>%a %b %_d %r</span>" 1 let clock = textClockNew Nothing "<span fgcolor='orange'>%a %b %_d %r</span>" 1
pager = taffyPagerNew defaultPagerConfig pager = taffyPagerNew defaultPagerConfig
mpris = mpris2New mpris = mpris2New
mem = pollingGraphNew memCfg 1 memCallback mem = pollingGraphNew memCfg 1 memCallback
cpu = pollingGraphNew cpuCfg 0.5 cpuCallback cpu = pollingGraphNew cpuCfg 0.5 cpuCallback
tray = systrayNew tray = systrayNew
battery = batteryBarNew batteryCfg 30
defaultTaffybar defaultTaffybarConfig { startWidgets = [ pager ] defaultTaffybar defaultTaffybarConfig { startWidgets = [ pager ]
, endWidgets = [ battery, tray, clock, mem, cpu, mpris ] , endWidgets = [ tray, clock, mem, cpu, mpris ]
, monitorNumber = 1 , monitorNumber = 1
} }