sway/status.py: Fix iwctl for SSIDs with spaces
We need to consider that some SSIDs will have spaces.
This commit is contained in:
parent
7b6d96c1c4
commit
7859c22571
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user