Skip to content

Commit 0a8c7f4

Browse files
committed
patches: add Infix support in neofetch
- Fixes distro detection due to os-release priority inversion - Adds Jacky to ascii_distro list Signed-off-by: Joachim Wiberg <[email protected]>
1 parent 1ee991b commit 0a8c7f4

File tree

5 files changed

+119
-7
lines changed

5 files changed

+119
-7
lines changed

board/neofetch/busybox_defconfig

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,4 @@ CONFIG_DIRNAME=y # Path manipulation
4646
# CONFIG_SHOW_USAGE is not set
4747
# CONFIG_FEATURE_VERBOSE_USAGE is not set
4848
# CONFIG_LFS is not set
49-
# CONFIG_PAM is not set
50-
51-
# All network utilities disabled
52-
# All text editors disabled
53-
# All system services disabled
54-
# All archive utilities disabled
55-
# All filesystem utilities disabled (except basic file ops)
49+
# CONFIG_PAM is not set

configs/neofetch_amd64_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ BR2_DL_DIR="${BR2_EXTERNAL_CURIOS_PATH}/dl"
55
BR2_CCACHE=y
66
BR2_CCACHE_DIR="${BR2_EXTERNAL_CURIOS_PATH}/.ccache"
77
BR2_STATIC_LIBS=y
8+
BR2_GLOBAL_PATCH_DIR="${BR2_EXTERNAL_CURIOS_PATH}/patches"
89
BR2_TARGET_GENERIC_HOSTNAME="curiOS"
910
BR2_TARGET_GENERIC_ISSUE="Welcome to curiOS"
1011
BR2_INIT_NONE=y

configs/neofetch_arm64_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ BR2_DL_DIR="${BR2_EXTERNAL_CURIOS_PATH}/dl"
66
BR2_CCACHE=y
77
BR2_CCACHE_DIR="${BR2_EXTERNAL_CURIOS_PATH}/.ccache"
88
BR2_STATIC_LIBS=y
9+
BR2_GLOBAL_PATCH_DIR="${BR2_EXTERNAL_CURIOS_PATH}/patches"
910
BR2_TARGET_GENERIC_HOSTNAME="curiOS"
1011
BR2_TARGET_GENERIC_ISSUE="Welcome to curiOS"
1112
BR2_INIT_NONE=y
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
Add Infix ASCII art support and adjust default info sets
2+
3+
This patch adds Infix OS ASCII art and disables some info sets
4+
from the default output while enabling others.
5+
6+
Signed-off-by: Joachim Wiberg <[email protected]>
7+
8+
--- a/neofetch 2025-09-07 21:18:44.631712703 +0200
9+
+++ b/neofetch 2025-09-07 21:49:06.993228030 +0200
10+
@@ -53,21 +53,21 @@
11+
# See this wiki page for more info:
12+
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info
13+
print_info() {
14+
- info title
15+
- info underline
16+
+ # info title
17+
+ # info underline
18+
19+
info "OS" distro
20+
info "Host" model
21+
info "Kernel" kernel
22+
info "Uptime" uptime
23+
- info "Packages" packages
24+
+ # info "Packages" packages
25+
info "Shell" shell
26+
info "Resolution" resolution
27+
info "DE" de
28+
- info "WM" wm
29+
- info "WM Theme" wm_theme
30+
- info "Theme" theme
31+
- info "Icons" icons
32+
+ # info "WM" wm
33+
+ # info "WM Theme" wm_theme
34+
+ # info "Theme" theme
35+
+ # info "Icons" icons
36+
info "Terminal" term
37+
info "Terminal Font" term_font
38+
info "CPU" cpu
39+
@@ -76,17 +76,17 @@
40+
41+
# info "GPU Driver" gpu_driver # Linux/macOS only
42+
# info "CPU Usage" cpu_usage
43+
- # info "Disk" disk
44+
+ info "Disk" disk
45+
# info "Battery" battery
46+
# info "Font" font
47+
# info "Song" song
48+
# [[ "$player" ]] && prin "Music Player" "$player"
49+
- # info "Local IP" local_ip
50+
- # info "Public IP" public_ip
51+
+ info "Local IP" local_ip
52+
+ info "Public IP" public_ip
53+
# info "Users" users
54+
# info "Locale" locale # This only works on glibc systems.
55+
56+
- info cols
57+
+ # info cols
58+
}
59+
60+
# Title
61+
@@ -113,7 +113,7 @@
62+
# Example:
63+
# on: '4.8.9-1-ARCH'
64+
# off: 'Linux 4.8.9-1-ARCH'
65+
-kernel_shorthand="on"
66+
+kernel_shorthand="off"
67+
68+
69+
# Distro
70+
@@ -7435,6 +7435,21 @@
71+
EOF
72+
;;
73+
74+
+ "Infix"*)
75+
+ set_colors 4 3
76+
+ read -rd '' ascii_data <<'EOF'
77+
+${c1} .---------------.
78+
+${c1} | |
79+
+${c1} | ${c2}• •${c1} |
80+
+${c1} | V |
81+
+${c1} |---. .---|
82+
+${c1} |${c2}▒▒▒${c1}| |${c2}▒▒▒${c1}|
83+
+${c1} '---'-------'---'
84+
+${c2} Hi, I'm Jacky! :)
85+
+
86+
+EOF
87+
+ ;;
88+
+
89+
"januslinux"*|"janus"*|"Ataraxia Linux"*|"Ataraxia"*)
90+
set_colors 4 5 6 2
91+
read -rd '' ascii_data <<'EOF'
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Source os-release in order
2+
3+
As per https://www.freedesktop.org/software/systemd/man/latest/os-release.html
4+
5+
> The file /etc/os-release takes precedence over /usr/lib/os-release.
6+
7+
We also prioritize both of them over the legacy /etc/lsb_release file.
8+
9+
Signed-off-by: Joachim Wiberg <[email protected]>
10+
11+
--- a/neofetch 2025-09-07 22:34:09.458848918 +0200
12+
+++ b/neofetch 2025-09-07 22:35:14.458398622 +0200
13+
@@ -1001,9 +1001,9 @@
14+
-f /etc/openwrt_release || \
15+
-f /etc/lsb-release ]]; then
16+
17+
- # Source the os-release file
18+
- for file in /etc/lsb-release /usr/lib/os-release \
19+
- /etc/os-release /etc/openwrt_release; do
20+
+ # Source the os-release file in priority order
21+
+ for file in /etc/os-release /usr/lib/os-release \
22+
+ /etc/lsb-release /etc/openwrt_release; do
23+
source "$file" && break
24+
done
25+

0 commit comments

Comments
 (0)