From 1aaeae1197a682b3c8b76a06e2769992057123b7 Mon Sep 17 00:00:00 2001 From: Julia van der Kris Date: Mon, 9 Jan 2023 00:03:54 +0100 Subject: [PATCH] Add aperture science ASCII art --- hyfetch/distros/aperture.py | 26 ++++++++++++++++++++++++++ hyfetch/distros/distro_detector.py | 6 +++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 hyfetch/distros/aperture.py diff --git a/hyfetch/distros/aperture.py b/hyfetch/distros/aperture.py new file mode 100644 index 00000000..cb3ac09b --- /dev/null +++ b/hyfetch/distros/aperture.py @@ -0,0 +1,26 @@ + +from . import AsciiArt + +aperture = AsciiArt(match=r'''"Aperture"*''', color='6 6 7 1', ascii=r""" +${c1} .,-:;//;:=, + . :H@@@MM@M#H/.,+%;, + ,/X+ +M@@M@MM%=,-%HMMM@X/, + -+@MM; $M@@MH+-,;XMMMM@MMMM@+- + ;@M@@M- XM@X;. -+XXXXXHHH@M@M#@/. + ,%MM@@MH ,@%= .---=-=:=,. + =@#@@@MX., -%HX$$%%%:; + =-./@M@M$ .;@MMMM@MM: + X@/ -$MM/ . +MM@@@M$ +,@M@H: :@: . =X#@@@@- +,@@@MMX, . /H- ;@M@M= +.H@@@@M@+, %MM+..%#$. + /MMMM@MMH/. XM@MH; =; + /%+%$XHH@$= , .H@@@@MX, + .=--------. -%H.,@@@@@MX, + .%MM@@@HHHXX$$$%+- .:$MMX =M@@MM%. + =XMMM@MM@MM#H;,-+HMM@M+ /MMMX= + =%@M@M#@$-.=$@MM@@@M; %M%= + ,:+$+-,/H#MMMMMMM@= =, + =++%%%%+/:-. +""") + diff --git a/hyfetch/distros/distro_detector.py b/hyfetch/distros/distro_detector.py index 5ca08983..fc2e6734 100644 --- a/hyfetch/distros/distro_detector.py +++ b/hyfetch/distros/distro_detector.py @@ -1336,4 +1336,8 @@ def detect(name: str) -> AsciiArt | None: if name == 'sunos': from .sunos import sunos return sunos - \ No newline at end of file + + if name == 'aperture': + from .aperture import aperture + return aperture +