diff --git a/configs/aarch64_defconfig b/configs/aarch64_defconfig index 384598a3..50c21de5 100644 --- a/configs/aarch64_defconfig +++ b/configs/aarch64_defconfig @@ -101,6 +101,7 @@ BR2_PACKAGE_TRACEROUTE=y BR2_PACKAGE_ULOGD=y BR2_PACKAGE_WHOIS=y BR2_PACKAGE_BASH_COMPLETION=y +BR2_PACKAGE_NEOFETCH=y BR2_PACKAGE_SUDO=y BR2_PACKAGE_TTYD=y BR2_PACKAGE_GETENT=y diff --git a/configs/r2s_defconfig b/configs/r2s_defconfig index cd6bbe0e..3c66c68b 100644 --- a/configs/r2s_defconfig +++ b/configs/r2s_defconfig @@ -121,6 +121,7 @@ BR2_PACKAGE_WIRELESS_REGDB=y BR2_PACKAGE_WIRELESS_TOOLS=y BR2_PACKAGE_WPA_SUPPLICANT=y BR2_PACKAGE_BASH_COMPLETION=y +BR2_PACKAGE_NEOFETCH=y BR2_PACKAGE_SUDO=y BR2_PACKAGE_TTYD=y BR2_PACKAGE_HTOP=y diff --git a/configs/riscv64_defconfig b/configs/riscv64_defconfig index 8c0e50ac..42f2cc34 100644 --- a/configs/riscv64_defconfig +++ b/configs/riscv64_defconfig @@ -114,6 +114,7 @@ BR2_PACKAGE_TRACEROUTE=y BR2_PACKAGE_ULOGD=y BR2_PACKAGE_WHOIS=y BR2_PACKAGE_BASH_COMPLETION=y +BR2_PACKAGE_NEOFETCH=y BR2_PACKAGE_SUDO=y BR2_PACKAGE_TTYD=y BR2_PACKAGE_GETENT=y diff --git a/configs/x86_64_defconfig b/configs/x86_64_defconfig index a730a65d..7c39233b 100644 --- a/configs/x86_64_defconfig +++ b/configs/x86_64_defconfig @@ -99,6 +99,7 @@ BR2_PACKAGE_TRACEROUTE=y BR2_PACKAGE_ULOGD=y BR2_PACKAGE_WHOIS=y BR2_PACKAGE_BASH_COMPLETION=y +BR2_PACKAGE_NEOFETCH=y BR2_PACKAGE_SUDO=y BR2_PACKAGE_TTYD=y BR2_PACKAGE_GETENT=y diff --git a/patches/neofetch/0001-add-infix-support.patch b/patches/neofetch/0001-add-infix-support.patch new file mode 100644 index 00000000..522ff6e2 --- /dev/null +++ b/patches/neofetch/0001-add-infix-support.patch @@ -0,0 +1,91 @@ +Add Infix ASCII art support and adjust default info sets + +This patch adds Infix OS ASCII art and disables some info sets +from the default output while enabling others. + +Signed-off-by: Joachim Wiberg + +--- a/neofetch 2025-09-07 21:18:44.631712703 +0200 ++++ b/neofetch 2025-09-07 21:49:06.993228030 +0200 +@@ -53,21 +53,21 @@ + # See this wiki page for more info: + # https://github.com/dylanaraps/neofetch/wiki/Customizing-Info + print_info() { +- info title +- info underline ++ # info title ++ # info underline + + info "OS" distro + info "Host" model + info "Kernel" kernel + info "Uptime" uptime +- info "Packages" packages ++ # info "Packages" packages + info "Shell" shell + info "Resolution" resolution + info "DE" de +- info "WM" wm +- info "WM Theme" wm_theme +- info "Theme" theme +- info "Icons" icons ++ # info "WM" wm ++ # info "WM Theme" wm_theme ++ # info "Theme" theme ++ # info "Icons" icons + info "Terminal" term + info "Terminal Font" term_font + info "CPU" cpu +@@ -76,17 +76,17 @@ + + # info "GPU Driver" gpu_driver # Linux/macOS only + # info "CPU Usage" cpu_usage +- # info "Disk" disk ++ info "Disk" disk + # info "Battery" battery + # info "Font" font + # info "Song" song + # [[ "$player" ]] && prin "Music Player" "$player" +- # info "Local IP" local_ip +- # info "Public IP" public_ip ++ info "Local IP" local_ip ++ info "Public IP" public_ip + # info "Users" users + # info "Locale" locale # This only works on glibc systems. + +- info cols ++ # info cols + } + + # Title +@@ -113,7 +113,7 @@ + # Example: + # on: '4.8.9-1-ARCH' + # off: 'Linux 4.8.9-1-ARCH' +-kernel_shorthand="on" ++kernel_shorthand="off" + + + # Distro +@@ -7435,6 +7435,21 @@ + EOF + ;; + ++ "Infix"*) ++ set_colors 4 3 ++ read -rd '' ascii_data <<'EOF' ++${c1} .---------------. ++${c1} | | ++${c1} | ${c2}• •${c1} | ++${c1} | V | ++${c1} |---. .---| ++${c1} |${c2}▒▒▒${c1}| |${c2}▒▒▒${c1}| ++${c1} '---'-------'---' ++${c2} Hi, I'm Jacky! :) ++ ++EOF ++ ;; ++ + "januslinux"*|"janus"*|"Ataraxia Linux"*|"Ataraxia"*) + set_colors 4 5 6 2 + read -rd '' ascii_data <<'EOF' diff --git a/patches/neofetch/0002-source-os-release-in-order.patch b/patches/neofetch/0002-source-os-release-in-order.patch new file mode 100644 index 00000000..4415264d --- /dev/null +++ b/patches/neofetch/0002-source-os-release-in-order.patch @@ -0,0 +1,25 @@ +Source os-release in order + +As per https://www.freedesktop.org/software/systemd/man/latest/os-release.html + +> The file /etc/os-release takes precedence over /usr/lib/os-release. + +We also prioritize both of them over the legacy /etc/lsb_release file. + +Signed-off-by: Joachim Wiberg + +--- a/neofetch 2025-09-07 22:34:09.458848918 +0200 ++++ b/neofetch 2025-09-07 22:35:14.458398622 +0200 +@@ -1001,9 +1001,9 @@ + -f /etc/openwrt_release || \ + -f /etc/lsb-release ]]; then + +- # Source the os-release file +- for file in /etc/lsb-release /usr/lib/os-release \ +- /etc/os-release /etc/openwrt_release; do ++ # Source the os-release file in priority order ++ for file in /etc/os-release /usr/lib/os-release \ ++ /etc/lsb-release /etc/openwrt_release; do + source "$file" && break + done +