dotfiles/.local/scripts/9996_wifi

7 lines
190 B
Bash

#!/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"