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 diff --git a/crates/hyfetch/src/presets.rs b/crates/hyfetch/src/presets.rs index 47911135..6e20ad7d 100644 --- a/crates/hyfetch/src/presets.rs +++ b/crates/hyfetch/src/presets.rs @@ -235,6 +235,12 @@ pub enum Preset { Fluidfluxa, Fluidfluxb, Transbian, + + Autism, + + Cenelian, + + Transneutral, } #[derive(Clone, Eq, PartialEq, Debug)] @@ -724,6 +730,18 @@ impl Preset { 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" + ]), + + 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 d6176def..574be95a 100644 --- a/hyfetch/presets.py +++ b/hyfetch/presets.py @@ -1094,7 +1094,6 @@ PRESETS: dict[str, ColorProfile] = { ]), # Adding Transbian Pride Flag - ObsoleteDev - 'transbian': ColorProfile([ "#03A3E6", "#F8B4CD", @@ -1102,4 +1101,31 @@ PRESETS: dict[str, ColorProfile] = { "#FA9C57", "#A80864" ]), + + 'Autism': ColorProfile([ + "#c94a49", + "#de7554", + "#dbb667", + "#6fa35d", + "#2e7574", + "#232828" + ]), + + 'Cenelian': ColorProfile([ + "#ffe7b6", + "#93554a", + "#52203a", + "#7e4a93", + "#99afd6" + ]), + + 'Transneutral': ColorProfile([ + "#74dfff", + "#fffdb3", + "#fffc75", + "#fff200", + "#fffc75", + "#fffdb3", + "#fe8cbf" + ]), }