-
Notifications
You must be signed in to change notification settings - Fork 0
/
wifi.lua
31 lines (27 loc) · 1.42 KB
/
wifi.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
-- Tastaturkürzel "w" für WiFi
moduleString = moduleString .. "📶 - Wifi\n"
hs.hotkey.bind(hyper, "w", function()
local network = hs.wifi.currentNetwork()
local details = hs.wifi.interfaceDetails()
hs.alert.show("📶: Connected to " .. network
.. "\n" .. "Transmit: " .. details.transmitRate .. " Mbps"
-- .. "\n" .. "Power: " .. details.transmitPower .. "mW"
-- .. "\n" .. "Noise: " .. details.noise .. " dBm"
-- .. "\n" .. "Channel Band: " .. details.wlanChannel.band
-- .. "\n" .. "Channel Nr: " .. details.wlanChannel.number
-- .. "\n" .. "Channel Width: " .. details.wlanChannel.width
)
end)
hs.hotkey.bind(hyperNoShift, "w", function()
local network = hs.wifi.currentNetwork()
local details = hs.wifi.interfaceDetails()
hs.alert.show("📶: Connected to " .. network
.. "\n" .. "Transmit: " .. details.transmitRate .. " Mbps"
-- .. "\n" .. "Power: " .. details.transmitPower .. "mW"
-- .. "\n" .. "Noise: " .. details.noise .. " dBm"
-- .. "\n" .. "Channel Band: " .. details.wlanChannel.band
-- .. "\n" .. "Channel Nr: " .. details.wlanChannel.number
-- .. "\n" .. "Channel Width: " .. details.wlanChannel.width
)
end)
-- hs.wifi.currentNetwork