ENH use ethernet toggle for indicator in xmobar
This commit is contained in:
parent
eda32c6e25
commit
74f70df2cd
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue