diff options
Diffstat (limited to 'hosts/iroha/gentoo/patches/app-misc/neofetch')
| -rw-r--r-- | hosts/iroha/gentoo/patches/app-misc/neofetch/neofetch_hostcolor.diff | 24 | ||||
| -rw-r--r-- | hosts/iroha/gentoo/patches/app-misc/neofetch/neofetch_kitty_font.diff | 17 |
2 files changed, 41 insertions, 0 deletions
diff --git a/hosts/iroha/gentoo/patches/app-misc/neofetch/neofetch_hostcolor.diff b/hosts/iroha/gentoo/patches/app-misc/neofetch/neofetch_hostcolor.diff new file mode 100644 index 0000000..cb4bdb5 --- /dev/null +++ b/hosts/iroha/gentoo/patches/app-misc/neofetch/neofetch_hostcolor.diff @@ -0,0 +1,24 @@ +--- a/neofetch 2025-07-24 14:35:25.646237301 -0400 ++++ b/neofetch 2025-07-24 14:34:57.393924725 -0400 +@@ -1386,8 +1386,8 @@ + on) hostname=$(hostname -f) ;; + *) hostname=${HOSTNAME:-$(hostname)} ;; + esac +- +- title=${title_color}${bold}${user}${at_color}@${title_color}${bold}${hostname} ++ host_color=${HOSTCOLOR:-${title_color}} ++ title=${title_color}${bold}${user}${at_color}@${host_color}${bold}${hostname} + length=$((${#user} + ${#hostname} + 1)) + } + +@@ -4604,8 +4604,8 @@ + fi + + string="$(trim "${string//$'\e[0m'}")" +- length="$(strip_sequences "$string")" +- length="${#length}" ++ #length="$(strip_sequences "$string")" ++ #length="${#length}" + + # Format the output. + string="${string/:/${reset}${colon_color}${separator:=:}${info_color}}" diff --git a/hosts/iroha/gentoo/patches/app-misc/neofetch/neofetch_kitty_font.diff b/hosts/iroha/gentoo/patches/app-misc/neofetch/neofetch_kitty_font.diff new file mode 100644 index 0000000..5021746 --- /dev/null +++ b/hosts/iroha/gentoo/patches/app-misc/neofetch/neofetch_kitty_font.diff @@ -0,0 +1,17 @@ +--- a/neofetch 2025-07-24 14:38:08.897043445 -0400 ++++ b/neofetch 2025-07-30 08:35:41.870152352 -0400 +@@ -3301,11 +3301,9 @@ + ;; + + "kitty"*) +- kitty_config="$(kitty --debug-config)" +- [[ "$kitty_config" != *font_family* ]] && return +- +- term_font="$(awk '/^font_family|^font_size/ {$1="";gsub("^ *","",$0);print $0}' \ +- <<< "$kitty_config")" ++ term_font="from kitty.cli import *; o = create_default_opts(); \ ++ print(f'{o.font_family} {o.font_size}')" ++ term_font="$(kitty +runpy ''"$term_font"'')" + ;; + + "konsole" | "yakuake") |