summaryrefslogtreecommitdiffstats
path: root/swaystatus
diff options
context:
space:
mode:
Diffstat (limited to 'swaystatus')
-rwxr-xr-xswaystatus4
1 files 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