Repair Tailscale authorization flow
This commit is contained in:
1 parent
16b5f2157f
commit
fe48e83222
8 files changed
+167
-9
No files matched your search
@@ -14,10 +14,11 @@ app=${1:-}
|
||||
|
||||
address=$(
|
||||
hyprctl clients -j 2>/dev/null |
|
||||
jq -r --arg name "${app,,}" \
|
||||
'[.[] | select((.class // "") | ascii_downcase | startswith($name))] | first.address // empty'
|
||||
jq -r --arg pattern "$app" \
|
||||
'[.[] | select((.class // "") | test($pattern; "i"))] | first.address // empty'
|
||||
)
|
||||
|
||||
[[ -n $address ]] || exit 1
|
||||
|
||||
hyprctl dispatch focuswindow "address:$address" >/dev/null
|
||||
hyprctl dispatch "hl.dsp.focus({ window = \"address:$address\" })" >/dev/null 2>&1 || \
|
||||
hyprctl dispatch focuswindow "address:$address" >/dev/null
|
||||
Reference in new issue
Block a user