diff options
author | ache <ache@ache.one> | 2018-04-20 09:42:45 +0200 |
---|---|---|
committer | ache <ache@ache.one> | 2018-04-20 09:42:45 +0200 |
commit | dac3b5ff06fff1c15077ebf667349a5592b63cfd (patch) | |
tree | 62808f98a7ca6eb0613303bad1c9e8d55b5c435e | |
parent | Fix wifi information getter (diff) |
Fix detection of Wifi
-rw-r--r-- | rc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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", "") |