feat: massive cleanup, kctx cache

This commit is contained in:
ange 2025-04-05 06:31:22 +00:00
parent 23d1e06c20
commit a759ac8dd2
Signed by: ange
GPG key ID: 9E0C4157BB7BEB1D
28 changed files with 320 additions and 1743 deletions

View file

@ -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