feat: bookmarks

This commit is contained in:
ange 2025-02-17 06:08:25 +00:00
parent ddd00d7844
commit 98ec0130fd
Signed by: ange
GPG key ID: 9E0C4157BB7BEB1D
19 changed files with 223 additions and 90 deletions

View file

@ -1,6 +1,6 @@
#!/bin/bash -e
iwctl=(iwctl station "$(basename /sys/class/net/wlan*)")
iwctl=(iwctl station "$(find /sys/class/net/wlan* -print -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 "$HOME/.cache/pidofbar")"
kill -37 "$(cat "$XDG_CACHE_HOME/pidofbar")"
exit 0
fi
sleep 1