mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 19:32:43 +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
|
# as in kitty (tab_bar_background none). kitty's separator rule: a solid
|
||||||
# into a differently colored neighbour, thin between two inactive
|
# into a differently colored neighbour, thin between two inactive
|
||||||
# tabs, none after the last. The arrow into the current tab is painted in
|
# 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
|
# @tab-bg, the window background: ghostty-tmux sets it per session to
|
||||||
# the same opacity as the window, so it is indistinguishable from it. (Plain
|
# Ghostty's own background so it blends into the window. (Plain is
|
||||||
# is one of Ghostty's built-in sprites and fills the whole cell even
|
# one of Ghostty's built-in sprites and fills the whole cell even with
|
||||||
# with adjust-cell-height; inverse glyphs such as come from the font
|
# adjust-cell-height; inverse glyphs such as come from the font and
|
||||||
# and leave gaps.)
|
# 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-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 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"
|
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'))
|
INSTANCES=($(niri msg -j windows | jq -r '.[] | select((.app_id // "") | ascii_downcase | test("^(zen|brave|chromium|firefox)")) | .id'))
|
||||||
DEFAULT_SPAWN="zen"
|
DEFAULT_SPAWN="zen"
|
||||||
elif [[ "$APP" == "terminal" ]]; then
|
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'))
|
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
|
elif [[ "$APP" == "ai" ]]; then
|
||||||
# Cycle through AI desktop apps (Claude/Hermes), launch Hermes if none
|
# 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'))
|
INSTANCES=($(niri msg -j windows | jq -r '.[] | select((.app_id // "") | ascii_downcase | test("claude|hermes")) | .id'))
|
||||||
|
|||||||
Reference in new issue
Block a user