mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
* Add omarchy CLI * Remove outdated or internal * Add bash completions for command * Add omarchy command documentation * Add missing docs * Correct to what's now right * Fix tests --------- Co-authored-by: David Heinemeier Hansson <david@hey.com>
14 lines
455 B
Bash
Executable File
14 lines
455 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Launch a URL as a web app in the default supported browser
|
|
# omarchy:args=<url>
|
|
|
|
browser=$(xdg-settings get default-web-browser)
|
|
|
|
case $browser in
|
|
google-chrome* | brave* | microsoft-edge* | opera* | vivaldi* | helium*) ;;
|
|
*) browser="chromium.desktop" ;;
|
|
esac
|
|
|
|
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}"
|