summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2019-12-22 01:47:54 +0100
committerSebastian Reichel <sre@ring0.de>2019-12-22 01:47:54 +0100
commit1d508cce151c77bb25d90ad40369e58187deee9c (patch)
treea3c9d4f0788a3fdf6a34489094e51f5c0f20df70
parent72678f8f65d1e8f46fa5726385c14f5d3accbf91 (diff)
downloadsway-config-master.tar.bz2
wlp3s0 -> wlan0HEADmaster
-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