Add wifi,network,load fields to i3bar.

This commit is contained in:
2015-11-20 17:12:25 +01:00
parent b85bcfdda6
commit 3bde54570f
2 changed files with 26 additions and 0 deletions

11
i3/i3/scripts/wifi Executable file
View File

@@ -0,0 +1,11 @@
#!/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