-module("network_widget")
-
-local intf = ""
-if utils.host == "chronos" then intf = "wlp3s0" end
-if utils.host == "shada" then intf = "enp3s0" end
-
-local function netclosure(intf)
- return function (_, args)
- local up_mb = args["{"..intf.." up_kb}"]
- local down_mb = args["{"..intf.." down_kb}"]
- return "Net: ↑"..up_mb.." ↓"..down_mb
- end
+local widget
+if utils.host == "chronos" then
+ widget = net_widget.wireless({interface="wlp3s0", skiproutes=false, font='hack'})
+end
+if utils.host == "hactar" then
+ widget = net_widget.indicator({interfaces={"br0"}, font='hack'})
+end
+if utils.host == "skull-canyon" then
+ widget = net_widget.indicator({interfaces={"eno1"}, font='hack'})