From 0b662b623dd2d3249f76d996124d9cd0311cca7c Mon Sep 17 00:00:00 2001 From: kenji Date: Tue, 25 Nov 2025 21:02:32 -0600 Subject: [PATCH] omarchy-bin: modified to prioritize firefox --- .../share/omarchy/bin/omarchy-launch-webapp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 omarchy-bin/.local/share/omarchy/bin/omarchy-launch-webapp diff --git a/omarchy-bin/.local/share/omarchy/bin/omarchy-launch-webapp b/omarchy-bin/.local/share/omarchy/bin/omarchy-launch-webapp new file mode 100755 index 0000000..ff63192 --- /dev/null +++ b/omarchy-bin/.local/share/omarchy/bin/omarchy-launch-webapp @@ -0,0 +1,16 @@ +#!/bin/bash + +# Redirect standard WebApp calls to Firefox WebApp profile +browser=$(xdg-settings get default-web-browser) + +case $browser in +firefox* ) + # Launch Firefox directly with the dedicated WebApp profile + exec setsid uwsm app -- firefox --no-remote -P "WebApps" --new-window --name WebApp "$1" "${@:2}" + ;; +*) + # Old Chromium fallback for other browsers if needed + browser="chromium.desktop" + exec setsid uwsm app -- $(sed -n 's/^Exec=\([^ ]*\).*/\1/p' {~/.local,~/.nix-profile,/usr}/share/applications/$browser 2>/dev/null | head -1) --app="$1" "${@:2}" + ;; +esac