Skip to content

Commit 00fdb8a

Browse files
Generic Linux logo
1 parent 4e68c09 commit 00fdb8a

File tree

2 files changed

+54
-27
lines changed

2 files changed

+54
-27
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ Title, Separator, OS, Host, Kernel, Uptime, Processes, Packages, Shell, Resoluti
4242

4343
##### Logos
4444
```
45-
Android, Arch, Arco, Artix, CachyOS, CentOS, Debian, Endeavour, Fedora, Garuda, Gentoo, Manjaro, Mint, Pop!_OS, RebornOS, Ubuntu, Void, Zorin
45+
Android, Arch, Arco, Artix, CachyOS, CentOS, Debian, Endeavour, Fedora, Garuda, Gentoo, Linux, Manjaro, Mint, Pop!_OS, RebornOS, Ubuntu, Void, Zorin
4646
```
4747
* Most of the logos have a small variant. Access it by appending _small to the logo name.
4848
* Some logos have an old variant. Access it by appending _old to the logo name.
49-
* Unknown/unsupported logos will be replaced with a question mark when running fastfetch.
49+
* Unknown/unsupported logos will be replaced with a generic linux logo when running fastfetch.
5050
* Get a list of all available logos with `fastfetch --print-logos`.
5151

5252
##### Package managers

src/common/logo.c

Lines changed: 52 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,32 @@ static const FFlogo* getLogoGentooSmall()
592592
FF_LOGO_RETURN
593593
}
594594

