ENH use ethernet toggle for indicator in xmobar

This commit is contained in:
Nathan Dwarshuis 2022-08-01 10:50:19 -04:00
parent eda32c6e25
commit 74f70df2cd
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ getWireless = Sometimes "wireless status indicator" xpfWireless
[Subfeature (IORoot wirelessCmd $ Only readWireless) "sysfs path"]
getEthernet :: Maybe SysClient -> BarFeature
getEthernet cl = iconDBus "ethernet status indicator" (const True) root tree
getEthernet cl = iconDBus "ethernet status indicator" xpfEthernet root tree
where
root useIcon tree' = DBusRoot (const . ethernetCmd useIcon) tree' cl
tree = And1 (Only readEthernet) (Only_ devDep)