This commit is contained in:
2026-03-26 07:57:59 +01:00
parent b09c760ffc
commit 3567f83c9b
3 changed files with 11 additions and 14 deletions
@@ -6,7 +6,8 @@
}
. "$HOME/.local/snippets/apply-color-helper"
file="$HOME/.config/fish/conf.d/60-fetch.fish"
file_fish="$HOME/.config/fish/conf.d/60-fetch.fish"
file_zsh="$HOME/.config/zsh/conf.d/60-fetch.zsh"
# "#rrggbb" format is only available in and after fastfetch v2.42.0,
# so we use the equivalent "ANSI Escape Sequences" format for compatibility.
@@ -14,8 +15,13 @@ file="$HOME/.config/fish/conf.d/60-fetch.fish"
# into "\033[38;2;rrr;ggg;bbbm", which was meant to be used in log messages.
colorAnsi=$(color_ansi "$colorHex" | sed -E "s/(.\[)([0-9;\]+)(m)/\2/")
sed -i -E "s/(set -g fetch_color\s+\")([0-9;]+)(\")/\1${colorAnsi}\3/" "$file" || {
log_error "Failed to edit ${file}"
sed -i -E "s/(set -g fetch_color\s+\"?)([0-9;]+)(\"?)/\1${colorAnsi}\3/" "$file_fish" || {
log_error "Failed to edit ${file_fish}"
exit 1
}
sed -i -E "s/(uy_fetch_color:=\"?)([0-9;]+)(\"?)/\1${colorAnsi}\3/" "$file_zsh" || {
log_error "Failed to edit ${file_zsh}"
exit 1
}
+1 -10
View File
@@ -4,7 +4,7 @@ gtk-icon-theme-name=Papirus
gtk-font-name=Sarasa UI SC 10
gtk-cursor-theme-name=Bibata-Modern-Ice
gtk-cursor-theme-size=24
gtk-toolbar-style=3
gtk-toolbar-style=GTK_TOOLBAR_ICONS
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=0
gtk-menu-images=0
@@ -15,12 +15,3 @@ gtk-xft-hinting=1
gtk-xft-hintstyle=hintslight
gtk-xft-rgba=rgb
gtk-application-prefer-dark-theme=1
gtk-cursor-blink=true
gtk-cursor-blink-time=1000
gtk-decoration-layout=icon:minimize,maximize,close
gtk-enable-animations=true
gtk-modules=colorreload-gtk-module:appmenu-gtk-module
gtk-primary-button-warps-slider=true
gtk-shell-shows-menubar=1
gtk-sound-theme-name=ocean
gtk-xft-dpi=122880
@@ -3,7 +3,7 @@
HISTFILE="${XDG_DATA_HOME:-$HOME/.local/share}/zsh/history"
HISTSIZE=100000
SAVEHIST=100000
setopt APPEND_HISTORY SHARE_HISTORY
setopt APPEND_HISTORY SHARE_HISTORY EXTENDED_HISTORY
setopt HIST_IGNORE_DUPS HIST_SAVE_NO_DUPS HIST_FIND_NO_DUPS
setopt HIST_IGNORE_SPACE HIST_REDUCE_BLANKS INC_APPEND_HISTORY
setopt HIST_VERIFY