feat: massive cleanup, kctx cache
This commit is contained in:
parent
23d1e06c20
commit
a759ac8dd2
28 changed files with 320 additions and 1743 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
iwctl=(iwctl station "$(find /sys/class/net/wlan* -print -quit)")
|
||||
iwctl=(iwctl station "$(find /sys/class/net/wlan* -printf '%f' -quit)")
|
||||
|
||||
rfkill unblock wlan
|
||||
if ! "${iwctl[@]}" show | grep -q 'Scanning\s\+yes'; then
|
||||
|
|
@ -9,7 +9,7 @@ fi
|
|||
|
||||
for _ in {0..29}; do
|
||||
if "${iwctl[@]}" show | grep -q '\s*State\s\+connected\s*$'; then
|
||||
kill -37 "$(cat "$XDG_CACHE_HOME/pidofbar")"
|
||||
kill -36 "$(cat "$XDG_CACHE_HOME/sbar/pid")"
|
||||
exit 0
|
||||
fi
|
||||
sleep 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue