feat: bin -> .local/bin, vcs_info untracked

This commit is contained in:
ange 2024-04-24 19:22:30 +02:00
parent af14629939
commit 7c98658d24
Signed by: ange
GPG key ID: 9E0C4157BB7BEB1D
30 changed files with 31 additions and 46 deletions

13
.local/bin/wlp Executable file
View file

@ -0,0 +1,13 @@
#!/bin/bash -e
iwctl=(iwctl station wlan0)
"${iwctl[@]}" show | grep -q 'Scanning\s\+yes' || "${iwctl[@]}" scan
for _ in {0..29}; do
if "${iwctl[@]}" show | grep -q '\s*State\s\+connected\s*$'; then
kill -35 "$(cat "$HOME/.cache/pidofbar")"
exit 0
fi
sleep 1
done