[taffybar] Fix netmonitor
This commit is contained in:
parent
15966d16f3
commit
dda42e66c7
@ -15,6 +15,7 @@ import System.Information.Memory
|
|||||||
import System.Taffybar
|
import System.Taffybar
|
||||||
import System.Taffybar.LayoutSwitcher
|
import System.Taffybar.LayoutSwitcher
|
||||||
import System.Taffybar.MPRIS2
|
import System.Taffybar.MPRIS2
|
||||||
|
import System.Taffybar.NetMonitor
|
||||||
import System.Taffybar.Pager
|
import System.Taffybar.Pager
|
||||||
import System.Taffybar.SimpleClock
|
import System.Taffybar.SimpleClock
|
||||||
import System.Taffybar.Systray
|
import System.Taffybar.Systray
|
||||||
@ -130,7 +131,7 @@ main = do
|
|||||||
, innerPadding = 5
|
, innerPadding = 5
|
||||||
, outerPadding = 5
|
, outerPadding = 5
|
||||||
}
|
}
|
||||||
netMonitor = netMonitorMultiNew ["wlp2s0"]
|
netMonitor = netMonitorMultiNew 1.5 ["enp0s31f6"]
|
||||||
pagerConfig = defaultPagerConfig {useImages = True}
|
pagerConfig = defaultPagerConfig {useImages = True}
|
||||||
pager = taffyPagerNew pagerConfig
|
pager = taffyPagerNew pagerConfig
|
||||||
makeUnderline = underlineWidget hudConfig
|
makeUnderline = underlineWidget hudConfig
|
||||||
@ -144,11 +145,11 @@ main = do
|
|||||||
defaultTaffybarConfig
|
defaultTaffybarConfig
|
||||||
{ startWidgets = [hud, los, wnd]
|
{ startWidgets = [hud, los, wnd]
|
||||||
, endWidgets =
|
, endWidgets =
|
||||||
[ -- tray2
|
[ makeUnderline tray "yellow"
|
||||||
makeUnderline tray "yellow"
|
|
||||||
, makeUnderline clock "teal"
|
, makeUnderline clock "teal"
|
||||||
, makeUnderline mem "blue"
|
, makeUnderline mem "blue"
|
||||||
, makeUnderline cpu "green"
|
, makeUnderline cpu "green"
|
||||||
|
, makeUnderline netMonitor "yellow"
|
||||||
, makeUnderline mpris "red"
|
, makeUnderline mpris "red"
|
||||||
]
|
]
|
||||||
, monitorNumber = monNumber
|
, monitorNumber = monNumber
|
||||||
|
Loading…
Reference in New Issue
Block a user