diff options
| author | delta <darkussdelta@gmail.com> | 2023-05-12 16:18:24 +0200 |
|---|---|---|
| committer | delta <darkussdelta@gmail.com> | 2023-05-12 16:18:24 +0200 |
| commit | f5612f081db0dc69f5c0ebc69e67fa3b098a9ad9 (patch) | |
| tree | 7a04027efe5fede7f08688a9524c5dbe6628635b /.config/awesome/services/wifi.lua | |
| parent | ea1bdf6585caed2c0ba8669ca5c3b3b92232281a (diff) | |
restructure services, add get_essid to quarrel.native and other wip work
Diffstat (limited to '.config/awesome/services/wifi.lua')
| -rw-r--r-- | .config/awesome/services/wifi.lua | 23 |
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 -} |
