[taffybar] Fix netmonitor

This commit is contained in:
Ivan Malison 2017-03-29 18:53:03 -07:00
parent 15966d16f3
commit dda42e66c7
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -15,6 +15,7 @@ import System.Information.Memory
import System.Taffybar
import System.Taffybar.LayoutSwitcher
import System.Taffybar.MPRIS2
import System.Taffybar.NetMonitor
import System.Taffybar.Pager
import System.Taffybar.SimpleClock
import System.Taffybar.Systray
@ -130,7 +131,7 @@ main = do
, innerPadding = 5
, outerPadding = 5
}
netMonitor = netMonitorMultiNew ["wlp2s0"]
netMonitor = netMonitorMultiNew 1.5 ["enp0s31f6"]
pagerConfig = defaultPagerConfig {useImages = True}
pager = taffyPagerNew pagerConfig
makeUnderline = underlineWidget hudConfig
@ -144,11 +145,11 @@ main = do
defaultTaffybarConfig
{ startWidgets = [hud, los, wnd]
, endWidgets =
[ -- tray2
makeUnderline tray "yellow"
[ makeUnderline tray "yellow"
, makeUnderline clock "teal"
, makeUnderline mem "blue"
, makeUnderline cpu "green"
, makeUnderline netMonitor "yellow"
, makeUnderline mpris "red"
]
, monitorNumber = monNumber