qdbp / py9status

i3bar status line in python 3
3 stars 1 forks source link

Fix: wifi module display updated for new output on iw dev #14

Open jeff-cai opened 1 year ago

jeff-cai commented 1 year ago

updated for new iw dev output

13

sample output below

.:[3:01:45]:. ~ % iw dev wlp4s0 info Interface wlp4s0 ifindex 3 wdev 0x1 addr e4:a7:a0:c6:ab:b5 type managed wiphy 0 channel 149 (5745 MHz), width: 80 MHz, center1: 5775 MHz txpower 22.00 dBm multicast TXQ: qsz-byt qsz-pkt flows drops marks overlmt hashcol tx-bytes tx-packets 0 0 0 0 0 0 0 0 0

jeff-cai commented 1 year ago

output of iw dev link, used to regex SSID

.:[12:08:04]:. ~ % iw dev wlp4s0 link Connected to f4:17:b8:b6:43:68 (on wlp4s0) SSID: ice9 freq: 5745 RX: 400295990 bytes (189795 packets) TX: 20241283 bytes (65483 packets) signal: -70 dBm rx bitrate: 650.0 MBit/s VHT-MCS 7 80MHz short GI VHT-NSS 2 tx bitrate: 585.1 MBit/s VHT-MCS 6 80MHz short GI VHT-NSS 2

bss flags: short-slot-time dtim period: 1 beacon int: 100