feat: bookmarks
This commit is contained in:
parent
ddd00d7844
commit
98ec0130fd
19 changed files with 223 additions and 90 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue