From 74f70df2cd1a30ad8228056784606f1481e0a84f Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Mon, 1 Aug 2022 10:50:19 -0400 Subject: [PATCH] ENH use ethernet toggle for indicator in xmobar --- bin/xmobar.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/xmobar.hs b/bin/xmobar.hs index 0fb474e..b0eb80d 100644 --- a/bin/xmobar.hs +++ b/bin/xmobar.hs @@ -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)