mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 11:32:42 +00:00
feat(niri-launch): use OS default terminal when launching
This commit is contained in:
1 parent
9e227b416d
commit
4bfc75a626
2 files changed
+8
-7
No files matched your search
@@ -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'))
|
||||
|
||||
Reference in new issue
Block a user