Repair Tailscale authorization flow
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -17,3 +17,7 @@ fi
|
||||
systemd-run --user --quiet --collect --unit="omarchy-browser-$(date +%s%N)" \
|
||||
--property=StandardOutput=null --property=StandardError=null \
|
||||
uwsm-app -- "$browser_exec" "${@/--private/$private_flag}"
|
||||
|
||||
if [[ -n ${HYPRLAND_INSTANCE_SIGNATURE:-} ]]; then
|
||||
omarchy-hyprland-focus-app "^$(basename "$browser_exec" -stable).*$" || true
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user