feat(niri-launch): use OS default terminal when launching

This commit is contained in:
Prad Nukala committed 2026-10-08 11:29:15 -04:00
1 parent 9e227b416d
commit 4bfc75a626
2 files changed
+8 -7

No files matched your search

+3 -2
View File
@@ -58,9 +58,10 @@ elif [[ "$APP" == "browser" ]]; then
INSTANCES=($(niri msg -j windows | jq -r '.[] | select((.app_id // "") | ascii_downcase | test("^(zen|brave|chromium|firefox)")) | .id'))
DEFAULT_SPAWN="zen"
elif [[ "$APP" == "terminal" ]]; then
# Cycle through all terminals (ghostty/kitty/alacritty), launch default if none
# Cycle through all terminals (ghostty/kitty/alacritty), launch the OS
# default (xdg-terminal-exec, ~/.config/xdg-terminals.list) if none
INSTANCES=($(niri msg -j windows | jq -r '.[] | select((.app_id // "") | ascii_downcase | test("kitty|alacritty|ghostty")) | .id'))
DEFAULT_SPAWN="kitty"
DEFAULT_SPAWN="xdg-terminal-exec"
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'))