mirror of
https://github.com/elenapan/dotfiles.git
synced 2025-12-26 15:14:58 +08:00
networks: Remove unneeded network scan
The `update_networks()` function already scans in the beginning.
This commit is contained in:
parent
50cad1adc2
commit
c5431fb7f0
1 changed files with 1 additions and 2 deletions
|
|
@ -78,10 +78,9 @@ scan() {
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
eww update networks-scan-loading=true
|
eww update networks-scan-loading=true
|
||||||
iwctl station $interface scan
|
|
||||||
for (( i = 0; i < 5; i++ )); do
|
for (( i = 0; i < 5; i++ )); do
|
||||||
sleep 1
|
|
||||||
update_networks
|
update_networks
|
||||||
|
sleep 1
|
||||||
done
|
done
|
||||||
eww update networks-scan-loading=false
|
eww update networks-scan-loading=false
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue