From ff4b73b74853867993cb48ba53740a85d92d7453 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Thu, 27 Aug 2026 13:59:00 -0400 Subject: [PATCH] feat(cli): add Brave Origin Nightly support to omarchy-cycle --- dot_local/bin/executable_omarchy-cycle | 7 +++++++ dot_local/bin/executable_omarchy-cycle-browser | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/dot_local/bin/executable_omarchy-cycle b/dot_local/bin/executable_omarchy-cycle index fca79d7..415c171 100755 --- a/dot_local/bin/executable_omarchy-cycle +++ b/dot_local/bin/executable_omarchy-cycle @@ -117,6 +117,13 @@ elif [[ $APP == "browser" ]]; then INSTANCES=($(addresses_matching_no_ssa '^(zen|brave|chromium|google-chrome|firefox|librewolf|vivaldi|microsoft-edge|helium)')) DEFAULT_LAUNCHER="omarchy-launch-browser" +elif [[ $APP == "brave" ]]; then + # Cycle the Brave Origin Nightly browser and all of its web apps. Both the + # real browser (class brave-origin-nightly) and the SSAs (class brave-) + # share the brave- prefix, so one regex catches them all. + INSTANCES=($(addresses_matching '^brave')) + DEFAULT_SPAWN="brave-origin-nightly" + elif [[ $APP == "terminal" ]]; then # Cycle all terminals. INSTANCES=($(addresses_matching '(kitty|alacritty|ghostty|foot|wezterm)')) diff --git a/dot_local/bin/executable_omarchy-cycle-browser b/dot_local/bin/executable_omarchy-cycle-browser index a2e6834..ea22c93 100755 --- a/dot_local/bin/executable_omarchy-cycle-browser +++ b/dot_local/bin/executable_omarchy-cycle-browser @@ -1,5 +1,5 @@ #!/bin/bash -# omarchy:summary=Cycle Brave Origin Nightly windows; launch brave-origin-nightly if none are open. +# omarchy:summary=Cycle Brave Origin Nightly windows and all its web apps; launch brave-origin-nightly if none are open. -exec "$(dirname "$(readlink -f "$0")")/omarchy-cycle" brave-origin-nightly +exec "$(dirname "$(readlink -f "$0")")/omarchy-cycle" brave