From: Luke Bonham Date: Sun, 13 Apr 2014 18:10:42 +0000 (+0200) Subject: Merge pull request #42 from ilpianista/master X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/4c3cf3c0b78624242be877a8454a3cd7c2679d45?hp=6e2b1d3e43b77f9a5e72ed12754fefcc315f04d4 Merge pull request #42 from ilpianista/master net: optional notifications --- diff --git a/widgets/net.lua b/widgets/net.lua index af97201..08c7366 100644 --- a/widgets/net.lua +++ b/widgets/net.lua @@ -44,6 +44,7 @@ local function worker(args) local timeout = args.timeout or 2 local iface = args.iface or net.get_device() local units = args.units or 1024 --kb + local notify = args.notify or "on" local settings = args.settings or function() end net.widget = wibox.widget.textbox('') @@ -76,7 +77,7 @@ local function worker(args) net.last_t = now_t net.last_r = now_r - if net_now.carrier ~= "1" + if net_now.carrier ~= "1" and notify == "on" then if helpers.get_map(iface) then