forked from colonelpanic/dotfiles
[taffybar] Fix imports, set monitor number to 1
This commit is contained in:
parent
8bb609f701
commit
d74c29dea7
@ -4,10 +4,8 @@ import System.Taffybar.Systray
|
|||||||
import System.Taffybar.TaffyPager
|
import System.Taffybar.TaffyPager
|
||||||
import System.Taffybar.SimpleClock
|
import System.Taffybar.SimpleClock
|
||||||
import System.Taffybar.FreedesktopNotifications
|
import System.Taffybar.FreedesktopNotifications
|
||||||
import System.Taffybar.Weather
|
import System.Taffybar.MPRIS2
|
||||||
import System.Taffybar.MPRIS
|
|
||||||
|
|
||||||
import System.Taffybar.Widgets.PollingBar
|
|
||||||
import System.Taffybar.Widgets.PollingGraph
|
import System.Taffybar.Widgets.PollingGraph
|
||||||
|
|
||||||
import System.Information.Memory
|
import System.Information.Memory
|
||||||
@ -18,7 +16,7 @@ memCallback = do
|
|||||||
return [memoryUsedRatio mi]
|
return [memoryUsedRatio mi]
|
||||||
|
|
||||||
cpuCallback = do
|
cpuCallback = do
|
||||||
(userLoad, systemLoad, totalLoad) <- cpuLoad
|
(_, systemLoad, totalLoad) <- cpuLoad
|
||||||
return [totalLoad, systemLoad]
|
return [totalLoad, systemLoad]
|
||||||
|
|
||||||
main = do
|
main = do
|
||||||
@ -38,7 +36,8 @@ main = do
|
|||||||
cpu = pollingGraphNew cpuCfg 0.5 cpuCallback
|
cpu = pollingGraphNew cpuCfg 0.5 cpuCallback
|
||||||
tray = systrayNew
|
tray = systrayNew
|
||||||
defaultTaffybar defaultTaffybarConfig { startWidgets = [ pager, note ]
|
defaultTaffybar defaultTaffybarConfig { startWidgets = [ pager, note ]
|
||||||
, endWidgets = [ tray, wea, clock, mem, cpu, mpris ]
|
, endWidgets = [ tray, clock, mem, cpu, mpris ]
|
||||||
|
, monitorNumber = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Local Variables:
|
-- Local Variables:
|
||||||
|
Loading…
Reference in New Issue
Block a user