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
@@ -160,11 +160,11 @@ set -g status-right "#[fg=#{@tab-active-fg}]#{?pane_in_mode,COPY ,}#{?client_pre
|
||||
# as in kitty (tab_bar_background none). kitty's separator rule: a solid
|
||||
# into a differently colored neighbour, thin between two inactive
|
||||
# tabs, none after the last. The arrow into the current tab is painted in
|
||||
# @tab-bg, the window background; Ghostty's background-opacity-cells gives it
|
||||
# the same opacity as the window, so it is indistinguishable from it. (Plain
|
||||
# is one of Ghostty's built-in sprites and fills the whole cell even
|
||||
# with adjust-cell-height; inverse glyphs such as come from the font
|
||||
# and leave gaps.)
|
||||
# @tab-bg, the window background: ghostty-tmux sets it per session to
|
||||
# Ghostty's own background so it blends into the window. (Plain is
|
||||
# one of Ghostty's built-in sprites and fills the whole cell even with
|
||||
# adjust-cell-height; inverse glyphs such as come from the font and
|
||||
# leave gaps.)
|
||||
set -g window-status-format "#[fg=#{@tab-fg},bg=default] #I #W #{?next_window_active,#[fg=#{@tab-bg}#,bg=#{@tab-active-bg}],#{?window_end_flag,,}}"
|
||||
set -g window-status-current-format "#[fg=#{@tab-active-fg},bg=#{@tab-active-bg},bold] #I #W #[fg=#{@tab-active-bg},bg=default,nobold]"
|
||||
set -g pane-border-style "fg=brightblack"
|
||||
|
||||
@@ -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