From e23eef7cf263aa11edd90c3bcde547b55e9786ae Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Wed, 27 Mar 2019 19:17:26 +0000 Subject: [PATCH] [awesome] network widgets: only use specified interfaces (not docker0) --- home/.config/awesome/widgets.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home/.config/awesome/widgets.lua b/home/.config/awesome/widgets.lua index 93e0509..e9604aa 100644 --- a/home/.config/awesome/widgets.lua +++ b/home/.config/awesome/widgets.lua @@ -8,11 +8,14 @@ local theme = require("theme") local gfs = require("gears.filesystem") local iconsdir = gfs.get_configuration_dir() .. "icons/" +local network_interfaces = {"enp0s25", "wlp3s0"} + local widgets = {} widgets.netdown_icon = wibox.widget.imagebox(iconsdir .. "down.png") widgets.netdown = lain.widget.net({ units = 1024^2, + iface = network_interfaces, settings = function() widget:set_markup(markup.fontfg(theme.font, theme.colors.green, net_now.received .. "MiB/s ")) end @@ -21,6 +24,7 @@ widgets.netdown = lain.widget.net({ widgets.netup_icon = wibox.widget.imagebox(iconsdir .. "up.png") widgets.netup = lain.widget.net({ units = 1024^2, + iface = network_interfaces, settings = function() widget:set_markup(markup.fontfg(theme.font, theme.colors.red, net_now.sent .. "MiB/s ")) end