summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2017-11-28 01:21:17 +0000
committerache <ache@ache.one>2017-11-28 01:21:17 +0000
commit577056e4ef74654694dfd7afbd051abd017fbe2b (patch)
tree8fc7829949deee40e46228d8d5cacbbe71bcee0f
parentNetwork info widget update (diff)
Fix network command
-rw-r--r--rc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.lua b/rc.lua
index fa5fb08..077ed7c 100644
--- a/rc.lua
+++ b/rc.lua
@@ -263,11 +263,11 @@ 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 wlp3s0 2>&1 | grep -v 'no wireless' | grep wlp3s0 | cut -d'\\\"' -f 2 \"",
function(essid, stderr2, reason2, exit_code2)
if not (essid == "" ) then
essid = string.gsub(essid, "\n", "")
- awful.spawn.easy_async("bash -c \"iwconfig " .. interface .. " 2>1 | grep -v 'no wireless' | grep Signal | cut -d'=' -f 3 | cut -d' ' -f 1\"",
+ awful.spawn.easy_async("bash -c \"iwconfig " .. interface .. " 2>&1 | grep -v 'no wireless' | grep Signal | cut -d'=' -f 3 | cut -d' ' -f 1\"",
function(signal, stderr3, reason3, exit_code3)
signal = string.gsub(signal, "\n", "")
mynetworkwidget:set_text ( ip .. "@" .. essid .. "#" .. signal)