Skip to content

Commit 0bada69

Browse files
committed
Add neofetch
Fixes #1143
1 parent 164a101 commit 0bada69

File tree

6 files changed

+120
-0
lines changed

6 files changed

+120
-0
lines changed

configs/aarch64_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ BR2_PACKAGE_TRACEROUTE=y
101101
BR2_PACKAGE_ULOGD=y
102102
BR2_PACKAGE_WHOIS=y
103103
BR2_PACKAGE_BASH_COMPLETION=y
104+
BR2_PACKAGE_NEOFETCH=y
104105
BR2_PACKAGE_SUDO=y
105106
BR2_PACKAGE_TTYD=y
106107
BR2_PACKAGE_GETENT=y

configs/r2s_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ BR2_PACKAGE_WIRELESS_REGDB=y
121121
BR2_PACKAGE_WIRELESS_TOOLS=y
122122
BR2_PACKAGE_WPA_SUPPLICANT=y
123123
BR2_PACKAGE_BASH_COMPLETION=y
124+
BR2_PACKAGE_NEOFETCH=y
124125
BR2_PACKAGE_SUDO=y
125126
BR2_PACKAGE_TTYD=y
126127
BR2_PACKAGE_HTOP=y

configs/riscv64_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ BR2_PACKAGE_TRACEROUTE=y
114114
BR2_PACKAGE_ULOGD=y
115115
BR2_PACKAGE_WHOIS=y
116116
BR2_PACKAGE_BASH_COMPLETION=y
117+
BR2_PACKAGE_NEOFETCH=y
117118
BR2_PACKAGE_SUDO=y
118119
BR2_PACKAGE_TTYD=y
119120
BR2_PACKAGE_GETENT=y

configs/x86_64_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ BR2_PACKAGE_TRACEROUTE=y
9999
BR2_PACKAGE_ULOGD=y
100100
BR2_PACKAGE_WHOIS=y
101101
BR2_PACKAGE_BASH_COMPLETION=y
102+
BR2_PACKAGE_NEOFETCH=y
102103
BR2_PACKAGE_SUDO=y
103104
BR2_PACKAGE_TTYD=y
104105
BR2_PACKAGE_GETENT=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)