dotfiles/.local/scripts/9996_wifi

7 lines
190 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)
echo " $name $power"