From f5c5e3169122172001e9557b5b2be460b1c8fae7 Mon Sep 17 00:00:00 2001 From: thea Date: Fri, 10 Oct 2025 14:46:41 +1000 Subject: [PATCH 1/7] [F] Fix 3-length hex codes in Python when using custom preset (#443) [F] Fix 3-length hex codes in Python --- hyfetch/color_util.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hyfetch/color_util.py b/hyfetch/color_util.py index 2ca4f22d..42e02d7d 100644 --- a/hyfetch/color_util.py +++ b/hyfetch/color_util.py @@ -141,9 +141,9 @@ class RGB: g = int(hex[2:4], 16) b = int(hex[4:6], 16) elif len(hex) == 3: - r = int(hex[0], 16) - g = int(hex[1], 16) - b = int(hex[2], 16) + r = int(hex[0] * 2, 16) + g = int(hex[1] * 2, 16) + b = int(hex[2] * 2, 16) else: raise ValueError(f"Error: invalid hex length") return cls(r, g, b) From 932042b62c98cf380447755ba84fba49a045a559 Mon Sep 17 00:00:00 2001 From: apaz Date: Thu, 9 Oct 2025 23:48:03 -0500 Subject: [PATCH 2/7] Swap inside fstring to double quote (#442) --- hyfetch/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyfetch/main.py b/hyfetch/main.py index c72d1167..0df0a1a0 100755 --- a/hyfetch/main.py +++ b/hyfetch/main.py @@ -503,7 +503,7 @@ def run(): print(f'Error: invalid hex color "{color}"') preset = ColorProfile(colors) else: - print(f'Preset should be a comma-separated list of hex colors, or one of the following: {', '.join(sorted(PRESETS.keys()))}') + print(f'Preset should be a comma-separated list of hex colors, or one of the following: {", ".join(sorted(PRESETS.keys()))}') if preset is None: exit(1) From ba88581ed43497b6ce2583ee13c1e961b8eae4d8 Mon Sep 17 00:00:00 2001 From: Un1q32 Date: Mon, 13 Oct 2025 03:24:39 -0400 Subject: [PATCH 3/7] Support iOS 1.x (#444) * support iOS 1.x * add comment * reword and fix typo --- neofetch | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/neofetch b/neofetch index 6a0db2b2..937d8460 100755 --- a/neofetch +++ b/neofetch @@ -6396,6 +6396,11 @@ cache_uname() { ProductVersion) osx_version=${sw_vers[i+1]} ;; ProductBuildVersion) osx_build=${sw_vers[i+1]} ;; esac + # before iOS 2, iOS didn't internally distinguish between itself and macOS, + # so we manually set the OS type if the version is 1.x + case $osx_version in + 1.*) darwin_name="iPhone OS" ;; + esac } fi } From de2141347eda72fe43bf9016ebe60c185985800f Mon Sep 17 00:00:00 2001 From: ObsoleteDev <91698052+obsoletedevgit@users.noreply.github.com> Date: Tue, 21 Oct 2025 12:25:48 +0100 Subject: [PATCH 4/7] Fix: Hyfetch panics on some distros that are not defined (#455) --- crates/hyfetch/src/bin/hyfetch.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/hyfetch/src/bin/hyfetch.rs b/crates/hyfetch/src/bin/hyfetch.rs index d680c6b6..1abcf3f7 100644 --- a/crates/hyfetch/src/bin/hyfetch.rs +++ b/crates/hyfetch/src/bin/hyfetch.rs @@ -781,8 +781,11 @@ fn create_config( // get distro string and convert it into the enum, neofetch friendly format, so we can check for small logos with the {distro}_small neofetch naming scheme. let tmp_dst = get_distro_name(backend).or_else(|_| get_distro_name(Backend::Neofetch)).context("failed to get distro name")?; let detected_dst = Some(distro.map_or_else( - || format!("{:?}", Distro::detect(tmp_dst).unwrap()), - |d| d.to_string(), + || { + Distro::detect(&tmp_dst) + .map_or("".to_string(), |d| format!("{:?}", d).to_lowercase()) + }, + |d| d.to_string().to_lowercase(), )); // in case someone specified {distro}_small already in the --distro arg From b585ee1e26e8730acf1a4f2a18780637a56a22a9 Mon Sep 17 00:00:00 2001 From: ObsoleteDev <91698052+obsoletedevgit@users.noreply.github.com> Date: Tue, 21 Oct 2025 12:26:14 +0100 Subject: [PATCH 5/7] [+] Add Transneutral & Cenelian flags (#452) --- crates/hyfetch/src/presets.rs | 12 ++++++++++++ hyfetch/presets.py | 18 ++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/crates/hyfetch/src/presets.rs b/crates/hyfetch/src/presets.rs index 623c52a5..f06fed06 100644 --- a/crates/hyfetch/src/presets.rs +++ b/crates/hyfetch/src/presets.rs @@ -233,6 +233,10 @@ pub enum Preset { Libragender, Librafeminine, Libramasculine, Libraandrogyne, Libranonbinary, Fluidfluxa, Fluidfluxb, + + Cenelian, + + Transneutral, } #[derive(Clone, Eq, PartialEq, Debug)] @@ -718,6 +722,14 @@ impl Preset { Self::Fluidfluxb => ColorProfile::from_hex_colors(vec![ "#c6d1d2", "#f47b9d", "#f09f9b", "#e3f09e", "#75eeea", "#52d2ed", "#c6d1d2" ]), + + Self::Cenelian => ColorProfile::from_hex_colors(vec![ + "#ffe7b6", "#93554a", "#52203a", "#7e4a93", "#99afd6" + ]), + + Self::Transneutral => ColorProfile::from_hex_colors(vec![ + "#74dfff", "#fffdb3", "#fffc75", "#fff200", "#fffc75", "#fffdb3", "#fe8cbf" + ]), }) .expect("preset color profiles should be valid") } diff --git a/hyfetch/presets.py b/hyfetch/presets.py index d25789e1..0eb31421 100644 --- a/hyfetch/presets.py +++ b/hyfetch/presets.py @@ -1092,4 +1092,22 @@ PRESETS: dict[str, ColorProfile] = { "#52d2ed", "#c6d1d2" ]), + + 'Cenelian': ColorProfile([ + "#ffe7b6", + "#93554a", + "#52203a", + "#7e4a93", + "#99afd6" + ]), + + 'Transneutral': ColorProfile([ + "#74dfff", + "#fffdb3", + "#fffc75", + "#fff200", + "#fffc75", + "#fffdb3", + "#fe8cbf" + ]), } From bb514f8fd90f79dcc2b111c67064339574a6d9ce Mon Sep 17 00:00:00 2001 From: ObsoleteDev <91698052+obsoletedevgit@users.noreply.github.com> Date: Tue, 21 Oct 2025 12:27:26 +0100 Subject: [PATCH 6/7] [+] Autism pride flag (py & rust) (#450) Co-authored-by: Azalea <22280294+hykilpikonna@users.noreply.github.com> --- crates/hyfetch/src/presets.rs | 6 ++++++ hyfetch/presets.py | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/crates/hyfetch/src/presets.rs b/crates/hyfetch/src/presets.rs index f06fed06..f911c1fa 100644 --- a/crates/hyfetch/src/presets.rs +++ b/crates/hyfetch/src/presets.rs @@ -234,6 +234,8 @@ pub enum Preset { Fluidfluxa, Fluidfluxb, + Autism, + Cenelian, Transneutral, @@ -723,6 +725,10 @@ impl Preset { "#c6d1d2", "#f47b9d", "#f09f9b", "#e3f09e", "#75eeea", "#52d2ed", "#c6d1d2" ]), + Self::Autism => ColorProfile::from_hex_colors(vec![ + "#c94a49", "#de7554", "#dbb667", "#6fa35d", "#2e7574", "#232828" + ]), + Self::Cenelian => ColorProfile::from_hex_colors(vec![ "#ffe7b6", "#93554a", "#52203a", "#7e4a93", "#99afd6" ]), diff --git a/hyfetch/presets.py b/hyfetch/presets.py index 0eb31421..0790f7b0 100644 --- a/hyfetch/presets.py +++ b/hyfetch/presets.py @@ -1093,6 +1093,15 @@ PRESETS: dict[str, ColorProfile] = { "#c6d1d2" ]), + 'Autism': ColorProfile([ + "#c94a49", + "#de7554", + "#dbb667", + "#6fa35d", + "#2e7574", + "#232828" + ]), + 'Cenelian': ColorProfile([ "#ffe7b6", "#93554a", From 28a181d97b00f32ec23a99c7abec358591af0848 Mon Sep 17 00:00:00 2001 From: ObsoleteDev <91698052+obsoletedevgit@users.noreply.github.com> Date: Tue, 21 Oct 2025 12:28:46 +0100 Subject: [PATCH 7/7] [+] Transbian pride flag (#449) * [+] Transbian flag py * [C} Update wording on py Transbian flag * [+] Add Transbian flag to rust --------- Co-authored-by: Azalea <22280294+hykilpikonna@users.noreply.github.com> --- crates/hyfetch/src/presets.rs | 6 ++++++ hyfetch/presets.py | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/crates/hyfetch/src/presets.rs b/crates/hyfetch/src/presets.rs index f911c1fa..6e20ad7d 100644 --- a/crates/hyfetch/src/presets.rs +++ b/crates/hyfetch/src/presets.rs @@ -234,6 +234,8 @@ pub enum Preset { Fluidfluxa, Fluidfluxb, + Transbian, + Autism, Cenelian, @@ -725,6 +727,10 @@ impl Preset { "#c6d1d2", "#f47b9d", "#f09f9b", "#e3f09e", "#75eeea", "#52d2ed", "#c6d1d2" ]), + Self::Transbian => ColorProfile::from_hex_colors(vec![ + "#03A3E6", "#F8B4CD","#FAFBF9", "#FA9C57", "#A80864" + ]), + Self::Autism => ColorProfile::from_hex_colors(vec![ "#c94a49", "#de7554", "#dbb667", "#6fa35d", "#2e7574", "#232828" ]), diff --git a/hyfetch/presets.py b/hyfetch/presets.py index 0790f7b0..574be95a 100644 --- a/hyfetch/presets.py +++ b/hyfetch/presets.py @@ -1092,6 +1092,15 @@ PRESETS: dict[str, ColorProfile] = { "#52d2ed", "#c6d1d2" ]), + + # Adding Transbian Pride Flag - ObsoleteDev + 'transbian': ColorProfile([ + "#03A3E6", + "#F8B4CD", + "#FAFBF9", + "#FA9C57", + "#A80864" + ]), 'Autism': ColorProfile([ "#c94a49",