some ghostty related fix

This commit is contained in:
2025-12-03 20:07:20 +01:00
parent 4a525e2822
commit 916bd6b61e
6 changed files with 34 additions and 26 deletions

View File

@@ -2,4 +2,5 @@
!.gitignore
!fetch.fish
!sshs.fish
!alias.fish
!alias.fish
!ghostty.fish

View File

@@ -94,7 +94,7 @@ if type -q git
function acp
git add . || return 1
if test (count $argv) -eq 0
git commit -m "too lazy to come up with a helpful commit message :)" || return 1
git commit -m "👐 foo: too lazy to come up with a helpful commit message :)" || return 1
else
git commit -m "$argv" || return 1
end

View File

@@ -1,18 +1,18 @@
if not set -q fetch_logo_type
set -g fetch_logo_type "auto"
set -g fetch_logo_type auto
end
if not set -q fetch_color
set -g fetch_color "#89b4fa"
end
if test "$fetch_logo_type" = "symbols"
if test "$fetch_logo_type" = symbols
set -g fetch_args "--logo-type raw --logo-width 42 --logo \"$HOME/.config/fastfetch/logo_ros/42x.symbols\" --color \"$fetch_color\""
set -g fetch_args_brief "--logo-type raw --logo-width 28 --logo \"$HOME/.config/fastfetch/logo_ros/28x.symbols\" --color \"$fetch_color\""
else if test "$fetch_logo_type" = "logo"
else if test "$fetch_logo_type" = logo
set -g fetch_args "--logo-type builtin"
set -g fetch_args_brief "--logo-type small"
else if test "$fetch_logo_type" = "sixel"
else if test "$fetch_logo_type" = sixel
set -g fetch_args "--logo-type raw --logo-width 42 --logo \"$HOME/.config/fastfetch/logo_ros/42x.sixel\" --color \"$fetch_color\""
set -g fetch_args_brief "--logo-type raw --logo-width 28 --logo \"$HOME/.config/fastfetch/logo_ros/28x.sixel\" --color \"$fetch_color\""
else # "kitty" or "auto" and others
@@ -24,15 +24,15 @@ if type -q fastfetch
alias ff="fastfetch -c $HOME/.config/fastfetch/config.jsonc $fetch_args"
if test -f "$HOME/.config/fastfetch/brief.jsonc"
alias ff-brief="fastfetch -c $HOME/.config/fastfetch/brief.jsonc $fetch_args_brief"
alias ffb="fastfetch -c $HOME/.config/fastfetch/brief.jsonc $fetch_args_brief"
else
alias ff-brief=ff
alias ffb=ff
end
end
# add 'set -g no_fetch' somewhere other than post.d to disable fetching
if not set -q no_fetch
if type -q ff-brief
ff-brief
if type -q ffb
ffb
end
end

View File

@@ -0,0 +1,6 @@
if string match -q '*ghostty*' $TERM && test $XDG_CURRENT_DESKTOP = niri
if test "$ghostty_niri_initialized" != "1"
set -xg ghostty_niri_initialized 1
niri msg action set-column-width 50%
end
end