595+
static const FFlogo* getLogoLinux()
596+
{
597+
FF_LOGO_INIT
598+
FF_LOGO_NAMES("linux", "linux-generic")
599+
FF_LOGO_LINES(
600+
"$2 ##### \n"
601+
"$2 ####### \n"
602+
"$2 ##$1O$2#$1O$2## \n"
603+
"$2 #$3#####$2# \n"
604+
"$2 ##$1##$3###$1##$2## \n"
605+
"$2 #$1##########$2## \n"
606+
"$2 #$1############$2## \n"
607+
"$2 #$1############$2### \n"
608+
"$3 ##$2#$1###########$2##$3# \n"
609+
"$3######$2#$1#######$2#$3######\n"
610+
"$3#######$2#$1#####$2#$3#######\n"
611+
"$3 #####$2#######$3##### "
612+
)
613+
FF_LOGO_COLORS(
614+
"37", //white
615+
"30", //black
616+
"33" //yellow
617+
)
618+
FF_LOGO_RETURN
619+
}
620+
595621
static const FFlogo* getLogoManjaro()
596622
{
597623
FF_LOGO_INIT
@@ -776,30 +802,30 @@ static const FFlogo* getLogoReborn()
776802
FF_LOGO_INIT
777803
FF_LOGO_NAMES("reborn", "reborn-os", "rebornos", "rebornos-linux", "reborn-os-linux")
778804
FF_LOGO_LINES(
779-
"$1 ::::::::::::::::::::::: \n"
780-
"$1 .:^!!!!!!!!!^.^!!!!!!!!!^:. \n"
781-
"$1 .:~!!!!!!!!!!^.^!!!!!!!!!!~:. \n"
782-
"$1 .:~!!!!!~~~~~~^.^~~~~~~!!!!!~:. \n"
783-
"$1 .^!!!!!~::$2=====:.:=====$1::~!!!!!^. \n"
784-
"$1 .::^~~!!~:$2^77777?~.~?77777^$1:~!!~~^::. \n"
785-
"$1 .:~~^:::^.$2^77777!!^.^7!77777^$1.^:::^~~:. \n"
786-
"$1 .:~!!!!~::::$2^~!!::^^^^^::!!~^$1::::~!!!!~:. \n"
787-
"$1 .^!!!!!~::$2!7!~^:.^?JJJJJ?^.:^~!7!$1::~!!!!!^. \n"
805+
"$1 ::::::::::::::::::::::: \n"
806+
"$1 .:^!!!!!!!!!^.^!!!!!!!!!^:. \n"
807+
"$1 .:~!!!!!!!!!!^.^!!!!!!!!!!~:. \n"
808+
"$1 .:~!!!!!~~~~~~^.^~~~~~~!!!!!~:. \n"
809+
"$1 .^!!!!!~::$2=====:.:=====$1::~!!!!!^. \n"
810+
"$1 .::^~~!!~:$2^77777?~.~?77777^$1:~!!~~^::. \n"
811+
"$1 .:~~^:::^.$2^77777!!^.^7!77777^$1.^:::^~~:. \n"
812+
"$1 .:~!!!!~::::$2^~!!::^^^^^::!!~^$1::::~!!!!~:. \n"
813+
"$1 .^!!!!!~::$2!7!~^:.^?JJJJJ?^.:^~!7!$1::~!!!!!^. \n"
788814
"$1.:^!!!!!~:$2^77777~.~JJJJJJJJJ~.~77777^$1:~!!!!!^:.\n"
789815
"$1.:^!!!!!~:$2^77777~.~JJJJJJJJJ~.~77777^$1:~!!!!!^:.\n"
790-
"$1 .^!!!!!~::$2!7!~^:.^?JJJJJ?^.:^~!7!$1::~!!!!!^. \n"
791-
"$1 .:~!!!!~::$2::^~!!::^^^^^::!!~^::$1::~!!!!~:. \n"
792-
"$1 .:~~^:::^.$2^77777!!^.^7!77777^.$1^:::^~~:. \n"
793-
"$1 .::^~~!!~:$2^77777?~.~?77777^$1:~!!~~^::. \n"
794-
"$1 .^!!!!!~::$2=====:.:=====$1::~!!!!!^. \n"
795-
"$1 .:~!!!!!~~~~~~^.^~~~~~~!!!!!~:. \n"
796-
"$1 .:~!!!!!!!!!!^.^!!!!!!!!!!~:. \n"
797-
"$1 .:^!!!!!!!!!^.^!!!!!!!!!^:. \n"
798-
"$1 ::::::::::::::::::::::: \n"
816+
"$1 .^!!!!!~::$2!7!~^:.^?JJJJJ?^.:^~!7!$1::~!!!!!^. \n"
817+
"$1 .:~!!!!~::$2::^~!!::^^^^^::!!~^::$1::~!!!!~:. \n"
818+
"$1 .:~~^:::^.$2^77777!!^.^7!77777^.$1^:::^~~:. \n"
819+
"$1 .::^~~!!~:$2^77777?~.~?77777^$1:~!!~~^::. \n"
820+
"$1 .^!!!!!~::$2=====:.:=====$1::~!!!!!^. \n"
821+
"$1 .:~!!!!!~~~~~~^.^~~~~~~!!!!!~:. \n"
822+
"$1 .:~!!!!!!!!!!^.^!!!!!!!!!!~:. \n"
823+
"$1 .:^!!!!!!!!!^.^!!!!!!!!!^:. \n"
824+
"$1 ::::::::::::::::::::::: \n"
799825
)
800826
FF_LOGO_COLORS(
801827
"34", //blue
802-
"36" //cyan
828+
"36" //cyan
803829
)
804830
FF_LOGO_RETURN
805831
}
@@ -816,13 +842,13 @@ static const FFlogo* getLogoRebornSmall()
816842
"$1 / / \\___/ \\ \\ \n"
817843
"$1/____/____/ \\____\\____\\ \n"
818844
"$1\\ \\ \\___/ / / \n"
819-
"$1 \\ \\ / \\ / / \n"
845+
"$1 \\ \\ / \\ / / \n"
820846
"$1 \\ \\/_______\\/ / \n"
821847
"$1 \\ / \\ / \n"
822848
"$1 \\_/___________\\_/ \n"
823849
)
824850
FF_LOGO_COLORS(
825-
"34" //blue
851+
"34" //blue
826852
)
827853
FF_LOGO_RETURN
828854
}
@@ -984,6 +1010,7 @@ static GetLogoMethod* getLogoMethods()
9841010
getLogoGaruda,
9851011
getLogoGentoo,
9861012
getLogoGentooSmall,
1013+
getLogoLinux,
9871014
getLogoManjaro,
9881015
getLogoManjaroSmall,
9891016
getLogoMint,
@@ -1110,10 +1137,10 @@ void ffLoadLogo(FFinstance* instance)
11101137
const FFOSResult* result = ffDetectOS(instance);
11111138

11121139
if(
1113-
!loadLogoSetWithVersion(instance, &result->versionID, &result->name) &&
1114-
!loadLogoSetWithVersion(instance, &result->versionID, &result->id) &&
1115-
!loadLogoSetWithVersion(instance, &result->versionID, &result->systemName) &&
1116-
!loadLogoSetWithVersion(instance, &result->versionID, &result->idLike)
1140+
!loadLogoSetWithVersion(instance, &result->versionID, &result->name) && //e.g. Pop!_OS
1141+
!loadLogoSetWithVersion(instance, &result->versionID, &result->id) && //e.g. popos
1142+
!loadLogoSetWithVersion(instance, &result->versionID, &result->idLike) && //e.g. ubuntu
1143+
!loadLogoSetWithVersion(instance, &result->versionID, &result->systemName) //e.g. linux
11171144
) setLogo(instance, getLogoUnknown());
11181145
}
11191146

0 commit comments

Comments
 (0)