dotfiles/.local/scripts/9996_wifi

12 lines
245 B
Plaintext
Raw Normal View History

2022-08-14 02:10:53 +08:00
#!/bin/bash
power=$(nmcli -f IN-USE,SIGNAL,SSID device wifi | grep "*" | cut -d' ' -f8)
name=$(nmcli -f IN-USE,SIGNAL,SSID device wifi | grep "*" | cut -d' ' -f14)
2022-08-15 00:40:32 +08:00
if [[ ! $name ]]
then
echo "  "
else
echo " $name $power"
fi