summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2017-11-28 01:22:04 +0000
committerache <ache@ache.one>2017-11-28 01:22:04 +0000
commit578da4ab34b1c6051720a00abba7b72d21e29fc2 (patch)
treedf2dd995c1cab8558742fe4d4dd92457a0daf1bc
parentFix network command (diff)
parentNetwork wifi signal update (diff)
Fix network command
-rw-r--r--rc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.lua b/rc.lua
index 077ed7c..2c70a2b 100644
--- a/rc.lua
+++ b/rc.lua
@@ -263,7 +263,7 @@ function act()
ip = string.gsub(ip, "\n", "")
toShow = ip .. "@"
end
- awful.spawn.easy_async("bash -c \"iwconfig wlp3s0 2>&1 | grep -v 'no wireless' | grep wlp3s0 | cut -d'\\\"' -f 2 \"",
+ awful.spawn.easy_async("bash -c \"iwconfig" .. interface .. "2>&1 | grep " .. interface .. " | cut -d'\\\"' -f 2 \"",
function(essid, stderr2, reason2, exit_code2)
if not (essid == "" ) then
essid = string.gsub(essid, "\n", "")