dotfiles/dotlocal/bin/get_network

4 lines
190 B
Text
Raw Normal View History

2024-08-03 16:07:30 +02:00
#!/bin/sh
if iwctl station wlan0 show | grep -q "Connected network" ; then echo $(iwctl station wlan0 show | grep "AverageRSSI" | tr -s ' ' | cut -d " " -f 3); else echo "Disconnected"; fi