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 1/2] 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 2/2] [+] 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" + ]), }