summaryrefslogtreecommitdiff
path: root/app-shells/silver/files/add-gentoo-support.patch
blob: 66d2dc380da11f2b3e9a43c11b516605fe08a662 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From f379762f622724890693f63b0ab994978f51ef11 Mon Sep 17 00:00:00 2001
From: Leonardo Hernández Hernández <leohdz172@proton.me>
Date: Wed, 15 Sep 2021 23:04:13 -0500
Subject: [PATCH 2/2] Add gentoo support

--- a/src/icons.rs
+++ b/src/icons.rs
@@ -16,6 +16,7 @@ pub fn get(id: &str) -> String {
                         "mint" => "\u{f30e}",       // Font Linux
                         "SUSE" => "\u{f314}",       // Font Linux
                         "ubuntu" => "\u{f31b}",     // Font Linux
+                        "gentoo" => "\u{f30d}",     // Font Linux
                         "elementary" => "\u{f309}", // Font Linux
                         "linux" => "\u{f31a}",      // Font Linux
                         "windows" => "\u{f17a}",    // Font Awesome; windows
--- a/src/modules/os.rs
+++ b/src/modules/os.rs
@@ -22,6 +22,7 @@ pub fn segment(segment: &mut Segment, _: &[&str]) {
         "debian" => icons::get("debian"),
         "fedora" => icons::get("fedora"),
         "linuxmint" => icons::get("mint"),
+        "gentoo" => icons::get("gentoo"),
         "suse" | "opensuse" => icons::get("SUSE"),
         "ubuntu" => icons::get("ubuntu"),
         "elementary" => icons::get("elementary"),
-- 
2.32.0