diff --git a/sway/status.py b/sway/status.py index 7bac9c0..d0e3fc1 100755 --- a/sway/status.py +++ b/sway/status.py @@ -21,7 +21,7 @@ def refresh(): try: ssid = ( check_output( - "iwctl station wlan0 show | grep 'Connected network' | awk '{print $3}'", + "iwctl station wlan0 show | grep -o 'Connected network.*$' | sed 's/^Connected network\s\+//'", shell=True, ) .strip()