12 lines
235 B
Bash
Executable File
12 lines
235 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
aps="$(nmcli --terse --fields IN-USE,SSID,SIGNAL device wifi list | grep '^\*:')"
|
|
|
|
ssid="$(echo $aps | cut -d ':' -f 2)"
|
|
perc="$(echo $aps | cut -d ':' -f 3)"
|
|
|
|
output="$ssid $perc%"
|
|
|
|
echo "$output"
|
|
echo "$output"
|