Debian Codegraph @

obvious/wlan/readme

raw
1 WLAN widget
2
3 This widget monitors your WLAN's signal strength. To set the device it monitors, use
4
5 ```lua
6 wlan.set_device(dev)
7 ```
8
9 The default is "wlan0". Specify "auto" to use the first available WLAN in your system.
10
11 To add it to your rc.lua, include
12
13 ```lua
14 local wlan = require("obvious.wlan")
15 ```
16
17 in the top of your rc.lua and add `wlan().widget` to your wibox
18
19 If you want to use the data gathered by this widget, you can use the function
20 `wlan.get_data()`. It returns `nil` on failure, otherwise it returns a table with
21 the field 'link' as its only content. That field contains a number the range of which
22 depends on the wlan driver and firmware used which describes the signal strength.