summaryrefslogtreecommitdiff
path: root/hosts/iroha/gentoo/patches/app-misc/neofetch
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2025-10-17 12:22:00 -0400
committerAndrew Opalach <andrew@akon.city> 2025-10-17 12:32:42 -0400
commit544da1ba50d9cbf51a18ca0abf1db66b3baa7460 (patch)
tree1caa87664ea4937c5f4e6e8dc83c49b3132ddd70 /hosts/iroha/gentoo/patches/app-misc/neofetch
parent85a47287e56ba9100420246531ebea5996cc0486 (diff)
downloaddotfiles-544da1ba50d9cbf51a18ca0abf1db66b3baa7460.tar.gz
dotfiles-544da1ba50d9cbf51a18ca0abf1db66b3baa7460.tar.bz2
dotfiles-544da1ba50d9cbf51a18ca0abf1db66b3baa7460.zip
Gentoo desktop
Diffstat (limited to 'hosts/iroha/gentoo/patches/app-misc/neofetch')
-rw-r--r--hosts/iroha/gentoo/patches/app-misc/neofetch/neofetch_hostcolor.diff24
-rw-r--r--hosts/iroha/gentoo/patches/app-misc/neofetch/neofetch_kitty_font.diff17
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")