dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 0526892b66f3dfb01dd3efe9ca45f419b4be4931
parent 9b386d3ce94b680b4bfc82db481fe117493cd1e0
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu, 31 Jan 2019 10:43:47 +0100

Only select ssid from active connections

Diffstat:
Mlinks/.config/i3/i3scripts/i3internet | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/links/.config/i3/i3scripts/i3internet b/links/.config/i3/i3scripts/i3internet @@ -17,7 +17,7 @@ else wifiicon=$(grep "^\s*w" /proc/net/wireless | \ awk '{ print int($3 * 100 / 70) "% " }') #awk '{ print "📶", int($3 * 100 / 70) "% " }') - ssid=$(nmcli connection show | grep 'wifi' | head -n 1 | awk '{print $1}') + ssid=$(nmcli connection show --active | grep 'wifi' | head -n 1 | awk '{print $1}') wifiicon="$wifiicon$ssid" fi