chs: re-add drifted files

This commit is contained in:
Prad Nukala committed 2026-08-14 14:43:14 -04:00
1 parent d5e69f0b9e
commit 10fb7dfffc
3 files changed
+9 -2

No files matched your search

+5 -1
View File
@@ -53,12 +53,16 @@ elif [[ "$APP" == "ghostty" ]]; then
INSTANCES=($(niri msg -j windows | jq -r '.[] | select(.app_id | test("ghostty"; "i")) | .id'))
elif [[ "$APP" == "browser" ]]; then
# Cycle through all browsers (brave/chromium/firefox) + Claude desktop, launch default if none
INSTANCES=($(niri msg -j windows | jq -r '.[] | select((.app_id // "") | ascii_downcase | test("^(brave|chromium|firefox)|claude")) | .id'))
INSTANCES=($(niri msg -j windows | jq -r '.[] | select((.app_id // "") | ascii_downcase | test("^(brave|chromium|firefox)")) | .id'))
DEFAULT_SPAWN="brave-origin-nightly"
elif [[ "$APP" == "terminal" ]]; then
# Cycle through all terminals (ghostty/kitty/alacritty), launch default if none
INSTANCES=($(niri msg -j windows | jq -r '.[] | select((.app_id // "") | ascii_downcase | test("kitty|alacritty|ghostty")) | .id'))
DEFAULT_SPAWN="kitty"
elif [[ "$APP" == "ai" ]]; then
# Cycle through AI desktop apps (Claude/Hermes), launch Hermes if none
INSTANCES=($(niri msg -j windows | jq -r '.[] | select((.app_id // "") | ascii_downcase | test("claude|hermes")) | .id'))
DEFAULT_SPAWN="hermes desktop"
else
INSTANCES=($(niri msg -j windows | jq -r ".[] | select(.app_id==\"${APP}\") | .id"))
fi
+3
View File
@@ -0,0 +1,3 @@
#!/bin/bash
# Cycle through AI desktop apps (Claude/Hermes); launch Hermes desktop if none open.
exec "$(dirname "$(readlink -f "$0")")/niri-launch" ai