summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2017-11-11 13:15:57 +0100
committerache <ache@ache.one>2017-11-11 13:15:57 +0100
commit2508ab12c04f77ab22a8d754d3fd9699138151c1 (patch)
tree1173046c9f4464514797c0d9e2b505d858155ab9
parentNetwork info widget update (diff)
Network wifi signal update
-rw-r--r--rc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.lua b/rc.lua
index fa5fb08..f8f4c5c 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", "")