Keep new browser windows on current workspace

This commit is contained in:
David Heinemeier Hansson
2026-07-18 10:29:38 -07:00
parent 4db7a03235
commit 4d3165d8c1
2 changed files with 21 additions and 1 deletions
+9 -1
View File
@@ -18,6 +18,14 @@ 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
url=""
for argument in "$@"; do
if [[ $argument != "--private" ]]; then
url=$argument
break
fi
done
if [[ -n $url && -n ${HYPRLAND_INSTANCE_SIGNATURE:-} ]]; then
omarchy-hyprland-focus-app "^$(basename "$browser_exec" -stable).*$" || true
fi