diff options
author | Sebastian Reichel <sre@ring0.de> | 2019-12-22 01:47:54 +0100 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2019-12-22 01:47:54 +0100 |
commit | 1d508cce151c77bb25d90ad40369e58187deee9c (patch) | |
tree | a3c9d4f0788a3fdf6a34489094e51f5c0f20df70 /swaystatus | |
parent | 72678f8f65d1e8f46fa5726385c14f5d3accbf91 (diff) | |
download | sway-config-master.tar.bz2 |
Diffstat (limited to 'swaystatus')
-rwxr-xr-x | swaystatus | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |