summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.lua b/rc.lua
index c1be81c..ccfe162 100644
--- a/rc.lua
+++ b/rc.lua
@@ -286,7 +286,7 @@ function act()
lastIp = ip
end
end
- awful.spawn.easy_async("bash -c \"iwconfig " .. interface .. " 2>&1 | grep " .. interface .. " | cut -d'\\\"' -f 2 \"",
+ awful.spawn.easy_async("bash -c \"iwconfig " .. interface .. " 2>&1 | grep -v 'no wireless' | grep " .. interface .. " | cut -d'\\\"' -f 2 \"",
function(essid, stderr2, reason2, exit_code2)
if not (essid == "" ) then
essid = string.gsub(essid, "\n", "")