From 1d508cce151c77bb25d90ad40369e58187deee9c Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Sun, 22 Dec 2019 01:47:54 +0100 Subject: wlp3s0 -> wlan0 --- swaystatus | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swaystatus b/swaystatus index 582f23f..463346a 100755 --- a/swaystatus +++ b/swaystatus @@ -23,8 +23,8 @@ fi SPACEINFO=$(curl -s "http://status.mainframe.io/api/spaceInfo" | jq -r '.state.message') WLANPWR=$(/usr/sbin/rfkill --json | /usr/bin/jq -r '.""[] | select(.type == "wlan") | select(.device == "phy0") .soft') -WLANSSID=$(/sbin/iw dev wlp3s0 info | grep ssid | cut -d ' ' -f "2-") -WLANFREQ=$(/sbin/iw dev wlp3s0 info | grep channel | cut -d ' ' -f 3 | sed "s/(//g") +WLANSSID=$(/sbin/iw dev wlan0 info | grep ssid | cut -d ' ' -f "2-") +WLANFREQ=$(/sbin/iw dev wlan0 info | grep channel | cut -d ' ' -f 3 | sed "s/(//g") if [ "${WLANPWR}" = "unblocked" ] ; then if [ "${WLANSSID}" = "" ] ; then -- cgit v1.2.3