aboutsummaryrefslogtreecommitdiff
path: root/.config/awesome/services/wifi.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/awesome/services/wifi.lua')
-rw-r--r--.config/awesome/services/wifi.lua23
1 files changed, 0 insertions, 23 deletions
diff --git a/.config/awesome/services/wifi.lua b/.config/awesome/services/wifi.lua
deleted file mode 100644
index f6b67f1..0000000
--- a/.config/awesome/services/wifi.lua
+++ /dev/null
@@ -1,23 +0,0 @@
-local gtimer = require "gears.timer"
-
-gtimer {
- timeout = 1,
- call_now = true,
- autostart = true,
- callback = function()
- local lines = {}
-
- for line in io.lines("/proc/net/wireless") do
- table.insert(lines, line)
- end
-
- if not lines[3] then
- awesome.emit_signal("services::wifi", 0, false)
- return
- end
-
- local strength = lines[3]:match("^%s*(.*)"):match("^.-%s+.-%s+.-(%S+)%.")
-
- awesome.emit_signal("services::wifi", math.floor(tonumber(strength) * 10 / 7), true)
- end
-}