screenfetch 234 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347
  1. #!/usr/bin/env bash
  2. # screenFetch - a CLI Bash script to show system/theme info in screenshots
  3. # Copyright (c) 2010-2019 Brett Bohnenkamper <kittykatt@kittykatt.us>
  4. # This program is free software: you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation, either version 3 of the License, or
  7. # (at your option) any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. # Yes, I do realize some of this is horribly ugly coding. Any ideas/suggestions would be
  17. # appreciated by emailing me or by stopping by http://github.com/KittyKatt/screenFetch. You
  18. # could also drop in on the IRC channel at irc://irc.rizon.net/screenFetch.
  19. # to put forth suggestions/ideas. Thank you.
  20. # Requires: bash 4.0+
  21. # Optional dependencies: xorg-xdpyinfo (resoluton detection)
  22. # scrot (screenshot taking)
  23. # curl (screenshot uploading)
  24. #LANG=C
  25. #LANGUAGE=C
  26. #LC_ALL=C
  27. scriptVersion="3.8.0"
  28. ######################
  29. # Settings for fetcher
  30. ######################
  31. # This setting controls what ASCII logo is displayed.
  32. # distro="Linux"
  33. # This sets the information to be displayed. Available: distro, Kernel, DE, WM, Win_theme, Theme, Icons, Font, Background, ASCII.
  34. # To get just the information, and not a text-art logo, you would take "ASCII" out of the below variable.
  35. valid_display=(
  36. 'distro'
  37. 'host'
  38. 'kernel'
  39. 'uptime'
  40. 'pkgs'
  41. 'shell'
  42. 'res'
  43. 'de'
  44. 'wm'
  45. 'wmtheme'
  46. 'gtk'
  47. 'disk'
  48. 'cpu'
  49. 'gpu'
  50. 'mem'
  51. )
  52. display=(
  53. 'distro'
  54. 'host'
  55. 'kernel'
  56. 'uptime'
  57. 'pkgs'
  58. 'shell'
  59. 'res'
  60. 'de'
  61. 'wm'
  62. 'wmtheme'
  63. 'gtk'
  64. 'cpu'
  65. 'disk'
  66. 'gpu'
  67. 'mem'
  68. )
  69. # Display Type: ASCII or Text
  70. display_type="ASCII"
  71. # Plain logo
  72. display_logo="no"
  73. # Colors to use for the information found. These are set below according to distribution.
  74. # If you would like to set your OWN color scheme for these, uncomment the lines below and edit them to your heart's content.
  75. # textcolor="\e[0m"
  76. # labelcolor="\e[1;34m"
  77. # Array: WM Process Names
  78. # Order matters!
  79. # Removed WM's: compiz
  80. wmnames=(
  81. 'fluxbox'
  82. 'openbox'
  83. 'blackbox'
  84. 'xfwm4'
  85. 'metacity'
  86. 'kwin'
  87. 'twin'
  88. 'icewm'
  89. 'pekwm'
  90. 'flwm'
  91. 'flwm_topside'
  92. 'fvwm'
  93. 'dwm'
  94. 'awesome'
  95. 'wmaker'
  96. 'stumpwm'
  97. 'musca'
  98. 'xmonad.*'
  99. 'i3'
  100. 'ratpoison'
  101. 'scrotwm'
  102. 'spectrwm'
  103. 'wmfs'
  104. 'wmii'
  105. 'beryl'
  106. 'subtle'
  107. 'e16'
  108. 'enlightenment'
  109. 'sawfish'
  110. 'emerald'
  111. 'monsterwm'
  112. 'dminiwm'
  113. 'compiz'
  114. 'Finder'
  115. 'herbstluftwm'
  116. 'howm'
  117. 'notion'
  118. 'bspwm'
  119. 'cinnamon'
  120. '2bwm'
  121. 'echinus'
  122. 'swm'
  123. 'budgie-wm'
  124. 'dtwm'
  125. '9wm'
  126. 'chromeos-wm'
  127. 'deepin-wm'
  128. 'sway'
  129. 'mwm'
  130. )
  131. # Array with full Ubuntu release codenames, used so that the script will display
  132. # i.e. "Ubuntu 18.04 LTS (Bionic Beaver)" instead of "Ubuntu 18.04 bionic"
  133. ubuntu_codenames=(
  134. '(Warty Warthog)' # 4.10
  135. '(Hoary Hedgehog)' # 5.04
  136. '(Breezy Badger)' # 5.10
  137. 'LTS (Dapper Drake)' # 6.06
  138. '(Edgy Eft)' # 6.10
  139. '(Feisty Fawn)' # 7.04
  140. '(Gutsy Gibbon)' # 7.10
  141. 'LTS (Hardy Heron)' # 8.04
  142. '(Intrepid Ibex)' # 8.10
  143. '(Jaunty Jackalope)' # 9.04
  144. '(Karmic Koala)' # 9.10
  145. 'LTS (Lucid Lynx)' # 10.04
  146. '(Maverick Meerkat)' # 10.10
  147. '(Natty Narwhal)' # 11.04
  148. '(Oneiric Ocelot)' # 11.10
  149. 'LTS (Precise Pangolin)'# 12.04
  150. '(Quantal Quetzal)' # 12.10
  151. '(Raring Ringtail)' # 13.04
  152. '(Saucy Salamander)' # 13.10
  153. 'LTS (Trusty Tahr)' # 14.04
  154. '(Utopic Unicorn)' # 14.10
  155. '(Vivid Vervet)' # 15.04
  156. '(Wily Werewolf)' # 15.10
  157. 'LTS (Xenial Xerus)' # 16.04
  158. '(Yakkety Yak)' # 16.10
  159. '(Zesty Zapus)' # 17.04
  160. '(Artful Aardvark)' # 17.10
  161. 'LTS (Bionic Beaver)' # 18.04
  162. '(Cosmic Cuttlefish)' # 18.10
  163. '(Disco Dingo)' # 19.04
  164. )
  165. # Screenshot Settings
  166. # This setting lets the script know if you want to take a screenshot or not. 1=Yes 0=No
  167. screenshot=
  168. # This setting lets the script know if you want to upload the screenshot to a filehost. 1=Yes 0=No
  169. upload=
  170. # This setting lets the script know where you would like to upload the file to.
  171. # Valid hosts are: teknik, mediacrush, imgur, hmp, and a configurable local.
  172. uploadLoc=
  173. # You can specify a custom screenshot command here. Just uncomment and edit.
  174. # Otherwise, we'll be using the default command: scrot -cd3.
  175. # screenCommand="scrot -cd5"
  176. shotfile=$(printf "screenFetch-%s.png" "$(date +'%Y-%m-%d_%H-%M-%S')")
  177. # Verbose Setting - Set to 1 for verbose output.
  178. verbosity=
  179. # The below function will allow you to add custom lines of text to the screenfetch output.
  180. # It will automatically be executed at the right moment if use_customlines is set to 1.
  181. use_customlines=
  182. customlines () {
  183. # The following line can serve as an example.
  184. # feel free to let the computer generate the output: e. g. using $(cat /etc/motd) or $(upower -d | grep THISORTHAT)
  185. # In the example custom0 line replace <YOUR LABEL> and <your text> with options specified by you.
  186. # Also make sure the $custom0 variable in out_array=... matches the one at the beginning of the line
  187. #
  188. custom0=$(echo -e "$labelcolor YOUR LABEL:$textcolor your text"); out_array=( "${out_array[@]}" "$custom0" ); ((display_index++));
  189. # Battery percentage and time to full/empty:
  190. # (uncomment lines below to use)
  191. #
  192. #custom1=$(echo -e "$labelcolor Battery:$textcolor $(upower -d | grep percentage | head -n1 | cut -d ' ' -f 15-)"); out_array=( "${out_array[@]}" "$custom1" ); ((display_index++));
  193. #if [ "$(upower -d | grep time)" ]; then
  194. # battery_time="$(upower -d | grep time | head -n1 | cut -d ' ' -f 14-) $(upower -d | grep time | head -n1 | cut -d ' ' -f 6-7 | cut -d ':' -f1)"
  195. #else
  196. # battery_time="power supply plugged in"
  197. #fi
  198. #custom2=$(echo -e "$labelcolor $(echo ' `->')$textcolor $battery_time"); out_array=( "${out_array[@]}" "$custom2" ); ((display_index++));
  199. # Display public IP:
  200. #custom3=$(echo -e "$labelcolor Public IP:$textcolor $(curl -s ipinfo.io/ip)"); out_array=( "${out_array[@]}" "$custom3" ); ((display_index++));
  201. ###########################################
  202. ## MY CUSTOM LINES
  203. ###########################################
  204. #custom4=...
  205. }
  206. #############################################
  207. #### CODE No need to edit past here CODE ####
  208. #############################################
  209. # https://github.com/KittyKatt/screenFetch/issues/549
  210. if [[ "${OSTYPE}" =~ "linux" || "${OSTYPE}" == "gnu" ]]; then
  211. # issue seems to affect Ubuntu; add LSB directories if it appears on other distros too
  212. export GIO_EXTRA_MODULES="/usr/lib/x86_64-linux-gnu/gio/modules:/usr/lib/i686-linux-gnu/gio/modules:$GIO_EXTRA_MODULES"
  213. fi
  214. #########################################
  215. # Static Variables and Common Functions #
  216. #########################################
  217. c0=$'\033[0m' # Reset Text
  218. bold=$'\033[1m' # Bold Text
  219. underline=$'\033[4m' # Underline Text
  220. display_index=0
  221. # User options
  222. gtk_2line="no"
  223. # Static Color Definitions
  224. colorize () {
  225. printf $'\033[38;5;%sm' "$1"
  226. }
  227. getColor () {
  228. local tmp_color=""
  229. if [[ -n "$1" ]]; then
  230. if [[ ${BASH_VERSINFO[0]} -ge 4 ]]; then
  231. if [[ ${BASH_VERSINFO[0]} -eq 4 && ${BASH_VERSINFO[1]} -gt 1 ]] || [[ ${BASH_VERSINFO[0]} -gt 4 ]]; then
  232. tmp_color=${1,,}
  233. else
  234. tmp_color="$(tr '[:upper:]' '[:lower:]' <<< "${1}")"
  235. fi
  236. else
  237. tmp_color="$(tr '[:upper:]' '[:lower:]' <<< "${1}")"
  238. fi
  239. case "${tmp_color}" in
  240. # Standards
  241. 'black') color_ret='\033[0m\033[30m';;
  242. 'red') color_ret='\033[0m\033[31m';;
  243. 'green') color_ret='\033[0m\033[32m';;
  244. 'brown') color_ret='\033[0m\033[33m';;
  245. 'blue') color_ret='\033[0m\033[34m';;
  246. 'purple') color_ret='\033[0m\033[35m';;
  247. 'cyan') color_ret='\033[0m\033[36m';;
  248. 'yellow') color_ret='\033[0m\033[1;33m';;
  249. 'white') color_ret='\033[0m\033[1;37m';;
  250. # Bolds
  251. 'dark grey'|'dark gray') color_ret='\033[0m\033[1;30m';;
  252. 'light red') color_ret='\033[0m\033[1;31m';;
  253. 'light green') color_ret='\033[0m\033[1;32m';;
  254. 'light blue') color_ret='\033[0m\033[1;34m';;
  255. 'light purple') color_ret='\033[0m\033[1;35m';;
  256. 'light cyan') color_ret='\033[0m\033[1;36m';;
  257. 'light grey'|'light gray') color_ret='\033[0m\033[37m';;
  258. # Some 256 colors
  259. 'orange') color_ret="$(colorize '202')";; #DarkOrange
  260. 'light orange') color_ret="$(colorize '214')";; #Orange1
  261. # HaikuOS
  262. 'black_haiku') color_ret="$(colorize '7')";;
  263. #ROSA color
  264. 'rosa_blue') color_ret='\033[01;38;05;25m';;
  265. # ArcoLinux
  266. 'arco_blue') color_ret='\033[1;38;05;111m';;
  267. esac
  268. [[ -n "${color_ret}" ]] && echo "${color_ret}"
  269. fi
  270. }
  271. verboseOut () {
  272. if [[ "$verbosity" -eq "1" ]]; then
  273. printf '\033[1;31m:: \033[0m%s\n' "$1"
  274. fi
  275. }
  276. errorOut () {
  277. printf '\033[1;37m[[ \033[1;31m! \033[1;37m]] \033[0m%s\n' "$1"
  278. }
  279. stderrOut () {
  280. while IFS='' read -r line; do
  281. printf '\033[1;37m[[ \033[1;31m! \033[1;37m]] \033[0m%s\n' "$line"
  282. done
  283. }
  284. ####################
  285. # Color Defines
  286. ####################
  287. colorNumberToCode () {
  288. local number="$1"
  289. if [[ "${number}" == "na" ]]; then
  290. unset code
  291. elif [[ $(tput colors) -eq "256" ]]; then
  292. code=$(colorize "${number}")
  293. else
  294. case "$number" in
  295. 0|00) code=$(getColor 'black');;
  296. 1|01) code=$(getColor 'red');;
  297. 2|02) code=$(getColor 'green');;
  298. 3|03) code=$(getColor 'brown');;
  299. 4|04) code=$(getColor 'blue');;
  300. 5|05) code=$(getColor 'purple');;
  301. 6|06) code=$(getColor 'cyan');;
  302. 7|07) code=$(getColor 'light grey');;
  303. 8|08) code=$(getColor 'dark grey');;
  304. 9|09) code=$(getColor 'light red');;
  305. 10) code=$(getColor 'light green');;
  306. 11) code=$(getColor 'yellow');;
  307. 12) code=$(getColor 'light blue');;
  308. 13) code=$(getColor 'light purple');;
  309. 14) code=$(getColor 'light cyan');;
  310. 15) code=$(getColor 'white');;
  311. *) unset code;;
  312. esac
  313. fi
  314. echo -n "${code}"
  315. }
  316. detectColors () {
  317. my_colors=$(sed 's/^,/na,/;s/,$/,na/;s/,/ /' <<< "${OPTARG}")
  318. my_lcolor=$(awk -F' ' '{print $1}' <<< "${my_colors}")
  319. my_lcolor=$(colorNumberToCode "${my_lcolor}")
  320. my_hcolor=$(awk -F' ' '{print $2}' <<< "${my_colors}")
  321. my_hcolor=$(colorNumberToCode "${my_hcolor}")
  322. }
  323. supported_distros="ALDOS, Alpine Linux, Amazon Linux, Antergos, Arch Linux (Old and Current Logos), ArcoLinux, Artix Linux, \
  324. blackPanther OS, BLAG, BunsenLabs, CentOS, Chakra, Chapeau, Chrome OS, Chromium OS, CrunchBang, CRUX, \
  325. Debian, Deepin, DesaOS,Devuan, Dragora, elementary OS, EuroLinux, Evolve OS, Exherbo, Fedora, Frugalware, Fuduntu, Funtoo, \
  326. Fux, Gentoo, gNewSense, GuixSD, Hyperbola GNU/Linux-libre, januslinux, Jiyuu Linux, Kali Linux, KaOS, KDE neon, Kogaion, Korora, \
  327. LinuxDeepin, Linux Mint, LMDE, Logos, Mageia, Mandriva/Mandrake, Manjaro, Mer, Netrunner, NixOS, OBRevenge, openSUSE, \
  328. OS Elbrus, Oracle Linux, Parabola GNU/Linux-libre, Pardus, Parrot Security, PCLinuxOS, PeppermintOS, Proxmox VE, PureOS, Qubes OS, \
  329. Raspbian, Red Hat Enterprise Linux, ROSA, Sabayon, SailfishOS, Scientific Linux, Siduction, Slackware, Solus, Source Mage GNU/Linux, \
  330. SparkyLinux, SteamOS, SUSE Linux Enterprise, SwagArch, TinyCore, Trisquel, Ubuntu, Viperr, Void and Zorin OS."
  331. supported_other="Dragonfly/Free/Open/Net BSD, Haiku, Mac OS X, Windows+Cygwin and Windows+MSYS2."
  332. supported_dms="KDE, GNOME, Unity, Xfce, LXDE, Cinnamon, MATE, Deepin, CDE, RazorQt and Trinity."
  333. supported_wms="2bwm, 9wm, Awesome, Beryl, Blackbox, Cinnamon, chromeos-wm, Compiz, deepin-wm, \
  334. dminiwm, dwm, dtwm, E16, E17, echinus, Emerald, FluxBox, FLWM, FVWM, herbstluftwm, howm, IceWM, KWin, \
  335. Metacity, monsterwm, Musca, Gala, Mutter, Muffin, Notion, OpenBox, PekWM, Ratpoison, Sawfish, ScrotWM, SpectrWM, \
  336. StumpWM, subtle, sway, TWin, WindowMaker, WMFS, wmii, Xfwm4, XMonad and i3."
  337. displayHelp () {
  338. echo "${underline}Usage${c0}:"
  339. echo " ${0} [OPTIONAL FLAGS]"
  340. echo
  341. echo "screenFetch - a CLI Bash script to show system/theme info in screenshots."
  342. echo
  343. echo "${underline}Supported GNU/Linux Distributions${c0}:"
  344. echo "${supported_distros}" | fold -s | sed 's/^/\t/g'
  345. echo
  346. echo "${underline}Other Supported Systems${c0}:"
  347. echo "${supported_other}" | fold -s | sed 's/^/\t/g'
  348. echo
  349. echo "${underline}Supported Desktop Managers${c0}:"
  350. echo "${supported_dms}" | fold -s | sed 's/^/\t/g'
  351. echo
  352. echo "${underline}Supported Window Managers${c0}:"
  353. echo "${supported_wms}" | fold -s | sed 's/^/\t/g'
  354. echo
  355. echo "${underline}Supported Information Displays${c0}:"
  356. echo "${valid_display[@]}" | fold -s | sed 's/^/\t/g'
  357. echo
  358. echo "${underline}Options${c0}:"
  359. echo " ${bold}-v${c0} Verbose output."
  360. echo " ${bold}-o 'OPTIONS'${c0} Allows for setting script variables on the"
  361. echo " command line. Must be in the following format..."
  362. echo " 'OPTION1=\"OPTIONARG1\";OPTION2=\"OPTIONARG2\"'"
  363. echo " ${bold}-d '+var;-var;var'${c0} Allows for setting what information is displayed"
  364. echo " on the command line. You can add displays with +var,var. You"
  365. echo " can delete displays with -var,var. Setting without + or - will"
  366. echo " set display to that explicit combination. Add and delete statements"
  367. echo " may be used in conjunction by placing a ; between them as so:"
  368. echo " +var,var,var;-var,var. See above to find supported display names."
  369. echo " ${bold}-n${c0} Do not display ASCII distribution logo."
  370. echo " ${bold}-L${c0} Display ASCII distribution logo only."
  371. echo " ${bold}-N${c0} Strip all color from output."
  372. echo " ${bold}-w${c0} Wrap long lines."
  373. echo " ${bold}-t${c0} Truncate output based on terminal width (Experimental!)."
  374. echo " ${bold}-p${c0} Portrait output."
  375. echo " ${bold}-s [-u IMGHOST]${c0} Using this flag tells the script that you want it"
  376. echo " to take a screenshot. Use the -u flag if you would like"
  377. echo " to upload the screenshots to one of the pre-configured"
  378. echo " locations. These include: teknik, imgur, mediacrush and hmp."
  379. echo " ${bold}-c string${c0} You may change the outputted colors with -c. The format is"
  380. echo " as follows: [0-9][0-9],[0-9][0-9]. The first argument controls the"
  381. echo " ASCII logo colors and the label colors. The second argument"
  382. echo " controls the colors of the information found. One argument may be"
  383. echo " used without the other."
  384. echo " ${bold}-a 'PATH'${c0} You can specify a custom ASCII art by passing the path"
  385. echo " to a Bash script, defining \`startline\` and \`fulloutput\`"
  386. echo " variables, and optionally \`labelcolor\` and \`textcolor\`."
  387. echo " See the \`asciiText\` function in the source code for more"
  388. echo " information on the variables format."
  389. echo " ${bold}-S 'COMMAND'${c0} Here you can specify a custom screenshot command for"
  390. echo " the script to execute. Surrounding quotes are required."
  391. echo " ${bold}-D 'DISTRO'${c0} Here you can specify your distribution for the script"
  392. echo " to use. Surrounding quotes are required."
  393. echo " ${bold}-A 'DISTRO'${c0} Here you can specify the distribution art that you want"
  394. echo " displayed. This is for when you want your distro"
  395. echo " detected but want to display a different logo."
  396. echo " ${bold}-E${c0} Suppress output of errors."
  397. echo " ${bold}-V, --version${c0} Display current script version."
  398. echo " ${bold}-h, --help${c0} Display this help."
  399. }
  400. displayVersion () {
  401. echo "${underline}screenFetch${c0} - Version ${scriptVersion}"
  402. echo "Created by and licensed to Brett Bohnenkamper <kittykatt@kittykatt.us>"
  403. echo "OS X porting done almost solely by shrx (https://github.com/shrx) and John D. Duncan, III (https://github.com/JohnDDuncanIII)."
  404. echo
  405. echo "This is free software; see the source for copying conditions. There is NO warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  406. }
  407. #####################
  408. # Begin Flags Phase
  409. #####################
  410. case $1 in
  411. --help) displayHelp; exit 0;;
  412. --version) displayVersion; exit 0;;
  413. esac
  414. while getopts ":hsu:evVEnLNtlS:A:D:o:c:d:pa:w" flags; do
  415. case $flags in
  416. h) displayHelp; exit 0 ;;
  417. s) screenshot='1' ;;
  418. S) screenCommand="${OPTARG}" ;;
  419. u) upload='1'; uploadLoc="${OPTARG}" ;;
  420. v) verbosity=1 ;;
  421. V) displayVersion; exit 0 ;;
  422. E) errorSuppress='1' ;;
  423. D) distro="${OPTARG}" ;;
  424. A) asc_distro="${OPTARG}" ;;
  425. t) truncateSet='Yes' ;;
  426. n) display_type='Text' ;;
  427. L) display_type='ASCII'; display_logo='Yes' ;;
  428. o) overrideOpts="${OPTARG}" ;;
  429. c) detectColors "${OPTARGS}" ;;
  430. d) overrideDisplay="${OPTARG}" ;;
  431. N) no_color='1' ;;
  432. p) portraitSet='Yes' ;;
  433. a) art="${OPTARG}" ;;
  434. w) lineWrap='Yes' ;;
  435. :) errorOut "Error: You're missing an argument somewhere. Exiting."; exit 1 ;;
  436. ?) errorOut "Error: Invalid flag somewhere. Exiting."; exit 1 ;;
  437. *) errorOut "Error"; exit 1 ;;
  438. esac
  439. done
  440. ###################
  441. # End Flags Phase
  442. ###################
  443. ############################
  444. # Override Options/Display
  445. ############################
  446. if [[ "$overrideOpts" ]]; then
  447. verboseOut "Found 'o' flag in syntax. Overriding some script variables..."
  448. eval "${overrideOpts}"
  449. fi
  450. #########################
  451. # Begin Detection Phase
  452. #########################
  453. # Distro Detection - Begin
  454. detectdistro () {
  455. local distro_detect=""
  456. if [[ -z "${distro}" ]]; then
  457. distro="Unknown"
  458. # LSB Release or MCST Version Check
  459. if [[ -e "/etc/mcst_version" ]]; then
  460. distro="OS Elbrus"
  461. distro_release="$(tail -n 1 /etc/mcst_version)"
  462. if [[ -n ${distro_release} ]]; then
  463. distro_more="$distro_release"
  464. fi
  465. elif type -p lsb_release >/dev/null 2>&1; then
  466. # read distro_detect distro_release distro_codename <<< $(lsb_release -sirc)
  467. #OLD_IFS=$IFS
  468. #IFS=" "
  469. #read -r -a distro_detect <<< "$(lsb_release -sirc)"
  470. #IFS=$OLD_IFS
  471. #if [[ ${#distro_detect[@]} -eq 3 ]]; then
  472. # distro_codename=${distro_detect[2]}
  473. # distro_release=${distro_detect[1]}
  474. # distro_detect=${distro_detect[0]}
  475. #else
  476. # for i in "${!distro_detect[@]}"; do
  477. # if [[ ${distro_detect[$i]} =~ ^[[:digit:]]+((.[[:digit:]]+|[[:digit:]]+|)+)$ ]]; then
  478. # distro_release=${distro_detect[$i]}
  479. # distro_codename=${distro_detect[*]:$((i+1))}
  480. # distro_detect=${distro_detect[*]:0:${i}}
  481. # break 1
  482. # elif [[ ${distro_detect[$i]} =~ [Nn]/[Aa] || ${distro_detect[$i]} == "rolling" ]]; then
  483. # distro_release=${distro_detect[$i]}
  484. # distro_codename=${distro_detect[*]:$((i+1))}
  485. # distro_detect=${distro_detect[*]:0:${i}}
  486. # break 1
  487. # fi
  488. # done
  489. #fi
  490. distro_detect="$(lsb_release -si)"
  491. distro_release="$(lsb_release -sr)"
  492. distro_codename="$(lsb_release -sc)"
  493. case "${distro_detect}" in
  494. "archlinux"|"Arch Linux"|"arch"|"Arch"|"archarm")
  495. distro="Arch Linux"
  496. distro_release="n/a"
  497. if [ -f /etc/os-release ]; then
  498. os_release="/etc/os-release";
  499. elif [ -f /usr/lib/os-release ]; then
  500. os_release="/usr/lib/os-release";
  501. fi
  502. if [[ -n ${os_release} ]]; then
  503. if grep -q 'antergos' /etc/os-release; then
  504. distro="Antergos"
  505. distro_release="n/a"
  506. fi
  507. if grep -q -i 'logos' /etc/os-release; then
  508. distro="Logos"
  509. distro_release="n/a"
  510. fi
  511. if grep -q -i 'swagarch' /etc/os-release; then
  512. distro="SwagArch"
  513. distro_release="n/a"
  514. fi
  515. if grep -q -i 'obrevenge' /etc/os-release; then
  516. distro="OBRevenge"
  517. distro_release="n/a"
  518. fi
  519. fi
  520. ;;
  521. "ALDOS"|"Aldos")
  522. distro="ALDOS"
  523. ;;
  524. "ArcoLinux")
  525. distro="ArcoLinux"
  526. distro_release="n/a"
  527. ;;
  528. "artixlinux"|"Artix Linux"|"artix"|"Artix"|"Artix release")
  529. distro="Artix"
  530. ;;
  531. "blackPantherOS"|"blackPanther"|"blackpanther"|"blackpantheros")
  532. distro=$(source /etc/lsb-release; echo "$DISTRIB_ID")
  533. distro_release=$(source /etc/lsb-release; echo "$DISTRIB_RELEASE")
  534. distro_codename=$(source /etc/lsb-release; echo "$DISTRIB_CODENAME")
  535. ;;
  536. "BLAG")
  537. distro="BLAG"
  538. distro_more="$(head -n1 /etc/fedora-release)"
  539. ;;
  540. "Chakra")
  541. distro="Chakra"
  542. distro_release=""
  543. ;;
  544. "BunsenLabs")
  545. distro=$(source /etc/lsb-release; echo "$DISTRIB_ID")
  546. distro_release=$(source /etc/lsb-release; echo "$DISTRIB_RELEASE")
  547. distro_codename=$(source /etc/lsb-release; echo "$DISTRIB_CODENAME")
  548. ;;
  549. "Debian")
  550. if [[ -f /etc/crunchbang-lsb-release || -f /etc/lsb-release-crunchbang ]]; then
  551. distro="CrunchBang"
  552. distro_release=$(awk -F'=' '/^DISTRIB_RELEASE=/ {print $2}' /etc/lsb-release-crunchbang)
  553. distro_codename=$(awk -F'=' '/^DISTRIB_DESCRIPTION=/ {print $2}' /etc/lsb-release-crunchbang)
  554. elif [[ -f /etc/siduction-version ]]; then
  555. distro="Siduction"
  556. distro_release="(Debian Sid)"
  557. distro_codename=""
  558. elif [[ -f /usr/bin/pveversion ]]; then
  559. distro="Proxmox VE"
  560. distro_more="$(/usr/bin/pveversion | grep -oP 'pve-manager\/\K\d+\.\d+')"
  561. elif [[ -f /etc/os-release ]]; then
  562. if grep -q -i 'Raspbian' /etc/os-release ; then
  563. distro="Raspbian"
  564. distro_release=$(awk -F'=' '/^PRETTY_NAME=/ {print $2}' /etc/os-release)
  565. elif grep -q -i 'BlankOn' /etc/os-release ; then
  566. distro='BlankOn'
  567. distro_release=$(awk -F'=' '/^PRETTY_NAME=/ {print $2}' /etc/os-release)
  568. else
  569. distro="Debian"
  570. fi
  571. else
  572. distro="Debian"
  573. fi
  574. ;;
  575. "elementary"|"elementary OS")
  576. distro="elementary OS"
  577. ;;
  578. "EvolveOS")
  579. distro="Evolve OS"
  580. ;;
  581. "KaOS"|"kaos")
  582. distro="KaOS"
  583. ;;
  584. "frugalware")
  585. distro="Frugalware"
  586. distro_codename=null
  587. distro_release=null
  588. ;;
  589. "Fuduntu")
  590. distro="Fuduntu"
  591. distro_codename=null
  592. ;;
  593. "Fux")
  594. distro="Fux"
  595. distro_codename=null
  596. ;;
  597. "Gentoo")
  598. if [[ "$(lsb_release -sd)" =~ "Funtoo" ]]; then
  599. distro="Funtoo"
  600. else
  601. distro="Gentoo"
  602. fi
  603. #detecting release stable/testing/experimental
  604. if [[ -f /etc/portage/make.conf ]]; then
  605. source /etc/portage/make.conf
  606. elif [[ -d /etc/portage/make.conf ]]; then
  607. source /etc/portage/make.conf/*
  608. fi
  609. case $ACCEPT_KEYWORDS in
  610. [a-z]*) distro_release=stable ;;
  611. ~*) distro_release=testing ;;
  612. '**') distro_release=experimental ;; #experimental usually includes git-versions.
  613. esac
  614. ;;
  615. "Hyperbola GNU/Linux-libre"|"Hyperbola")
  616. distro="Hyperbola GNU/Linux-libre"
  617. distro_codename="n/a"
  618. distro_release="n/a"
  619. ;;
  620. "januslinux"|"janus")
  621. distro="januslinux"
  622. ;;
  623. "LinuxDeepin")
  624. distro="LinuxDeepin"
  625. distro_codename=null
  626. ;;
  627. "Kali"|"Debian Kali Linux")
  628. distro="Kali Linux"
  629. if [[ "${distro_codename}" =~ "kali-rolling" ]]; then
  630. distro_codename="n/a"
  631. distro_release="n/a"
  632. fi
  633. ;;
  634. "Lunar Linux"|"lunar")
  635. distro="Lunar Linux"
  636. ;;
  637. "MandrivaLinux")
  638. distro="Mandriva"
  639. case "${distro_codename}" in
  640. "turtle"|"Henry_Farman"|"Farman"|"Adelie"|"pauillac")
  641. distro="Mandriva-${distro_release}"
  642. distro_codename=null
  643. ;;
  644. esac
  645. ;;
  646. "ManjaroLinux")
  647. distro="Manjaro"
  648. ;;
  649. "Mer")
  650. distro="Mer"
  651. if [[ -f /etc/os-release ]]; then
  652. if grep -q 'SailfishOS' /etc/os-release; then
  653. distro="SailfishOS"
  654. distro_codename="$(grep 'VERSION=' /etc/os-release | cut -d '(' -f2 | cut -d ')' -f1)"
  655. distro_release="$(awk -F'=' '/^VERSION=/ {print $2}' /etc/os-release)"
  656. fi
  657. fi
  658. ;;
  659. "neon"|"KDE neon")
  660. distro="KDE neon"
  661. distro_codename="n/a"
  662. distro_release="n/a"
  663. if [[ -f /etc/issue ]]; then
  664. if grep -q '^KDE neon' /etc/issue ; then
  665. distro_release="$(grep '^KDE neon' /etc/issue | cut -d ' ' -f3)"
  666. fi
  667. fi
  668. ;;
  669. "Ol"|"ol"|"Oracle Linux")
  670. distro="Oracle Linux"
  671. [ -f /etc/oracle-release ] && distro_release="$(sed 's/Oracle Linux //' /etc/oracle-release)"
  672. ;;
  673. "LinuxMint")
  674. distro="Mint"
  675. if [[ "${distro_codename}" == "debian" ]]; then
  676. distro="LMDE"
  677. distro_codename="n/a"
  678. distro_release="n/a"
  679. #adding support for LMDE 3
  680. elif [[ "$(lsb_release -sd)" =~ "LMDE" ]]; then
  681. distro="LMDE"
  682. fi
  683. ;;
  684. "openSUSE"|"openSUSE project"|"SUSE LINUX" | "SUSE")
  685. distro="openSUSE"
  686. if [ -f /etc/os-release ]; then
  687. if grep -q -i 'SUSE Linux Enterprise' /etc/os-release ; then
  688. distro="SUSE Linux Enterprise"
  689. distro_codename="n/a"
  690. distro_release=$(awk -F'=' '/^VERSION_ID=/ {print $2}' /etc/os-release | tr -d '"')
  691. fi
  692. fi
  693. if [[ "${distro_codename}" == "Tumbleweed" ]]; then
  694. distro_release="n/a"
  695. fi
  696. ;;
  697. "Parabola GNU/Linux-libre"|"Parabola")
  698. distro="Parabola GNU/Linux-libre"
  699. distro_codename="n/a"
  700. distro_release="n/a"
  701. ;;
  702. "Parrot"|"Parrot Security")
  703. distro="Parrot Security"
  704. ;;
  705. "PCLinuxOS")
  706. distro="PCLinuxOS"
  707. distro_codename="n/a"
  708. distro_release="n/a"
  709. ;;
  710. "Peppermint")
  711. distro="Peppermint"
  712. distro_codename=null
  713. ;;
  714. "rhel")
  715. distro="Red Hat Enterprise Linux"
  716. ;;
  717. "RosaDesktopFresh")
  718. distro="ROSA"
  719. distro_release=$(grep 'VERSION=' /etc/os-release | cut -d ' ' -f3 | cut -d "\"" -f1)
  720. distro_codename=$(grep 'PRETTY_NAME=' /etc/os-release | cut -d ' ' -f4,4)
  721. ;;
  722. "SailfishOS")
  723. distro="SailfishOS"
  724. if [[ -f /etc/os-release ]]; then
  725. distro_codename="$(grep 'VERSION=' /etc/os-release | cut -d '(' -f2 | cut -d ')' -f1)"
  726. distro_release="$(awk -F'=' '/^VERSION=/ {print $2}' /etc/os-release)"
  727. fi
  728. ;;
  729. "Sparky"|"SparkyLinux")
  730. distro="SparkyLinux"
  731. ;;
  732. "Ubuntu")
  733. for each in "${ubuntu_codenames[@]}"; do
  734. if [[ "${each,,}" =~ "${distro_codename,,}" ]]; then
  735. distro_codename="$each"
  736. fi
  737. done
  738. ;;
  739. "Viperr")
  740. distro="Viperr"
  741. distro_codename=null
  742. ;;
  743. "Void"|"VoidLinux")
  744. distro="Void Linux"
  745. distro_codename=""
  746. distro_release=""
  747. ;;
  748. "Zorin")
  749. distro="Zorin OS"
  750. distro_codename=""
  751. ;;
  752. *)
  753. if [ "x$(printf "${distro_detect}" | od -t x1 | sed -e 's/^\w*\ *//' | tr '\n' ' ' | grep 'eb b6 89 ec 9d 80 eb b3 84 ')" != "x" ]; then
  754. distro="Red Star OS"
  755. distro_codename="n/a"
  756. distro_release=$(printf "${distro_release}" | grep -o '[0-9.]' | tr -d '\n')
  757. else
  758. distro="${distro_detect}"
  759. fi
  760. ;;
  761. esac
  762. if [[ "${distro_detect}" =~ "RedHatEnterprise" ]]; then
  763. distro="Red Hat Enterprise Linux"
  764. fi
  765. if [[ "${distro_detect}" =~ "SUSELinuxEnterprise" ]]; then
  766. distro="SUSE Linux Enterprise"
  767. fi
  768. if [[ -n ${distro_release} && ${distro_release} != "n/a" ]]; then
  769. distro_more="$distro_release"
  770. fi
  771. if [[ -n ${distro_codename} && ${distro_codename} != "n/a" ]]; then
  772. distro_more="$distro_more $distro_codename"
  773. fi
  774. fi
  775. # Existing File Check
  776. if [ "$distro" == "Unknown" ]; then
  777. if [ "$(uname -o 2>/dev/null)" ]; then
  778. os="$(uname -o)"
  779. case "$os" in
  780. "Cygwin"|"FreeBSD"|"OpenBSD"|"NetBSD")
  781. distro="$os"
  782. fake_distro="${distro}"
  783. ;;
  784. "DragonFly")
  785. distro="DragonFlyBSD"
  786. fake_distro="${distro}"
  787. ;;
  788. "Msys")
  789. distro="Msys"
  790. fake_distro="${distro}"
  791. distro_more="${distro} $(uname -r | head -c 1)"
  792. ;;
  793. "Haiku")
  794. distro="Haiku"
  795. distro_more="$(uname -v | awk '/^hrev/ {print $1}')"
  796. ;;
  797. "GNU/Linux")
  798. if type -p crux >/dev/null 2>&1; then
  799. distro="CRUX"
  800. distro_more="$(crux | awk '{print $3}')"
  801. fi
  802. if type -p nixos-version >/dev/null 2>&1; then
  803. distro="NixOS"
  804. distro_more="$(nixos-version)"
  805. fi
  806. if type -p sorcery >/dev/null 2>&1; then
  807. distro="SMGL"
  808. fi
  809. if (type -p guix && type -p herd) >/dev/null 2>&1; then
  810. distro="GuixSD"
  811. fi
  812. ;;
  813. esac
  814. fi
  815. if [[ "${distro}" == "Cygwin" || "${distro}" == "Msys" ]]; then
  816. # https://msdn.microsoft.com/en-us/library/ms724832%28VS.85%29.aspx
  817. if wmic os get version | grep -q '^\(6\.[23]\|10\)'; then
  818. fake_distro="Windows - Modern"
  819. fi
  820. fi
  821. if [[ "${distro}" == "Unknown" ]]; then
  822. if [ -f /etc/os-release ]; then
  823. os_release="/etc/os-release";
  824. elif [ -f /usr/lib/os-release ]; then
  825. os_release="/usr/lib/os-release";
  826. fi
  827. if [[ -n ${os_release} ]]; then
  828. distrib_id=$(<${os_release});
  829. for l in $distrib_id; do
  830. if [[ ${l} =~ ^ID= ]]; then
  831. distrib_id=${l//*=}
  832. distrib_id=${distrib_id//\"/}
  833. break 1
  834. fi
  835. done
  836. if [[ -n ${distrib_id} ]]; then
  837. if [[ ${BASH_VERSINFO[0]} -ge 4 ]]; then
  838. distrib_id=$(for i in ${distrib_id}; do echo -n "${i^} "; done)
  839. distro=${distrib_id% }
  840. unset distrib_id
  841. else
  842. distrib_id=$(for i in ${distrib_id}; do FIRST_LETTER=$(echo -n "${i:0:1}" | tr "[:lower:]" "[:upper:]"); echo -n "${FIRST_LETTER}${i:1} "; done)
  843. distro=${distrib_id% }
  844. unset distrib_id
  845. fi
  846. fi
  847. # Hotfixes
  848. [[ "${distro}" == "Opensuse-tumbleweed" ]] && distro="openSUSE" && distro_more="Tumbleweed"
  849. [[ "${distro}" == "Opensuse-leap" ]] && distro="openSUSE"
  850. [[ "${distro}" == "void" ]] && distro="Void Linux"
  851. [[ "${distro}" == "evolveos" ]] && distro="Evolve OS"
  852. [[ "${distro}" == "antergos" ]] && distro="Antergos"
  853. [[ "${distro}" == "logos" ]] && distro="Logos"
  854. [[ "${distro}" == "Arch" || "${distro}" == "Archarm" || "${distro}" == "archarm" ]] && distro="Arch Linux"
  855. [[ "${distro}" == "elementary" ]] && distro="elementary OS"
  856. [[ "${distro}" == "Fedora" && -d /etc/qubes-rpc ]] && distro="qubes" # Inner VM
  857. [[ "${distro}" == "Ol" || "${distro}" == "ol" ]] && distro="Oracle Linux"
  858. if [[ "${distro}" == "Oracle Linux" && -f /etc/oracle-release ]]; then
  859. distro_more="$(sed 's/Oracle Linux //' /etc/oracle-release)"
  860. fi
  861. # Upstream problem, SL and so EL is using rhel ID in os-release
  862. if [[ "${distro}" == "rhel" ]] || [[ "${distro}" == "Rhel" ]]; then
  863. distro="Red Hat Enterprise Linux"
  864. if grep -q 'Scientific' /etc/os-release; then
  865. distro="Scientific Linux"
  866. elif grep -q 'EuroLinux' /etc/os-release; then
  867. distro="EuroLinux"
  868. fi
  869. fi
  870. [[ "${distro}" == "Neon" ]] && distro="KDE neon"
  871. [[ "${distro}" == "SLED" || "${distro}" == "sled" || "${distro}" == "SLES" || "${distro}" == "sles" ]] && distro="SUSE Linux Enterprise"
  872. if [[ "${distro}" == "SUSE Linux Enterprise" && -f /etc/os-release ]]; then
  873. distro_more="$(awk -F'=' '/^VERSION_ID=/ {print $2}' /etc/os-release | tr -d '"')"
  874. fi
  875. if [[ "${distro}" == "Debian" && -f /usr/bin/pveversion ]]; then
  876. distro="Proxmox VE"
  877. distro_more="$(/usr/bin/pveversion | grep -oP 'pve-manager\/\K\d+\.\d+')"
  878. fi
  879. fi
  880. fi
  881. if [[ "${distro}" == "Unknown" && "${OSTYPE}" =~ "linux" && -f /etc/lsb-release ]]; then
  882. LSB_RELEASE=$(</etc/lsb-release)
  883. distro=$(echo "${LSB_RELEASE}" | awk 'BEGIN {
  884. distro = "Unknown"
  885. }
  886. {
  887. if ($0 ~ /[Uu][Bb][Uu][Nn][Tt][Uu]/) {
  888. distro = "Ubuntu"
  889. exit
  890. }
  891. else if ($0 ~ /[Mm][Ii][Nn][Tt]/ && $0 ~ /[Dd][Ee][Bb][Ii][Aa][Nn]/) {
  892. distro = "LMDE"
  893. exit
  894. }
  895. else if ($0 ~ /[Mm][Ii][Nn][Tt]/) {
  896. distro = "Mint"
  897. exit
  898. }
  899. } END {
  900. print distro
  901. }')
  902. fi
  903. if [[ "${distro}" == "Unknown" ]] && [[ "${OSTYPE}" =~ "linux" || "${OSTYPE}" == "gnu" ]]; then
  904. for di in arch chakra crunchbang-lsb evolveos exherbo fedora \
  905. frugalware fux gentoo kogaion mageia obarun oracle \
  906. pardus pclinuxos redhat redstar rosa SuSe; do
  907. if [ -f /etc/$di-release ]; then
  908. distro=$di
  909. break
  910. fi
  911. done
  912. if [[ "${distro}" == "crunchbang-lsb" ]]; then
  913. distro="Crunchbang"
  914. elif [[ "${distro}" == "gentoo" ]]; then
  915. grep -q -i 'Funtoo' /etc/gentoo-release && distro="Funtoo"
  916. elif [[ "${distro}" == "mandrake" ]] || [[ "${distro}" == "mandriva" ]]; then
  917. grep -q -i 'PCLinuxOS' /etc/${distro}-release && distro="PCLinuxOS"
  918. elif [[ "${distro}" == "fedora" ]]; then
  919. grep -q -i 'Korora' /etc/fedora-release && distro="Korora"
  920. grep -q -i 'BLAG' /etc/fedora-release && distro="BLAG" && distro_more="$(head -n1 /etc/fedora-release)"
  921. elif [[ "${distro}" == "oracle" ]]; then
  922. distro_more="$(sed 's/Oracle Linux //' /etc/oracle-release)"
  923. elif [[ "${distro}" == "SuSe" ]]; then
  924. distro="openSUSE"
  925. if [ -f /etc/os-release ]; then
  926. if grep -q -i 'SUSE Linux Enterprise' /etc/os-release ; then
  927. distro="SUSE Linux Enterprise"
  928. distro_more=$(awk -F'=' '/^VERSION_ID=/ {print $2}' /etc/os-release | tr -d '"')
  929. fi
  930. fi
  931. if [[ "${distro_more}" =~ "Tumbleweed" ]]; then
  932. distro_more="Tumbleweed"
  933. fi
  934. elif [[ "${distro}" == "redstar" ]]; then
  935. distro_more=$(grep -o '[0-9.]' /etc/redstar-release | tr -d '\n')
  936. elif [[ "${distro}" == "redhat" ]]; then
  937. grep -q -i 'CentOS' /etc/redhat-release && distro="CentOS"
  938. grep -q -i 'Scientific' /etc/redhat-release && distro="Scientific Linux"
  939. grep -q -i 'EuroLinux' /etc/redhat-release && distro="EuroLinux"
  940. grep -q -i 'PCLinuxOS' /etc/redhat-release && distro="PCLinuxOS"
  941. if [ "x$(od -t x1 /etc/redhat-release | sed -e 's/^\w*\ *//' | tr '\n' ' ' | grep 'eb b6 89 ec 9d 80 eb b3 84 ')" != "x" ]; then
  942. distro="Red Star OS"
  943. distro_more=$(grep -o '[0-9.]' /etc/redhat-release | tr -d '\n')
  944. fi
  945. fi
  946. fi
  947. if [[ "${distro}" == "Unknown" ]]; then
  948. if [[ "${OSTYPE}" =~ "linux" || "${OSTYPE}" == "gnu" ]]; then
  949. if [ -f /etc/debian_version ]; then
  950. if [ -f /etc/issue ]; then
  951. if grep -q -i 'gNewSense' /etc/issue ; then
  952. distro="gNewSense"
  953. elif grep -q -i 'KDE neon' /etc/issue ; then
  954. distro="KDE neon"
  955. distro_more="$(cut -d ' ' -f3 /etc/issue)"
  956. else
  957. distro="Debian"
  958. fi
  959. fi
  960. if grep -q -i 'Kali' /etc/debian_version ; then
  961. distro="Kali Linux"
  962. fi
  963. elif [ -f /etc/NIXOS ]; then distro="NixOS"
  964. elif [ -f /etc/dragora-version ]; then
  965. distro="Dragora"
  966. distro_more="$(cut -d, -f1 /etc/dragora-version)"
  967. elif [ -f /etc/slackware-version ]; then distro="Slackware"
  968. elif [ -f /usr/share/doc/tc/release.txt ]; then
  969. distro="TinyCore"
  970. distro_more="$(cat /usr/share/doc/tc/release.txt)"
  971. elif [ -f /etc/sabayon-edition ]; then distro="Sabayon"
  972. fi
  973. else
  974. if [[ -x /usr/bin/sw_vers ]] && /usr/bin/sw_vers | grep -i 'Mac OS X' >/dev/null; then
  975. distro="Mac OS X"
  976. elif [[ -f /var/run/dmesg.boot ]]; then
  977. distro=$(awk 'BEGIN {
  978. distro = "Unknown"
  979. }
  980. {
  981. if ($0 ~ /DragonFly/) {
  982. distro = "DragonFlyBSD"
  983. exit
  984. }
  985. else if ($0 ~ /FreeBSD/) {
  986. distro = "FreeBSD"
  987. exit
  988. }
  989. else if ($0 ~ /NetBSD/) {
  990. distro = "NetBSD"
  991. exit
  992. }
  993. else if ($0 ~ /OpenBSD/) {
  994. distro = "OpenBSD"
  995. exit
  996. }
  997. } END {
  998. print distro
  999. }' /var/run/dmesg.boot)
  1000. fi
  1001. fi
  1002. fi
  1003. if [[ "${distro}" == "Unknown" ]] && [[ "${OSTYPE}" =~ "linux" || "${OSTYPE}" == "gnu" ]]; then
  1004. if [[ -f /etc/issue ]]; then
  1005. distro=$(awk 'BEGIN {
  1006. distro = "Unknown"
  1007. }
  1008. {
  1009. if ($0 ~ /"Hyperbola GNU\/Linux-libre"/) {
  1010. distro = "Hyperbola GNU/Linux-libre"
  1011. exit
  1012. }
  1013. else if ($0 ~ /"LinuxDeepin"/) {
  1014. distro = "LinuxDeepin"
  1015. exit
  1016. }
  1017. else if ($0 ~ /"Obarun"/) {
  1018. distro = "Obarun"
  1019. exit
  1020. }
  1021. else if ($0 ~ /"Parabola GNU\/Linux-libre"/) {
  1022. distro = "Parabola GNU/Linux-libre"
  1023. exit
  1024. }
  1025. else if ($0 ~ /"Solus"/) {
  1026. distro = "Solus"
  1027. exit
  1028. }
  1029. else if ($0 ~ /"ALDOS"/) {
  1030. distro = "ALDOS"
  1031. exit
  1032. }
  1033. } END {
  1034. print distro
  1035. }' /etc/issue)
  1036. fi
  1037. fi
  1038. if [[ "${distro}" == "Unknown" ]] && [[ "${OSTYPE}" =~ "linux" || "${OSTYPE}" == "gnu" ]]; then
  1039. if [[ -f /etc/system-release ]]; then
  1040. if grep -q -i 'Scientific Linux' /etc/system-release; then
  1041. distro="Scientific Linux"
  1042. elif grep -q -i 'Oracle Linux' /etc/system-release; then
  1043. distro="Oracle Linux"
  1044. fi
  1045. elif [[ -f /etc/lsb-release ]]; then
  1046. if grep -q -i 'CHROMEOS_RELEASE_NAME' /etc/lsb-release; then
  1047. distro="$(awk -F'=' '/^CHROMEOS_RELEASE_NAME=/ {print $2}' /etc/lsb-release)"
  1048. distro_more="$(awk -F'=' '/^CHROMEOS_RELEASE_VERSION=/ {print $2}' /etc/lsb-release)"
  1049. fi
  1050. fi
  1051. fi
  1052. fi
  1053. fi
  1054. if [[ -n ${distro_more} ]]; then
  1055. distro_more="${distro} ${distro_more}"
  1056. fi
  1057. if [[ "${distro}" != "Haiku" ]]; then
  1058. if [[ ${BASH_VERSINFO[0]} -ge 4 ]]; then
  1059. if [[ ${BASH_VERSINFO[0]} -eq 4 && ${BASH_VERSINFO[1]} -gt 1 ]] || [[ ${BASH_VERSINFO[0]} -gt 4 ]]; then
  1060. distro=${distro,,}
  1061. else
  1062. distro="$(tr '[:upper:]' '[:lower:]' <<< "${distro}")"
  1063. fi
  1064. else
  1065. distro="$(tr '[:upper:]' '[:lower:]' <<< "${distro}")"
  1066. fi
  1067. fi
  1068. case $distro in
  1069. aldos) distro="ALDOS";;
  1070. alpine) distro="Alpine Linux" ;;
  1071. amzn|amazon|amazon*linux) distro="Amazon Linux" ;;
  1072. antergos) distro="Antergos" ;;
  1073. arch*linux*old) distro="Arch Linux - Old" ;;
  1074. arch|arch*linux) distro="Arch Linux" ;;
  1075. arcolinux|arcolinux*) distro="ArcoLinux" ;;
  1076. artix|artix*linux) distro="Artix Linux" ;;
  1077. blackpantheros|black*panther*) distro="blackPanther OS" ;;
  1078. blag) distro="BLAG" ;;
  1079. bunsenlabs) distro="BunsenLabs" ;;
  1080. centos) distro="CentOS" ;;
  1081. chakra) distro="Chakra" ;;
  1082. chapeau) distro="Chapeau" ;;
  1083. chrome*|chromium*) distro="Chrome OS" ;;
  1084. crunchbang) distro="CrunchBang" ;;
  1085. crux) distro="CRUX" ;;
  1086. cygwin) distro="Cygwin" ;;
  1087. debian) distro="Debian" ;;
  1088. devuan) distro="Devuan" ;;
  1089. deepin) distro="Deepin" ;;
  1090. desaos) distro="DesaOS" ;;
  1091. dragonflybsd) distro="DragonFlyBSD" ;;
  1092. dragora) distro="Dragora" ;;
  1093. elementary|'elementary os') distro="elementary OS";;
  1094. eurolinux) distro="EuroLinux" ;;
  1095. evolveos) distro="Evolve OS" ;;
  1096. exherbo|exherbo*linux) distro="Exherbo" ;;
  1097. fedora) distro="Fedora" ;;
  1098. freebsd) distro="FreeBSD" ;;
  1099. freebsd*old) distro="FreeBSD - Old" ;;
  1100. frugalware) distro="Frugalware" ;;
  1101. fuduntu) distro="Fuduntu" ;;
  1102. funtoo) distro="Funtoo" ;;
  1103. fux) distro="Fux" ;;
  1104. gentoo) distro="Gentoo" ;;
  1105. gnewsense) distro="gNewSense" ;;
  1106. guixsd) distro="GuixSD" ;;
  1107. haiku) distro="Haiku" ;;
  1108. hyperbolagnu|hyperbolagnu/linux-libre|'hyperbola gnu/linux-libre'|hyperbola) distro="Hyperbola GNU/Linux-libre" ;;
  1109. januslinux) distro="januslinux" ;;
  1110. kali*linux) distro="Kali Linux" ;;
  1111. kaos) distro="KaOS";;
  1112. kde*neon|neon) distro="KDE neon" ;;
  1113. kogaion) distro="Kogaion" ;;
  1114. korora) distro="Korora" ;;
  1115. linuxdeepin) distro="LinuxDeepin" ;;
  1116. lmde) distro="LMDE" ;;
  1117. logos) distro="Logos" ;;
  1118. lunar|lunar*linux) distro="Lunar Linux";;
  1119. mac*os*x|os*x) distro="Mac OS X" ;;
  1120. manjaro) distro="Manjaro" ;;
  1121. mageia) distro="Mageia" ;;
  1122. mandrake) distro="Mandrake" ;;
  1123. mandriva) distro="Mandriva" ;;
  1124. mer) distro="Mer" ;;
  1125. mint|linux*mint) distro="Mint" ;;
  1126. msys|msys2) distro="Msys" ;;
  1127. netbsd) distro="NetBSD" ;;
  1128. netrunner) distro="Netrunner" ;;
  1129. nix|nix*os) distro="NixOS" ;;
  1130. obarun) distro="Obarun" ;;
  1131. obrevenge) distro="OBRevenge" ;;
  1132. ol|oracle*linux) distro="Oracle Linux" ;;
  1133. openbsd) distro="OpenBSD" ;;
  1134. opensuse) distro="openSUSE" ;;
  1135. os*elbrus) distro="OS Elbrus" ;;
  1136. parabolagnu|parabolagnu/linux-libre|'parabola gnu/linux-libre'|parabola) distro="Parabola GNU/Linux-libre" ;;
  1137. pardus) distro="Pardus" ;;
  1138. parrot|parrot*security) distro="Parrot Security" ;;
  1139. pclinuxos|pclos) distro="PCLinuxOS" ;;
  1140. peppermint) distro="Peppermint" ;;
  1141. proxmox|proxmox*ve) distro="Proxmox VE" ;;
  1142. pureos) distro="PureOS" ;;
  1143. qubes) distro="Qubes OS" ;;
  1144. raspbian) distro="Raspbian" ;;
  1145. red*hat*|rhel) distro="Red Hat Enterprise Linux" ;;
  1146. rosa) distro="ROSA" ;;
  1147. red*star|red*star*os) distro="Red Star OS" ;;
  1148. sabayon) distro="Sabayon" ;;
  1149. sailfish|sailfish*os) distro="SailfishOS" ;;
  1150. scientific*) distro="Scientific Linux" ;;
  1151. siduction) distro="Siduction" ;;
  1152. slackware) distro="Slackware" ;;
  1153. smgl|source*mage|source*mage*gnu*linux) distro="Source Mage GNU/Linux" ;;
  1154. solus) distro="Solus" ;;
  1155. sparky|sparky*linux) distro="SparkyLinux" ;;
  1156. steam|steam*os) distro="SteamOS" ;;
  1157. suse*linux*enterprise) distro="SUSE Linux Enterprise" ;;
  1158. swagarch) distro="SwagArch" ;;
  1159. tinycore|tinycore*linux) distro="TinyCore" ;;
  1160. trisquel) distro="Trisquel";;
  1161. grombyangos) distro="GrombyangOS" ;;
  1162. ubuntu) distro="Ubuntu";;
  1163. viperr) distro="Viperr" ;;
  1164. void*linux) distro="Void Linux" ;;
  1165. zorin*) distro="Zorin OS" ;;
  1166. esac
  1167. if grep -q -i 'Microsoft' /proc/version 2>/dev/null || \
  1168. grep -q -i 'Microsoft' /proc/sys/kernel/osrelease 2>/dev/null
  1169. then
  1170. wsl="(on the Windows Subsystem for Linux)"
  1171. fi
  1172. verboseOut "Finding distro...found as '${distro} ${distro_release}'"
  1173. }
  1174. # Distro Detection - End
  1175. # Host and User detection - Begin
  1176. detecthost () {
  1177. myUser=${USER}
  1178. myHost=${HOSTNAME}
  1179. if [[ -z "$USER" ]]; then
  1180. myUser=$(whoami)
  1181. fi
  1182. if [[ "${distro}" == "Mac OS X" ]]; then
  1183. myHost=${myHost/.local}
  1184. fi
  1185. verboseOut "Finding hostname and user...found as '${myUser}@${myHost}'"
  1186. }
  1187. # Find Number of Running Processes
  1188. # processnum="$(( $( ps aux | wc -l ) - 1 ))"
  1189. # Kernel Version Detection - Begin
  1190. detectkernel () {
  1191. if [[ "$distro" == "OpenBSD" ]]; then
  1192. kernel=$(sysctl kern.version|awk -F'[ =:]' 'NR==1{print $3" "$4" "$5}')
  1193. else
  1194. # compatibility for older versions of OS X:
  1195. kernel=$(uname -m && uname -sr)
  1196. kernel=${kernel//$'\n'/ }
  1197. #kernel=( $(uname -srm) )
  1198. #kernel="${kernel[${#kernel[@]}-1]} ${kernel[@]:0:${#kernel[@]}-1}"
  1199. verboseOut "Finding kernel version...found as '${kernel}'"
  1200. fi
  1201. }
  1202. # Kernel Version Detection - End
  1203. # Uptime Detection - Begin
  1204. detectuptime () {
  1205. unset uptime
  1206. if [[ "${distro}" == "Mac OS X" || "${distro}" == "FreeBSD" || "${distro}" == "DragonFlyBSD" ]]; then
  1207. boot=$(sysctl -n kern.boottime | cut -d "=" -f 2 | cut -d "," -f 1)
  1208. now=$(date +%s)
  1209. uptime=$((now-boot))
  1210. elif [[ "${distro}" == "OpenBSD" ]]; then
  1211. boot=$(sysctl -n kern.boottime)
  1212. now=$(date +%s)
  1213. uptime=$((now - boot))
  1214. elif [[ "${distro}" == "Haiku" ]]; then
  1215. uptime=$(uptime | awk -F', up ' '{gsub(/ *hours?,/, "h"); gsub(/ *minutes?/, "m"); print $2;}')
  1216. else
  1217. if [[ -f /proc/uptime ]]; then
  1218. uptime=$(</proc/uptime)
  1219. uptime=${uptime//.*}
  1220. fi
  1221. fi
  1222. if [[ -n ${uptime} ]] && [[ "${distro}" != "Haiku" ]]; then
  1223. mins=$((uptime/60%60))
  1224. hours=$((uptime/3600%24))
  1225. days=$((uptime/86400))
  1226. uptime="${mins}m"
  1227. if [ "${hours}" -ne "0" ]; then
  1228. uptime="${hours}h ${uptime}"
  1229. fi
  1230. if [ "${days}" -ne "0" ]; then
  1231. uptime="${days}d ${uptime}"
  1232. fi
  1233. else
  1234. if [[ "$distro" =~ "NetBSD" ]]; then
  1235. uptime=$(awk -F. '{print $1}' /proc/uptime)
  1236. elif [[ "$distro" =~ "BSD" ]]; then
  1237. uptime=$(uptime | awk '{$1=$2=$(NF-6)=$(NF-5)=$(NF-4)=$(NF-3)=$(NF-2)=$(NF-1)=$NF=""; sub(" days","d");sub(",","");sub(":","h ");sub(",","m"); print}')
  1238. fi
  1239. fi
  1240. verboseOut "Finding current uptime...found as '${uptime}'"
  1241. }
  1242. # Uptime Detection - End
  1243. # Package Count - Begin
  1244. detectpkgs () {
  1245. pkgs="Unknown"
  1246. local offset=0
  1247. case "${distro}" in
  1248. 'Alpine Linux') pkgs=$(apk info | wc -l) ;;
  1249. 'Arch Linux'|'ArcoLinux'|'Parabola GNU/Linux-libre'|'Hyperbola GNU/Linux-libre'|'Chakra'|'Manjaro'|'Antergos'| \
  1250. 'Netrunner'|'KaOS'|'Obarun'|'SwagArch'|'OBRevenge'|'Artix Linux')
  1251. pkgs=$(pacman -Qq | wc -l) ;;
  1252. 'Chrome OS')
  1253. if [ -d "/usr/local/lib/crew/packages" ]; then
  1254. pkgs=$(ls -l /usr/local/etc/crew/meta/*.filelist | wc -l)
  1255. else
  1256. pkgs=$(ls -d /var/db/pkg/*/* | wc -l)
  1257. fi
  1258. ;;
  1259. 'Dragora')
  1260. pkgs=$(ls -1 /var/db/pkg | wc -l) ;;
  1261. 'Frugalware')
  1262. pkgs=$(pacman-g2 -Q | wc -l) ;;
  1263. 'Debian'|'Ubuntu'|'Mint'|'Fuduntu'|'KDE neon'|'Devuan'|'OS Elbrus'|'Raspbian'|'LMDE'|'CrunchBang'|'Peppermint'| \
  1264. 'LinuxDeepin'|'Deepin'|'Kali Linux'|'Trisquel'|'elementary OS'|'gNewSense'|'BunsenLabs'|'SteamOS'|'Parrot Security'| \
  1265. 'GrombyangOS'|'DesaOS'|'Zorin OS'|'Proxmox VE'|'PureOS')
  1266. pkgs=$(dpkg -l | grep -c '^i') ;;
  1267. 'Slackware')
  1268. pkgs=$(ls -1 /var/log/packages | wc -l) ;;
  1269. 'Gentoo'|'Sabayon'|'Funtoo'|'Kogaion')
  1270. pkgs=$(ls -d /var/db/pkg/*/* | wc -l) ;;
  1271. 'NixOS')
  1272. pkgs=$(ls -d -1 /nix/store/*/ | wc -l) ;;
  1273. 'GuixSD')
  1274. pkgs=$(ls -d -1 /gnu/store/*/ | wc -l) ;;
  1275. 'ALDOS'|'Fedora'|'Fux'|'Korora'|'BLAG'|'Chapeau'|'openSUSE'|'SUSE Linux Enterprise'|'Red Hat Enterprise Linux'| \
  1276. 'ROSA'|'Oracle Linux'|'Scientific Linux'|'EuroLinux'|'CentOS'|'Mandriva'|'Mandrake'|'Mageia'|'Mer'|'SailfishOS'|'PCLinuxOS'|'Viperr'|'Qubes OS'| \
  1277. 'Red Star OS'|'blackPanther OS'|'Amazon Linux')
  1278. pkgs=$(rpm -qa | wc -l) ;;
  1279. 'Void Linux')
  1280. pkgs=$(xbps-query -l | wc -l) ;;
  1281. 'Evolve OS')
  1282. pkgs=$(pisi list-installed | wc -l) ;;
  1283. 'Solus')
  1284. pkgs=$(eopkg list-installed | wc -l) ;;
  1285. 'Source Mage GNU/Linux')
  1286. pkgs=$(gaze installed | wc -l) ;;
  1287. 'CRUX'|'januslinux')
  1288. pkgs=$(pkginfo -i | wc -l) ;;
  1289. 'Lunar Linux')
  1290. pkgs=$(lvu installed | wc -l) ;;
  1291. 'TinyCore')
  1292. pkgs=$(tce-status -i | wc -l) ;;
  1293. 'Exherbo')
  1294. xpkgs=$(ls -d -1 /var/db/paludis/repositories/cross-installed/*/data/* | wc -l)
  1295. pkgs=$(ls -d -1 /var/db/paludis/repositories/installed/data/* | wc -l)
  1296. pkgs=$((pkgs + xpkgs))
  1297. ;;
  1298. 'Mac OS X')
  1299. offset=1
  1300. if [ -d "/usr/local/bin" ]; then
  1301. loc_pkgs=$(ls -l /usr/local/bin/ | grep -cv "\(../Cellar/\|brew\)")
  1302. pkgs=$((loc_pkgs - offset));
  1303. fi
  1304. if type -p port >/dev/null 2>&1; then
  1305. port_pkgs=$(port installed 2>/dev/null | wc -l)
  1306. pkgs=$((pkgs + (port_pkgs - offset)))
  1307. fi
  1308. if type -p brew >/dev/null 2>&1; then
  1309. brew_pkgs=$(brew list -1 2>/dev/null | wc -l)
  1310. pkgs=$((pkgs + brew_pkgs))
  1311. fi
  1312. if type -p pkgin >/dev/null 2>&1; then
  1313. pkgsrc_pkgs=$(pkgin list 2>/dev/null | wc -l)
  1314. pkgs=$((pkgs + pkgsrc_pkgs))
  1315. fi
  1316. ;;
  1317. 'DragonFlyBSD')
  1318. if TMPDIR=/dev/null ASSUME_ALWAYS_YES=1 PACKAGESITE=file:///nonexistent pkg info pkg >/dev/null 2>&1; then
  1319. pkgs=$(pkg info | grep -c .)
  1320. else
  1321. pkgs=$(pkg_info | grep -c .)
  1322. fi
  1323. ;;
  1324. 'OpenBSD'|'NetBSD')
  1325. pkgs=$(pkg_info | grep -c .)
  1326. ;;
  1327. 'FreeBSD')
  1328. pkgs=$(pkg info | grep -c .)
  1329. ;;
  1330. 'Cygwin')
  1331. offset=2
  1332. pkgs=$(($(cygcheck -cd | wc -l) - offset))
  1333. if [ -d "/cygdrive/c/ProgramData/chocolatey/lib" ]; then
  1334. chocopkgs=$(ls -1 /cygdrive/c/ProgramData/chocolatey/lib | wc -l)
  1335. pkgs=$((pkgs + chocopkgs))
  1336. fi
  1337. ;;
  1338. 'Msys')
  1339. pkgs=$(pacman -Qq | wc -l)
  1340. if [ -d "/c/ProgramData/chocolatey/lib" ]; then
  1341. chocopkgs=$(ls -1 /c/ProgramData/chocolatey/lib | wc -l)
  1342. pkgs=$((pkgs + chocopkgs))
  1343. fi
  1344. ;;
  1345. 'Haiku')
  1346. haikualpharelease="no"
  1347. if [ -d /boot/system/package-links ]; then
  1348. pkgs=$(ls /boot/system/package-links | wc -l)
  1349. elif type -p installoptionalpackage >/dev/null 2>&1; then
  1350. haikualpharelease="yes"
  1351. pkgs=$(installoptionalpackage -l | sed -n '3p' | wc -w)
  1352. fi
  1353. ;;
  1354. esac
  1355. if [[ "${OSTYPE}" =~ "linux" && -z "${wsl}" ]] && snap list >/dev/null 2>&1; then
  1356. offset=1
  1357. snappkgs=$(($(snap list 2>/dev/null | wc -l) - offset))
  1358. if [ $snappkgs -lt 0 ]; then
  1359. snappkgs=0
  1360. fi
  1361. pkgs=$((pkgs + snappkgs))
  1362. fi
  1363. verboseOut "Finding current package count...found as '$pkgs'"
  1364. }
  1365. # CPU Detection - Begin
  1366. detectcpu () {
  1367. local REGEXP="-r"
  1368. if [ "$distro" == "Mac OS X" ]; then
  1369. cpu=$(machine)
  1370. if [[ $cpu == "ppc750" ]]; then
  1371. cpu="IBM PowerPC G3"
  1372. elif [[ $cpu == "ppc7400" || $cpu == "ppc7450" ]]; then
  1373. cpu="IBM PowerPC G4"
  1374. elif [[ $cpu == "ppc970" ]]; then
  1375. cpu="IBM PowerPC G5"
  1376. else
  1377. cpu=$(sysctl -n machdep.cpu.brand_string)
  1378. fi
  1379. REGEXP="-E"
  1380. elif [ "$OSTYPE" == "gnu" ]; then
  1381. # no /proc/cpuinfo on GNU/Hurd
  1382. if uname -m | grep -q 'i.86'; then
  1383. cpu="Unknown x86"
  1384. else
  1385. cpu="Unknown"
  1386. fi
  1387. elif [ "$distro" == "FreeBSD" ]; then
  1388. cpu=$(dmesg | awk -F': ' '/^CPU/ {gsub(/ +/," "); gsub(/\([^\(\)]*\)|CPU /,"", $2); print $2; exit}')
  1389. elif [ "$distro" == "DragonFlyBSD" ]; then
  1390. cpu=$(sysctl -n hw.model)
  1391. elif [ "$distro" == "OpenBSD" ]; then
  1392. cpu=$(sysctl -n hw.model | sed 's/@.*//')
  1393. elif [ "$distro" == "Haiku" ]; then
  1394. cpu=$(sysinfo -cpu | awk -F': ' '/^CPU #0/ {gsub(/ +/," "); gsub(/\([^\(\)]*\)|CPU /,"", $2); print $2; exit}')
  1395. else
  1396. cpu=$(awk -F':' '/^model name/ {split($2, A, " @"); print A[1]; exit}' /proc/cpuinfo)
  1397. cpun=$(grep -c '^processor' /proc/cpuinfo)
  1398. if [ -z "$cpu" ]; then
  1399. cpu=$(awk 'BEGIN{FS=":"} /Hardware/ { print $2; exit }' /proc/cpuinfo)
  1400. fi
  1401. if [ -z "$cpu" ]; then
  1402. cpu=$(awk 'BEGIN{FS=":"} /^cpu/ { gsub(/ +/," ",$2); print $2; exit}' /proc/cpuinfo | sed 's/, altivec supported//;s/^ //')
  1403. if [[ $cpu =~ ^(PPC)*9.+ ]]; then
  1404. model="IBM PowerPC G5 "
  1405. elif [[ $cpu =~ 740/750 ]]; then
  1406. model="IBM PowerPC G3 "
  1407. elif [[ $cpu =~ ^74.+ ]]; then
  1408. model="Motorola PowerPC G4 "
  1409. elif [[ $cpu =~ ^POWER.* ]]; then
  1410. model="IBM POWER "
  1411. elif grep -q -i 'BCM2708' /proc/cpuinfo ; then
  1412. model="Broadcom BCM2835 ARM1176JZF-S"
  1413. else
  1414. arch=$(uname -m)
  1415. if [[ "$arch" == "s390x" || "$arch" == "s390" ]]; then
  1416. cpu=""
  1417. args=$(grep 'machine' /proc/cpuinfo | sed 's/^.*://g; s/ //g; s/,/\n/g' | grep '^machine=.*')
  1418. eval "$args"
  1419. case "$machine" in
  1420. # information taken from https://github.com/SUSE/s390-tools/blob/master/cputype
  1421. 2064) model="IBM eServer zSeries 900" ;;
  1422. 2066) model="IBM eServer zSeries 800" ;;
  1423. 2084) model="IBM eServer zSeries 990" ;;
  1424. 2086) model="IBM eServer zSeries 890" ;;
  1425. 2094) model="IBM System z9 Enterprise Class" ;;
  1426. 2096) model="IBM System z9 Business Class" ;;
  1427. 2097) model="IBM System z10 Enterprise Class" ;;
  1428. 2098) model="IBM System z10 Business Class" ;;
  1429. 2817) model="IBM zEnterprise 196" ;;
  1430. 2818) model="IBM zEnterprise 114" ;;
  1431. 2827) model="IBM zEnterprise EC12" ;;
  1432. 2828) model="IBM zEnterprise BC12" ;;
  1433. 2964) model="IBM z13" ;;
  1434. *) model="IBM S/390 machine type $machine" ;;
  1435. esac
  1436. else
  1437. model="Unknown"
  1438. fi
  1439. fi
  1440. cpu="${model}${cpu}"
  1441. fi
  1442. loc="/sys/devices/system/cpu/cpu0/cpufreq"
  1443. bl="${loc}/bios_limit"
  1444. smf="${loc}/scaling_max_freq"
  1445. if [ -f "$bl" ] && [ -r "$bl" ]; then
  1446. cpu_mhz=$(awk '{print $1/1000}' "$bl")
  1447. elif [ -f "$smf" ] && [ -r "$smf" ]; then
  1448. cpu_mhz=$(awk '{print $1/1000}' "$smf")
  1449. else
  1450. cpu_mhz=$(awk -F':' '/cpu MHz/{ print int($2+.5) }' /proc/cpuinfo | head -n 1)
  1451. fi
  1452. if [ -n "$cpu_mhz" ]; then
  1453. if [ "${cpu_mhz%.*}" -ge 1000 ]; then
  1454. cpu_ghz=$(awk '{print $1/1000}' <<< "${cpu_mhz}")
  1455. cpufreq="${cpu_ghz}GHz"
  1456. else
  1457. cpufreq="${cpu_mhz}MHz"
  1458. fi
  1459. fi
  1460. fi
  1461. if [[ "${cpun}" -gt "1" ]]; then
  1462. cpun="${cpun}x "
  1463. else
  1464. cpun=""
  1465. fi
  1466. if [ -z "$cpufreq" ]; then
  1467. cpu="${cpun}${cpu}"
  1468. else
  1469. cpu="$cpu @ ${cpun}${cpufreq}"
  1470. fi
  1471. if [ -d '/sys/class/hwmon/' ]; then
  1472. for dir in /sys/class/hwmon/* ; do
  1473. hwmonfile=""
  1474. [ -e "$dir/name" ] && hwmonfile=$dir/name
  1475. [ -e "$dir/device/name" ] && hwmonfile=$dir/device/name
  1476. [ -n "$hwmonfile" ] && if grep -q 'coretemp' "$hwmonfile"; then
  1477. thermal="$dir/temp1_input"
  1478. break
  1479. fi
  1480. done
  1481. if [ -e "$thermal" ] && [ "${thermal:+isSetToNonNull}" = 'isSetToNonNull' ]; then
  1482. temperature=$(bc <<< "scale=1; $(cat "$thermal")/1000")
  1483. fi
  1484. fi
  1485. if [ -n "$temperature" ]; then
  1486. cpu="$cpu [${temperature}°C]"
  1487. fi
  1488. cpu=$(sed $REGEXP 's/\([tT][mM]\)|\([Rr]\)|[pP]rocessor|CPU//g' <<< "${cpu}" | xargs)
  1489. verboseOut "Finding current CPU...found as '$cpu'"
  1490. }
  1491. # CPU Detection - End
  1492. # GPU Detection - Begin (EXPERIMENTAL!)
  1493. detectgpu () {
  1494. if [[ "${distro}" == "FreeBSD" || "${distro}" == "DragonFlyBSD" ]]; then
  1495. nvisettexist=$(which nvidia-settings)
  1496. if [ -x "$nvisettexist" ]; then
  1497. gpu="$(nvidia-settings -t -q gpus | grep \( | sed 's/.*(\(.*\))/\1/')"
  1498. else
  1499. gpu_info=$(pciconf -lv 2> /dev/null | grep -B 4 VGA)
  1500. gpu_info=$(grep -E 'device.*=.*' <<< "${gpu_info}")
  1501. gpu="${gpu_info##*device*= }"
  1502. gpu="${gpu//\'}"
  1503. # gpu=$(sed 's/.*device.*= //' <<< "${gpu_info}" | sed "s/'//g")
  1504. fi
  1505. elif [[ "${distro}" == "OpenBSD" ]]; then
  1506. gpu=$(glxinfo 2> /dev/null | awk '/OpenGL renderer string/ { sub(/OpenGL renderer string: /,""); print }')
  1507. elif [[ "${distro}" == "Mac OS X" ]]; then
  1508. gpu=$(system_profiler SPDisplaysDataType | awk -F': ' '/^\ *Chipset Model:/ {print $2}' | awk '{ printf "%s / ", $0 }' | sed -e 's/\/ $//g')
  1509. elif [[ "${distro}" == "Cygwin" || "${distro}" == "Msys" ]]; then
  1510. gpu=$(wmic path Win32_VideoController get caption | sed -n '2p')
  1511. elif [[ "${distro}" == "Haiku" ]]; then
  1512. gpu="$(listdev | grep -A2 -e 'device Display controller' | awk -F': ' '/^ +device/ {print $2}')"
  1513. else
  1514. if [[ -n "$(PATH="/opt/bin:$PATH" type -p nvidia-smi)" ]]; then
  1515. gpu=$($(PATH="/opt/bin:$PATH" type -p nvidia-smi | cut -f1) -q | awk -F':' '/Product Name/ {gsub(/: /,":"); print $2}' | sed ':a;N;$!ba;s/\n/, /g')
  1516. elif [[ -n "$(PATH="/usr/sbin:$PATH" type -p glxinfo)" && -z "${gpu}" ]]; then
  1517. gpu_info=$($(PATH="/usr/sbin:$PATH" type -p glxinfo | cut -f1) 2>/dev/null)
  1518. gpu=$(grep "OpenGL renderer string" <<< "${gpu_info}" | cut -d ':' -f2 | sed -n -e '1h;2,$H;${g;s/\n/, /g' -e 'p' -e '}')
  1519. gpu="${gpu:1}"
  1520. gpu_info=$(grep "OpenGL vendor string" <<< "${gpu_info}")
  1521. elif [[ -n "$(PATH="/usr/sbin:$PATH" type -p lspci)" && -z "$gpu" ]]; then
  1522. gpu_info=$($(PATH="/usr/bin:$PATH" type -p lspci | cut -f1) 2> /dev/null | grep VGA)
  1523. gpu=$(grep -oE '\[.*\]' <<< "${gpu_info}" | sed 's/\[//;s/\]//' | sed -n -e '1h;2,$H;${g;s/\n/, /g' -e 'p' -e '}')
  1524. fi
  1525. fi
  1526. if [ -n "$gpu" ];then
  1527. if grep -q -i 'nvidia' <<< "${gpu_info}"; then
  1528. gpu_info="NVidia "
  1529. elif grep -q -i 'intel' <<< "${gpu_info}"; then
  1530. gpu_info="Intel "
  1531. elif grep -q -i 'amd' <<< "${gpu_info}"; then
  1532. gpu_info="AMD "
  1533. elif grep -q -i 'ati' <<< "${gpu_info}" || grep -q -i 'radeon' <<< "${gpu_info}"; then
  1534. gpu_info="ATI "
  1535. else
  1536. gpu_info=$(cut -d ':' -f2 <<< "${gpu_info}")
  1537. gpu_info="${gpu_info:1} "
  1538. fi
  1539. gpu="${gpu}"
  1540. else
  1541. gpu="Not Found"
  1542. fi
  1543. verboseOut "Finding current GPU...found as '$gpu'"
  1544. }
  1545. # GPU Detection - End
  1546. # Detect Intel GPU #works in dash
  1547. # Run it only on Intel Processors if GPU is unknown
  1548. DetectIntelGPU() {
  1549. if [ -r /proc/fb ]; then
  1550. gpu=$(awk 'BEGIN {ORS = " &"} {$1="";print}' /proc/fb | sed -r s/'^\s+|\s*&$'//g)
  1551. fi
  1552. case $gpu in
  1553. *mfb)
  1554. gpu=$(lspci | grep -i vga | awk -F ": " '{print $2}')
  1555. ;;
  1556. *intel*)
  1557. gpu="intel"
  1558. ;;
  1559. *)
  1560. gpu="Not Found"
  1561. ;;
  1562. esac
  1563. if [[ "$gpu" = "intel" ]]; then
  1564. #Detect CPU
  1565. local CPU=$(uname -p | awk '{print $3}')
  1566. CPU=${CPU#*'-'}; #Detect CPU number
  1567. #Detect Intel GPU
  1568. case $CPU in
  1569. [3-6][3-9][0-5]|[3-6][3-9][0-5][K-Y])
  1570. gpu='Intel HD Graphics'
  1571. ;; #1st
  1572. 2[1-5][0-3][0-2]*|2390T|2600S)
  1573. gpu='Intel HD Graphics 2000'
  1574. ;; #2nd
  1575. 2[1-5][1-7][0-8]*|2105|2500K)
  1576. gpu='Intel HD Graphics 3000'
  1577. ;; #2nd
  1578. 32[1-5]0*|3[4-5][5-7]0*|33[3-4]0*)
  1579. gpu='Intel HD Graphics 2500'
  1580. ;; #3rd
  1581. 3570K|3427U)
  1582. gpu='Intel HD Graphics 4000'
  1583. ;; #3rd
  1584. 4[3-7][0-9][0-5]*)
  1585. gpu='Intel HD Graphics 4600'
  1586. ;; #4th Haswell
  1587. 5[5-6]75[C-R]|5350H)
  1588. gpu='Intel Iris Pro Graphics 6200'
  1589. ;; #5th Broadwell
  1590. #6th Skylake
  1591. #7th Kabylake
  1592. #8th Cannonlake
  1593. *)
  1594. gpu='Unknown'
  1595. ;; #Unknown GPU model
  1596. esac
  1597. fi
  1598. }
  1599. # Disk Usage Detection - Begin
  1600. detectdisk () {
  1601. diskusage="Unknown"
  1602. if type -p df >/dev/null 2>&1; then
  1603. if [[ "${distro}" =~ (Free|Net|Open|DragonFly)BSD ]]; then
  1604. totaldisk=$(df -h -c 2>/dev/null | tail -1)
  1605. elif [[ "${distro}" == "Mac OS X" ]]; then
  1606. totaldisk=$(df -H / 2>/dev/null | tail -1)
  1607. else
  1608. totaldisk=$(df -h -x aufs -x tmpfs -x overlay --total 2>/dev/null | tail -1)
  1609. fi
  1610. disktotal=$(awk '{print $2}' <<< "${totaldisk}")
  1611. diskused=$(awk '{print $3}' <<< "${totaldisk}")
  1612. diskusedper=$(awk '{print $5}' <<< "${totaldisk}")
  1613. diskusage="${diskused} / ${disktotal} (${diskusedper})"
  1614. diskusage_verbose=$(sed 's/%/%%/' <<< "$diskusage")
  1615. fi
  1616. verboseOut "Finding current disk usage...found as '$diskusage_verbose'"
  1617. }
  1618. # Disk Usage Detection - End
  1619. # Memory Detection - Begin
  1620. detectmem () {
  1621. if [ "$distro" == "Mac OS X" ]; then
  1622. totalmem=$(echo "$(sysctl -n hw.memsize)" / 1024^2 | bc)
  1623. wiredmem=$(vm_stat | grep wired | awk '{ print $4 }' | sed 's/\.//')
  1624. activemem=$(vm_stat | grep ' active' | awk '{ print $3 }' | sed 's/\.//')
  1625. compressedmem=$(vm_stat | grep occupied | awk '{ print $5 }' | sed 's/\.//')
  1626. if [[ ! -z "$compressedmem | tr -d" ]]; then # FIXME: is this line correct?
  1627. compressedmem=0
  1628. fi
  1629. usedmem=$(((wiredmem + activemem + compressedmem) * 4 / 1024))
  1630. elif [[ "${distro}" == "Cygwin" || "${distro}" == "Msys" ]]; then
  1631. total_mem=$(awk '/MemTotal/ { print $2 }' /proc/meminfo)
  1632. totalmem=$((total_mem / 1024))
  1633. free_mem=$(awk '/MemFree/ { print $2 }' /proc/meminfo)
  1634. used_mem=$((total_mem - free_mem))
  1635. usedmem=$((used_mem / 1024))
  1636. elif [[ "$distro" == "FreeBSD" || "$distro" == "DragonFlyBSD" ]]; then
  1637. phys_mem=$(sysctl -n hw.physmem)
  1638. size_mem=$phys_mem
  1639. size_chip=1
  1640. guess_chip=$(echo "$size_mem / 8 - 1" | bc)
  1641. while [ "$guess_chip" != 0 ]; do
  1642. guess_chip=$(echo "$guess_chip / 2" | bc)
  1643. size_chip=$(echo "$size_chip * 2" | bc)
  1644. done
  1645. round_mem=$(echo "( $size_mem / $size_chip + 1 ) * $size_chip " | bc)
  1646. totalmem=$((round_mem / 1024 / 1024))
  1647. pagesize=$(sysctl -n hw.pagesize)
  1648. inactive_count=$(sysctl -n vm.stats.vm.v_inactive_count)
  1649. inactive_mem=$((inactive_count * pagesize))
  1650. cache_count=$(sysctl -n vm.stats.vm.v_cache_count)
  1651. cache_mem=$((cache_count * pagesize))
  1652. free_count=$(sysctl -n vm.stats.vm.v_free_count)
  1653. free_mem=$((free_count * pagesize))
  1654. avail_mem=$((inactive_mem + cache_mem + free_mem))
  1655. used_mem=$((round_mem - avail_mem))
  1656. usedmem=$((used_mem / 1024 / 1024))
  1657. elif [ "$distro" == "OpenBSD" ]; then
  1658. totalmem=$(($(sysctl -n hw.physmem) / 1024 / 1024))
  1659. usedmem=$(vmstat | awk '!/[a-z]/{gsub("M",""); print $3}')
  1660. elif [ "$distro" == "NetBSD" ]; then
  1661. phys_mem=$(awk '/MemTotal/ { print $2 }' /proc/meminfo)
  1662. totalmem=$((phys_mem / 1024))
  1663. if grep -q 'Cached' /proc/meminfo; then
  1664. cache=$(awk '/Cached/ {print $2}' /proc/meminfo)
  1665. usedmem=$((cache / 1024))
  1666. else
  1667. free_mem=$(awk '/MemFree/ { print $2 }' /proc/meminfo)
  1668. used_mem=$((phys_mem - free_mem))
  1669. usedmem=$((used_mem / 1024))
  1670. fi
  1671. elif [ "$distro" == "Haiku" ]; then
  1672. totalmem=$(sysinfo -mem | awk 'NR == 1 {gsub(/[\(\)\/]/, ""); printf("%d", $6/1024**2)}')
  1673. usedmem=$(sysinfo -mem | awk 'NR == 1 {gsub(/[\(\)\/]/, ""); printf("%d", $5/1024**2)}')
  1674. else
  1675. # MemUsed = Memtotal + Shmem - MemFree - Buffers - Cached - SReclaimable
  1676. # Source: https://github.com/dylanaraps/neofetch/pull/391/files#diff-e863270127ca6116fd30e708cdc582fc
  1677. #mem_info=$(</proc/meminfo)
  1678. #mem_info=$(echo $(echo $(mem_info=${mem_info// /}; echo ${mem_info//kB/})))
  1679. #for m in $mem_info; do
  1680. # case ${m//:*} in
  1681. # "MemTotal") usedmem=$((usedmem+=${m//*:})); totalmem=${m//*:} ;;
  1682. # "Shmem") usedmem=$((usedmem+=${m//*:})) ;;
  1683. # "MemFree"|"Buffers"|"Cached"|"SReclaimable") usedmem=$((usedmem-=${m//*:})) ;;
  1684. # esac
  1685. #done
  1686. #usedmem=$((usedmem / 1024))
  1687. #totalmem=$((totalmem / 1024))
  1688. mem=$(free -b | awk 'NR==2{print $2"-"$7}')
  1689. usedmem=$((mem / 1024 / 1024))
  1690. totalmem=$((${mem//-*} / 1024 / 1024))
  1691. fi
  1692. mem="${usedmem}MiB / ${totalmem}MiB"
  1693. verboseOut "Finding current RAM usage...found as '$mem'"
  1694. }
  1695. # Memory Detection - End
  1696. # Shell Detection - Begin
  1697. detectshell_ver () {
  1698. local version_data='' version='' get_version='--version'
  1699. case $1 in
  1700. # ksh sends version to stderr. Weeeeeeird.
  1701. ksh)
  1702. version_data="$( $1 $get_version 2>&1 )"
  1703. ;;
  1704. *)
  1705. version_data="$( $1 $get_version 2>/dev/null )"
  1706. ;;
  1707. esac
  1708. if [[ -n $version_data ]];then
  1709. version=$(awk '
  1710. BEGIN {
  1711. IGNORECASE=1
  1712. }
  1713. /'$2'/ {
  1714. gsub(/(,|v|V)/, "",$'$3')
  1715. if ($2 ~ /[Bb][Aa][Ss][Hh]/) {
  1716. gsub(/\(.*|-release|-version\)/,"",$4)
  1717. }
  1718. print $'$3'
  1719. exit # quit after first match prints
  1720. }' <<< "$version_data")
  1721. fi
  1722. echo "$version"
  1723. }
  1724. detectshell () {
  1725. if [[ ! "${shell_type}" ]]; then
  1726. if [[ "${distro}" == "Cygwin" || "${distro}" == "Msys" || "${distro}" == "Haiku" || "${distro}" == "Alpine Linux" ||
  1727. "${distro}" == "Mac OS X" || "${distro}" == "TinyCore" || "${distro}" == "Raspbian" || "${OSTYPE}" == "gnu" ]]; then
  1728. shell_type=$(echo "$SHELL" | awk -F'/' '{print $NF}')
  1729. elif readlink -f "$SHELL" 2>&1 | grep -q -i 'busybox'; then
  1730. shell_type="BusyBox"
  1731. else
  1732. if [[ "${OSTYPE}" =~ "linux" ]]; then
  1733. shell_type=$(tr '\0' '\n' </proc/$PPID/cmdline | head -1)
  1734. elif [[ "${distro}" =~ "BSD" ]]; then
  1735. shell_type=$(ps -p $PPID -o command | tail -1)
  1736. else
  1737. shell_type=$(ps -p "$(ps -p $PPID | awk '$1 !~ /PID/ {print $1}')" | awk 'FNR>1 {print $1}')
  1738. fi
  1739. shell_type=${shell_type/-}
  1740. shell_type=${shell_type//*\/}
  1741. fi
  1742. fi
  1743. case $shell_type in
  1744. bash)
  1745. shell_version_data=$( detectshell_ver "$shell_type" "^GNU.bash,.version" "4" )
  1746. ;;
  1747. BusyBox)
  1748. shell_version_data=$( busybox | head -n1 | cut -d ' ' -f2 )
  1749. ;;
  1750. csh)
  1751. shell_version_data=$( detectshell_ver "$shell_type" "$shell_type" "3" )
  1752. ;;
  1753. dash)
  1754. shell_version_data=$( detectshell_ver "$shell_type" "$shell_type" "3" )
  1755. ;;
  1756. ksh)
  1757. shell_version_data=$( detectshell_ver "$shell_type" "version" "5" )
  1758. ;;
  1759. tcsh)
  1760. shell_version_data=$( detectshell_ver "$shell_type" "^tcsh" "2" )
  1761. ;;
  1762. zsh)
  1763. shell_version_data=$( detectshell_ver "$shell_type" "^zsh" "2" )
  1764. ;;
  1765. fish)
  1766. shell_version_data=$( fish --version | awk '{print $3}' )
  1767. ;;
  1768. esac
  1769. if [[ -n $shell_version_data ]];then
  1770. shell_type="$shell_type $shell_version_data"
  1771. fi
  1772. myShell=${shell_type}
  1773. verboseOut "Finding current shell...found as '$myShell'"
  1774. }
  1775. # Shell Detection - End
  1776. # Resolution Detection - Begin
  1777. detectres () {
  1778. xResolution="No X Server"
  1779. if [[ ${distro} == "Mac OS X" ]]; then
  1780. xResolution=$(system_profiler SPDisplaysDataType | awk '/Resolution:/ {print $2"x"$4" "}')
  1781. if [[ "$(echo "$xResolution" | wc -l)" -ge 1 ]]; then
  1782. xResolution=$(echo "$xResolution" | tr "\\n" "," | sed 's/\(.*\),/\1/')
  1783. fi
  1784. elif [[ "${distro}" == "Cygwin" || "${distro}" == "Msys" ]]; then
  1785. xResolution=$(wmic path Win32_VideoController get CurrentHorizontalResolution,CurrentVerticalResolution | awk 'NR==2 {print $1"x"$2}')
  1786. elif [[ "${distro}" == "Haiku" ]]; then
  1787. xResolution="$(screenmode | grep Resolution | awk '{gsub(/,/,""); print $2"x"$3}')"
  1788. elif [[ -n ${DISPLAY} ]]; then
  1789. if type -p xdpyinfo >/dev/null 2>&1; then
  1790. xResolution=$(xdpyinfo | awk '/^ +dimensions/ {print $2}')
  1791. fi
  1792. fi
  1793. verboseOut "Finding current resolution(s)...found as '$xResolution'"
  1794. }
  1795. # Resolution Detection - End
  1796. # DE Detection - Begin
  1797. detectde () {
  1798. DE="Not Present"
  1799. if [[ "${distro}" == "Mac OS X" ]]; then
  1800. if ps -U "${USER}" | grep -q -i 'finder'; then
  1801. DE="Aqua"
  1802. fi
  1803. elif [[ "${distro}" == "Cygwin" || "${distro}" == "Msys" ]]; then
  1804. # https://msdn.microsoft.com/en-us/library/ms724832%28VS.85%29.aspx
  1805. if wmic os get version | grep -q '^\(6\.[01]\)'; then
  1806. DE="Aero"
  1807. elif wmic os get version | grep -q '^\(6\.[23]\|10\)'; then
  1808. DE="Modern UI/Metro"
  1809. else
  1810. DE="Luna"
  1811. fi
  1812. elif [[ -n ${DISPLAY} ]]; then
  1813. if type -p xprop >/dev/null 2>&1;then
  1814. xprop_root="$(xprop -root 2>/dev/null)"
  1815. if [[ -n ${xprop_root} ]]; then
  1816. DE=$(echo "${xprop_root}" | awk 'BEGIN {
  1817. de = "Not Present"
  1818. }
  1819. {
  1820. if ($1 ~/^KDE_SESSION_VERSION/) {
  1821. de = "KDE"$NF
  1822. exit
  1823. }
  1824. else if ($1 ~ /^_MUFFIN/) {
  1825. de = "Cinnamon"
  1826. exit
  1827. }
  1828. else if ($1 ~ /^TDE_FULL_SESSION/) {
  1829. de = "Trinity"
  1830. exit
  1831. }
  1832. else if ($0 ~ /"xfce4"/) {
  1833. de = "Xfce4"
  1834. exit
  1835. }
  1836. else if ($0 ~ /"xfce5"/) {
  1837. de = "Xfce5"
  1838. exit
  1839. }
  1840. } END {
  1841. print de
  1842. }')
  1843. fi
  1844. fi
  1845. if [[ ${DE} == "Not Present" ]]; then
  1846. # Let's use xdg-open code for GNOME/Enlightment/KDE/LXDE/MATE/Xfce detection
  1847. # http://bazaar.launchpad.net/~vcs-imports/xdg-utils/master/view/head:/scripts/xdg-utils-common.in#L251
  1848. if [ -n "${XDG_CURRENT_DESKTOP}" ]; then
  1849. case "${XDG_CURRENT_DESKTOP,,}" in
  1850. 'enlightenment')
  1851. DE="Enlightenment"
  1852. ;;
  1853. 'gnome')
  1854. DE="GNOME"
  1855. ;;
  1856. 'kde')
  1857. DE="KDE"
  1858. ;;
  1859. 'lumina')
  1860. DE="Lumina"
  1861. ;;
  1862. 'lxde')
  1863. DE="LXDE"
  1864. ;;
  1865. 'mate')
  1866. DE="MATE"
  1867. ;;
  1868. 'xfce')
  1869. DE="Xfce"
  1870. ;;
  1871. 'x-cinnamon')
  1872. DE="Cinnamon"
  1873. ;;
  1874. 'unity')
  1875. DE="Unity"
  1876. ;;
  1877. 'lxqt')
  1878. DE="LXQt"
  1879. ;;
  1880. esac
  1881. fi
  1882. if [ -n "$DE" ]; then
  1883. # classic fallbacks
  1884. if [ -n "$KDE_FULL_SESSION" ]; then
  1885. DE="KDE"
  1886. elif [ -n "$TDE_FULL_SESSION" ]; then
  1887. DE="Trinity"
  1888. elif [ -n "$GNOME_DESKTOP_SESSION_ID" ]; then
  1889. DE="GNOME"
  1890. elif [ -n "$MATE_DESKTOP_SESSION_ID" ]; then
  1891. DE="MATE"
  1892. elif dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus \
  1893. org.freedesktop.DBus.GetNameOwner string:org.gnome.SessionManager >/dev/null 2>&1 ; then
  1894. DE="GNOME"
  1895. elif xprop -root _DT_SAVE_MODE 2> /dev/null | grep -q -i ' = \"xfce4\"$'; then
  1896. DE="Xfce"
  1897. elif xprop -root 2> /dev/null | grep -q -i '^xfce_desktop_window'; then
  1898. DE="Xfce"
  1899. elif echo "$DESKTOP" | grep -q -i '^Enlightenment'; then
  1900. DE="Enlightenment"
  1901. fi
  1902. fi
  1903. if [ -n "$DE" ]; then
  1904. # fallback to checking $DESKTOP_SESSION
  1905. case "${DESKTOP_SESSION,,}" in
  1906. 'gnome'*)
  1907. DE="GNOME"
  1908. ;;
  1909. 'deepin')
  1910. DE="Deepin"
  1911. ;;
  1912. 'lumina')
  1913. DE="Lumina"
  1914. ;;
  1915. 'lxde'|'lubuntu')
  1916. DE="LXDE"
  1917. ;;
  1918. 'mate')
  1919. DE="MATE"
  1920. ;;
  1921. 'xfce'*)
  1922. DE="Xfce"
  1923. ;;
  1924. 'budgie-desktop')
  1925. DE="Budgie"
  1926. ;;
  1927. 'cinnamon')
  1928. DE="Cinnamon"
  1929. ;;
  1930. 'trinity')
  1931. DE="Trinity"
  1932. ;;
  1933. esac
  1934. fi
  1935. if [ -n "$DE" ]; then
  1936. # fallback to checking $GDMSESSION
  1937. case "${GDMSESSION,,}" in
  1938. 'lumina'*)
  1939. DE="Lumina"
  1940. ;;
  1941. 'mate')
  1942. DE="MATE"
  1943. ;;
  1944. esac
  1945. fi
  1946. if [[ ${DE} == "GNOME" ]]; then
  1947. if type -p xprop >/dev/null 2>&1; then
  1948. if xprop -name "unity-launcher" >/dev/null 2>&1; then
  1949. DE="Unity"
  1950. elif xprop -name "launcher" >/dev/null 2>&1 &&
  1951. xprop -name "panel" >/dev/null 2>&1; then
  1952. DE="Unity"
  1953. fi
  1954. fi
  1955. fi
  1956. if [[ ${DE} == "KDE" ]]; then
  1957. if [[ -n ${KDE_SESSION_VERSION} ]]; then
  1958. if [[ ${KDE_SESSION_VERSION} == '5' ]]; then
  1959. DE="KDE5"
  1960. elif [[ ${KDE_SESSION_VERSION} == '4' ]]; then
  1961. DE="KDE4"
  1962. fi
  1963. elif [[ ${KDE_FULL_SESSION} == 'true' ]]; then
  1964. DE="KDE"
  1965. DEver_data=$(kded --version 2>/dev/null)
  1966. DEver=$(grep -si '^KDE:' <<< "$DEver_data" | awk '{print $2}')
  1967. fi
  1968. fi
  1969. fi
  1970. if [[ ${DE} != "Not Present" ]]; then
  1971. if [[ ${DE} == "Cinnamon" ]]; then
  1972. if type -p >/dev/null 2>&1; then
  1973. DEver=$(cinnamon --version)
  1974. DE="${DE} ${DEver//* }"
  1975. fi
  1976. elif [[ ${DE} == "GNOME" ]]; then
  1977. if type -p gnome-control-center>/dev/null 2>&1; then
  1978. DEver=$(gnome-control-center --version 2> /dev/null)
  1979. DE="${DE} ${DEver//* }"
  1980. elif type -p gnome-session-properties >/dev/null 2>&1; then
  1981. DEver=$(gnome-session-properties --version 2> /dev/null)
  1982. DE="${DE} ${DEver//* }"
  1983. elif type -p gnome-session >/dev/null 2>&1; then
  1984. DEver=$(gnome-session --version 2> /dev/null)
  1985. DE="${DE} ${DEver//* }"
  1986. fi
  1987. elif [[ ${DE} == "KDE4" || ${DE} == "KDE5" ]]; then
  1988. if type -p kded${DE#KDE} >/dev/null 2>&1; then
  1989. DEver=$(kded${DE#KDE} --version)
  1990. if [[ $(( $(echo "$DEver" | wc -w) )) -eq 2 ]] && [[ "$(echo "$DEver" | cut -d ' ' -f1)" == "kded${DE#KDE}" ]]; then
  1991. DEver=$(echo "$DEver" | cut -d ' ' -f2)
  1992. DE="KDE ${DEver}"
  1993. else
  1994. for l in $(echo "${DEver// /_}"); do
  1995. if [[ ${l//:*} == "KDE_Development_Platform" ]]; then
  1996. DEver=${l//*:_}
  1997. DE="KDE ${DEver//_*}"
  1998. fi
  1999. done
  2000. fi
  2001. if pgrep -U ${UID} plasmashell >/dev/null 2>&1; then
  2002. DEver=$(plasmashell --version | cut -d ' ' -f2)
  2003. DE="$DE / Plasma $DEver"
  2004. fi
  2005. fi
  2006. elif [[ ${DE} == "Lumina" ]]; then
  2007. if type -p Lumina-DE.real >/dev/null 2>&1; then
  2008. lumina="$(type -p Lumina-DE.real)"
  2009. elif type -p Lumina-DE >/dev/null 2>&1; then
  2010. lumina="$(type -p Lumina-DE)"
  2011. fi
  2012. if [ -n "$lumina" ]; then
  2013. if grep -q '--version' "$lumina"; then
  2014. DEver=$("$lumina" --version 2>&1 | tr -d \")
  2015. DE="${DE} ${DEver}"
  2016. fi
  2017. fi
  2018. elif [[ ${DE} == "MATE" ]]; then
  2019. if type -p mate-session >/dev/null 2>&1; then
  2020. DEver=$(mate-session --version)
  2021. DE="${DE} ${DEver//* }"
  2022. fi
  2023. elif [[ ${DE} == "Unity" ]]; then
  2024. if type -p unity >/dev/null 2>&1; then
  2025. DEver=$(unity --version)
  2026. DE="${DE} ${DEver//* }"
  2027. fi
  2028. elif [[ ${DE} == "Deepin" ]]; then
  2029. if [[ -f /etc/deepin-version ]]; then
  2030. DEver="$(awk -F '=' '/Version/ {print $2}' /etc/deepin-version)"
  2031. DE="${DE} ${DEver//* }"
  2032. fi
  2033. elif [[ ${DE} == "Trinity" ]]; then
  2034. if type -p tde-config >/dev/null 2>&1; then
  2035. DEver="$(tde-config --version | awk -F ' ' '/TDE:/ {print $2}')"
  2036. DE="${DE} ${DEver//* }"
  2037. fi
  2038. fi
  2039. fi
  2040. if [[ "${DE}" == "Not Present" ]]; then
  2041. if pgrep -U ${UID} lxsession >/dev/null 2>&1; then
  2042. DE="LXDE"
  2043. if type -p lxpanel >/dev/null 2>&1; then
  2044. DEver=$(lxpanel -v)
  2045. DE="${DE} $DEver"
  2046. fi
  2047. elif pgrep -U ${UID} lxqt-session >/dev/null 2>&1; then
  2048. DE="LXQt"
  2049. elif pgrep -U ${UID} razor-session >/dev/null 2>&1; then
  2050. DE="RazorQt"
  2051. elif pgrep -U ${UID} dtsession >/dev/null 2>&1; then
  2052. DE="CDE"
  2053. fi
  2054. fi
  2055. fi
  2056. verboseOut "Finding desktop environment...found as '$DE'"
  2057. }
  2058. ### DE Detection - End
  2059. # WM Detection - Begin
  2060. detectwm () {
  2061. WM="Not Found"
  2062. if [[ ${distro} == "Mac OS X" ]]; then
  2063. if ps -U "${USER}" | grep -q -i 'finder'; then
  2064. WM="Quartz Compositor"
  2065. fi
  2066. elif [[ "${distro}" == "Cygwin" || "${distro}" == "Msys" ]]; then
  2067. if [ "$(tasklist | grep -o 'bugn' | tr -d '\r \n')" = "bugn" ]; then
  2068. WM="bug.n"
  2069. elif [ "$(tasklist | grep -o 'Windawesome' | tr -d '\r \n')" = "Windawesome" ]; then
  2070. WM="Windawesome"
  2071. elif [ "$(tasklist | grep -o 'blackbox' | tr -d '\r \n')" = "blackbox" ]; then
  2072. WM="Blackbox"
  2073. else
  2074. WM="DWM/Explorer"
  2075. fi
  2076. elif [[ -n ${DISPLAY} ]]; then
  2077. if [[ "${distro}" == "FreeBSD" ]]; then
  2078. pgrep_flags="-aU"
  2079. else
  2080. pgrep_flags="-U"
  2081. fi
  2082. for each in "${wmnames[@]}"; do
  2083. PID="$(pgrep ${pgrep_flags} ${UID} "^$each$")"
  2084. if [ "$PID" ]; then
  2085. case $each in
  2086. '2bwm') WM="2bwm";;
  2087. '9wm') WM="9wm";;
  2088. 'awesome') WM="Awesome";;
  2089. 'beryl') WM="Beryl";;
  2090. 'blackbox') WM="BlackBox";;
  2091. 'bspwm') WM="bspwm";;
  2092. 'budgie-wm') WM="BudgieWM";;
  2093. 'chromeos-wm') WM="chromeos-wm";;
  2094. 'cinnamon') WM="Muffin";;
  2095. 'compiz') WM="Compiz";;
  2096. 'deepin-wm') WM="deepin-wm";;
  2097. 'dminiwm') WM="dminiwm";;
  2098. 'dtwm') WM="dtwm";;
  2099. 'dwm') WM="dwm";;
  2100. 'e16') WM="E16";;
  2101. 'emerald') WM="Emerald";;
  2102. 'enlightenment') WM="E17";;
  2103. 'fluxbox') WM="FluxBox";;
  2104. 'flwm'|'flwm_topside') WM="FLWM";;
  2105. 'fvwm') WM="FVWM";;
  2106. 'herbstluftwm') WM="herbstluftwm";;
  2107. 'howm') WM="howm";;
  2108. 'i3') WM="i3";;
  2109. 'icewm') WM="IceWM";;
  2110. 'kwin') WM="KWin";;
  2111. 'metacity') WM="Metacity";;
  2112. 'monsterwm') WM="monsterwm";;
  2113. 'musca') WM="Musca";;
  2114. 'mwm') WM="MWM";;
  2115. 'notion') WM="Notion";;
  2116. 'openbox') WM="OpenBox";;
  2117. 'pekwm') WM="PekWM";;
  2118. 'ratpoison') WM="Ratpoison";;
  2119. 'sawfish') WM="Sawfish";;
  2120. 'scrotwm') WM="ScrotWM";;
  2121. 'spectrwm') WM="SpectrWM";;
  2122. 'stumpwm') WM="StumpWM";;
  2123. 'subtle') WM="subtle";;
  2124. 'sway') WM="sway";;
  2125. 'swm') WM="swm";;
  2126. 'twin') WM="TWin";;
  2127. 'wmaker') WM="WindowMaker";;
  2128. 'wmfs') WM="WMFS";;
  2129. 'wmii') WM="wmii";;
  2130. 'xfwm4') WM="Xfwm4";;
  2131. 'xmonad.*') WM="XMonad";;
  2132. esac
  2133. fi
  2134. if [[ ${WM} != "Not Found" ]]; then
  2135. break 1
  2136. fi
  2137. done
  2138. if [[ ${WM} == "Not Found" ]]; then
  2139. if type -p xprop >/dev/null 2>&1; then
  2140. WM=$(xprop -root _NET_SUPPORTING_WM_CHECK)
  2141. if [[ "$WM" =~ 'not found' ]]; then
  2142. WM="Not Found"
  2143. elif [[ "$WM" =~ 'Not found' ]]; then
  2144. WM="Not Found"
  2145. elif [[ "$WM" =~ '[Ii]nvalid window id format' ]]; then
  2146. WM="Not Found"
  2147. elif [[ "$WM" =~ "no such" ]]; then
  2148. WM="Not Found"
  2149. else
  2150. WM=${WM//* }
  2151. WM=$(xprop -id "${WM}" 8s _NET_WM_NAME)
  2152. WM=$(echo "$(WM=${WM//*= }; echo "${WM//\"}")")
  2153. fi
  2154. fi
  2155. fi
  2156. # Proper format WM names that need it.
  2157. if [[ ${BASH_VERSINFO[0]} -ge 4 ]]; then
  2158. if [[ ${BASH_VERSINFO[0]} -eq 4 && ${BASH_VERSINFO[1]} -gt 1 ]] || [[ ${BASH_VERSINFO[0]} -gt 4 ]]; then
  2159. WM_lower=${WM,,}
  2160. else
  2161. WM_lower="$(tr '[:upper:]' '[:lower:]' <<< "${WM}")"
  2162. fi
  2163. else
  2164. WM_lower="$(tr '[:upper:]' '[:lower:]' <<< "${WM}")"
  2165. fi
  2166. case ${WM_lower} in
  2167. *'gala'*) WM="Gala";;
  2168. '2bwm') WM="2bwm";;
  2169. 'awesome') WM="Awesome";;
  2170. 'beryl') WM="Beryl";;
  2171. 'blackbox') WM="BlackBox";;
  2172. 'budgiewm') WM="BudgieWM";;
  2173. 'chromeos-wm') WM="chromeos-wm";;
  2174. 'cinnamon') WM="Cinnamon";;
  2175. 'compiz') WM="Compiz";;
  2176. 'deepin-wm') WM="Deepin WM";;
  2177. 'dminiwm') WM="dminiwm";;
  2178. 'dwm') WM="dwm";;
  2179. 'e16') WM="E16";;
  2180. 'echinus') WM="echinus";;
  2181. 'emerald') WM="Emerald";;
  2182. 'enlightenment') WM="E17";;
  2183. 'fluxbox') WM="FluxBox";;
  2184. 'flwm'|'flwm_topside') WM="FLWM";;
  2185. 'fvwm') WM="FVWM";;
  2186. 'gnome shell'*) WM="Mutter";;
  2187. 'herbstluftwm') WM="herbstluftwm";;
  2188. 'howm') WM="howm";;
  2189. 'i3') WM="i3";;
  2190. 'icewm') WM="IceWM";;
  2191. 'kwin') WM="KWin";;
  2192. 'metacity') WM="Metacity";;
  2193. 'monsterwm') WM="monsterwm";;
  2194. 'muffin') WM="Muffin";;
  2195. 'musca') WM="Musca";;
  2196. 'mutter'*) WM="Mutter";;
  2197. 'mwm') WM="MWM";;
  2198. 'notion') WM="Notion";;
  2199. 'openbox') WM="OpenBox";;
  2200. 'pekwm') WM="PekWM";;
  2201. 'ratpoison') WM="Ratpoison";;
  2202. 'sawfish') WM="Sawfish";;
  2203. 'scrotwm') WM="ScrotWM";;
  2204. 'spectrwm') WM="SpectrWM";;
  2205. 'stumpwm') WM="StumpWM";;
  2206. 'subtle') WM="subtle";;
  2207. 'sway') WM="sway";;
  2208. 'swm') WM="swm";;
  2209. 'twin') WM="TWin";;
  2210. 'wmaker') WM="WindowMaker";;
  2211. 'wmfs') WM="WMFS";;
  2212. 'wmii') WM="wmii";;
  2213. 'xfwm4') WM="Xfwm4";;
  2214. 'xmonad') WM="XMonad";;
  2215. esac
  2216. fi
  2217. verboseOut "Finding window manager...found as '$WM'"
  2218. }
  2219. # WM Detection - End
  2220. # WM Theme Detection - BEGIN
  2221. detectwmtheme () {
  2222. Win_theme="Not Found"
  2223. if [[ "${distro}" == "Mac OS X" ]]; then
  2224. themeNumber="$(defaults read NSGlobalDomain AppleAquaColorVariant 2>/dev/null)"
  2225. if [ "${themeNumber}" == "1" ] || [ "${themeNumber}x" == "x" ]; then
  2226. Win_theme="Blue"
  2227. else
  2228. Win_theme="Graphite"
  2229. fi
  2230. elif [[ "${distro}" == "Cygwin" || "${distro}" == "Msys" ]]; then
  2231. if [ "${WM}" == "Blackbox" ]; then
  2232. if [ "${distro}" == "Msys" ]; then
  2233. Blackbox_loc=$(reg query 'HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon' //v 'Shell')
  2234. else
  2235. Blackbox_loc=$(reg query 'HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon' /v 'Shell')
  2236. fi
  2237. Blackbox_loc="$(echo "${Blackbox_loc}" | sed 's/.*REG_SZ//' | sed -e 's/^[ \t]*//' | sed 's/.\{4\}$//')"
  2238. Win_theme=$(grep 'session.styleFile' "${Blackbox_loc}.rc" | sed 's/ //g' | sed 's/session\.styleFile://g' | sed 's/.*\\//g')
  2239. else
  2240. if [[ "${distro}" == "Msys" ]]; then
  2241. themeFile="$(reg query 'HKCU\Software\Microsoft\Windows\CurrentVersion\Themes' //v 'CurrentTheme')"
  2242. else
  2243. themeFile="$(reg query 'HKCU\Software\Microsoft\Windows\CurrentVersion\Themes' /v 'CurrentTheme')"
  2244. fi
  2245. Win_theme=$(echo "$themeFile" | awk -F"\\" '{print $NF}' | sed 's|\.theme$||')
  2246. fi
  2247. else
  2248. case $WM in
  2249. '2bwm'|'9wm'|'Beryl'|'bspwm'|'dminiwm'|'dwm'|'echinus'|'FVWM'|'howm'|'i3'|'monsterwm'|'Musca'|\
  2250. 'Notion'|'Ratpoison'|'ScrotWM'|'SpectrWM'|'swm'|'subtle'|'WindowMaker'|'WMFS'|'wmii'|'XMonad')
  2251. Win_theme="Not Applicable"
  2252. ;;
  2253. 'Awesome')
  2254. if [ -f "${XDG_CONFIG_HOME:-${HOME}/.config}/awesome/rc.lua" ]; then
  2255. Win_theme="$(grep '^[^-].*\(theme\|beautiful\).*lua' "${XDG_CONFIG_HOME:-${HOME}/.config}/awesome/rc.lua" | grep '[^/]\+/[^/]\+.lua' -o | cut -d'/' -f1 | head -1)"
  2256. fi
  2257. ;;
  2258. 'BlackBox')
  2259. if [ -f "$HOME/.blackboxrc" ]; then
  2260. Win_theme="$(awk -F"/" '/styleFile/ {print $NF}' "$HOME/.blackboxrc")"
  2261. fi
  2262. ;;
  2263. 'BudgieWM')
  2264. Win_theme="$(gsettings get org.gnome.desktop.wm.preferences theme)"
  2265. Win_theme="${Win_theme//\'}"
  2266. ;;
  2267. 'Cinnamon'|'Muffin')
  2268. de_theme="$(gsettings get org.cinnamon.theme name)"
  2269. de_theme=${de_theme//"'"}
  2270. win_theme="$(gsettings get org.cinnamon.desktop.wm.preferences theme)"
  2271. win_theme=${win_theme//"'"}
  2272. Win_theme="${de_theme} (${win_theme})"
  2273. ;;
  2274. 'Compiz'|'Mutter'*|'GNOME Shell'|'Gala')
  2275. if type -p gsettings >/dev/null 2>&1; then
  2276. Win_theme="$(gsettings get org.gnome.shell.extensions.user-theme name 2>/dev/null)"
  2277. if [[ -z "$Win_theme" ]]; then
  2278. Win_theme="$(gsettings get org.gnome.desktop.wm.preferences theme)"
  2279. fi
  2280. Win_theme=${Win_theme//"'"}
  2281. elif type -p gconftool-2 >/dev/null 2>&1; then
  2282. Win_theme=$(gconftool-2 -g /apps/metacity/general/theme)
  2283. fi
  2284. ;;
  2285. 'Deepin WM')
  2286. if type -p gsettings >/dev/null 2>&1; then
  2287. Win_theme="$(gsettings get com.deepin.wrap.gnome.desktop.wm.preferences theme)"
  2288. Win_theme=${Win_theme//"'"}
  2289. fi
  2290. ;;
  2291. 'E16')
  2292. Win_theme="$(awk -F"= " '/theme.name/ {print $2}' "$HOME/.e16/e_config--0.0.cfg")"
  2293. ;;
  2294. 'E17'|'Enlightenment')
  2295. if [ "$(which eet 2>/dev/null)" ]; then
  2296. econfig="$(eet -d "$HOME/.e/e/config/standard/e.cfg" config | awk '/value \"file\" string.*.edj/{ print $4 }')"
  2297. econfigend="${econfig##*/}"
  2298. Win_theme=${econfigend%.*}
  2299. elif [ -n "${E_CONF_PROFILE}" ]; then
  2300. #E17 doesn't store cfg files in text format so for now get the profile as opposed to theme. atyoung
  2301. #TODO: Find a way to extract and read E17 .cfg files ( google seems to have nothing ). atyoung
  2302. Win_theme="${E_CONF_PROFILE}"
  2303. fi
  2304. ;;
  2305. 'Emerald')
  2306. if [ -f "$HOME/.emerald/theme/theme.ini" ]; then
  2307. Win_theme="$(for a in /usr/share/emerald/themes/* $HOME/.emerald/themes/*; do cmp "$HOME/.emerald/theme/theme.ini" "$a/theme.ini" &>/dev/null && basename "$a"; done)"
  2308. fi
  2309. ;;
  2310. 'FluxBox'|'Fluxbox')
  2311. if [ -f "$HOME/.fluxbox/init" ]; then
  2312. Win_theme="$(awk -F"/" '/styleFile/ {print $NF}' "$HOME/.fluxbox/init")"
  2313. fi
  2314. ;;
  2315. 'IceWM')
  2316. if [ -f "$HOME/.icewm/theme" ]; then
  2317. Win_theme="$(awk -F"[\",/]" '!/#/ {print $2}' "$HOME/.icewm/theme")"
  2318. fi
  2319. ;;
  2320. 'KWin'*)
  2321. if [[ -z $KDE_CONFIG_DIR ]]; then
  2322. if type -p kde5-config >/dev/null 2>&1; then
  2323. KDE_CONFIG_DIR=$(kde5-config --localprefix)
  2324. elif type -p kde4-config >/dev/null 2>&1; then
  2325. KDE_CONFIG_DIR=$(kde4-config --localprefix)
  2326. elif type -p kde-config >/dev/null 2>&1; then
  2327. KDE_CONFIG_DIR=$(kde-config --localprefix)
  2328. fi
  2329. fi
  2330. if [[ -n $KDE_CONFIG_DIR ]]; then
  2331. Win_theme="Not Applicable"
  2332. KDE_CONFIG_DIR=${KDE_CONFIG_DIR%/}
  2333. if [[ -f $KDE_CONFIG_DIR/share/config/kwinrc ]]; then
  2334. Win_theme="$(awk '/PluginLib=kwin3_/{gsub(/PluginLib=kwin3_/,"",$0); print $0; exit}' "$KDE_CONFIG_DIR/share/config/kwinrc")"
  2335. if [[ -z "$Win_theme" ]]; then
  2336. Win_theme="Not Applicable"
  2337. fi
  2338. fi
  2339. if [[ "$Win_theme" == "Not Applicable" ]]; then
  2340. if [[ -f $KDE_CONFIG_DIR/share/config/kdebugrc ]]; then
  2341. Win_theme="$(awk '/(decoration)/ {gsub(/\[/,"",$1); print $1; exit}' "$KDE_CONFIG_DIR/share/config/kdebugrc")"
  2342. if [[ -z "$Win_theme" ]]; then
  2343. Win_theme="Not Applicable"
  2344. fi
  2345. fi
  2346. fi
  2347. if [[ "$Win_theme" == "Not Applicable" ]]; then
  2348. if [[ -f $KDE_CONFIG_DIR/share/config/kdeglobals ]]; then
  2349. Win_theme="$(awk '/\[General\]/ {flag=1;next} /^$/{flag=0} flag {print}' "$KDE_CONFIG_DIR/share/config/kdeglobals" | grep -oP 'Name=\K.*')"
  2350. if [[ -z "$Win_theme" ]]; then
  2351. Win_theme="Not Applicable"
  2352. fi
  2353. fi
  2354. fi
  2355. if [[ "$Win_theme" != "Not Applicable" ]]; then
  2356. if [[ ${BASH_VERSINFO[0]} -ge 4 ]]; then
  2357. if [[ ${BASH_VERSINFO[0]} -eq 4 && ${BASH_VERSINFO[1]} -gt 1 ]] || [[ ${BASH_VERSINFO[0]} -gt 4 ]]; then
  2358. Win_theme="${Win_theme^}"
  2359. else
  2360. Win_theme="$(tr '[:lower:]' '[:upper:]' <<< "${Win_theme:0:1}")${Win_theme:1}"
  2361. fi
  2362. else
  2363. Win_theme="$(tr '[:lower:]' '[:upper:]' <<< "${Win_theme:0:1}")${Win_theme:1}"
  2364. fi
  2365. fi
  2366. fi
  2367. ;;
  2368. 'Marco'|'Metacity (Marco)')
  2369. Win_theme="$(gsettings get org.mate.Marco.general theme)"
  2370. Win_theme=${Win_theme//"'"}
  2371. ;;
  2372. 'Metacity')
  2373. if [ "$(gconftool-2 -g /apps/metacity/general/theme)" ]; then
  2374. Win_theme="$(gconftool-2 -g /apps/metacity/general/theme)"
  2375. fi
  2376. ;;
  2377. 'OpenBox'|'Openbox')
  2378. if [ -f "${XDG_CONFIG_HOME:-${HOME}/.config}/openbox/rc.xml" ]; then
  2379. Win_theme="$(awk -F"[<,>]" '/<theme/ { getline; print $3 }' "${XDG_CONFIG_HOME:-${HOME}/.config}/openbox/rc.xml")";
  2380. elif [[ -f ${XDG_CONFIG_HOME:-${HOME}/.config}/openbox/lxde-rc.xml && $DE == "LXDE" ]]; then
  2381. Win_theme="$(awk -F"[<,>]" '/<theme/ { getline; print $3 }' "${XDG_CONFIG_HOME:-${HOME}/.config}/openbox/lxde-rc.xml")";
  2382. fi
  2383. ;;
  2384. 'PekWM')
  2385. if [ -f "$HOME/.pekwm/config" ]; then
  2386. Win_theme="$(awk -F"/" '/Theme/ {gsub(/\"/,""); print $NF}' "$HOME/.pekwm/config")"
  2387. fi
  2388. ;;
  2389. 'Sawfish')
  2390. Win_theme="$(awk -F")" '/\(quote default-frame-style/{print $2}' "$HOME/.sawfish/custom" | sed 's/ (quote //')"
  2391. ;;
  2392. 'TWin')
  2393. if [[ -z $TDE_CONFIG_DIR ]]; then
  2394. if type -p tde-config >/dev/null 2>&1; then
  2395. TDE_CONFIG_DIR=$(tde-config --localprefix)
  2396. fi
  2397. fi
  2398. if [[ -n $TDE_CONFIG_DIR ]]; then
  2399. TDE_CONFIG_DIR=${TDE_CONFIG_DIR%/}
  2400. if [[ -f $TDE_CONFIG_DIR/share/config/kcmthememanagerrc ]]; then
  2401. Win_theme=$(awk '/CurrentTheme=/ {gsub(/CurrentTheme=/,"",$0); print $0; exit}' "$TDE_CONFIG_DIR/share/config/kcmthememanagerrc")
  2402. fi
  2403. if [[ -z $Win_theme ]]; then
  2404. Win_theme="Not Applicable"
  2405. fi
  2406. fi
  2407. ;;
  2408. 'Xfwm4')
  2409. if [ -f "${XDG_CONFIG_HOME:-${HOME}/.config}/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml" ]; then
  2410. Win_theme="$(xfconf-query -c xfwm4 -p /general/theme)"
  2411. fi
  2412. ;;
  2413. esac
  2414. fi
  2415. verboseOut "Finding window manager theme...found as '$Win_theme'"
  2416. }
  2417. # WM Theme Detection - END
  2418. # GTK Theme\Icon\Font Detection - BEGIN
  2419. detectgtk () {
  2420. gtk2Theme="Not Found"
  2421. gtk3Theme="Not Found"
  2422. gtkIcons="Not Found"
  2423. gtkFont="Not Found"
  2424. # Font detection (OS X)
  2425. if [[ ${distro} == "Mac OS X" ]]; then
  2426. gtk2Theme="Not Applicable"
  2427. gtk3Theme="Not Applicable"
  2428. gtkIcons="Not Applicable"
  2429. if ps -U "${USER}" | grep -q -i 'finder'; then
  2430. if [[ ${TERM_PROGRAM} == "iTerm.app" ]] && [ -f ~/Library/Preferences/com.googlecode.iterm2.plist ]; then
  2431. # iTerm2
  2432. iterm2_theme_uuid=$(defaults read com.googlecode.iTerm2 "Default Bookmark Guid")
  2433. OLD_IFS=$IFS
  2434. IFS=$'\n'
  2435. iterm2_theme_info=($(defaults read com.googlecode.iTerm2 "New Bookmarks" | grep -e 'Guid' -e 'Normal Font'))
  2436. IFS=$OLD_IFS
  2437. for i in $(seq 0 $((${#iterm2_theme_info[*]}/2-1))); do
  2438. found_uuid=$(str1=${iterm2_theme_info[$i*2]};echo "${str1:16:${#str1}-16-2}")
  2439. if [[ $found_uuid == $iterm2_theme_uuid ]]; then
  2440. gtkFont=$(str2=${iterm2_theme_info[$i*2+1]};echo ${str2:25:${#str2}-25-2})
  2441. break
  2442. fi
  2443. done
  2444. else
  2445. # Terminal.app
  2446. termapp_theme_name=$(defaults read com.apple.Terminal "Default Window Settings")
  2447. OLD_IFS=$IFS
  2448. IFS=$'\n'
  2449. termapp_theme_info=($(defaults read com.apple.Terminal "Window Settings" | grep -e 'name = ' -e 'Font = '))
  2450. IFS=$OLD_IFS
  2451. for i in $(seq 0 $((${#termapp_theme_info[*]}/2-1))); do
  2452. found_name=$(str1=${termapp_theme_info[$i*2+1]};echo "${str1:15:${#str1}-15-1}")
  2453. if [[ $found_name == $termapp_theme_name ]]; then
  2454. gtkFont=$(str2=${termapp_theme_info[$i*2]};echo "${str2:288:${#str2}-288}")
  2455. gtkFont=$(echo "${gtkFont%%[dD]2*;}" | xxd -r -p)
  2456. gtkFont=$(echo "${gtkFont:21:288}")
  2457. break
  2458. fi
  2459. done
  2460. fi
  2461. fi
  2462. else
  2463. case $DE in
  2464. 'KDE'*) # Desktop Environment found as "KDE"
  2465. if type - p kde4-config >/dev/null 2>&1; then
  2466. KDE_CONFIG_DIR=$(kde4-config --localprefix)
  2467. if [[ -d ${KDE_CONFIG_DIR} ]]; then
  2468. if [[ -f "${KDE_CONFIG_DIR}/share/config/kdeglobals" ]]; then
  2469. KDE_CONFIG_FILE="${KDE_CONFIG_DIR}/share/config/kdeglobals"
  2470. fi
  2471. fi
  2472. elif type -p kde5-config >/dev/null 2>&1; then
  2473. KDE_CONFIG_DIR=$(kde5-config --localprefix)
  2474. if [[ -d ${KDE_CONFIG_DIR} ]]; then
  2475. if [[ -f "${KDE_CONFIG_DIR}/share/config/kdeglobals" ]]; then
  2476. KDE_CONFIG_FILE="${KDE_CONFIG_DIR}/share/config/kdeglobals"
  2477. fi
  2478. fi
  2479. elif type -p kde-config >/dev/null 2>&1; then
  2480. KDE_CONFIG_DIR=$(kde-config --localprefix)
  2481. if [[ -d ${KDE_CONFIG_DIR} ]]; then
  2482. if [[ -f "${KDE_CONFIG_DIR}/share/config/kdeglobals" ]]; then
  2483. KDE_CONFIG_FILE="${KDE_CONFIG_DIR}/share/config/kdeglobals"
  2484. fi
  2485. fi
  2486. fi
  2487. if [[ -n ${KDE_CONFIG_FILE} ]]; then
  2488. if grep -q 'widgetStyle=' "${KDE_CONFIG_FILE}"; then
  2489. gtk2Theme=$(awk -F"=" '/widgetStyle=/ {print $2}' "${KDE_CONFIG_FILE}")
  2490. elif grep -q 'colorScheme=' "${KDE_CONFIG_FILE}"; then
  2491. gtk2Theme=$(awk -F"=" '/colorScheme=/ {print $2}' "${KDE_CONFIG_FILE}")
  2492. fi
  2493. if grep -q 'Theme=' "${KDE_CONFIG_FILE}"; then
  2494. gtkIcons=$(awk -F"=" '/Theme=/ {print $2}' "${KDE_CONFIG_FILE}")
  2495. fi
  2496. if grep -q 'Font=' "${KDE_CONFIG_FILE}"; then
  2497. gtkFont=$(awk -F"=" '/font=/ {print $2}' "${KDE_CONFIG_FILE}")
  2498. fi
  2499. fi
  2500. if [[ -f $HOME/.gtkrc-2.0 ]]; then
  2501. gtk2Theme=$(grep '^gtk-theme-name' "$HOME"/.gtkrc-2.0 | awk -F'=' '{print $2}')
  2502. gtk2Theme=${gtk2Theme//\"/}
  2503. gtkIcons=$(grep '^gtk-icon-theme-name' "$HOME"/.gtkrc-2.0 | awk -F'=' '{print $2}')
  2504. gtkIcons=${gtkIcons//\"/}
  2505. gtkFont=$(grep 'font_name' "$HOME"/.gtkrc-2.0 | awk -F'=' '{print $2}')
  2506. gtkFont=${gtkFont//\"/}
  2507. fi
  2508. if [[ -f $HOME/.config/gtk-3.0/settings.ini ]]; then
  2509. gtk3Theme=$(grep '^gtk-theme-name=' "$HOME"/.config/gtk-3.0/settings.ini | awk -F'=' '{print $2}')
  2510. fi
  2511. ;;
  2512. 'Cinnamon'*) # Desktop Environment found as "Cinnamon"
  2513. if type -p gsettings >/dev/null 2>&1; then
  2514. gtk3Theme=$(gsettings get org.cinnamon.desktop.interface gtk-theme)
  2515. gtk3Theme=${gtk3Theme//"'"}
  2516. gtk2Theme=${gtk3Theme}
  2517. gtkIcons=$(gsettings get org.cinnamon.desktop.interface icon-theme)
  2518. gtkIcons=${gtkIcons//"'"}
  2519. gtkFont=$(gsettings get org.cinnamon.desktop.interface font-name)
  2520. gtkFont=${gtkFont//"'"}
  2521. if [ "$background_detect" == "1" ]; then gtkBackground=$(gsettings get org.gnome.desktop.background picture-uri); fi
  2522. fi
  2523. ;;
  2524. 'GNOME'*|'Unity'*|'Budgie') # Desktop Environment found as "GNOME"
  2525. if type -p gsettings >/dev/null 2>&1; then
  2526. gtk3Theme=$(gsettings get org.gnome.desktop.interface gtk-theme)
  2527. gtk3Theme=${gtk3Theme//"'"}
  2528. gtk2Theme=${gtk3Theme}
  2529. gtkIcons=$(gsettings get org.gnome.desktop.interface icon-theme)
  2530. gtkIcons=${gtkIcons//"'"}
  2531. gtkFont=$(gsettings get org.gnome.desktop.interface font-name)
  2532. gtkFont=${gtkFont//"'"}
  2533. if [ "$background_detect" == "1" ]; then gtkBackground=$(gsettings get org.gnome.desktop.background picture-uri); fi
  2534. elif type -p gconftool-2 >/dev/null 2>&1; then
  2535. gtk2Theme=$(gconftool-2 -g /desktop/gnome/interface/gtk_theme)
  2536. gtkIcons=$(gconftool-2 -g /desktop/gnome/interface/icon_theme)
  2537. gtkFont=$(gconftool-2 -g /desktop/gnome/interface/font_name)
  2538. if [ "$background_detect" == "1" ]; then
  2539. gtkBackgroundFull=$(gconftool-2 -g /desktop/gnome/background/picture_filename)
  2540. gtkBackground=$(echo "$gtkBackgroundFull" | awk -F"/" '{print $NF}')
  2541. fi
  2542. fi
  2543. ;;
  2544. 'MATE'*) # MATE desktop environment
  2545. if type -p gsettings >/dev/null 2>&1; then
  2546. gtk3Theme=$(gsettings get org.mate.interface gtk-theme)
  2547. gtk3Theme=${gtk3Theme//"'"}
  2548. gtk2Theme=${gtk3Theme}
  2549. gtkIcons=$(gsettings get org.mate.interface icon-theme)
  2550. gtkIcons=${gtkIcons//"'"}
  2551. gtkFont=$(gsettings get org.mate.interface font-name)
  2552. gtkFont=${gtkFont//"'"}
  2553. fi
  2554. ;;
  2555. 'Xfce'*) # Desktop Environment found as "Xfce"
  2556. if [ "$distro" == "BunsenLabs" ] ; then
  2557. gtk2Theme=$(awk -F'"' '/^gtk-theme/ {print $2}' "$HOME"/.gtkrc-2.0)
  2558. gtk3Theme=$(awk -F'=' '/^gtk-theme-name/ {print $2}' "$HOME"/.config/gtk-3.0/settings.ini)
  2559. gtkIcons=$(awk -F'"' '/^gtk-icon-theme/ {print $2}' "$HOME"/.gtkrc-2.0)
  2560. gtkFont=$(awk -F'"' '/^gtk-font-name/ {print $2}' "$HOME"/.gtkrc-2.0)
  2561. else
  2562. if type -p xfconf-query >/dev/null 2>&1; then
  2563. gtk2Theme=$(xfconf-query -c xsettings -p /Net/ThemeName 2>/dev/null)
  2564. [ -z "$gtk2Theme" ] && gtk2Theme="Not Found"
  2565. fi
  2566. if type -p xfconf-query >/dev/null 2>&1; then
  2567. gtkIcons=$(xfconf-query -c xsettings -p /Net/IconThemeName 2>/dev/null)
  2568. [ -z "$gtkIcons" ] && gtkIcons="Not Found"
  2569. fi
  2570. if type -p xfconf-query >/dev/null 2>&1; then
  2571. gtkFont=$(xfconf-query -c xsettings -p /Gtk/FontName 2>/dev/null)
  2572. [ -z "$gtkFont" ] && gtkFont="Not Identified"
  2573. fi
  2574. fi
  2575. ;;
  2576. 'LXDE'*)
  2577. config_home="${XDG_CONFIG_HOME:-${HOME}/.config}"
  2578. if [ -f "$config_home/lxde/config" ]; then
  2579. lxdeconf="/lxde/config"
  2580. elif [ "$distro" == "Trisquel" ] || [ "$distro" == "FreeBSD" ]; then
  2581. lxdeconf=""
  2582. elif [ -f "$config_home/lxsession/Lubuntu/desktop.conf" ]; then
  2583. lxdeconf="/lxsession/Lubuntu/desktop.conf"
  2584. else
  2585. lxdeconf="/lxsession/LXDE/desktop.conf"
  2586. fi
  2587. if grep -q 'sNet\/ThemeName' "${config_home}${lxdeconf}" 2>/dev/null; then
  2588. gtk2Theme=$(awk -F'=' '/sNet\/ThemeName/ {print $2}' "${config_home}${lxdeconf}")
  2589. fi
  2590. if grep -q 'IconThemeName' "${config_home}${lxdeconf}" 2>/dev/null; then
  2591. gtkIcons=$(awk -F'=' '/sNet\/IconThemeName/ {print $2}' "${config_home}${lxdeconf}")
  2592. fi
  2593. if grep -q 'FontName' "${config_home}${lxdeconf}" 2>/dev/null; then
  2594. gtkFont=$(awk -F'=' '/sGtk\/FontName/ {print $2}' "${config_home}${lxdeconf}")
  2595. fi
  2596. ;;
  2597. # /home/me/.config/rox.sourceforge.net/ROX-Session/Settings.xml
  2598. *) # Lightweight or No DE Found
  2599. if [ -f "$HOME/.gtkrc-2.0" ]; then
  2600. if grep -q 'gtk-theme' "$HOME/.gtkrc-2.0"; then
  2601. gtk2Theme=$(awk -F'"' '/^gtk-theme/ {print $2}' "$HOME/.gtkrc-2.0")
  2602. fi
  2603. if grep -q 'icon-theme' "$HOME/.gtkrc-2.0"; then
  2604. gtkIcons=$(awk -F'"' '/^gtk-icon-theme/ {print $2}' "$HOME/.gtkrc-2.0")
  2605. fi
  2606. if grep -q 'font' "$HOME/.gtkrc-2.0"; then
  2607. gtkFont=$(awk -F'"' '/^gtk-font-name/ {print $2}' "$HOME/.gtkrc-2.0")
  2608. fi
  2609. fi
  2610. # $HOME/.gtkrc.mine theme detect only
  2611. if [[ -f "$HOME/.gtkrc.mine" ]]; then
  2612. minegtkrc="$HOME/.gtkrc.mine"
  2613. elif [[ -f "$HOME/.gtkrc-2.0.mine" ]]; then
  2614. minegtkrc="$HOME/.gtkrc-2.0.mine"
  2615. fi
  2616. if [ -f "$minegtkrc" ]; then
  2617. if grep -q '^include' "$minegtkrc"; then
  2618. gtk2Theme=$(grep '^include.*gtkrc' "$minegtkrc" | awk -F "/" '{ print $5 }')
  2619. fi
  2620. if grep -q '^gtk-icon-theme-name' "$minegtkrc"; then
  2621. gtkIcons=$(grep '^gtk-icon-theme-name' "$minegtkrc" | awk -F '"' '{print $2}')
  2622. fi
  2623. fi
  2624. # /etc/gtk-2.0/gtkrc compatibility
  2625. if [[ -f /etc/gtk-2.0/gtkrc && ! -f "$HOME/.gtkrc-2.0" && ! -f "$HOME/.gtkrc.mine" && ! -f "$HOME/.gtkrc-2.0.mine" ]]; then
  2626. if grep -q 'gtk-theme-name' /etc/gtk-2.0/gtkrc; then
  2627. gtk2Theme=$(awk -F'"' '/^gtk-theme-name/ {print $2}' /etc/gtk-2.0/gtkrc)
  2628. fi
  2629. if grep -q 'gtk-fallback-theme-name' /etc/gtk-2.0/gtkrc && ! [ "x$gtk2Theme" = "x" ]; then
  2630. gtk2Theme=$(awk -F'"' '/^gtk-fallback-theme-name/ {print $2}' /etc/gtk-2.0/gtkrc)
  2631. fi
  2632. if grep -q 'icon-theme' /etc/gtk-2.0/gtkrc; then
  2633. gtkIcons=$(awk -F'"' '/^icon-theme/ {print $2}' /etc/gtk-2.0/gtkrc)
  2634. fi
  2635. if grep -q 'gtk-fallback-icon-theme' /etc/gtk-2.0/gtkrc && ! [ "x$gtkIcons" = "x" ]; then
  2636. gtkIcons=$(awk -F'"' '/^gtk-fallback-icon-theme/ {print $2}' /etc/gtk-2.0/gtkrc)
  2637. fi
  2638. if grep -q 'font' /etc/gtk-2.0/gtkrc; then
  2639. gtkFont=$(awk -F'"' '/^gtk-font-name/ {print $2}' /etc/gtk-2.0/gtkrc)
  2640. fi
  2641. fi
  2642. # Proper gtk3 Theme detection
  2643. if type -p gsettings >/dev/null 2>&1; then
  2644. gtk3Theme=$(gsettings get org.gnome.desktop.interface gtk-theme 2>/dev/null)
  2645. gtk3Theme=${gtk3Theme//"'"}
  2646. fi
  2647. # EXPERIMENTAL gtk3 Theme detection
  2648. if [[ -z "$gtk3Theme" && -f "$HOME/.config/gtk-3.0/settings.ini" ]]; then
  2649. if grep -q 'gtk-theme-name' "$HOME/.config/gtk-3.0/settings.ini"; then
  2650. gtk3Theme=$(awk -F'=' '/^gtk-theme-name/ {print $2}' "$HOME/.config/gtk-3.0/settings.ini")
  2651. fi
  2652. fi
  2653. # ROX-Filer icon detect only
  2654. if [ -a "${XDG_CONFIG_HOME:-${HOME}/.config}/rox.sourceforge.net/ROX-Filer/Options" ]; then
  2655. gtkIcons=$(awk -F'[>,<]' '/icon_theme/ {print $3}' "${XDG_CONFIG_HOME:-${HOME}/.config}/rox.sourceforge.net/ROX-Filer/Options")
  2656. fi
  2657. # E17 detection
  2658. if [ "$E_ICON_THEME" ]; then
  2659. gtkIcons=${E_ICON_THEME}
  2660. gtk2Theme="Not available."
  2661. gtkFont="Not available."
  2662. fi
  2663. # Background Detection (feh, nitrogen)
  2664. if [ "$background_detect" == "1" ]; then
  2665. if [ -a "$HOME/.fehbg" ]; then
  2666. gtkBackgroundFull=$(awk -F"'" '/feh --bg/{print $2}' "$HOME/.fehbg" 2>/dev/null)
  2667. gtkBackground=$(echo "$gtkBackgroundFull" | awk -F"/" '{print $NF}')
  2668. elif [ -a "${XDG_CONFIG_HOME:-${HOME}/.config}/nitrogen/bg-saved.cfg" ]; then
  2669. gtkBackground=$(awk -F"/" '/file=/ {print $NF}' "${XDG_CONFIG_HOME:-${HOME}/.config}/nitrogen/bg-saved.cfg")
  2670. fi
  2671. fi
  2672. if [[ "$distro" == "Cygwin" || "$distro" == "Msys" ]]; then
  2673. if [ "$gtkFont" == "Not Found" ]; then
  2674. if [ -f "$HOME/.minttyrc" ]; then
  2675. gtkFont="$(grep '^Font=.*' "$HOME/.minttyrc" | grep -o '[0-9A-z ]*$')"
  2676. fi
  2677. fi
  2678. fi
  2679. ;;
  2680. esac
  2681. fi
  2682. verboseOut "Finding GTK2 theme...found as '$gtk2Theme'"
  2683. verboseOut "Finding GTK3 theme...found as '$gtk3Theme'"
  2684. verboseOut "Finding icon theme...found as '$gtkIcons'"
  2685. verboseOut "Finding user font...found as '$gtkFont'"
  2686. if [[ -n "$gtkBackground" ]]; then
  2687. verboseOut "Finding background...found as '$gtkBackground'"
  2688. fi
  2689. }
  2690. # GTK Theme\Icon\Font Detection - END
  2691. # Android-specific detections
  2692. detectdroid () {
  2693. distro_ver=$(getprop ro.build.version.release)
  2694. hostname=$(getprop net.hostname)
  2695. device="$(getprop ro.product.model) ($(getprop ro.product.device))"
  2696. if [[ $(getprop ro.build.host) == "cyanogenmod" ]]; then
  2697. rom=$(getprop ro.cm.version)
  2698. else
  2699. rom=$(getprop ro.build.display.id)
  2700. fi
  2701. baseband=$(getprop ro.baseband)
  2702. cpu=$(awk -F': ' '/^Processor/ {P=$2} /^Hardware/ {H=$2} END {print H != "" ? H : P}' /proc/cpuinfo)
  2703. }
  2704. #######################
  2705. # End Detection Phase
  2706. #######################
  2707. takeShot () {
  2708. if [[ -n "$screenCommand" ]]; then
  2709. $screenCommand
  2710. else
  2711. shotfiles[1]=${shotfile}
  2712. if [ "$distro" == "Mac OS X" ]; then
  2713. displays="$(system_profiler SPDisplaysDataType | grep -c 'Resolution:' | tr -d ' ')"
  2714. for (( i=2; i<=displays; i++))
  2715. do
  2716. shotfiles[$i]="$(echo ${shotfile} | sed "s/\(.*\)\./\1_${i}./")"
  2717. done
  2718. printf "Taking shot in 3.. "; sleep 1
  2719. printf "2.. "; sleep 1
  2720. printf "1.. "; sleep 1
  2721. printf "0.\n"
  2722. screencapture -x ${shotfiles[@]} &> /dev/null
  2723. else
  2724. if type -p scrot >/dev/null 2>&1; then
  2725. scrot -cd3 "${shotfile}"
  2726. else
  2727. errorOut "Cannot take screenshot! \`scrot' not in \$PATH"
  2728. fi
  2729. fi
  2730. if [ -f "${shotfile}" ]; then
  2731. verboseOut "Screenshot saved at '${shotfiles[*]}'"
  2732. if [[ "${upload}" == "1" ]]; then
  2733. if type -p curl >/dev/null 2>&1; then
  2734. printf "${bold}==>${c0} Uploading your screenshot now..."
  2735. case "${uploadLoc}" in
  2736. 'teknik')
  2737. baseurl='https://u.teknik.io'
  2738. uploadurl='https://api.teknik.io/upload/post'
  2739. ret=$(curl -sf -F file="@${shotfiles[*]}" ${uploadurl})
  2740. desturl="${ret##*url\":\"}"
  2741. desturl="${desturl%%\"*}"
  2742. desturl="${desturl//\\}"
  2743. ;;
  2744. 'mediacrush')
  2745. baseurl='https://mediacru.sh'
  2746. uploadurl='https://mediacru.sh/api/upload/file'
  2747. ret=$(curl -sf -F file="@${shotfiles[*]};type=image/png" ${uploadurl})
  2748. filehash=$(echo "${ret}" | grep 'hash' | cut -d '"' -f4)
  2749. desturl="${baseurl}/${filehash}"
  2750. ;;
  2751. 'imgur')
  2752. baseurl='http://imgur.com'
  2753. uploadurl='http://imgur.com/upload'
  2754. ret=$(curl -sf -F file="@${shotfiles[*]}" ${uploadurl})
  2755. filehash="${ret##*hash\":\"}"
  2756. filehash="${filehash%%\"*}"
  2757. desturl="${baseurl}/${filehash}"
  2758. ;;
  2759. 'hmp')
  2760. baseurl='http://i.hmp.me/m'
  2761. uploadurl='http://hmp.me/ap/?uf=1'
  2762. ret=$(curl -sf -F a="@${shotfiles[*]};type=image/png" ${uploadurl})
  2763. desturl="${ret##*img_path\":\"}"
  2764. desturl="${desturl%%\"*}"
  2765. desturl="${desturl//\\}"
  2766. ;;
  2767. 'local-example')
  2768. baseurl="http://www.example.com"
  2769. serveraddr="www.example.com"
  2770. scptimeout="20"
  2771. serverdir="/path/to/directory"
  2772. scp -qo ConnectTimeout="${scptimeout}" "${shotfiles[*]}" "${serveraddr}:${serverdir}"
  2773. desturl="${baseurl}/${shotfile}"
  2774. ;;
  2775. esac
  2776. printf "your screenshot can be viewed at ${desturl}\n"
  2777. else
  2778. errorOut "Cannot upload screenshot! \`curl' not in \$PATH"
  2779. fi
  2780. fi
  2781. else
  2782. if type -p scrot >/dev/null 2>&1; then
  2783. errorOut "ERROR: Problem saving screenshot to ${shotfiles[*]}"
  2784. fi
  2785. fi
  2786. fi
  2787. }
  2788. asciiText () {
  2789. # Distro logos and ASCII outputs
  2790. if [[ "$asc_distro" ]]; then
  2791. myascii="${asc_distro}"
  2792. elif [[ "$art" ]]; then
  2793. myascii="custom"
  2794. elif [[ "$fake_distro" ]]; then
  2795. myascii="${fake_distro}"
  2796. else
  2797. myascii="${distro}"
  2798. fi
  2799. case ${myascii} in
  2800. "custom")
  2801. source "$art"
  2802. ;;
  2803. "ALDOS")
  2804. if [[ "$no_color" != "1" ]]; then
  2805. c1=$(getColor 'light grey') # light grey
  2806. fi
  2807. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  2808. startline="0"
  2809. logowidth="27"
  2810. fulloutput=(
  2811. "${c1} %s"
  2812. "${c1} # ## # %s"
  2813. "${c1} # ######## # %s"
  2814. "${c1} # ### ######## # %s"
  2815. "${c1} # #### ######### # %s"
  2816. "${c1} # #### # # # # #### # %s"
  2817. "${c1} # ##### # ##### # %s"
  2818. "${c1} # ###### ##### #### # %s"
  2819. "${c1} # ############### # %s"
  2820. "${c1} %s"
  2821. "${c2} _ ___ ___ ___ %s"
  2822. "${c2} __ _| | \ / _ \/ __| %s"
  2823. "${c2} / _' | | |) | (_) \__ \ %s"
  2824. "${c2} \__,_|_|___/ \___/|___/ %s"
  2825. "${c1} %s"
  2826. "${c1} %s")
  2827. ;;
  2828. "Alpine Linux")
  2829. if [[ "$no_color" != "1" ]]; then
  2830. c1=$(getColor 'light blue') # Light
  2831. c2=$(getColor 'blue') # Dark
  2832. fi
  2833. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  2834. startline="0"
  2835. logowidth="34"
  2836. fulloutput=(
  2837. "${c1} ................ %s"
  2838. "${c1} ∴::::::::::::::::∴ %s"
  2839. "${c1} ∴::::::::::::::::::∴ %s"
  2840. "${c1} ∴::::::::::::::::::::∴ %s"
  2841. "${c1} ∴:::::::. :::::':::::::∴ %s"
  2842. "${c1} ∴:::::::. ;::; ::::::::∴ %s"
  2843. "${c1} ∴::::::; ∵ :::::::∴ %s"
  2844. "${c1} ∴:::::. . .::::::∴ %s"
  2845. "${c1} :::::: :::. . :::::: %s"
  2846. "${c1} ∵:::: ::::::. ::. ::::∵ %s"
  2847. "${c1} ∵:.. .:;::::::: :::. :::∵ %s"
  2848. "${c1} ∵::::::::::::::::::::::::∵ %s"
  2849. "${c1} ∵::::::::::::::::::::::∵ %s"
  2850. "${c1} ∵::::::::::::::::::::∵ %s"
  2851. "${c1} :::::::::::::::::::: %s"
  2852. "${c1} ∵::::::::::::::::∵ %s")
  2853. ;;
  2854. "Arch Linux - Old")
  2855. if [[ "$no_color" != "1" ]]; then
  2856. c1=$(getColor 'white') # White
  2857. c2=$(getColor 'light blue') # Light Blue
  2858. fi
  2859. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  2860. startline="0"
  2861. logowidth="37"
  2862. fulloutput=(
  2863. "${c1} __ %s"
  2864. "${c1} _=(SDGJT=_ %s"
  2865. "${c1} _GTDJHGGFCVS) %s"
  2866. "${c1} ,GTDJGGDTDFBGX0 %s"
  2867. "${c1} JDJDIJHRORVFSBSVL${c2}-=+=,_ %s"
  2868. "${c1} IJFDUFHJNXIXCDXDSV,${c2} \"DEBL %s"
  2869. "${c1} [LKDSDJTDU=OUSCSBFLD.${c2} '?ZWX, %s"
  2870. "${c1} ,LMDSDSWH' \`DCBOSI${c2} DRDS], %s"
  2871. "${c1} SDDFDFH' !YEWD,${c2} )HDROD %s"
  2872. "${c1} !KMDOCG &GSU|${c2}\_GFHRGO\' %s"
  2873. "${c1} HKLSGP'${c2} __${c1}\TKM0${c2}\GHRBV)' %s"
  2874. "${c1} JSNRVW'${c2} __+MNAEC${c1}\IOI,${c2}\BN' %s"
  2875. "${c1} HELK['${c2} __,=OFFXCBGHC${c1}\FD) %s"
  2876. "${c1} ?KGHE ${c2}\_-#DASDFLSV='${c1} 'EF %s"
  2877. "${c1} 'EHTI !H %s"
  2878. "${c1} \`0F' '! %s"
  2879. "${c1} %s"
  2880. "${c1} %s")
  2881. ;;
  2882. "Arch Linux")
  2883. if [[ "$no_color" != "1" ]]; then
  2884. c1=$(getColor 'light cyan') # Light
  2885. c2=$(getColor 'cyan') # Dark
  2886. fi
  2887. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  2888. startline="1"
  2889. logowidth="38"
  2890. fulloutput=(
  2891. "${c1} -\` "
  2892. "${c1} .o+\` %s"
  2893. "${c1} \`ooo/ %s"
  2894. "${c1} \`+oooo: %s"
  2895. "${c1} \`+oooooo: %s"
  2896. "${c1} -+oooooo+: %s"
  2897. "${c1} \`/:-:++oooo+: %s"
  2898. "${c1} \`/++++/+++++++: %s"
  2899. "${c1} \`/++++++++++++++: %s"
  2900. "${c1} \`/+++o${c2}oooooooo${c1}oooo/\` %s"
  2901. "${c2} ${c1}./${c2}ooosssso++osssssso${c1}+\` %s"
  2902. "${c2} .oossssso-\`\`\`\`/ossssss+\` %s"
  2903. "${c2} -osssssso. :ssssssso. %s"
  2904. "${c2} :osssssss/ osssso+++. %s"
  2905. "${c2} /ossssssss/ +ssssooo/- %s"
  2906. "${c2} \`/ossssso+/:- -:/+osssso+- %s"
  2907. "${c2} \`+sso+:-\` \`.-/+oso: %s"
  2908. "${c2} \`++:. \`-/+/%s"
  2909. "${c2} .\` \`/%s")
  2910. ;;
  2911. "Artix Linux")
  2912. if [[ "$no_color" != "1" ]]; then
  2913. c1=$(getColor 'cyan')
  2914. c2=$(getColor 'blue')
  2915. c3=$(getColor 'green')
  2916. c4=$(getColor 'dark gray')
  2917. fi
  2918. if [ -n "${my_lcolor}" ]; then
  2919. c1="${my_lcolor}"
  2920. c2="${my_lcolor}"
  2921. c3="${my_lcolor}"
  2922. c4="${my_lcolor}"
  2923. fi
  2924. startline="1"
  2925. logowidth="38"
  2926. fulloutput=(""
  2927. "${c1} d${c2}c. %s"
  2928. "${c1} x${c2}dc. %s"
  2929. "${c1} '.${c4}.${c1} d${c2}dlc. %s"
  2930. "${c1} c${c2}0d:${c1}o${c2}xllc; %s"
  2931. "${c1} :${c2}0ddlolc,lc, %s"
  2932. "${c1} :${c1}ko${c4}.${c1}:${c2}0ddollc..dlc. %s"
  2933. "${c1} ;${c1}K${c2}kxoOddollc' cllc. %s"
  2934. "${c1} ,${c1}K${c2}kkkxdddllc, ${c4}.${c2}lll: %s"
  2935. "${c1} ,${c1}X${c2}kkkddddlll;${c3}...';${c1}d${c2}llll${c3}dxk: %s"
  2936. "${c1} ,${c1}X${c2}kkkddddllll${c3}oxxxddo${c2}lll${c3}oooo, %s"
  2937. "${c3} xxk${c1}0${c2}kkkdddd${c1}o${c2}lll${c1}o${c3}ooooooolooooc;${c1}. %s"
  2938. "${c3} ddd${c2}kkk${c1}d${c2}ddd${c1}ol${c2}lc:${c3}:;,'.${c3}... .${c2}lll; %s"
  2939. "${c1} .${c3}xd${c1}x${c2}kk${c1}xd${c2}dl${c1}'cl:${c4}. ${c2}.llc, %s"
  2940. "${c1} .${c1}0${c2}kkkxddl${c4}. ${c2};'${c4}. ${c2};llc. %s"
  2941. "${c1} .${c1}K${c2}Okdcddl${c4}. ${c2}cllc${c4}. %s"
  2942. "${c1} 0${c2}Okd''dc. .cll; %s"
  2943. "${c1} k${c2}Okd' .llc, %s"
  2944. "${c1} d${c2}Od, 'lc. %s"
  2945. "${c1} :,${c4}. ${c2}... %s"
  2946. " %s")
  2947. ;;
  2948. "blackPanther OS")
  2949. if [[ "$no_color" != "1" ]]; then
  2950. c1=$(getColor 'yellow') # Light Yellow
  2951. c2=$(getColor 'white') # Bold Red
  2952. c3=$(getColor 'light red') # Light Red
  2953. c4=$(getColor 'dark grey')
  2954. fi
  2955. if [ -n "${my_lcolor}" ]; then
  2956. c1="${my_lcolor}"
  2957. c2="${my_lcolor}"
  2958. c3="${my_lcolor}"
  2959. c4="${my_lcolor}"
  2960. fi
  2961. startline="0"
  2962. logowidth="38"
  2963. fulloutput=(
  2964. "${c4} oxoo %s"
  2965. "${c4} ooooooxxxxxxxx %s"
  2966. "${c4} oooooxxxxxxxxxx${c3}O${c1}o.${c4}xx %s"
  2967. "${c4} oo# ###xxxxxxxxxxx###xxx %s"
  2968. "${c4} oo .oooooxxxxxxxxx## #oxx %s"
  2969. "${c4} o ##xxxxxxxxx###x## .o### %s"
  2970. "${c4} .oxxxxxxxx### ox . %s"
  2971. "${c4} ooxxxx#xxxxxx o## %s"
  2972. "${c4}.oxx# #oxxxxx# %s"
  2973. "${c4}ox# ooxxxxxx# o %s"
  2974. "${c4}x# ooxxxxxxxx ox ox%s"
  2975. "${c4}x# .oxxxxxxxxxxx o# oox%s"
  2976. "${c4}# oxxxxx##xxxxxxooooooo# o# %s"
  2977. "${c4} .oxxxxxooxxxxxx###### ox# %s"
  2978. "${c4} oxxxxxo oxxxxxxxx oox## %s"
  2979. "${c4} oxxxxxx oxxxxxxxxxo oooox## %s"
  2980. "${c4} o#xxxxx oxxxxxxxxxxxxxxxx## %s"
  2981. "${c4} ##xxxxx o#xxxxxxxxxxxxx## %s"
  2982. "${c4} ##xxxx o#xxxxxxxxx## %s"
  2983. "${c4} ###xo. o##xxx### %s"
  2984. "${c4} %s")
  2985. ;;
  2986. "ArcoLinux")
  2987. if [[ "$no_color" != "0" ]]; then
  2988. c1=$(getColor 'arco_blue') # dark
  2989. c2=$(getColor 'white') # light
  2990. fi
  2991. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  2992. startline="1"
  2993. logowidth="41"
  2994. fulloutput=(
  2995. "${c1} /- "
  2996. "${c1} ooo: %s"
  2997. "${c1} yoooo/ %s"
  2998. "${c1} yooooooo %s"
  2999. "${c1} yooooooooo %s"
  3000. "${c1} yooooooooooo %s"
  3001. "${c1} .yooooooooooooo %s"
  3002. "${c1} .oooooooooooooooo %s"
  3003. "${c1} .oooooooarcoooooooo %s"
  3004. "${c1} .ooooooooo-oooooooooo %s"
  3005. "${c1} .ooooooooo- oooooooooo %s"
  3006. "${c1} :ooooooooo. :ooooooooo %s"
  3007. "${c1} :ooooooooo. :ooooooooo %s"
  3008. "${c1} :oooarcooo .oooarcooo %s"
  3009. "${c1} :ooooooooy .ooooooooo %s"
  3010. "${c1} :ooooooooo ${c2}/ooooooooooooooooooo${c1} %s"
  3011. "${c1} :ooooooooo ${c2}.-ooooooooooooooooo.${c1} %s"
  3012. "${c1} ooooooooo- ${c2}-ooooooooooooo.${c1} %s"
  3013. "${c1} ooooooooo- ${c2}.-oooooooooo.${c1}%s"
  3014. "${c1}ooooooooo. ${c2}-ooooooooo${c1}%s")
  3015. ;;
  3016. "Mint")
  3017. if [[ "$no_color" != "1" ]]; then
  3018. c1=$(getColor 'white') # White
  3019. c2=$(getColor 'light green') # Bold Green
  3020. fi
  3021. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  3022. startline="0"
  3023. logowidth="38"
  3024. fulloutput=(
  3025. "${c2} %s"
  3026. "${c2} MMMMMMMMMMMMMMMMMMMMMMMMMmds+. %s"
  3027. "${c2} MMm----::-://////////////oymNMd+\` %s"
  3028. "${c2} MMd ${c1}/++ ${c2}-sNMd: %s"
  3029. "${c2} MMNso/\` ${c1}dMM \`.::-. .-::.\` ${c2}.hMN: %s"
  3030. "${c2} ddddMMh ${c1}dMM :hNMNMNhNMNMNh: ${c2}\`NMm %s"
  3031. "${c2} NMm ${c1}dMM .NMN/-+MMM+-/NMN\` ${c2}dMM %s"
  3032. "${c2} NMm ${c1}dMM -MMm \`MMM dMM. ${c2}dMM %s"
  3033. "${c2} NMm ${c1}dMM -MMm \`MMM dMM. ${c2}dMM %s"
  3034. "${c2} NMm ${c1}dMM .mmd \`mmm yMM. ${c2}dMM %s"
  3035. "${c2} NMm ${c1}dMM\` ..\` ... ydm. ${c2}dMM %s"
  3036. "${c2} hMM- ${c1}+MMd/-------...-:sdds ${c2}dMM %s"
  3037. "${c2} -NMm- ${c1}:hNMNNNmdddddddddy/\` ${c2}dMM %s"
  3038. "${c2} -dMNs-${c1}\`\`-::::-------.\`\` ${c2}dMM %s"
  3039. "${c2} \`/dMNmy+/:-------------:/yMMM %s"
  3040. "${c2} ./ydNMMMMMMMMMMMMMMMMMMMMM %s"
  3041. "${c2} \.MMMMMMMMMMMMMMMMMMM %s"
  3042. "${c2} %s")
  3043. ;;
  3044. "LMDE")
  3045. if [[ "$no_color" != "1" ]]; then
  3046. c1=$(getColor 'white') # White
  3047. c2=$(getColor 'light green') # Bold Green
  3048. fi
  3049. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  3050. startline="0"
  3051. logowidth="31"
  3052. fulloutput=(
  3053. "${c1} \`.-::---.. %s"
  3054. "${c2} .:++++ooooosssoo:. %s"
  3055. "${c2} .+o++::. \`.:oos+. %s"
  3056. "${c2} :oo:.\` -+oo${c1}: %s"
  3057. "${c2} ${c1}\`${c2}+o/\` .${c1}::::::${c2}-. .++-${c1}\` %s"
  3058. "${c2} ${c1}\`${c2}/s/ .yyyyyyyyyyo: +o-${c1}\` %s"
  3059. "${c2} ${c1}\`${c2}so .ss ohyo\` :s-${c1}: %s"
  3060. "${c2} ${c1}\`${c2}s/ .ss h m myy/ /s\`${c1}\` %s"
  3061. "${c2} \`s: \`oo s m Myy+-o:\` %s"
  3062. "${c2} \`oo :+sdoohyoydyso/. %s"
  3063. "${c2} :o. .:////////++: %s"
  3064. "${c2} \`/++ ${c1}-:::::- %s"
  3065. "${c2} ${c1}\`${c2}++- %s"
  3066. "${c2} ${c1}\`${c2}/+- %s"
  3067. "${c2} ${c1}.${c2}+/. %s"
  3068. "${c2} ${c1}.${c2}:+-. %s"
  3069. "${c2} \`--.\`\` %s"
  3070. "${c2} %s")
  3071. ;;
  3072. "Ubuntu")
  3073. if [[ "$no_color" != "1" ]]; then
  3074. c1=$(getColor 'white') # White
  3075. c2=$(getColor 'light red') # Light Red
  3076. c3=$(getColor 'yellow') # Bold Yellow
  3077. fi
  3078. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; c3="${my_lcolor}"; fi
  3079. startline="0"
  3080. logowidth="38"
  3081. fulloutput=(
  3082. "${c2} ./+o+- %s"
  3083. "${c1} yyyyy- ${c2}-yyyyyy+ %s"
  3084. "${c1} ${c1}://+//////${c2}-yyyyyyo %s"
  3085. "${c3} .++ ${c1}.:/++++++/-${c2}.+sss/\` %s"
  3086. "${c3} .:++o: ${c1}/++++++++/:--:/- %s"
  3087. "${c3} o:+o+:++.${c1}\`..\`\`\`.-/oo+++++/ %s"
  3088. "${c3} .:+o:+o/.${c1} \`+sssoo+/ %s"
  3089. "${c1} .++/+:${c3}+oo+o:\`${c1} /sssooo. %s"
  3090. "${c1} /+++//+:${c3}\`oo+o${c1} /::--:. %s"
  3091. "${c1} \+/+o+++${c3}\`o++o${c2} ++////. %s"
  3092. "${c1} .++.o+${c3}++oo+:\`${c2} /dddhhh. %s"
  3093. "${c3} .+.o+oo:.${c2} \`oddhhhh+ %s"
  3094. "${c3} \+.++o+o\`${c2}\`-\`\`\`\`.:ohdhhhhh+ %s"
  3095. "${c3} \`:o+++ ${c2}\`ohhhhhhhhyo++os: %s"
  3096. "${c3} .o:${c2}\`.syhhhhhhh/${c3}.oo++o\` %s"
  3097. "${c2} /osyyyyyyo${c3}++ooo+++/ %s"
  3098. "${c2} \`\`\`\`\` ${c3}+oo+++o\: %s"
  3099. "${c3} \`oo++. %s")
  3100. ;;
  3101. "KDE neon")
  3102. if [[ "$no_color" != "1" ]]; then
  3103. c1=$(getColor 'light green') # Bold Green
  3104. fi
  3105. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  3106. startline="0"
  3107. logowidth="43"
  3108. fulloutput=(
  3109. "${c1} \`..---+/---..\` %s"
  3110. "${c1} \`---.\`\` \`\` \`.---.\` %s"
  3111. "${c1} .--.\` \`\` \`-:-. %s"
  3112. "${c1} \`:/: \`.----//----.\` :/- %s"
  3113. "${c1} .:. \`---\` \`--.\` .:\` %s"
  3114. "${c1} .:\` \`--\` .:- \`:. %s"
  3115. "${c1} \`/ \`:. \`.-::-.\` -:\` \`/\` %s"
  3116. "${c1} /. /. \`:++++++++:\` .: .: %s"
  3117. "${c1} \`/ .: \`+++++++++++/ /\` \`+\` %s"
  3118. "${c1} /+\` -- .++++++++++++\` :. .+: %s"
  3119. "${c1} \`/ .: \`+++++++++++/ /\` \`+\` %s"
  3120. "${c1} /\` /. \`:++++++++:\` .: .: %s"
  3121. "${c1} ./ \`:. \`.:::-.\` -:\` \`/\` %s"
  3122. "${c1} .:\` \`--\` .:- \`:. %s"
  3123. "${c1} .:. \`---\` \`--.\` .:\` %s"
  3124. "${c1} \`:/: \`.----//----.\` :/- %s"
  3125. "${c1} .-:.\` \`\` \`-:-. %s"
  3126. "${c1} \`---.\`\` \`\` \`.---.\` %s"
  3127. "${c1} \`..---+/---..\` %s")
  3128. ;;
  3129. "Debian")
  3130. if [[ "$no_color" != "1" ]]; then
  3131. c1=$(getColor 'white') # White
  3132. c2=$(getColor 'light red') # Light Red
  3133. fi
  3134. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  3135. startline="0"
  3136. logowidth="32"
  3137. fulloutput=(
  3138. "${c1} _,met\$\$\$\$\$gg. %s"
  3139. "${c1} ,g\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$P. %s"
  3140. "${c1} ,g\$\$P\"\" \"\"\"Y\$\$.\". %s"
  3141. "${c1} ,\$\$P' \`\$\$\$. %s"
  3142. "${c1} ',\$\$P ,ggs. \`\$\$b: %s"
  3143. "${c1} \`d\$\$' ,\$P\"\' ${c2}.${c1} \$\$\$ %s"
  3144. "${c1} \$\$P d\$\' ${c2},${c1} \$\$P %s"
  3145. "${c1} \$\$: \$\$. ${c2}-${c1} ,d\$\$' %s"
  3146. "${c1} \$\$\; Y\$b._ _,d\$P' %s"
  3147. "${c1} Y\$\$. ${c2}\`.${c1}\`\"Y\$\$\$\$P\"' %s"
  3148. "${c1} \`\$\$b ${c2}\"-.__ %s"
  3149. "${c1} \`Y\$\$ %s"
  3150. "${c1} \`Y\$\$. %s"
  3151. "${c1} \`\$\$b. %s"
  3152. "${c1} \`Y\$\$b. %s"
  3153. "${c1} \`\"Y\$b._ %s"
  3154. "${c1} \`\"\"\"\" %s"
  3155. "${c1} %s")
  3156. ;;
  3157. "Proxmox VE")
  3158. if [[ "$no_color" != "1" ]]; then
  3159. c1=$(getColor 'white')
  3160. c2=$(getColor 'orange')
  3161. fi
  3162. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  3163. startline="0"
  3164. logowidth="48"
  3165. fulloutput=(
  3166. "${c1} .://:\` \`://:. %s"
  3167. "${c1} \`hMMMMMMd/ /dMMMMMMh\` %s"
  3168. "${c1} \`sMMMMMMMd: :mMMMMMMMs\` %s"
  3169. "${c2} \`-/+oo+/:${c1}\`.yMMMMMMMh- -hMMMMMMMy.\`${c2}:/+oo+/-\` %s"
  3170. "${c2} \`:oooooooo/${c1}\`-hMMMMMMMyyMMMMMMMh-\`${c2}/oooooooo:\` %s"
  3171. "${c2} \`/oooooooo:${c1}\`:mMMMMMMMMMMMMm:\`${c2}:oooooooo/\` %s"
  3172. "${c2} ./ooooooo+-${c1} +NMMMMMMMMN+ ${c2}-+ooooooo/. %s"
  3173. "${c2} .+ooooooo+-${c1}\`oNMMMMNo\`${c2}-+ooooooo+. %s"
  3174. "${c2} -+ooooooo/.${c1}\`sMMs\`${c2}./ooooooo+- %s"
  3175. "${c2} :oooooooo/${c1}\`..\`${c2}/oooooooo: %s"
  3176. "${c2} :oooooooo/\`${c1}..${c2}\`/oooooooo: %s"
  3177. "${c2} -+ooooooo/.${c1}\`sMMs${c2}\`./ooooooo+- %s"
  3178. "${c2} .+ooooooo+-\`${c1}oNMMMMNo${c2}\`-+ooooooo+. %s"
  3179. "${c2} ./ooooooo+-${c1} +NMMMMMMMMN+ ${c2}-+ooooooo/. %s"
  3180. "${c2} \`/oooooooo:\`${c1}:mMMMMMMMMMMMMm:${c2}\`:oooooooo/\` %s"
  3181. "${c2} \`:oooooooo/\`${c1}-hMMMMMMMyyMMMMMMMh-${c2}\`/oooooooo:\` %s"
  3182. "${c2} \`-/+oo+/:\`${c1}.yMMMMMMMh- -hMMMMMMMy.${c2}\`:/+oo+/-\` %s"
  3183. "${c1} \`sMMMMMMMm: :dMMMMMMMs %s"
  3184. "${c1} \`hMMMMMMd/ /dMMMMMMh %s"
  3185. "${c1} \`://:\` \`://:\` %s")
  3186. ;;
  3187. "Siduction")
  3188. if [[ "$no_color" != "1" ]]; then
  3189. c1=$(getColor 'light blue') # Light Blue
  3190. c2=$(getColor 'light blue') # Light Blue
  3191. fi
  3192. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  3193. startline="0"
  3194. logowidth="35"
  3195. fulloutput=(
  3196. "${c1} _ass,, %s"
  3197. "${c1} jmk dm. %s"
  3198. "${c1} 3##qwm#\` %s"
  3199. "${c1} . \"9XZ?\` _aas, %s"
  3200. "${c1} ap!!n, _dW(--\$a %s"
  3201. "${c1} )#hc_m# ]mmwaam#\` %s"
  3202. "${c1} ?##WZ^ -4#####! _as,. %s"
  3203. "${c1} _ais, - _au11a. -\"\"\" <m#\"\"\"Wc %s"
  3204. "${c1} )m6_]m, m#c__m6 :m#m,_<m#> %s"
  3205. "${c1} -Y#m#! 4###m#r -\$##mBm#Z\` %s"
  3206. "${c1} - _as,. \"???~ _aawa,.!S##Z?\` %s"
  3207. "${c1} ym= 3h. <##' -Wo %s"
  3208. "${c1} \$#mm#D\` ]B#qww## %s"
  3209. "${c1} \"?!\"\` _s,.-?#m##T' %s"
  3210. "${c1} _dZ\"\"4a -- %s"
  3211. "${c1} 3Wmaam#; %s"
  3212. "${c1} -9###Z! %s")
  3213. ;;
  3214. "Devuan")
  3215. if [[ "$no_color" != "1" ]]; then
  3216. c1=$(getColor 'light purple') # Light purple
  3217. fi
  3218. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  3219. startline="0"
  3220. logowidth="36"
  3221. fulloutput=(
  3222. "${c1} %s"
  3223. "${c1} ..,,;;;::;,.. %s"
  3224. "${c1} \`':ddd;:,. %s"
  3225. "${c1} \`'dPPd:,. %s"
  3226. "${c1} \`:b\$\$b\`. %s"
  3227. "${c1} 'P\$\$\$d\` %s"
  3228. "${c1} .\$\$\$\$\$\` %s"
  3229. "${c1} ;\$\$\$\$\$P %s"
  3230. "${c1} .:P\$\$\$\$\$\$\` %s"
  3231. "${c1} .,:b\$\$\$\$\$\$\$;' %s"
  3232. "${c1} .,:dP\$\$\$\$\$\$\$\$b:' %s"
  3233. "${c1} .,:;db\$\$\$\$\$\$\$\$\$\$Pd'\` %s"
  3234. "${c1} ,db\$\$\$\$\$\$\$\$\$\$\$\$\$\$b:'\` %s"
  3235. "${c1} :\$\$\$\$\$\$\$\$\$\$\$\$b:'\` %s"
  3236. "${c1} \`\$\$\$\$\$bd:''\` %s"
  3237. "${c1} \`'''\` %s"
  3238. "${c1} %s")
  3239. ;;
  3240. "Raspbian")
  3241. if [[ "$no_color" != "1" ]]; then
  3242. c1=$(getColor 'light green') # Light Green
  3243. c2=$(getColor 'light red') # Light Red
  3244. fi
  3245. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  3246. startline="0"
  3247. logowidth="32"
  3248. fulloutput=(
  3249. "${c1} .',;:cc;,'. .,;::c:,,. %s"
  3250. "${c1} ,ooolcloooo: 'oooooccloo: %s"
  3251. "${c1} .looooc;;:ol :oc;;:ooooo' %s"
  3252. "${c1} ;oooooo: ,ooooooc. %s"
  3253. "${c1} .,:;'. .;:;'. %s"
  3254. "${c2} .dQ. .d0Q0Q0. '0Q. %s"
  3255. "${c2} .0Q0' 'Q0Q0Q' 'Q0Q. %s"
  3256. "${c2} '' .odo. .odo. '' %s"
  3257. "${c2} . .0Q0Q0Q' .0Q0Q0Q. . %s"
  3258. "${c2} ,0Q .0Q0Q0Q0Q 'Q0Q0Q0b. 0Q. %s"
  3259. "${c2} :Q0 Q0Q0Q0Q 'Q0Q0Q0 Q0' %s"
  3260. "${c2} '0 '0Q0' .0Q0. '0' 'Q' %s"
  3261. "${c2} .oo. .0Q0Q0. .oo. %s"
  3262. "${c2} 'Q0Q0. '0Q0Q0Q0. .Q0Q0b %s"
  3263. "${c2} 'Q0Q0. '0Q0Q0' .d0Q0Q' %s"
  3264. "${c2} 'Q0Q' .. '0Q.' %s"
  3265. "${c2} .0Q0Q0Q. %s"
  3266. "${c2} '0Q0Q' %s")
  3267. ;;
  3268. "CrunchBang")
  3269. if [[ "$no_color" != "1" ]]; then
  3270. c1=$(getColor 'white') # White
  3271. fi
  3272. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  3273. startline="0"
  3274. logowidth="38"
  3275. fulloutput=(
  3276. "${c1} %s"
  3277. "${c1} ███ ███ ███ %s"
  3278. "${c1} ███ ███ ███ %s"
  3279. "${c1} ███ ███ ███ %s"
  3280. "${c1} ███ ███ ███ %s"
  3281. "${c1} ████████████████████████████ ███ %s"
  3282. "${c1} ████████████████████████████ ███ %s"
  3283. "${c1} ███ ███ ███ %s"
  3284. "${c1} ███ ███ ███ %s"
  3285. "${c1} ███ ███ ███ %s"
  3286. "${c1} ███ ███ ███ %s"
  3287. "${c1} ████████████████████████████ ███ %s"
  3288. "${c1} ████████████████████████████ ███ %s"
  3289. "${c1} ███ ███ %s"
  3290. "${c1} ███ ███ %s"
  3291. "${c1} ███ ███ ███ %s"
  3292. "${c1} ███ ███ ███ %s"
  3293. "${c1} %s")
  3294. ;;
  3295. "CRUX")
  3296. if [[ "$no_color" != "1" ]]; then
  3297. c1=$(getColor 'light cyan')
  3298. c2=$(getColor 'yellow')
  3299. c3=$(getColor 'white')
  3300. fi
  3301. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; c3="${my_lcolor}"; fi
  3302. startline="1"
  3303. logowidth="27"
  3304. fulloutput=(""
  3305. "${c1} odddd "
  3306. "${c1} oddxkkkxxdoo %s"
  3307. "${c1} ddcoddxxxdoool %s"
  3308. "${c1} xdclodod olol %s"
  3309. "${c1} xoc xdd olol %s"
  3310. "${c1} xdc ${c2}k00${c1}Okdlol %s"
  3311. "${c1} xxd${c2}kOKKKOkd${c1}ldd %s"
  3312. "${c1} xdco${c2}xOkdlo${c1}dldd %s"
  3313. "${c1} ddc:cl${c2}lll${c1}oooodo %s"
  3314. "${c1} odxxdd${c3}xkO000kx${c1}ooxdo %s"
  3315. "${c1} oxdd${c3}x0NMMMMMMWW0od${c1}kkxo %s"
  3316. "${c1} oooxd${c3}0WMMMMMMMMMW0o${c1}dxkx %s"
  3317. "${c1} docldkXW${c3}MMMMMMMWWN${c1}Odolco %s"
  3318. "${c1} xx${c2}dx${c1}kxxOKN${c3}WMMWN${c1}0xdoxo::c %s"
  3319. "${c2} xOkkO${c1}0oo${c3}odOW${c2}WW${c1}XkdodOxc:l %s"
  3320. "${c2} dkkkxkkk${c3}OKX${c2}NNNX0Oxx${c1}xc:cd %s"
  3321. "${c2} odxxdx${c3}xllod${c2}ddooxx${c1}dc:ldo %s"
  3322. "${c2} lodd${c1}dolccc${c2}ccox${c1}xoloo %s"
  3323. "${c1} %s")
  3324. ;;
  3325. "Chrome OS")
  3326. if [[ "$no_color" != "1" ]]; then
  3327. c1=$(getColor 'green') # Green
  3328. c2=$(getColor 'light red') # Light Red
  3329. c3=$(getColor 'yellow') # Bold Yellow
  3330. c4=$(getColor 'light blue') # Light Blue
  3331. c5=$(getColor 'white') # White
  3332. fi
  3333. if [ -n "${my_lcolor}" ]; then
  3334. c1="${my_lcolor}"
  3335. c2="${my_lcolor}"
  3336. c3="${my_lcolor}"
  3337. c4="${my_lcolor}"
  3338. c5="${my_lcolor}"
  3339. fi
  3340. startline="0"
  3341. logowidth="38"
  3342. fulloutput=(
  3343. "${c2} .,:loool:,. %s"
  3344. "${c2} .,coooooooooooooc,. %s"
  3345. "${c2} .,lllllllllllllllllllll,. %s"
  3346. "${c2} ;ccccccccccccccccccccccccc; %s"
  3347. "${c1} '${c2}ccccccccccccccccccccccccccccc. %s"
  3348. "${c1} ,oo${c2}c::::::::okO${c5}000${c3}0OOkkkkkkkkkkk: %s"
  3349. "${c1} .ooool${c2};;;;:x${c5}K0${c4}kxxxxxk${c5}0X${c3}K0000000000. %s"
  3350. "${c1} :oooool${c2};,;O${c5}K${c4}ddddddddddd${c5}KX${c3}000000000d %s"
  3351. "${c1} lllllool${c2};l${c5}N${c4}dllllllllllld${c5}N${c3}K000000000 %s"
  3352. "${c1} lllllllll${c2}o${c5}M${c4}dccccccccccco${c5}W${c3}K000000000 %s"
  3353. "${c1} ;cllllllllX${c5}X${c4}c:::::::::c${c5}0X${c3}000000000d %s"
  3354. "${c1} .ccccllllllO${c5}Nk${c4}c;,,,;cx${c5}KK${c3}0000000000. %s"
  3355. "${c1} .cccccclllllxOO${c5}OOO${c1}Okx${c3}O0000000000; %s"
  3356. "${c1} .:ccccccccllllllllo${c3}O0000000OOO, %s"
  3357. "${c1} ,:ccccccccclllcd${c3}0000OOOOOOl. %s"
  3358. "${c1} '::ccccccccc${c3}dOOOOOOOkx:. %s"
  3359. "${c1} ..,::cccc${c3}xOOOkkko;. %s"
  3360. "${c1} ..,:${c3}dOkxl:. %s")
  3361. ;;
  3362. "DesaOS")
  3363. if [[ "$no_color" != "1" ]]; then
  3364. c1=$(getColor 'light green') #Hijau
  3365. fi
  3366. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  3367. startline="0"
  3368. logowidth="33"
  3369. fulloutput=(
  3370. "${c1} ███████████████████████ %s"
  3371. "${c1} ███████████████████████ %s"
  3372. "${c1} ███████████████████████ %s"
  3373. "${c1} ███████████████████████ %s"
  3374. "${c1} ████████ ███████ %s"
  3375. "${c1} ████████ ███████ %s"
  3376. "${c1} ████████ ███████ %s"
  3377. "${c1} ████████ ███████ %s"
  3378. "${c1} ████████ ███████ %s"
  3379. "${c1} ████████ ███████ %s"
  3380. "${c1} ████████ ███████ %s"
  3381. "${c1} ██████████████████████████████ %s"
  3382. "${c1} ██████████████████████████████ %s"
  3383. "${c1} ████████████████████████ %s"
  3384. "${c1} ████████████████████████ %s"
  3385. "${c1} ████████████████████████ %s"
  3386. " %s")
  3387. ;;
  3388. "Gentoo")
  3389. if [[ "$no_color" != "1" ]]; then
  3390. c1=$(getColor 'white') # White
  3391. c2=$(getColor 'light purple') # Light Purple
  3392. fi
  3393. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  3394. startline="0"
  3395. logowidth="37"
  3396. fulloutput=(
  3397. "${c2} -/oyddmdhs+:. %s"
  3398. "${c2} -o${c1}dNMMMMMMMMNNmhy+${c2}-\` %s"
  3399. "${c2} -y${c1}NMMMMMMMMMMMNNNmmdhy${c2}+- %s"
  3400. "${c2} \`o${c1}mMMMMMMMMMMMMNmdmmmmddhhy${c2}/\` %s"
  3401. "${c2} om${c1}MMMMMMMMMMMN${c2}hhyyyo${c1}hmdddhhhd${c2}o\` %s"
  3402. "${c2}.y${c1}dMMMMMMMMMMd${c2}hs++so/s${c1}mdddhhhhdm${c2}+\` %s"
  3403. "${c2} oy${c1}hdmNMMMMMMMN${c2}dyooy${c1}dmddddhhhhyhN${c2}d. %s"
  3404. "${c2} :o${c1}yhhdNNMMMMMMMNNNmmdddhhhhhyym${c2}Mh %s"
  3405. "${c2} .:${c1}+sydNMMMMMNNNmmmdddhhhhhhmM${c2}my %s"
  3406. "${c2} /m${c1}MMMMMMNNNmmmdddhhhhhmMNh${c2}s: %s"
  3407. "${c2} \`o${c1}NMMMMMMMNNNmmmddddhhdmMNhs${c2}+\` %s"
  3408. "${c2} \`s${c1}NMMMMMMMMNNNmmmdddddmNMmhs${c2}/. %s"
  3409. "${c2} /N${c1}MMMMMMMMNNNNmmmdddmNMNdso${c2}:\` %s"
  3410. "${c2}+M${c1}MMMMMMNNNNNmmmmdmNMNdso${c2}/- %s"
  3411. "${c2}yM${c1}MNNNNNNNmmmmmNNMmhs+/${c2}-\` %s"
  3412. "${c2}/h${c1}MMNNNNNNNNMNdhs++/${c2}-\` %s"
  3413. "${c2}\`/${c1}ohdmmddhys+++/:${c2}.\` %s"
  3414. "${c2} \`-//////:--. %s")
  3415. ;;
  3416. "Funtoo")
  3417. if [[ "$no_color" != "1" ]]; then
  3418. c1=$(getColor 'white') # White
  3419. c2=$(getColor 'light purple') # Light Purple
  3420. fi
  3421. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  3422. startline="0"
  3423. logowidth="52"
  3424. fulloutput=(
  3425. "${c1} %s"
  3426. "${c1} %s"
  3427. "${c1} %s"
  3428. "${c1} %s"
  3429. "${c1} _______ ____ %s"
  3430. "${c1} /MMMMMMM/ /MMMM| _____ _____ %s"
  3431. "${c1} __/M${c2}.MMM.${c1}M/_____________|M${c2}.M${c1}MM|/MMMMM\/MMMMM\ %s"
  3432. "${c1}|MMMM${c2}MM'${c1}MMMMMMMMMMMMMMMMMMM${c2}MM${c1}MMMM${c2}.MMMM..MMMM.${c1}MM\ %s"
  3433. "${c1}|MM${c2}MMMMMMM${c1}/m${c2}MMMMMMMMMMMMMMMMMMMMMM${c1}MMMM${c2}MM${c1}MMMM${c2}MM${c1}MM| %s"
  3434. "${c1}|MMMM${c2}MM${c1}MMM${c2}MM${c1}MM${c2}MM${c1}MM${c2}MM${c1}MMMMM${c2}\MMM${c1}MMM${c2}MM${c1}MMMM${c2}MM${c1}MMMM${c2}MM${c1}MM| %s"
  3435. "${c1} |MM${c2}MM${c1}MMM${c2}MM${c1}MM${c2}MM${c1}MM${c2}MM${c1}MM${c2}MM${c1}MM${c2}MMM${c1}MMMM${c2}'MMMM''MMMM'${c1}MM/ %s"
  3436. "${c1} |MM${c2}MM${c1}MMM${c2}MM${c1}MM${c2}MM${c1}MM${c2}MM${c1}MM${c2}MM${c1}MM${c2}MMM${c1}MMM\MMMMM/\MMMMM/ %s"
  3437. "${c1} |MM${c2}MM${c1}MMM${c2}MM${c1}MMMMMM${c2}MM${c1}MM${c2}MM${c1}MM${c2}MMMMM'${c1}M| %s"
  3438. "${c1} |MM${c2}MM${c1}MMM${c2}MMMMMMMMMMMMMMMMM MM'${c1}M/ %s"
  3439. "${c1} |MMMMMMMMMMMMMMMMMMMMMMMMMMMM/ %s"
  3440. "${c1} %s"
  3441. "${c1} %s"
  3442. "${c1} %s")
  3443. ;;
  3444. "Kogaion")
  3445. if [[ "$no_color" != "1" ]]; then
  3446. c1=$(getColor 'light blue') # Light Blue
  3447. fi
  3448. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  3449. startline="0"
  3450. logowidth="41"
  3451. fulloutput=(
  3452. "${c1} ;; ,; %s"
  3453. "${c1} ;;; ,;; %s"
  3454. "${c1} ,;;;; ;;;; %s"
  3455. "${c1} ,;;;;;;;; ;;;; %s"
  3456. "${c1} ;;;;;;;;;;; ;;;;; %s"
  3457. "${c1} ,;;;;;;;;;;;; ';;;;;, %s"
  3458. "${c1} ;;;;;;;;;;;;;;, ';;;;;;; %s"
  3459. "${c1} ;;;;;;;;;;;;;;;;;, ';;;;; %s"
  3460. "${c1} ; ';;;;;;;;;;;;;;;;;;, ;;; %s"
  3461. "${c1} ;;;, ';;;;;;;;;;;;;;;;;;;,;; %s"
  3462. "${c1} ;;;;;, ';;;;;;;;;;;;;;;;;;, %s"
  3463. "${c1} ;;;;;;;;, ';;;;;;;;;;;;;;;;, %s"
  3464. "${c1} ;;;;;;;;;;;;, ';;;;;;;;;;;;;; %s"
  3465. "${c1} ';;;;;;;;;;;;; ';;;;;;;;;;;;; %s"
  3466. "${c1} ';;;;;;;;;;;;;, ';;;;;;;;;;; %s"
  3467. "${c1} ';;;;;;;;;;;;; ;;;;;;;;;; %s"
  3468. "${c1} ';;;;;;;;;;;; ;;;;;;;; %s"
  3469. "${c1} ';;;;;;;; ;;;;;; %s"
  3470. "${c1} ';;;;; ;;;; %s"
  3471. "${c1} ';;; ;; %s")
  3472. ;;
  3473. "Fedora")
  3474. if [[ "$no_color" != "1" ]]; then
  3475. c1=$(getColor 'white') # White
  3476. c2=$(getColor 'light blue') # Light Blue
  3477. fi
  3478. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  3479. startline="0"
  3480. logowidth="37"
  3481. fulloutput=(
  3482. "${c2} /:-------------:\ %s"
  3483. "${c2} :-------------------:: %s"
  3484. "${c2} :-----------${c1}/shhOHbmp${c2}---:\\ %s"
  3485. "${c2} /-----------${c1}omMMMNNNMMD ${c2}---: %s"
  3486. "${c2} :-----------${c1}sMMMMNMNMP${c2}. ---: %s"
  3487. "${c2} :-----------${c1}:MMMdP${c2}------- ---\ %s"
  3488. "${c2} ,------------${c1}:MMMd${c2}-------- ---: %s"
  3489. "${c2} :------------${c1}:MMMd${c2}------- .---: %s"
  3490. "${c2} :---- ${c1}oNMMMMMMMMMNho${c2} .----: %s"
  3491. "${c2} :-- .${c1}+shhhMMMmhhy++${c2} .------/ %s"
  3492. "${c2} :- -------${c1}:MMMd${c2}--------------: %s"
  3493. "${c2} :- --------${c1}/MMMd${c2}-------------; %s"
  3494. "${c2} :- ------${c1}/hMMMy${c2}------------: %s"
  3495. "${c2} :--${c1} :dMNdhhdNMMNo${c2}------------; %s"
  3496. "${c2} :---${c1}:sdNMMMMNds:${c2}------------: %s"
  3497. "${c2} :------${c1}:://:${c2}-------------:: %s"
  3498. "${c2} :---------------------:// %s"
  3499. "${c2} %s")
  3500. ;;
  3501. "Fux")
  3502. if [[ "$no_color" != "1" ]]; then
  3503. c1=$(getColor 'white') # White
  3504. c2=$(getColor 'light blue') # Light Blue
  3505. fi
  3506. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  3507. startline="0"
  3508. fulloutput=(
  3509. "${c2} --/+osssso+/-- %s"
  3510. "${c2} -/oshhhhhhhhhhhhso/- %s"
  3511. "${c2} :oyhhhhhso+//+oshhhhhso: %s"
  3512. "${c2} -+yhhhh+. ss+/ .+hhhhs+- %s"
  3513. "${c2} :/hhhh/ shhhy/ /hhhh/: %s"
  3514. "${c2} ./hhhh- .++:..dhhb..:++. -hhhh/. %s"
  3515. "${c2} +ohhh: -hoyhohhoohhohyoh- :hhho+ %s"
  3516. "${c2} /hhhh shhy-ohyyho-yhhs hhhh/ %s"
  3517. "${c2} /hhhh shy\+hhhh+/yhs hhhh/ %s"
  3518. "${c2} +ohhh: .:d. +:ys:+ .b:. :hhho+ %s"
  3519. "${c2} ./hhhh- do / oo \ ob -hhhh/. %s"
  3520. "${c2} :/hhhh/ - ss - /hhhh/: %s"
  3521. "${c2} -+shhhh+. // .+hhhhs+- %s"
  3522. "${c2} :oshhhhhso+//+oshhhhhso: %s"
  3523. "${c2} -/oshhhhhhhhhhhhso/- %s"
  3524. "${c2} --/+osssso+/-- %s")
  3525. ;;
  3526. "Chapeau")
  3527. if [[ "$no_color" != "1" ]]; then
  3528. c1=$(getColor 'white') # White
  3529. c2=$(getColor 'light green') # Light Green
  3530. fi
  3531. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  3532. startline="0"
  3533. logowidth="35"
  3534. fulloutput=(
  3535. "${c2} .-/-. %s"
  3536. "${c2} ////////. %s"
  3537. "${c2} ////////${c1}y+${c2}//. %s"
  3538. "${c2} ////////${c1}mMN${c2}/////. %s"
  3539. "${c2} ////////${c1}mMN+${c2}////////. %s"
  3540. "${c2} ////////////////////////. %s"
  3541. "${c2} /////////+${c1}shhddhyo${c2}+////////. %s"
  3542. "${c2} ////////${c1}ymMNmdhhdmNNdo${c2}///////. %s"
  3543. "${c2} ///////+${c1}mMms${c2}////////${c1}hNMh${c2}///////. %s"
  3544. "${c2} ///////${c1}NMm+${c2}//////////${c1}sMMh${c2}/////// %s"
  3545. "${c2} //////${c1}oMMNmmmmmmmmmmmmMMm${c2}/////// %s"
  3546. "${c2} //////${c1}+MMmssssssssssssss+${c2}/////// %s"
  3547. "${c2} \`//////${c1}yMMy${c2}//////////////////// %s"
  3548. "${c2} \`//////${c1}smMNhso++oydNm${c2}//////// %s"
  3549. "${c2} \`///////${c1}ohmNMMMNNdy+${c2}/////// %s"
  3550. "${c2} \`//////////${c1}++${c2}////////// %s"
  3551. "${c2} \`////////////////. %s"
  3552. "${c2} -////////- %s"
  3553. "${c2} %s")
  3554. ;;
  3555. "Korora")
  3556. if [[ "$no_color" != "1" ]]; then
  3557. c1=$(getColor 'white')
  3558. c2=$(getColor 'light blue')
  3559. fi
  3560. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  3561. startline="0"
  3562. logowidth="32"
  3563. fulloutput=(
  3564. "${c1} ____________ %s"
  3565. "${c1} _add55555555554${c2}: %s"
  3566. "${c1} _w?'${c2}\`\`\`\`\`\`\`\`\`\`'${c1})k${c2}: %s"
  3567. "${c1} _Z'${c2}\`${c1} ]k${c2}: %s"
  3568. "${c1} m(${c2}\`${c1} )k${c2}: %s"
  3569. "${c1} _.ss${c2}\`${c1}m[${c2}\`${c1}, ]e${c2}: %s"
  3570. "${c1} .uY\"^\`${c2}\`${c1}Xc${c2}\`${c1}?Ss. d(${c2}\` %s"
  3571. "${c1} jF'${c2}\`${c1} \`@. ${c2}\`${c1}Sc .jr${c2}\` %s"
  3572. "${c1} jr${c2}\`${c1} \`?n_ ${c2}\`${c1}$; _a2\"${c2}\` %s"
  3573. "${c1} .m${c2}:${c1} \`~M${c2}\`${c1}1k${c2}\`${c1}5?!\`${c2}\` %s"
  3574. "${c1} :#${c2}:${c1} ${c2}\`${c1})e${c2}\`\`\` %s"
  3575. "${c1} :m${c2}:${c1} ,#'${c2}\` %s"
  3576. "${c1} :#${c2}:${c1} .s2'${c2}\` %s"
  3577. "${c1} :m,________.aa7^${c2}\` %s"
  3578. "${c1} :#baaaaaaas!J'${c2}\` %s"
  3579. "${c2} \`\`\`\`\`\`\`\`\`\`\` %s")
  3580. ;;
  3581. "gNewSense")
  3582. if [[ "$no_color" != "1" ]]; then
  3583. c1=$(getColor 'light blue') # Light Blue
  3584. fi
  3585. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  3586. startline="0"
  3587. logowidth="52"
  3588. fulloutput=(
  3589. "${c1} ..,,,,.. %s"
  3590. "${c1} .oocchhhhhhhhhhccoo. %s"
  3591. "${c1} .ochhlllllllc hhhhhh ollllllhhco. %s"
  3592. "${c1} ochlllllllllll hhhllllllhhh lllllllllllhco %s"
  3593. "${c1} .cllllllllllllll hlllllo +hllh llllllllllllllc. %s"
  3594. "${c1} ollllllllllhco\'\' hlllllo +hllh \`\`ochllllllllllo %s"
  3595. "${c1} hllllllllc\' hllllllllllllh \`cllllllllh %s"
  3596. "${c1} ollllllh +llllllllllll+ hllllllo %s"
  3597. "${c1} \`cllllh. ohllllllho .hllllc\' %s"
  3598. "${c1} ochllc. ++++ .cllhco %s"
  3599. "${c1} \`+occooo+. .+ooocco+\' %s"
  3600. "${c1} \`+oo++++ ++++oo+\' %s"
  3601. "${c1} %s")
  3602. ;;
  3603. "BLAG")
  3604. if [[ "$no_color" != "1" ]]; then
  3605. c1=$(getColor 'light purple')
  3606. fi
  3607. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  3608. startline="0"
  3609. logowidth="36"
  3610. fulloutput=(
  3611. "${c1} d %s"
  3612. "${c1} ,MK: %s"
  3613. "${c1} xMMMX: %s"
  3614. "${c1} .NMMMMMX; %s"
  3615. "${c1} lMMMMMMMM0clodkO0KXWW: %s"
  3616. "${c1} KMMMMMMMMMMMMMMMMMMX' %s"
  3617. "${c1} .;d0NMMMMMMMMMMMMMMMMMMK. %s"
  3618. "${c1} .;dONMMMMMMMMMMMMMMMMMMMMMMx %s"
  3619. "${c1} 'dKMMMMMMMMMMMMMMMMMMMMMMMMl %s"
  3620. "${c1} .:xKWMMMMMMMMMMMMMMMMMMM0. %s"
  3621. "${c1} .:xNMMMMMMMMMMMMMMMMMK. %s"
  3622. "${c1} lMMMMMMMMMMMMMMMMMMK. %s"
  3623. "${c1} ,MMMMMMMMWkOXWMMMMMM0 %s"
  3624. "${c1} .NMMMMMNd. \`':ldko %s"
  3625. "${c1} OMMMK: %s"
  3626. "${c1} oWk, %s"
  3627. "${c1} ;: %s")
  3628. ;;
  3629. "FreeBSD")
  3630. if [[ "$no_color" != "1" ]]; then
  3631. c1=$(getColor 'white') # white
  3632. c2=$(getColor 'light red') # Light Red
  3633. fi
  3634. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  3635. startline="0"
  3636. logowidth="37"
  3637. fulloutput=(
  3638. "${c1} %s"
  3639. "${c1} \`\`\` ${c2}\` %s"
  3640. "${c1} \` \`.....---...${c2}....--.\`\`\` -/ %s"
  3641. "${c1} +o .--\` ${c2}/y:\` +. %s"
  3642. "${c1} yo\`:. ${c2}:o \`+- %s"
  3643. "${c1} y/ ${c2}-/\` -o/ %s"
  3644. "${c1} .- ${c2}::/sy+:. %s"
  3645. "${c1} / ${c2}\`-- / %s"
  3646. "${c1} \`: ${c2}:\` %s"
  3647. "${c1} \`: ${c2}:\` %s"
  3648. "${c1} / ${c2}/ %s"
  3649. "${c1} .- ${c2}-. %s"
  3650. "${c1} -- ${c2}-. %s"
  3651. "${c1} \`:\` ${c2}\`:\` %s"
  3652. "${c2} .-- \`--. %s"
  3653. "${c2} .---.....----. %s"
  3654. "${c2} %s"
  3655. "${c2} %s")
  3656. ;;
  3657. "FreeBSD - Old")
  3658. if [[ "$no_color" != "1" ]]; then
  3659. c1=$(getColor 'white') # white
  3660. c2=$(getColor 'light red') # Light Red
  3661. fi
  3662. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  3663. startline="0"
  3664. logowidth="34"
  3665. fulloutput=(
  3666. "${c2} , , %s"
  3667. "${c2} /( )\` %s"
  3668. "${c2} \ \___ / | %s"
  3669. "${c2} /- ${c1}_${c2} \`-/ ' %s"
  3670. "${c2} (${c1}/\/ \ ${c2}\ /\\ %s"
  3671. "${c1} / / |${c2} \` \\ %s"
  3672. "${c1} O O )${c2} / | %s"
  3673. "${c1} \`-^--'\`${c2}< ' %s"
  3674. "${c2} (_.) _ ) / %s"
  3675. "${c2} \`.___/\` / %s"
  3676. "${c2} \`-----' / %s"
  3677. "${c1} <----. ${c2}__/ __ \\ %s"
  3678. "${c1} <----|====${c2}O}}}${c1}==${c2}} \} \/${c1}==== %s"
  3679. "${c1} <----' ${c2}\`--' \`.__,' \\ %s"
  3680. "${c2} | | %s"
  3681. "${c2} \ / /\\ %s"
  3682. "${c2} ______( (_ / \______/ %s"
  3683. "${c2} ,' ,-----' | %s"
  3684. "${c2} \`--{__________) %s"
  3685. "${c2} %s")
  3686. ;;
  3687. "OpenBSD")
  3688. if [[ "$no_color" != "1" ]]; then
  3689. c1=$(getColor 'yellow') # Light Yellow
  3690. c2=$(getColor 'brown') # Bold Yellow
  3691. c3=$(getColor 'light cyan') # Light Cyan
  3692. c4=$(getColor 'light red') # Light Red
  3693. c5=$(getColor 'dark grey')
  3694. fi
  3695. if [ -n "${my_lcolor}" ]; then
  3696. c1="${my_lcolor}"
  3697. c2="${my_lcolor}"
  3698. c3="${my_lcolor}"
  3699. c4="${my_lcolor}"
  3700. c5="${my_lcolor}"
  3701. fi
  3702. startline="3"
  3703. logowidth="44"
  3704. fulloutput=(
  3705. "${c3} _ "
  3706. "${c3} (_) "
  3707. "${c1} | . "
  3708. "${c1} . |L /| . ${c3} _ %s"
  3709. "${c1} _ . |\ _| \--+._/| . ${c3}(_) %s"
  3710. "${c1} / ||\| Y J ) / |/| ./ %s"
  3711. "${c1} J |)'( | \` F\`.'/ ${c3} _ %s"
  3712. "${c1} -<| F __ .-< ${c3}(_) %s"
  3713. "${c1} | / .-'${c3}. ${c1}\`. /${c3}-. ${c1}L___ %s"
  3714. "${c1} J \ < ${c3}\ ${c1} | | ${c5}O${c3}\\\\${c1}|.-' ${c3} _ %s"
  3715. "${c1} _J \ .- \\\\${c3}/ ${c5}O ${c3}| ${c1}| \ |${c1}F ${c3}(_) %s"
  3716. "${c1} '-F -<_. \ .-' \`-' L__ %s"
  3717. "${c1}__J _ _. >-' ${c2})${c4}._. ${c1}|-' %s"
  3718. "${c1} \`-|.' /_. ${c4}\_| ${c1} F %s"
  3719. "${c1} /.- . _.< %s"
  3720. "${c1} /' /.' .' \`\ %s"
  3721. "${c1} /L /' |/ _.-'-\ %s"
  3722. "${c1} /'J ___.---'\| %s"
  3723. "${c1} |\ .--' V | \`. \` %s"
  3724. "${c1} |/\`. \`-. \`._) %s"
  3725. "${c1} / .-.\ %s"
  3726. "${c1} \ ( \`\ %s"
  3727. "${c1} \`.\ %s")
  3728. ;;
  3729. "DragonFlyBSD")
  3730. if [[ "$no_color" != "1" ]]; then
  3731. c1=$(getColor 'light red') # Red
  3732. c2=$(getColor 'white') # White
  3733. c3=$(getColor 'yellow')
  3734. c4=$(getColor 'light red')
  3735. fi
  3736. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; c3="${my_lcolor}"; c4="${my_lcolor}"; fi
  3737. startline="0"
  3738. logowidth="43"
  3739. fulloutput=(
  3740. "${c1} | %s"
  3741. "${c1} .-. %s"
  3742. "${c3} ()${c1}I${c3}() %s"
  3743. "${c1} \"==.__:-:__.==\" %s"
  3744. "${c1} \"==.__/~|~\__.==\" %s"
  3745. "${c1} \"==._( Y )_.==\" %s"
  3746. "${c2} .-'~~\"\"~=--...,__${c1}\/|\/${c2}__,...--=~\"\"~~'-. %s"
  3747. "${c2} ( ..=${c1}\\\\=${c1}/${c2}=.. )%s"
  3748. "${c2} \`'-. ,.-\"\`;${c1}/=\\\\${c2} ;\"-.,_ .-'\`%s"
  3749. "${c2} \`~\"-=-~\` .-~\` ${c1}|=|${c2} \`~-. \`~-=-\"~\` %s"
  3750. "${c2} .-~\` /${c1}|=|${c2}\ \`~-. %s"
  3751. "${c2} .~\` / ${c1}|=|${c2} \ \`~. %s"
  3752. "${c2} .-~\` .' ${c1}|=|${c2} \\\\\`. \`~-. %s"
  3753. "${c2} (\` _,.-=\"\` ${c1}|=|${c2} \`\"=-.,_ \`) %s"
  3754. "${c2} \`~\"~\"\` ${c1}|=|${c2} \`\"~\"~\` %s"
  3755. "${c1} /=\ %s"
  3756. "${c1} \=/ %s"
  3757. "${c1} ^ %s")
  3758. ;;
  3759. "NetBSD")
  3760. if [[ "$no_color" != "1" ]]; then
  3761. c1=$(getColor 'orange') # Orange
  3762. c2=$(getColor 'white') # White
  3763. fi
  3764. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  3765. startline="0"
  3766. logowidth="60"
  3767. fulloutput=(
  3768. "${c1} __,gnnnOCCCCCOObaau,_ %s"
  3769. "${c2} _._ ${c1}__,gnnCCCCCCCCOPF\"'' %s"
  3770. "${c2} (N\\\\\\\\${c1}XCbngg,._____.,gnnndCCCCCCCCCCCCF\"___,,,,___ %s"
  3771. "${c2} \\\\N\\\\\\\\${c1}XCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCOOOOPYvv. %s"
  3772. "${c2} \\\\N\\\\\\\\${c1}XCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCPF\"'' %s"
  3773. "${c2} \\\\N\\\\\\\\${c1}XCCCCCCCCCCCCCCCCCCCCCCCCCOF\"' %s"
  3774. "${c2} \\\\N\\\\\\\\${c1}XCCCCCCCCCCCCCCCCCCCCOF\"' %s"
  3775. "${c2} \\\\N\\\\\\\\${c1}XCCCCCCCCCCCCCCCPF\"' %s"
  3776. "${c2} \\\\N\\\\\\\\${c1}\"PCOCCCOCCFP\"\" %s"
  3777. "${c2} \\\\N\ %s"
  3778. "${c2} \\\\N\ %s"
  3779. "${c2} \\\\N\ %s"
  3780. "${c2} \\\\NN\ %s"
  3781. "${c2} \\\\NN\ %s"
  3782. "${c2} \\\\NNA. %s"
  3783. "${c2} \\\\NNA, %s"
  3784. "${c2} \\\\NNN, %s"
  3785. "${c2} \\\\NNN\ %s"
  3786. "${c2} \\\\NNN\ %s"
  3787. "${c2} \\\\NNNA %s")
  3788. ;;
  3789. "Mandriva"|"Mandrake")
  3790. if [[ "$no_color" != "1" ]]; then
  3791. c1=$(getColor 'light blue') # Light Blue
  3792. c2=$(getColor 'yellow') # Bold Yellow
  3793. fi
  3794. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  3795. startline="0"
  3796. logowidth="41"
  3797. fulloutput=(
  3798. "${c2} %s"
  3799. "${c2} \`\` %s"
  3800. "${c2} \`-. %s"
  3801. "${c1} \` ${c2}.--- %s"
  3802. "${c1} -/ ${c2}-::--\` %s"
  3803. "${c1} \`++ ${c2}\`----...\`\`\`-:::::. %s"
  3804. "${c1} \`os. ${c2}.::::::::::::::-\`\`\` \` \` %s"
  3805. "${c1} +s+ ${c2}.::::::::::::::::---...--\` %s"
  3806. "${c1} -ss: ${c2}\`-::::::::::::::::-.\`\`.\`\` %s"
  3807. "${c1} /ss- ${c2}.::::::::::::-.\`\` \` %s"
  3808. "${c1} +ss: ${c2}.::::::::::::- %s"
  3809. "${c1} /sso ${c2}.::::::-::::::- %s"
  3810. "${c1} .sss/ ${c2}-:::-.\` .::::: %s"
  3811. "${c1} /sss+. ${c2}..\`${c1} \`--\` ${c2}.::: %s"
  3812. "${c1} -ossso+/:://+/-\` ${c2}.:\` %s"
  3813. "${c1} -/+ooo+/-. ${c2}\` %s"
  3814. "${c1} %s"
  3815. "${c1} %s")
  3816. ;;
  3817. "openSUSE"|"SUSE Linux Enterprise")
  3818. if [[ "$no_color" != "1" ]]; then
  3819. c1=$(getColor 'light green') # Bold Green
  3820. c2=$c0$bold
  3821. fi
  3822. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  3823. startline="0"
  3824. logowidth="44"
  3825. fulloutput=(
  3826. "${c2} .;ldkO0000Okdl;. %s"
  3827. "${c2} .;d00xl:^''''''^:ok00d;. %s"
  3828. "${c2} .d00l' 'o00d. %s"
  3829. "${c2} .d0K^'${c1} Okxoc;:,. ${c2}^O0d. %s"
  3830. "${c2} .OVV${c1}AK0kOKKKKKKKKKKOxo:, ${c2}lKO. %s"
  3831. "${c2} ,0VV${c1}AKKKKKKKKKKKKK0P^${c2},,,${c1}^dx:${c2} ;00, %s"
  3832. "${c2} .OVV${c1}AKKKKKKKKKKKKKk'${c2}.oOPPb.${c1}'0k.${c2} cKO. %s"
  3833. "${c2} :KV${c1}AKKKKKKKKKKKKKK: ${c2}kKx..dd ${c1}lKd${c2} 'OK: %s"
  3834. "${c2} lKl${c1}KKKKKKKKKOx0KKKd ${c2}^0KKKO' ${c1}kKKc${c2} lKl %s"
  3835. "${c2} lKl${c1}KKKKKKKKKK;.;oOKx,..${c2}^${c1}..;kKKK0.${c2} lKl %s"
  3836. "${c2} :KA${c1}lKKKKKKKKK0o;...^cdxxOK0O/^^' ${c2}.0K: %s"
  3837. "${c2} kKA${c1}VKKKKKKKKKKKK0x;,,......,;od ${c2}lKP %s"
  3838. "${c2} '0KA${c1}VKKKKKKKKKKKKKKKKKK00KKOo^ ${c2}c00' %s"
  3839. "${c2} 'kKA${c1}VOxddxkOO00000Okxoc;'' ${c2}.dKV' %s"
  3840. "${c2} l0Ko. .c00l' %s"
  3841. "${c2} 'l0Kk:. .;xK0l' %s"
  3842. "${c2} 'lkK0xc;:,,,,:;odO0kl' %s"
  3843. "${c2} '^:ldxkkkkxdl:^' %s")
  3844. ;;
  3845. "Slackware")
  3846. if [[ "$no_color" != "1" ]]; then
  3847. c1=$(getColor 'light blue') # Light Blue
  3848. c2=$(getColor 'white') # Bold White
  3849. fi
  3850. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  3851. startline="1"
  3852. logowidth="46"
  3853. fulloutput=(
  3854. "${c1} ::::::: "
  3855. "${c1} ::::::::::::::::::: %s"
  3856. "${c1} ::::::::::::::::::::::::: %s"
  3857. "${c1} ::::::::${c2}cllcccccllllllll${c1}:::::: %s"
  3858. "${c1} :::::::::${c2}lc dc${c1}::::::: %s"
  3859. "${c1} ::::::::${c2}cl clllccllll oc${c1}::::::::: %s"
  3860. "${c1} :::::::::${c2}o lc${c1}::::::::${c2}co oc${c1}:::::::::: %s"
  3861. "${c1} ::::::::::${c2}o cccclc${c1}:::::${c2}clcc${c1}:::::::::::: %s"
  3862. "${c1} :::::::::::${c2}lc cclccclc${c1}::::::::::::: %s"
  3863. "${c1} ::::::::::::::${c2}lcclcc lc${c1}:::::::::::: %s"
  3864. "${c1} ::::::::::${c2}cclcc${c1}:::::${c2}lccclc oc${c1}::::::::::: %s"
  3865. "${c1} ::::::::::${c2}o l${c1}::::::::::${c2}l lc${c1}::::::::::: %s"
  3866. "${c1} :::::${c2}cll${c1}:${c2}o clcllcccll o${c1}::::::::::: %s"
  3867. "${c1} :::::${c2}occ${c1}:${c2}o clc${c1}::::::::::: %s"
  3868. "${c1} ::::${c2}ocl${c1}:${c2}ccslclccclclccclclc${c1}::::::::::::: %s"
  3869. "${c1} :::${c2}oclcccccccccccccllllllllllllll${c1}::::: %s"
  3870. "${c1} ::${c2}lcc1lcccccccccccccccccccccccco${c1}:::: %s"
  3871. "${c1} :::::::::::::::::::::::::::::::: %s"
  3872. "${c1} :::::::::::::::::::::::::::: %s"
  3873. "${c1} :::::::::::::::::::::: %s"
  3874. "${c1} :::::::::::: %s")
  3875. ;;
  3876. "ROSA")
  3877. if [[ "$no_color" != "1" ]]; then
  3878. c1=$(getColor 'rosa_blue') # special blue color from ROSA
  3879. fi
  3880. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  3881. startline="3"
  3882. logowidth="41"
  3883. fulloutput=(
  3884. "${c1} ROSAROSAROSAROSAR "
  3885. "${c1} ROSA AROS "
  3886. "${c1} ROS SAROSAROSAROSAR AROS "
  3887. "${c1} RO ROSAROSAROSAROSAROSAR RO %s"
  3888. "${c1} ARO AROSAROSAROSARO AROS ROS %s"
  3889. "${c1} ARO ROSAROS OSAR ROSA ROS %s"
  3890. "${c1} RO AROSA ROSAROSAROSA ROSAR RO %s"
  3891. "${c1} RO ROSAR ROSAROSAROSAR R ROSARO RO %s"
  3892. "${c1} RO ROSA AROSAROSAROSA AR ROSARO AR %s"
  3893. "${c1} RO AROS ROSAROSAROSA ROS AROSARO AR %s"
  3894. "${c1} RO AROS ROSAROSARO ROSARO ROSARO AR %s"
  3895. "${c1} RO ROS AROSAROS ROSAROSA AROSAR AR %s"
  3896. "${c1} RO ROSA ROS ROSAROSAR ROSARO RO %s"
  3897. "${c1} RO ROS AROSAROSAROSA ROSARO AR %s"
  3898. "${c1} ARO ROSA ROSAROSAROS AROSAR ARO %s"
  3899. "${c1} ARO OROSA R ROSAROS ROS %s"
  3900. "${c1} RO AROSAROS AROSAROSAR RO %s"
  3901. "${c1} AROS AROSAROSAROSARO AROS %s"
  3902. "${c1} ROSA SARO %s"
  3903. "${c1} ROSAROSAROSAROSAR %s")
  3904. ;;
  3905. "Red Hat Enterprise Linux")
  3906. if [[ "$no_color" != "1" ]]; then
  3907. c1=$(getColor 'light red') # Light Red
  3908. fi
  3909. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  3910. startline="0"
  3911. logowidth="42"
  3912. fulloutput=(
  3913. "${c1} .MMM..:MMMMMMM %s"
  3914. "${c1} MMMMMMMMMMMMMMMMMM %s"
  3915. "${c1} MMMMMMMMMMMMMMMMMMMM. %s"
  3916. "${c1} MMMMMMMMMMMMMMMMMMMMMM %s"
  3917. "${c1} ,MMMMMMMMMMMMMMMMMMMMMM: %s"
  3918. "${c1} MMMMMMMMMMMMMMMMMMMMMMMM %s"
  3919. "${c1} .MMMM' MMMMMMMMMMMMMMMMMMMMMM %s"
  3920. "${c1} MMMMMM \`MMMMMMMMMMMMMMMMMMMM. %s"
  3921. "${c1} MMMMMMMM MMMMMMMMMMMMMMMMMM . %s"
  3922. "${c1} MMMMMMMMM. \`MMMMMMMMMMMMM' MM. %s"
  3923. "${c1} MMMMMMMMMMM. MMMM %s"
  3924. "${c1} \`MMMMMMMMMMMMM. ,MMMMM. %s"
  3925. "${c1} \`MMMMMMMMMMMMMMMMM. ,MMMMMMMM. %s"
  3926. "${c1} MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM %s"
  3927. "${c1} MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM: %s"
  3928. "${c1} MMMMMMMMMMMMMMMMMMMMMMMMMMMMMM %s"
  3929. "${c1} \`MMMMMMMMMMMMMMMMMMMMMMMM: %s"
  3930. "${c1} \`\`MMMMMMMMMMMMMMMMM' %s")
  3931. ;;
  3932. "Frugalware")
  3933. if [[ "$no_color" != "1" ]]; then
  3934. c1=$(getColor 'white') # White
  3935. c2=$(getColor 'light blue') # Light Blue
  3936. fi
  3937. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  3938. startline="3"
  3939. logowidth="50"
  3940. fulloutput=(
  3941. "${c2} \`++/::-.\` "
  3942. "${c2} /o+++++++++/::-.\` "
  3943. "${c2} \`o+++++++++++++++o++/::-.\` "
  3944. "${c2} /+++++++++++++++++++++++oo++/:-.\`\` %s"
  3945. "${c2} .o+ooooooooooooooooooosssssssso++oo++/:-\` %s"
  3946. "${c2} ++osoooooooooooosssssssssssssyyo+++++++o: %s"
  3947. "${c2} -o+ssoooooooooooosssssssssssssyyo+++++++s\` %s"
  3948. "${c2} o++ssoooooo++++++++++++++sssyyyyo++++++o: %s"
  3949. "${c2} :o++ssoooooo${c1}/-------------${c2}+syyyyyo+++++oo %s"
  3950. "${c2} \`o+++ssoooooo${c1}/-----${c2}+++++ooosyyyyyyo++++os: %s"
  3951. "${c2} /o+++ssoooooo${c1}/-----${c2}ooooooosyyyyyyyo+oooss %s"
  3952. "${c2} .o++++ssooooos${c1}/------------${c2}syyyyyyhsosssy- %s"
  3953. "${c2} ++++++ssooooss${c1}/-----${c2}+++++ooyyhhhhhdssssso %s"
  3954. "${c2} -s+++++syssssss${c1}/-----${c2}yyhhhhhhhhhhhddssssy. %s"
  3955. "${c2} sooooooyhyyyyyh${c1}/-----${c2}hhhhhhhhhhhddddyssy+ %s"
  3956. "${c2} :yooooooyhyyyhhhyyyyyyhhhhhhhhhhdddddyssy\` %s"
  3957. "${c2} yoooooooyhyyhhhhhhhhhhhhhhhhhhhddddddysy/ %s"
  3958. "${c2}-ysooooooydhhhhhhhhhhhddddddddddddddddssy %s"
  3959. "${c2} .-:/+osssyyyysyyyyyyyyyyyyyyyyyyyyyyssy: %s"
  3960. "${c2} \`\`.-/+oosysssssssssssssssssssssss %s"
  3961. "${c2} \`\`.:/+osyysssssssssssssh. %s"
  3962. "${c2} \`-:/+osyyssssyo %s"
  3963. "${c2} .-:+++\` %s")
  3964. ;;
  3965. "Peppermint")
  3966. if [[ "$no_color" != "1" ]]; then
  3967. c1=$(getColor 'white') # White
  3968. c2=$(getColor 'light red') # Light Red
  3969. fi
  3970. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  3971. startline="3"
  3972. logowidth="40"
  3973. fulloutput=(
  3974. "${c2} PPPPPPPPPPPPPP "
  3975. "${c2} PPPP${c1}MMMMMMM${c2}PPPPPPPPPPP "
  3976. "${c2} PPPP${c1}MMMMMMMMMM${c2}PPPPPPPP${c1}MM${c2}PP "
  3977. "${c2} PPPPPPPP${c1}MMMMMMM${c2}PPPPPPPP${c1}MMMMM${c2}PP %s"
  3978. "${c2} PPPPPPPPPPPP${c1}MMMMMM${c2}PPPPPPP${c1}MMMMMMM${c2}PP %s"
  3979. "${c2} PPPPPPPPPPPP${c1}MMMMMMM${c2}PPPP${c1}M${c2}P${c1}MMMMMMMMM${c2}PP %s"
  3980. "${c2} PP${c1}MMMM${c2}PPPPPPPPPP${c1}MMM${c2}PPPPP${c1}MMMMMMM${c2}P${c1}MM${c2}PPPP %s"
  3981. "${c2} P${c1}MMMMMMMMMM${c2}PPPPPP${c1}MM${c2}PPPPP${c1}MMMMMM${c2}PPPPPPPP %s"
  3982. "${c2}P${c1}MMMMMMMMMMMM${c2}PPPPP${c1}MM${c2}PP${c1}M${c2}P${c1}MM${c2}P${c1}MM${c2}PPPPPPPPPPP%s"
  3983. "${c2}P${c1}MMMMMMMMMMMMMMMM${c2}PP${c1}M${c2}P${c1}MMM${c2}PPPPPPPPPPPPPPPP%s"
  3984. "${c2}P${c1}MMM${c2}PPPPPPPPPPPPPPPPPPPPPPPPPPPPPP${c1}MMMMM${c2}P%s"
  3985. "${c2}PPPPPPPPPPPPPPPP${c1}MMM${c2}P${c1}M${c2}P${c1}MMMMMMMMMMMMMMMM${c2}PP%s"
  3986. "${c2}PPPPPPPPPPP${c1}MM${c2}P${c1}MM${c2}PPPP${c1}MM${c2}PPPPP${c1}MMMMMMMMMMM${c2}PP%s"
  3987. "${c2} PPPPPPPP${c1}MMMMMM${c2}PPPPP${c1}MM${c2}PPPPPP${c1}MMMMMMMMM${c2}PP %s"
  3988. "${c2} PPPP${c1}MM${c2}P${c1}MMMMMMM${c2}PPPPPP${c1}MM${c2}PPPPPPPPPP${c1}MMMM${c2}PP %s"
  3989. "${c2} PP${c1}MMMMMMMMM${c2}P${c1}M${c2}PPPP${c1}MMMMMM${c2}PPPPPPPPPPPPP %s"
  3990. "${c2} PP${c1}MMMMMMM${c2}PPPPPPP${c1}MMMMMM${c2}PPPPPPPPPPPP %s"
  3991. "${c2} PP${c1}MMMM${c2}PPPPPPPPP${c1}MMMMMMM${c2}PPPPPPPP %s"
  3992. "${c2} PP${c1}MM${c2}PPPPPPPP${c1}MMMMMMMMMM${c2}PPPP %s"
  3993. "${c2} PPPPPPPPPP${c1}MMMMMMMM${c2}PPPP %s"
  3994. "${c2} PPPPPPPPPPPPPP %s")
  3995. ;;
  3996. "Grombyang"|"GrombyangOS")
  3997. if [[ "$no_color" != "1" ]]; then
  3998. c1=$(getColor 'light blue')
  3999. c2=$(getColor 'light green')
  4000. c3=$(getColor 'light red')
  4001. fi
  4002. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  4003. startline="0"
  4004. fulloutput=(
  4005. "${c1} eeeeeeeeeeee %s"
  4006. "${c1} eeeeeeeeeeeeeeeee %s"
  4007. "${c1} eeeeeeeeeeeeeeeeeeeeeee %s"
  4008. "${c1} eeeee ${c2}.o+ ${c1}eeee %s"
  4009. "${c1} eeee ${c2}\`ooo/ ${c1}eeee %s"
  4010. "${c1} eeee ${c2}\`+oooo: ${c1}eeee %s"
  4011. "${c1} eee ${c2}\`+oooooo: ${c1}eee %s"
  4012. "${c1} eee ${c2}-+oooooo+: ${c1}eee %s"
  4013. "${c1} ee ${c2}\`/:oooooooo+: ${c1}ee %s"
  4014. "${c1} ee ${c2}\`/+ +++ +: ${c1}ee %s"
  4015. "${c1} ee ${c2}+o+\ ${c1}ee %s"
  4016. "${c1} eee ${c2}+o+\ ${c1}eee %s"
  4017. "${c1} eee ${c2}// \\ooo/ \\\ ${c1}eee %s"
  4018. "${c1} eee ${c2}//++++oooo++++\\\ ${c1}eee %s"
  4019. "${c1} eeee ${c2}::::++oooo+::::: ${c1}eeee %s"
  4020. "${c1} eeeee ${c3}Grombyang OS ${c1} eeee %s"
  4021. "${c1} eeeeeeeeeeeeeeeeeeeeeee %s"
  4022. "${c1} eeeeeeeeeeeeeeeee %s"
  4023. " %s"
  4024. " %s")
  4025. ;;
  4026. "Solus")
  4027. if [[ "$no_color" != "1" ]]; then
  4028. c1=$(getColor 'white') # White
  4029. c2=$(getColor 'blue') # Blue
  4030. c3=$(getColor 'black') # Black
  4031. fi
  4032. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  4033. startline="0"
  4034. logowidth="36"
  4035. fulloutput=(
  4036. "${c3} ...... %s"
  4037. "${c3} .'${c1}D${c3}lddddddddddd'. %s"
  4038. "${c3} .'ddd${c1}XM${c3}xdddddddddddddd. %s"
  4039. "${c3} .dddddx${c1}MMM0${c3};dddddddddddddd. %s"
  4040. "${c3} 'dddddl${c1}MMMMMN${c3}cddddddddddddddd. %s"
  4041. "${c3} ddddddc${c1}WMMMMMMW${c3}lddddddddddddddd. %s"
  4042. "${c3} ddddddc${c1}WMMMMMMMMO${c3}ddoddddddddddddd. %s"
  4043. "${c3}.ddddd:${c1}NMMMMMMMMMK${c3}dd${c1}NX${c3}od;c${c1}lxl${c3}dddddd %s"
  4044. "${c3}dddddc${c1}WMMMMMMMMMMNN${c3}dd${c1}MMXl${c3};d${c1}00xl;${c3}ddd.%s"
  4045. "${c3}ddddl${c1}WMMMMMMMMMMMMM${c3}d;${c1}MMMM0${c3}:dl${c1}XMMXk:${c3}'%s"
  4046. "${c3}dddo${c1}WMMMMMMMMMMMMMM${c3}dd${c1}MMMMMW${c3}od${c3};${c1}XMMMOd%s"
  4047. "${c3}.dd${c1}MMMMMMMMMMMMMMMM${c3}d:${c1}MMMMMMM${c3}kd${c1}lMKll %s"
  4048. "${c3}.;dk0${c1}KXNWWMMMMMMMMM${c3}dx${c1}MMMMMMM${c3}Xl;lxK; %s"
  4049. "${c3} 'dddddddd;:cclodcddxddolloxO0O${c1}d' %s"
  4050. "${c1} ckkxxxddddddddxxkOOO000Okdool. %s"
  4051. "${c2} .lddddxxxxxxddddooooooooood %s"
  4052. "${c2} .:oooooooooooooooooooc' %s"
  4053. "${c2} .,:looooooooooc;. %s")
  4054. ;;
  4055. "Mageia")
  4056. if [[ "$no_color" != "1" ]]; then
  4057. c1=$(getColor 'white') # White
  4058. c2=$(getColor 'light cyan') # Light Cyan
  4059. fi
  4060. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  4061. startline="0"
  4062. logowidth="33"
  4063. fulloutput=(
  4064. "${c2} .°°. %s"
  4065. "${c2} °° .°°. %s"
  4066. "${c2} .°°°. °° %s"
  4067. "${c2} . . %s"
  4068. "${c2} °°° .°°°. %s"
  4069. "${c2} .°°°. '___' %s"
  4070. "${c1} .${c2}'___' ${c1} . %s"
  4071. "${c1} :dkxc;'. ..,cxkd; %s"
  4072. "${c1} .dkk. kkkkkkkkkk .kkd. %s"
  4073. "${c1} .dkk. ';cloolc;. .kkd %s"
  4074. "${c1} ckk. .kk; %s"
  4075. "${c1} xO: cOd %s"
  4076. "${c1} xO: lOd %s"
  4077. "${c1} lOO. .OO: %s"
  4078. "${c1} .k00. .00x %s"
  4079. "${c1} .k00; ;00O. %s"
  4080. "${c1} .lO0Kc;,,,,,,;c0KOc. %s"
  4081. "${c1} ;d00KKKKKK00d; %s"
  4082. "${c1} .,KKKK,. %s")
  4083. ;;
  4084. "Hyperbola GNU/Linux-libre")
  4085. if [[ "$no_color" != "1" ]]; then
  4086. c1=$(getColor 'light grey') # light grey
  4087. fi
  4088. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  4089. startline="0"
  4090. logowidth="25"
  4091. fulloutput=(
  4092. "${c1} %s"
  4093. "${c1} .. , %s"
  4094. "${c1} a; ._# %s"
  4095. "${c1} )## _au#? %s"
  4096. "${c1} ]##s,.__a_w##e^ %s"
  4097. "${c1} :###########( %s"
  4098. "${c1} ^!#####?!^ %s"
  4099. "${c1} ._ %s"
  4100. "${c1} _au######a, %s"
  4101. "${c1} sa###########, %s"
  4102. "${c1} _a##############o %s"
  4103. "${c1} .a#####?!^^^^^-####_ %s"
  4104. "${c1} j####^ ~##i %s"
  4105. "${c1} _de!^ -#i %s"
  4106. "${c1} _#e^ ]+ %s"
  4107. "${c1} ^ ^ %s"
  4108. "${c1} %s")
  4109. ;;
  4110. "Parabola GNU/Linux-libre")
  4111. if [[ "$no_color" != "1" ]]; then
  4112. c1=$(getColor 'purple') # Purple
  4113. fi
  4114. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  4115. startline="0"
  4116. logowidth="33"
  4117. fulloutput=(
  4118. "${c1} %s"
  4119. "${c1} _,, _ %s"
  4120. "${c1} _, ,##' ,##; %s"
  4121. "${c1} _, ,##' ,##' ,#####; %s"
  4122. "${c1} _,;#',##' ,##' ,#######' %s"
  4123. "${c1} _,#**^' \` ,######### %s"
  4124. "${c1} .-^\` \`######### %s"
  4125. "${c1} ######## %s"
  4126. "${c1} ;###### %s"
  4127. "${c1} ;####* %s"
  4128. "${c1} ####' %s"
  4129. "${c1} ;### %s"
  4130. "${c1} ,##' %s"
  4131. "${c1} ## %s"
  4132. "${c1} #' %s"
  4133. "${c1} / %s"
  4134. "${c1} ' %s"
  4135. "${c1} %s")
  4136. ;;
  4137. "Viperr")
  4138. if [[ "$no_color" != "1" ]]; then
  4139. c1=$(getColor 'white') # White
  4140. c2=$(getColor 'dark grey') # Dark Gray
  4141. fi
  4142. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  4143. startline="0"
  4144. logowidth="31"
  4145. fulloutput=(
  4146. "${c1} wwzapd dlzazw %s"
  4147. "${c1} an${c2}#${c1}zncmqzepweeirzpas${c2}#${c1}xz %s"
  4148. "${c1} apez${c2}##${c1}qzdkawweemvmzdm${c2}##${c1}dcmv %s"
  4149. "${c1}zwepd${c2}####${c1}qzdweewksza${c2}####${c1}ezqpa %s"
  4150. "${c1}ezqpdkapeifjeeazezqpdkazdkwqz %s"
  4151. "${c1} ezqpdksz${c2}##${c1}wepuizp${c2}##${c1}wzeiapdk %s"
  4152. "${c1} zqpakdpa${c2}#${c1}azwewep${c2}#${c1}zqpdkqze %s"
  4153. "${c1} apqxalqpewenwazqmzazq %s"
  4154. "${c1} mn${c2}##${c1}==${c2}#######${c1}==${c2}##${c1}qp %s"
  4155. "${c1} qw${c2}##${c1}=${c2}#######${c1}=${c2}##${c1}zl %s"
  4156. "${c1} z0${c2}######${c1}=${c2}######${c1}0a %s"
  4157. "${c1} qp${c2}#####${c1}=${c2}#####${c1}mq %s"
  4158. "${c1} az${c2}####${c1}===${c2}####${c1}mn %s"
  4159. "${c1} ap${c2}#########${c1}qz %s"
  4160. "${c1} 9qlzskwdewz %s"
  4161. "${c1} zqwpakaiw %s"
  4162. "${c1} qoqpe %s"
  4163. "${c1} %s")
  4164. ;;
  4165. "LinuxDeepin")
  4166. if [[ "$no_color" != "1" ]]; then
  4167. c1=$(getColor 'light green') # Bold Green
  4168. fi
  4169. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  4170. startline="0"
  4171. logowidth="33"
  4172. fulloutput=(
  4173. "${c1} eeeeeeeeeeeeeeeeeeeeeeeeeeee %s"
  4174. "${c1} eee eeeeeee eeeeeeee %s"
  4175. "${c1}ee eeeeeeeee eeeeeeeee ee %s"
  4176. "${c1}e eeeeeeeee eeeeeeeee e %s"
  4177. "${c1}e eeeeeee eeeeeeeeee e %s"
  4178. "${c1}e eeeeee eeeee e %s"
  4179. "${c1}e eeeee eee eee e %s"
  4180. "${c1}e eeeee ee eeeeee e %s"
  4181. "${c1}e eeeee eee eee e %s"
  4182. "${c1}e eeeeeeeeee eeee e %s"
  4183. "${c1}e eeeee eeee e %s"
  4184. "${c1}e eeeeee e %s"
  4185. "${c1}e eeeeeee e %s"
  4186. "${c1}e eee eeeeeeee e %s"
  4187. "${c1}eeeeeeeeeeeeeeee e %s"
  4188. "${c1}eeeeeeeeeeeee ee %s"
  4189. "${c1} eeeeeeeeeee eee %s"
  4190. "${c1} eeeeeeeeeeeeeeeeeeeeeeeeeeee %s"
  4191. "${c1} %s")
  4192. ;;
  4193. "Deepin")
  4194. if [[ "$no_color" != "1" ]]; then
  4195. c1=$(getColor 'cyan') # Bold Green
  4196. fi
  4197. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  4198. startline="0"
  4199. logowidth="41"
  4200. fulloutput=(
  4201. "${c1} ............ %s"
  4202. "${c1} .';;;;;. .,;,. %s"
  4203. "${c1} .,;;;;;;;. ';;;;;;;. %s"
  4204. "${c1} .;::::::::' .,::;;,''''',. %s"
  4205. "${c1} ,'.:::::::: .;;'. '; %s"
  4206. "${c1} ;' 'cccccc, ,' :: '.. .: %s"
  4207. "${c1} ,, :ccccc. ;: .c, '' :. ,; %s"
  4208. "${c1} .l. cllll' ., .lc :; .l' l. %s"
  4209. "${c1} .c :lllc ;cl: .l' .ll. :' %s"
  4210. "${c1} .l 'looc. . ,o: 'oo' c, %s"
  4211. "${c1} .o. .:ool::coc' .ooo' o. %s"
  4212. "${c1} :: ..... .;dddo ;c %s"
  4213. "${c1} l:... .';lddddo. ,o %s"
  4214. "${c1} lxxxxxdoolllodxxxxxxxxxc :l %s"
  4215. "${c1} ,dxxxxxxxxxxxxxxxxxxl. 'o, %s"
  4216. "${c1} ,dkkkkkkkkkkkkko;. .;o; %s"
  4217. "${c1} .;okkkkkdl;. .,cl:. %s"
  4218. "${c1} .,:cccccccc:,. %s")
  4219. ;;
  4220. "Chakra")
  4221. if [[ "$no_color" != "1" ]]; then
  4222. c1=$(getColor 'light blue') # Light Blue
  4223. fi
  4224. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  4225. startline="0"
  4226. logowidth="38"
  4227. fulloutput=(
  4228. "${c1} _ _ _ \"kkkkkkkk. %s"
  4229. "${c1} ,kkkkkkkk., \'kkkkkkkkk, %s"
  4230. "${c1} ,kkkkkkkkkkkk., \'kkkkkkkkk. %s"
  4231. "${c1} ,kkkkkkkkkkkkkkkk,\'kkkkkkkk, %s"
  4232. "${c1} ,kkkkkkkkkkkkkkkkkkk\'kkkkkkk. %s"
  4233. "${c1} \"\'\'\"\'\'\',;::,,\"\'\'kkk\'\'kkkkk; __ %s"
  4234. "${c1} ,kkkkkkkkkk, \"k\'\'kkkkk\' ,kkkk %s"
  4235. "${c1} ,kkkkkkk\' ., \' .: \'kkkk\',kkkkkk %s"
  4236. "${c1} ,kkkkkkkk\'.k\' , ,kkkk;kkkkkkkkk %s"
  4237. "${c1} ,kkkkkkkk\';kk \'k \"\'k\',kkkkkkkkkkkk %s"
  4238. "${c1} .kkkkkkkkk.kkkk.\'kkkkkkkkkkkkkkkkkk\' %s"
  4239. "${c1} ;kkkkkkkk\'\'kkkkkk;\'kkkkkkkkkkkkk\'\' %s"
  4240. "${c1} \'kkkkkkk; \'kkkkkkkk.,\"\"\'\'\"\'\'\"\" %s"
  4241. "${c1} \'\'kkkk; \'kkkkkkkkkk., %s"
  4242. "${c1} \';\' \'kkkkkkkkkkkk., %s"
  4243. "${c1} ';kkkkkkkkkk\' %s"
  4244. "${c1} ';kkkkkk\' %s"
  4245. "${c1} \"\'\'\" %s")
  4246. ;;
  4247. "Fuduntu")
  4248. if [[ "$no_color" != "1" ]]; then
  4249. c1=$(getColor 'dark grey') # Dark Gray
  4250. c2=$(getColor 'yellow') # Bold Yellow
  4251. c3=$(getColor 'light red') # Light Red
  4252. c4=$(getColor 'white') # White
  4253. fi
  4254. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; c3="${my_lcolor}"; c4="${my_lcolor}"; fi
  4255. startline="1"
  4256. logowidth="49"
  4257. fulloutput=(
  4258. "${c1} \`dwoapfjsod\`${c2} \`dwoapfjsod\` "
  4259. "${c1} \`xdwdsfasdfjaapz\`${c2} \`dwdsfasdfjaapzx\` %s"
  4260. "${c1} \`wadladfladlafsozmm\`${c2} \`wadladfladlafsozmm\` %s"
  4261. "${c1} \`aodowpwafjwodisosoaas\`${c2} \`odowpwafjwodisosoaaso\` %s"
  4262. "${c1} \`adowofaowiefawodpmmxs\`${c2} \`dowofaowiefawodpmmxso\` %s"
  4263. "${c1} \`asdjafoweiafdoafojffw\`${c2} \`sdjafoweiafdoafojffwq\` %s"
  4264. "${c1} \`dasdfjalsdfjasdlfjdd\`${c2} \`asdfjalsdfjasdlfjdda\` %s"
  4265. "${c1} \`dddwdsfasdfjaapzxaw\`${c2} \`ddwdsfasdfjaapzxawo\` %s"
  4266. "${c1} \`dddwoapfjsowzocmw\`${c2} \`ddwoapfjsowzocmwp\` %s"
  4267. "${c1} \`ddasowjfowiejao\`${c2} \`dasowjfowiejaow\` %s"
  4268. "${c1} %s"
  4269. "${c3} \`ddasowjfowiejao\`${c4} \`dasowjfowiejaow\` %s"
  4270. "${c3} \`dddwoapfjsowzocmw\`${c4} \`ddwoapfjsowzocmwp\` %s"
  4271. "${c3} \`dddwdsfasdfjaapzxaw\`${c4} \`ddwdsfasdfjaapzxawo\` %s"
  4272. "${c3} \`dasdfjalsdfjasdlfjdd\`${c4} \`asdfjalsdfjasdlfjdda\` %s"
  4273. "${c3} \`asdjafoweiafdoafojffw\`${c4} \`sdjafoweiafdoafojffwq\` %s"
  4274. "${c3} \`adowofaowiefawodpmmxs\`${c4} \`dowofaowiefawodpmmxso\` %s"
  4275. "${c3} \`aodowpwafjwodisosoaas\`${c4} \`odowpwafjwodisosoaaso\` %s"
  4276. "${c3} \`wadladfladlafsozmm\`${c4} \`wadladfladlafsozmm\` %s"
  4277. "${c3} \`dwdsfasdfjaapzx\`${c4} \`dwdsfasdfjaapzx\` %s"
  4278. "${c3} \`woapfjsod\`${c4} \`woapfjsod\` %s")
  4279. ;;
  4280. "Zorin OS")
  4281. if [[ "$no_color" != "1" ]]; then
  4282. c1=$(getColor 'light blue') # Light Blue
  4283. fi
  4284. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  4285. startline="0"
  4286. fulloutput=(
  4287. "${c1} ................... %s"
  4288. "${c1} :ooooooooooooooooooo/ %s"
  4289. "${c1} /ooooooooooooooooooooo+ %s"
  4290. "${c1} '''''''''''''''''''''''' %s"
  4291. "${c1} %s"
  4292. "${c1} .++++++++++++++++++/. :++- %s"
  4293. "${c1} -oooooooooooooooo/- :+ooooo: %s"
  4294. "${c1} :oooooooooooooo/- :+ooooooooo: %s"
  4295. "${c1} .oooooooooooo+- :+ooooooooooooo- %s"
  4296. "${c1} -oooooooo/- -+ooooooooooooooo: %s"
  4297. "${c1} .oooo+- -+ooooooooooooooooo- %s"
  4298. "${c1} .-- .-------------------. %s"
  4299. "${c1} %s"
  4300. "${c1} .//////////////////////- %s"
  4301. "${c1} :oooooooooooooooooooo/ %s"
  4302. "${c1} :oooooooooooooooooo: %s"
  4303. "${c1} '''''''''''''''''' %s")
  4304. ;;
  4305. "Mac OS X")
  4306. if [[ "$no_color" != "1" ]]; then
  4307. c1=$(getColor 'green') # Green
  4308. c2=$(getColor 'brown') # Yellow
  4309. c3=$(getColor 'light red') # Orange
  4310. c4=$(getColor 'red') # Red
  4311. c5=$(getColor 'purple') # Purple
  4312. c6=$(getColor 'blue') # Blue
  4313. fi
  4314. if [ -n "${my_lcolor}" ]; then
  4315. c1="${my_lcolor}"
  4316. c2="${my_lcolor}"
  4317. c3="${my_lcolor}"
  4318. c4="${my_lcolor}"
  4319. c5="${my_lcolor}"
  4320. c6="${my_lcolor}"
  4321. fi
  4322. startline="1"
  4323. logowidth="31"
  4324. fulloutput=(
  4325. "${c1} "
  4326. "${c1} -/+:. %s"
  4327. "${c1} :++++. %s"
  4328. "${c1} /+++/. %s"
  4329. "${c1} .:-::- .+/:-\`\`.::- %s"
  4330. "${c1} .:/++++++/::::/++++++/:\` %s"
  4331. "${c2} .:///////////////////////:\` %s"
  4332. "${c2} ////////////////////////\` %s"
  4333. "${c3} -+++++++++++++++++++++++\` %s"
  4334. "${c3} /++++++++++++++++++++++/ %s"
  4335. "${c4} /sssssssssssssssssssssss. %s"
  4336. "${c4} :ssssssssssssssssssssssss- %s"
  4337. "${c5} osssssssssssssssssssssssso/\` %s"
  4338. "${c5} \`syyyyyyyyyyyyyyyyyyyyyyyy+\` %s"
  4339. "${c6} \`ossssssssssssssssssssss/ %s"
  4340. "${c6} :ooooooooooooooooooo+. %s"
  4341. "${c6} \`:+oo+/:-..-:/+o+/- %s"
  4342. "${c6} %s")
  4343. ;;
  4344. "Mac OS X - Classic")
  4345. if [[ "$no_color" != "1" ]]; then
  4346. c1=$(getColor 'blue') # Blue
  4347. c2=$(getColor 'light blue') # Light blue
  4348. c3=$(getColor 'light grey') # Gray
  4349. c4=$(getColor 'dark grey') # Dark Ggray
  4350. fi
  4351. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; c3="${my_lcolor}"; c4="${my_lcolor}"; fi
  4352. startline="1"
  4353. logowidth="39"
  4354. fulloutput=(
  4355. "${c3} "
  4356. "${c3} .. %s"
  4357. "${c3} dWc %s"
  4358. "${c3} ,X0' %s"
  4359. "${c1} ;;;;;;;;;;;;;;;;;;${c3}0Mk${c2}::::::::::::::: %s"
  4360. "${c1} ;;;;;;;;;;;;;;;;;${c3}KWo${c2}:::::::::::::::: %s"
  4361. "${c1} ;;;;;;;;;${c4}NN${c1};;;;;${c3}KWo${c2}:::::${c3}NN${c2}:::::::::: %s"
  4362. "${c1} ;;;;;;;;;${c4}NN${c1};;;;${c3}0Md${c2}::::::${c3}NN${c2}:::::::::: %s"
  4363. "${c1} ;;;;;;;;;${c4}NN${c1};;;${c3}xW0${c2}:::::::${c3}NN${c2}:::::::::: %s"
  4364. "${c1} ;;;;;;;;;;;;;;${c3}KMc${c2}::::::::::::::::::: %s"
  4365. "${c1} ;;;;;;;;;;;;;${c3}lWX${c2}:::::::::::::::::::: %s"
  4366. "${c1} ;;;;;;;;;;;;;${c3}xWWXXXXNN7${c2}::::::::::::: %s"
  4367. "${c1} ;;;;;;;;;;;;;;;;;;;;${c3}WK${c2}:::::::::::::: %s"
  4368. "${c1} ;;;;;${c4}TKX0ko.${c1};;;;;;;${c3}kMx${c2}:::${c3}.cOKNF${c2}::::: %s"
  4369. "${c1} ;;;;;;;;${c4}\`kO0KKKKKKK${c3}NMNXK0OP*${c2}:::::::: %s"
  4370. "${c1} ;;;;;;;;;;;;;;;;;;;${c3}kMx${c2}:::::::::::::: %s"
  4371. "${c1} ;;;;;;;;;;;;;;;;;;;;${c3}WX${c2}:::::::::::::: %s"
  4372. "${c3} lMc %s"
  4373. "${c3} kN. %s"
  4374. "${c3} o' %s"
  4375. "${c3} %s")
  4376. ;;
  4377. "Windows"|"Cygwin"|"Msys")
  4378. if [[ "$no_color" != "1" ]]; then
  4379. c1=$(getColor 'light red') # Red
  4380. c2=$(getColor 'light green') # Green
  4381. c3=$(getColor 'light blue') # Blue
  4382. c4=$(getColor 'yellow') # Yellow
  4383. fi
  4384. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; c3="${my_lcolor}"; c4="${my_lcolor}"; fi
  4385. startline="0"
  4386. logowidth="37"
  4387. fulloutput=(
  4388. "${c1} ,.=:!!t3Z3z., %s"
  4389. "${c1} :tt:::tt333EE3 %s"
  4390. "${c1} Et:::ztt33EEEL${c2} @Ee., .., %s"
  4391. "${c1} ;tt:::tt333EE7${c2} ;EEEEEEttttt33# %s"
  4392. "${c1} :Et:::zt333EEQ.${c2} \$EEEEEttttt33QL %s"
  4393. "${c1} it::::tt333EEF${c2} @EEEEEEttttt33F %s"
  4394. "${c1} ;3=*^\`\`\`\"*4EEV${c2} :EEEEEEttttt33@. %s"
  4395. "${c3} ,.=::::!t=., ${c1}\`${c2} @EEEEEEtttz33QF %s"
  4396. "${c3} ;::::::::zt33)${c2} \"4EEEtttji3P* %s"
  4397. "${c3} :t::::::::tt33.${c4}:Z3z..${c2} \`\`${c4} ,..g. %s"
  4398. "${c3} i::::::::zt33F${c4} AEEEtttt::::ztF %s"
  4399. "${c3} ;:::::::::t33V${c4} ;EEEttttt::::t3 %s"
  4400. "${c3} E::::::::zt33L${c4} @EEEtttt::::z3F %s"
  4401. "${c3}{3=*^\`\`\`\"*4E3)${c4} ;EEEtttt:::::tZ\` %s"
  4402. "${c3} \`${c4} :EEEEtttt::::z7 %s"
  4403. "${c4} \"VEzjt:;;z>*\` %s")
  4404. ;;
  4405. "Windows - Modern")
  4406. if [[ "$no_color" != "1" ]]; then
  4407. c1=$(getColor 'light blue') # Blue
  4408. fi
  4409. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  4410. startline="0"
  4411. logowidth="38"
  4412. fulloutput=(
  4413. "${c1} .., %s"
  4414. "${c1} ....,,:;+ccllll %s"
  4415. "${c1} ...,,+:; cllllllllllllllllll %s"
  4416. "${c1} ,cclllllllllll lllllllllllllllllll %s"
  4417. "${c1} llllllllllllll lllllllllllllllllll %s"
  4418. "${c1} llllllllllllll lllllllllllllllllll %s"
  4419. "${c1} llllllllllllll lllllllllllllllllll %s"
  4420. "${c1} llllllllllllll lllllllllllllllllll %s"
  4421. "${c1} llllllllllllll lllllllllllllllllll %s"
  4422. "${c1} %s"
  4423. "${c1} llllllllllllll lllllllllllllllllll %s"
  4424. "${c1} llllllllllllll lllllllllllllllllll %s"
  4425. "${c1} llllllllllllll lllllllllllllllllll %s"
  4426. "${c1} llllllllllllll lllllllllllllllllll %s"
  4427. "${c1} llllllllllllll lllllllllllllllllll %s"
  4428. "${c1} \`'ccllllllllll lllllllllllllllllll %s"
  4429. "${c1} \`'\"\"*:: :ccllllllllllllllll %s"
  4430. "${c1} \`\`\`\`''\"*::cll %s"
  4431. "${c1} \`\` %s")
  4432. ;;
  4433. "Haiku")
  4434. if [[ "$no_color" != "1" ]]; then
  4435. if [ "$haikualpharelease" == "yes" ]; then
  4436. c1=$(getColor 'black_haiku') # Black
  4437. c2=$(getColor 'light grey') # Light Gray
  4438. else
  4439. c1=$(getColor 'black') # Black
  4440. c2=${c1}
  4441. fi
  4442. c3=$(getColor 'green') # Green
  4443. fi
  4444. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; c3="${my_lcolor}"; fi
  4445. startline="0"
  4446. logowidth="36"
  4447. fulloutput=(
  4448. "${c1} :dc' %s"
  4449. "${c1} 'l:;'${c2},${c1}'ck. .;dc:. %s"
  4450. "${c1} co ${c2}..${c1}k. .;; ':o. %s"
  4451. "${c1} co ${c2}..${c1}k. ol ${c2}.${c1}0. %s"
  4452. "${c1} co ${c2}..${c1}k. oc ${c2}..${c1}0. %s"
  4453. "${c1} co ${c2}..${c1}k. oc ${c2}..${c1}0. %s"
  4454. "${c1}.Ol,. co ${c2}...''${c1}Oc;kkodxOdddOoc,. %s"
  4455. "${c1} ';lxxlxOdxkxk0kd${c3}oooll${c1}dl${c3}ccc:${c1}clxd; %s"
  4456. "${c1} ..${c3}oOolllllccccccc:::::${c1}od; %s"
  4457. "${c1} cx:ooc${c3}:::::::;${c1}cooolcX. %s"
  4458. "${c1} cd${c2}.${c1}''cloxdoollc' ${c2}...${c1}0. %s"
  4459. "${c1} cd${c2}......${c1}k;${c2}.${c1}xl${c2}.... .${c1}0. %s"
  4460. "${c1} .::c${c2};..${c1}cx;${c2}.${c1}xo${c2}..... .${c1}0. %s"
  4461. "${c1} '::c'${c2}...${c1}do${c2}..... .${c1}K, %s"
  4462. "${c1} cd,.${c2}....:${c1}O,${c2}...... %s"
  4463. "${c1} ':clod:'${c2}...... %s"
  4464. "${c1} ${c2}. %s")
  4465. ;;
  4466. "Trisquel")
  4467. if [[ "$no_color" != "1" ]]; then
  4468. c1=$(getColor 'light blue') # Light Blue
  4469. c2=$(getColor 'light cyan') # Blue
  4470. fi
  4471. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  4472. startline="0"
  4473. logowidth="38"
  4474. fulloutput=(
  4475. "${c1} ▄▄▄▄▄▄ %s"
  4476. "${c1} ▄█████████▄ %s"
  4477. "${c1} ▄▄▄▄▄▄ ████▀ ▀████ %s"
  4478. "${c1} ▄██████████▄ ████▀ ▄▄ ▀███ %s"
  4479. "${c1} ▄███▀▀ ▀▀████ ███▄ ▄█ ███ %s"
  4480. "${c1} ▄███ ▄▄▄ ████▄ ▀██████ ▄███ %s"
  4481. "${c1} ███ █▀▀██▄ █████▄ ▀▀ ▄████ %s"
  4482. "${c1} ▀███ ███ ███████▄▄ ▄▄██████ %s"
  4483. "${c1} ▀███▄ ▄███ █████████████${c2}████▀ %s"
  4484. "${c1} ▀█████████ ███████${c2}███▀▀▀ %s"
  4485. "${c1} ▀▀███▀▀ ██${c2}████▀▀ %s"
  4486. "${c2} ██████▀ ▄▄▄▄ %s"
  4487. "${c2} █████▀ ████████ %s"
  4488. "${c2} █████ ███▀ ▀███ %s"
  4489. "${c2} ████▄ ██▄▄▄ ███ %s"
  4490. "${c2} █████▄ ▀▀ ▄██ %s"
  4491. "${c2} ██████▄▄▄████ %s"
  4492. "${c2} █████▀▀ %s")
  4493. ;;
  4494. "Manjaro")
  4495. if [[ "$no_color" != "1" ]]; then
  4496. c1=$(getColor 'light green') # Green
  4497. fi
  4498. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  4499. startline="1"
  4500. logowidth="33"
  4501. fulloutput=(""
  4502. "${c1} ██████████████████ ████████ %s"
  4503. "${c1} ██████████████████ ████████ %s"
  4504. "${c1} ██████████████████ ████████ %s"
  4505. "${c1} ██████████████████ ████████ %s"
  4506. "${c1} ████████ ████████ %s"
  4507. "${c1} ████████ ████████ ████████ %s"
  4508. "${c1} ████████ ████████ ████████ %s"
  4509. "${c1} ████████ ████████ ████████ %s"
  4510. "${c1} ████████ ████████ ████████ %s"
  4511. "${c1} ████████ ████████ ████████ %s"
  4512. "${c1} ████████ ████████ ████████ %s"
  4513. "${c1} ████████ ████████ ████████ %s"
  4514. "${c1} ████████ ████████ ████████ %s"
  4515. "${c1} ████████ ████████ ████████ %s"
  4516. " %s")
  4517. ;;
  4518. "Netrunner")
  4519. if [[ "$no_color" != "1" ]]; then
  4520. c1=$(getColor 'light blue') # Blue
  4521. fi
  4522. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  4523. startline="0"
  4524. logowidth="43"
  4525. fulloutput=(
  4526. "${c1} nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn %s"
  4527. "${c1} nnnnnnnnnnnnnn nnnnnnnnnnnnnn %s"
  4528. "${c1} nnnnnnnnnn nnnnnnnnnn nnnnnnnnnn %s"
  4529. "${c1} nnnnnnn nnnnnnnnnnnnnnnnnnnn nnnnnnn %s"
  4530. "${c1} nnnn nnnnnnnnnnnnnnnnnnnnnnnnnn nnnn %s"
  4531. "${c1} nnn nnnnnnnnnnnnnnnnnnnnnnnnnnnnnn nnn %s"
  4532. "${c1} nn nnnnnnnnnnnnnnnnnnnnnn nnnnnnnn nn %s"
  4533. "${c1} n nnnnnnnnnnnnnnnnn nnnnnnnnnn n %s"
  4534. "${c1} n nnnnnnnnnnn nnnnnnnnnnn n %s"
  4535. "${c1} n nnnnnn nnnnnnnnnnnn n %s"
  4536. "${c1} n nnnnnnnnnnn nnnnnnnnnnnn n %s"
  4537. "${c1} n nnnnnnnnnnnnn nnnnnnnnnnnn n %s"
  4538. "${c1} n nnnnnnnnnnnnnnnn nnnnnnnnnnnnn n %s"
  4539. "${c1} n nnnnnnnnnnnnnnnnn nnnnnnnnnnnnn n %s"
  4540. "${c1} n nnnnnnnnnnnnnnnnnn nnnnnnnnnnnn n %s"
  4541. "${c1} nn nnnnnnnnnnnnnnnnn nnnnnnnnnnnn nn %s"
  4542. "${c1} nnn nnnnnnnnnnnnnnn nnnnnnnnnnn nnn %s"
  4543. "${c1} nnnnn nnnnnnnnnnnnnn nnnnnnnnn nnnnn %s"
  4544. "${c1} nnnnnnn nnnnnnnnnnnnnnnnnnnn nnnnnnn %s"
  4545. "${c1} nnnnnnnnnn nnnnnnnnnn nnnnnnnnnn %s"
  4546. "${c1} nnnnnnnnnnnnnn nnnnnnnnnnnnnn %s"
  4547. "${c1} nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn %s"
  4548. "${c1} %s")
  4549. ;;
  4550. "Logos")
  4551. if [[ "$no_color" != "1" ]]; then
  4552. c1=$(getColor 'green') # Green
  4553. fi
  4554. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  4555. startline="0"
  4556. logowidth="25"
  4557. fulloutput=(
  4558. "${c1} ..:.:. %s"
  4559. "${c1} ..:.:.:.:. %s"
  4560. "${c1} ..:.:.:.:.:.:. %s"
  4561. "${c1} ..:.:.:.:.:.:.:.:. %s"
  4562. "${c1} .:.::;.::::..:.:.:. %s"
  4563. "${c1} .:.:.::.::.::.;;/ %s"
  4564. "${c1} .:.::.:::///// %s"
  4565. "${c1} ..;;/////// %s"
  4566. "${c1} /////////// %s"
  4567. "${c1} ////////////// %s"
  4568. "${c1} ///////////////// %s"
  4569. "${c1} /////////////////// %s"
  4570. "${c1} ////////////////// %s"
  4571. "${c1} ////////////// %s"
  4572. "${c1} ////////// %s"
  4573. "${c1} ////// %s"
  4574. "${c1} // %s")
  4575. ;;
  4576. "Manjaro-tree")
  4577. if [[ "$no_color" != "1" ]]; then
  4578. c1="\e[1;32m" # Green
  4579. c2="\e[1;33m" # Yellow
  4580. fi
  4581. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  4582. startline="0"
  4583. logowidth="33"
  4584. fulloutput=(
  4585. "${c1} ### %s"
  4586. "${c1} ### #### %s"
  4587. "${c1} ### #### %s"
  4588. "${c1} ##### ##### %s"
  4589. "${c1} ################# %s"
  4590. "${c1} ### ##### #### %s"
  4591. "${c1} ## ${c2}OOO ${c1}### %s"
  4592. "${c1} # ${c2}WW ${c1}## %s"
  4593. "${c1} ${c2}WW ${c1}# %s"
  4594. "${c2} WW %s"
  4595. "${c2} WW %s"
  4596. "${c2} WW %s"
  4597. "${c2} WW %s"
  4598. "${c2} WW %s"
  4599. "${c2} WW %s"
  4600. "${c2} WW %s"
  4601. "${c2} WW %s"
  4602. "${c2} %s")
  4603. ;;
  4604. "elementary OS"|"elementary os")
  4605. if [[ "$no_color" != "1" ]]; then
  4606. c1=$(getColor 'white') # White
  4607. fi
  4608. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  4609. startline="0"
  4610. logowidth="36"
  4611. fulloutput=(
  4612. "${c1} %s"
  4613. "${c1} eeeeeeeeeeeeeeeee %s"
  4614. "${c1} eeeeeeeeeeeeeeeeeeeeeee %s"
  4615. "${c1} eeeee eeeeeeeeeeee eeeee %s"
  4616. "${c1} eeee eeeee eee eeee %s"
  4617. "${c1} eeee eeee eee eeee %s"
  4618. "${c1}eee eee eee eee %s"
  4619. "${c1}eee eee eee eee %s"
  4620. "${c1}ee eee eeee eeee %s"
  4621. "${c1}ee eee eeeee eeeeee %s"
  4622. "${c1}ee eee eeeee eeeee ee %s"
  4623. "${c1}eee eeee eeeeee eeeee eee %s"
  4624. "${c1}eee eeeeeeeeee eeeeee eee %s"
  4625. "${c1} eeeeeeeeeeeeeeeeeeeeeeee eeeee %s"
  4626. "${c1} eeeeeeee eeeeeeeeeeee eeee %s"
  4627. "${c1} eeeee eeeee %s"
  4628. "${c1} eeeeeee eeeeeee %s"
  4629. "${c1} eeeeeeeeeeeeeeeee %s")
  4630. ;;
  4631. "Android")
  4632. if [[ "$no_color" != "1" ]]; then
  4633. c1=$(getColor 'light green') # Bold Green
  4634. fi
  4635. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  4636. startline="2"
  4637. logowidth="24"
  4638. fulloutput=(
  4639. "${c1} ╲ ▁▂▂▂▁ ╱ "
  4640. "${c1} ▄███████▄ "
  4641. "${c1} ▄██ ███ ██▄ %s"
  4642. "${c1} ▄███████████▄ %s"
  4643. "${c1} ▄█ ▄▄▄▄▄▄▄▄▄▄▄▄▄ █▄ %s"
  4644. "${c1} ██ █████████████ ██ %s"
  4645. "${c1} ██ █████████████ ██ %s"
  4646. "${c1} ██ █████████████ ██ %s"
  4647. "${c1} ██ █████████████ ██ %s"
  4648. "${c1} █████████████ %s"
  4649. "${c1} ███████████ %s"
  4650. "${c1} ██ ██ %s"
  4651. "${c1} ██ ██ %s")
  4652. ;;
  4653. "Scientific Linux")
  4654. if [[ "$no_color" != "1" ]]; then
  4655. c1=$(getColor 'light blue')
  4656. c2=$(getColor 'light red')
  4657. c3=$(getColor 'white')
  4658. fi
  4659. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; c3="${my_lcolor}"; fi
  4660. startline="1"
  4661. logowidth="44"
  4662. fulloutput=(
  4663. "${c1} =/;;/- "
  4664. "${c1} +: // %s"
  4665. "${c1} /; /; %s"
  4666. "${c1} -X H. %s"
  4667. "${c1} .//;;;:;;-, X= :+ .-;:=;:;#;. %s"
  4668. "${c1} M- ,=;;;#:, ,:#;;:=, ,@ %s"
  4669. "${c1} :# :#.=/++++/=.$= #= %s"
  4670. "${c1} ,#; #/:+/;,,/++:+/ ;+. %s"
  4671. "${c1} ,+/. ,;@+, ,#H;, ,/+, %s"
  4672. "${c1} ;+;;/= @. ${c2}.H${c3}#${c2}#X ${c1}-X :///+; %s"
  4673. "${c1} ;+=;;;.@, ${c3}.X${c2}M${c3}@$. ${c1}=X.//;=#/. %s"
  4674. "${c1} ,;: :@#= =\$H: .+#- %s"
  4675. "${c1} ,#= #;-///==///-// =#, %s"
  4676. "${c1} ;+ :#-;;;:;;;;-X- +: %s"
  4677. "${c1} @- .-;;;;M- =M/;;;-. -X %s"
  4678. "${c1} :;;::;;-. #- :+ ,-;;-;:== %s"
  4679. "${c1} ,X H. %s"
  4680. "${c1} ;/ #= %s"
  4681. "${c1} // +; %s"
  4682. "${c1} '////' %s")
  4683. ;;
  4684. "BackTrack Linux")
  4685. if [[ "$no_color" != "1" ]]; then
  4686. c1=$(getColor 'white') # White
  4687. c2=$(getColor 'light red') # Light Red
  4688. fi
  4689. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  4690. startline="1"
  4691. logowidth="48"
  4692. fulloutput=(
  4693. "${c1}.............. "
  4694. "${c1} ..,;:ccc,. %s"
  4695. "${c1} ......''';lxO. %s"
  4696. "${c1}.....''''..........,:ld; %s"
  4697. "${c1} .';;;:::;,,.x, %s"
  4698. "${c1} ..'''. 0Xxoc:,. ... %s"
  4699. "${c1} .... ,ONkc;,;cokOdc',. %s"
  4700. "${c1} . OMo ':${c2}dd${c1}o. %s"
  4701. "${c1} dMc :OO; %s"
  4702. "${c1} 0M. .:o. %s"
  4703. "${c1} ;Wd %s"
  4704. "${c1} ;XO, %s"
  4705. "${c1} ,d0Odlc;,.. %s"
  4706. "${c1} ..',;:cdOOd::,. %s"
  4707. "${c1} .:d;.':;. %s"
  4708. "${c1} 'd, .' %s"
  4709. "${c1} ;l ..%s"
  4710. "${c1} .o %s"
  4711. "${c1} c %s"
  4712. "${c1} .' %s"
  4713. "${c1} . %s")
  4714. ;;
  4715. "Kali Linux")
  4716. if [[ "$no_color" != "1" ]]; then
  4717. c1=$(getColor 'light blue') # White
  4718. c2=$(getColor 'black') # Light Red
  4719. fi
  4720. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  4721. startline="1"
  4722. logowidth="48"
  4723. fulloutput=(
  4724. "${c1}.............. "
  4725. "${c1} ..,;:ccc,. %s"
  4726. "${c1} ......''';lxO. %s"
  4727. "${c1}.....''''..........,:ld; %s"
  4728. "${c1} .';;;:::;,,.x, %s"
  4729. "${c1} ..'''. 0Xxoc:,. ... %s"
  4730. "${c1} .... ,ONkc;,;cokOdc',. %s"
  4731. "${c1} . OMo ':${c2}dd${c1}o. %s"
  4732. "${c1} dMc :OO; %s"
  4733. "${c1} 0M. .:o. %s"
  4734. "${c1} ;Wd %s"
  4735. "${c1} ;XO, %s"
  4736. "${c1} ,d0Odlc;,.. %s"
  4737. "${c1} ..',;:cdOOd::,. %s"
  4738. "${c1} .:d;.':;. %s"
  4739. "${c1} 'd, .' %s"
  4740. "${c1} ;l ..%s"
  4741. "${c1} .o %s"
  4742. "${c1} c %s"
  4743. "${c1} .' %s"
  4744. "${c1} . %s")
  4745. ;;
  4746. "Sabayon")
  4747. if [[ "$no_color" != "1" ]]; then
  4748. c1=$(getColor 'white') # White
  4749. c2=$(getColor 'light blue') # Blue
  4750. fi
  4751. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  4752. startline="0"
  4753. logowidth="38"
  4754. fulloutput=(
  4755. "${c2} ........... %s"
  4756. "${c2} .. .. %s"
  4757. "${c2} .. .. %s"
  4758. "${c2} .. ${c1}o ${c2}.. %s"
  4759. "${c2} .. ${c1}:W' ${c2}.. %s"
  4760. "${c2} .. ${c1}.d. ${c2}.. %s"
  4761. "${c2}:. ${c1}.KNO ${c2}.: %s"
  4762. "${c2}:. ${c1}cNNN. ${c2}.: %s"
  4763. "${c2}: ${c1}dXXX, ${c2}: %s"
  4764. "${c2}: ${c1}. dXXX, .cd, ${c2}: %s"
  4765. "${c2}: ${c1}'kc .. dKKK. ,ll;:' ${c2}: %s"
  4766. "${c2}: ${c1}.xkkxc;..dkkkc',cxkkl ${c2}: %s"
  4767. "${c2}:. ${c1}.,cdddddddddddddo:. ${c2}.: %s"
  4768. "${c2} .. ${c1}:lllllll: ${c2}.. %s"
  4769. "${c2} .. ${c1}',,,,, ${c2}.. %s"
  4770. "${c2} .. .. %s"
  4771. "${c2} .. .. %s"
  4772. "${c2} ............... %s")
  4773. ;;
  4774. "KaOS")
  4775. if [[ "$no_color" != "1" ]]; then
  4776. c1=$(getColor 'light blue')
  4777. fi
  4778. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  4779. startline="0"
  4780. logowidth="35"
  4781. fulloutput=(
  4782. "${c1} .. %s"
  4783. "${c1} ..... ..OSSAAAAAAA.. %s"
  4784. "${c1} .KKKKSS. .SSAAAAAAAAAAA. %s"
  4785. "${c1}.KKKKKSO. .SAAAAAAAAAA... %s"
  4786. "${c1}KKKKKKS. .OAAAAAAAA. %s"
  4787. "${c1}KKKKKKS. .OAAAAAA. %s"
  4788. "${c1}KKKKKKS. .SSAA.. %s"
  4789. "${c1}.KKKKKS..OAAAAAAAAAAAA........ %s"
  4790. "${c1} DKKKKO.=AA=========A===AASSSO.. %s"
  4791. "${c1} AKKKS.==========AASSSSAAAAAASS. %s"
  4792. "${c1} .=KKO..========ASS.....SSSSASSSS.%s"
  4793. "${c1} .KK. .ASS..O.. =SSSSAOSS:%s"
  4794. "${c1} .OK. .ASSSSSSSO...=A.SSA.%s"
  4795. "${c1} .K ..SSSASSSS.. ..SSA. %s"
  4796. "${c1} .SSS.AAKAKSSKA. %s"
  4797. "${c1} .SSS....S.. %s")
  4798. ;;
  4799. "CentOS")
  4800. if [[ "$no_color" != "1" ]]; then
  4801. c1=$(getColor 'yellow')
  4802. c2=$(getColor 'light green')
  4803. c3=$(getColor 'light blue')
  4804. c4=$(getColor 'light purple')
  4805. fi
  4806. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; c3="${my_lcolor}"; c4="${my_lcolor}"; fi
  4807. startline="0"
  4808. logowidth="40"
  4809. fulloutput=(
  4810. "${c1} .. %s"
  4811. "${c1} .PLTJ. %s"
  4812. "${c1} <><><><> %s"
  4813. "${c2} KKSSV' 4KKK ${c1}LJ${c4} KKKL.'VSSKK %s"
  4814. "${c2} KKV' 4KKKKK ${c1}LJ${c4} KKKKAL 'VKK %s"
  4815. "${c2} V' ' 'VKKKK ${c1}LJ${c4} KKKKV' ' 'V %s"
  4816. "${c2} .4MA.' 'VKK ${c1}LJ${c4} KKV' '.4Mb. %s"
  4817. "${c4} . ${c2}KKKKKA.' 'V ${c1}LJ${c4} V' '.4KKKKK ${c3}. %s"
  4818. "${c4} .4D ${c2}KKKKKKKA.'' ${c1}LJ${c4} ''.4KKKKKKK ${c3}FA. %s"
  4819. "${c4} <QDD ++++++++++++ ${c3}++++++++++++ GFD> %s"
  4820. "${c4} 'VD ${c3}KKKKKKKK'.. ${c2}LJ ${c1}..'KKKKKKKK ${c3}FV %s"
  4821. "${c4} ' ${c3}VKKKKK'. .4 ${c2}LJ ${c1}K. .'KKKKKV ${c3}' %s"
  4822. "${c3} 'VK'. .4KK ${c2}LJ ${c1}KKA. .'KV' %s"
  4823. "${c3} A. . .4KKKK ${c2}LJ ${c1}KKKKA. . .4 %s"
  4824. "${c3} KKA. 'KKKKK ${c2}LJ ${c1}KKKKK' .4KK %s"
  4825. "${c3} KKSSA. VKKK ${c2}LJ ${c1}KKKV .4SSKK %s"
  4826. "${c2} <><><><> %s"
  4827. "${c2} 'MKKM' %s"
  4828. "${c2} '' %s")
  4829. ;;
  4830. "Jiyuu Linux")
  4831. if [[ "$no_color" != "1" ]]; then
  4832. c1=$(getColor 'light blue') # Light Blue
  4833. fi
  4834. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  4835. startline="0"
  4836. logowidth="31"
  4837. fulloutput=(
  4838. "${c1}+++++++++++++++++++++++. %s"
  4839. "${c1}ss:-......-+so/:----.os- %s"
  4840. "${c1}ss +s/ os- %s"
  4841. "${c1}ss :s+ os- %s"
  4842. "${c1}ss os. os- %s"
  4843. "${c1}ss .so os- %s"
  4844. "${c1}ss :s+ os- %s"
  4845. "${c1}ss /s/ os- %s"
  4846. "${c1}ss /s: os- %s"
  4847. "${c1}ss +s- os- %s"
  4848. "${c1}ss-.....os:..........os- %s"
  4849. "${c1}++++++++os+++++++++oooo. %s"
  4850. "${c1} os. ./oo/. %s"
  4851. "${c1} os. ./oo: %s"
  4852. "${c1} os. ./oo: %s"
  4853. "${c1} os oo+- %s"
  4854. "${c1} os+- %s"
  4855. "${c1} /. %s")
  4856. ;;
  4857. "Antergos")
  4858. if [[ "$no_color" != "1" ]]; then
  4859. c1=$(getColor 'blue') # Light Blue
  4860. c2=$(getColor 'light blue') # Light Blue
  4861. fi
  4862. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  4863. startline="1"
  4864. logowidth="41"
  4865. fulloutput=(
  4866. "${c1} \`.-/::/-\`\` "
  4867. "${c1} .-/osssssssso/. %s"
  4868. "${c1} :osyysssssssyyys+- %s"
  4869. "${c1} \`.+yyyysssssssssyyyyy+. %s"
  4870. "${c1} \`/syyyyyssssssssssyyyyys-\` %s"
  4871. "${c1} \`/yhyyyyysss${c2}++${c1}ssosyyyyhhy/\` %s"
  4872. "${c1} .ohhhyyyys${c2}o++/+o${c1}so${c2}+${c1}syy${c2}+${c1}shhhho. %s"
  4873. "${c1} .shhhhys${c2}oo++//+${c1}sss${c2}+++${c1}yyy${c2}+s${c1}hhhhs. %s"
  4874. "${c1} -yhhhhs${c2}+++++++o${c1}ssso${c2}+++${c1}yyy${c2}s+o${c1}hhddy: %s"
  4875. "${c1} -yddhhy${c2}o+++++o${c1}syyss${c2}++++${c1}yyy${c2}yooy${c1}hdddy- %s"
  4876. "${c1} .yddddhs${c2}o++o${c1}syyyyys${c2}+++++${c1}yyhh${c2}sos${c1}hddddy\` %s"
  4877. "${c1}\`odddddhyosyhyyyyyy${c2}++++++${c1}yhhhyosddddddo %s"
  4878. "${c1}.dmdddddhhhhhhhyyyo${c2}+++++${c1}shhhhhohddddmmh. %s"
  4879. "${c1}ddmmdddddhhhhhhhso${c2}++++++${c1}yhhhhhhdddddmmdy %s"
  4880. "${c1}dmmmdddddddhhhyso${c2}++++++${c1}shhhhhddddddmmmmh %s"
  4881. "${c1}-dmmmdddddddhhys${c2}o++++o${c1}shhhhdddddddmmmmd- %s"
  4882. "${c1} .smmmmddddddddhhhhhhhhhdddddddddmmmms. %s"
  4883. "${c1} \`+ydmmmdddddddddddddddddddmmmmdy/. %s"
  4884. "${c1} \`.:+ooyyddddddddddddyyso+:.\` %s")
  4885. ;;
  4886. "Void Linux")
  4887. if [[ "$no_color" != "1" ]]; then
  4888. c1=$(getColor 'green') # Dark Green
  4889. c2=$(getColor 'light green') # Light Green
  4890. c3=$(getColor 'dark grey') # Black
  4891. fi
  4892. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; c3="${my_lcolor}"; fi
  4893. startline="0"
  4894. logowidth="47"
  4895. fulloutput=(
  4896. "${c2} __.;=====;.__ %s"
  4897. "${c2} _.=+==++=++=+=+===;. %s"
  4898. "${c2} -=+++=+===+=+=+++++=_ %s"
  4899. "${c1} . ${c2}-=:\`\` \`--==+=++==. %s"
  4900. "${c1} _vi, ${c2}\` --+=++++: %s"
  4901. "${c1} .uvnvi. ${c2}_._ -==+==+. %s"
  4902. "${c1} .vvnvnI\` ${c2}.;==|==;. :|=||=|. %s"
  4903. "${c3} +QmQQm${c1}pvvnv; ${c3}_yYsyQQWUUQQQm #QmQ#${c2}:${c3}QQQWUV\$QQmL %s"
  4904. "${c3} -QQWQW${c1}pvvo${c3}wZ?.wQQQE${c2}==<${c3}QWWQ/QWQW.QQWW${c2}(: ${c3}jQWQE %s"
  4905. "${c3} -\$QQQQmmU' jQQQ@${c2}+=<${c3}QWQQ)mQQQ.mQQQC${c2}+;${c3}jWQQ@' %s"
  4906. "${c3} -\$WQ8Y${c1}nI: ${c3}QWQQwgQQWV${c2}\`${c3}mWQQ.jQWQQgyyWW@! %s"
  4907. "${c1} -1vvnvv. ${c2}\`~+++\` ++|+++ %s"
  4908. "${c1} +vnvnnv, ${c2}\`-|=== %s"
  4909. "${c1} +vnvnvns. . ${c2}:=- %s"
  4910. "${c1} -Invnvvnsi..___..=sv=. ${c2}\` %s"
  4911. "${c1} +Invnvnvnnnnnnnnvvnn;. %s"
  4912. "${c1} ~|Invnvnvvnvvvnnv}+\` %s"
  4913. "${c1} -~\"|{*l}*|\"\"~ %s")
  4914. ;;
  4915. "NixOS")
  4916. if [[ "$no_color" != "1" ]]; then
  4917. c1=$(getColor 'blue')
  4918. c2=$(getColor 'light blue')
  4919. fi
  4920. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  4921. startline="0"
  4922. logowidth="45"
  4923. fulloutput=(
  4924. "${c1} ::::. ${c2}'::::: ::::' %s"
  4925. "${c1} '::::: ${c2}':::::. ::::' %s"
  4926. "${c1} ::::: ${c2}'::::.::::: %s"
  4927. "${c1} .......:::::..... ${c2}:::::::: %s"
  4928. "${c1} ::::::::::::::::::. ${c2}:::::: ${c1}::::. %s"
  4929. "${c1} ::::::::::::::::::::: ${c2}:::::. ${c1}.::::' %s"
  4930. "${c2} ..... ::::' ${c1}:::::' %s"
  4931. "${c2} ::::: '::' ${c1}:::::' %s"
  4932. "${c2} ........::::: ' ${c1}:::::::::::. %s"
  4933. "${c2}::::::::::::: ${c1}::::::::::::: %s"
  4934. "${c2} ::::::::::: ${c1}.. ::::: %s"
  4935. "${c2} .::::: ${c1}.::: ::::: %s"
  4936. "${c2} .::::: ${c1}::::: ''''' ${c2}..... %s"
  4937. "${c2} ::::: ${c1}':::::. ${c2}......:::::::::::::' %s"
  4938. "${c2} ::: ${c1}::::::. ${c2}':::::::::::::::::' %s"
  4939. "${c1} .:::::::: ${c2}':::::::::: %s"
  4940. "${c1} .::::''::::. ${c2}'::::. %s"
  4941. "${c1} .::::' ::::. ${c2}'::::. %s"
  4942. "${c1} .:::: :::: ${c2}'::::. %s")
  4943. ;;
  4944. "GuixSD")
  4945. if [[ "$no_color" != "1" ]]; then
  4946. c1=$(getColor 'orange')
  4947. c2=$(getColor 'light orange')
  4948. fi
  4949. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  4950. startline="0"
  4951. logowidth="40"
  4952. fulloutput=(
  4953. "${c1} + ? %s"
  4954. "${c1} ?? ?I %s"
  4955. "${c1} ??I? I??N ${c2}??? ${c1}???? %s"
  4956. "${c1} ?III7${c2}??????? ??????${c1}7III?Z %s"
  4957. "${c1} OI77\$${c2}????? ?????${c1}$77IIII %s"
  4958. "${c1} ????? ${c2}???? %s"
  4959. "${c1} ???ID ${c2}???? %s"
  4960. "${c1} IIII ${c2}+???? %s"
  4961. "${c1} IIIII ${c2}???? %s"
  4962. "${c1} IIII ${c2}????? %s"
  4963. "${c1} IIIII ${c2}???? %s"
  4964. "${c1} II77 ${c2}????$ %s"
  4965. "${c1} 7777+${c2}???? %s"
  4966. "${c1} 77++?${c2}??$ %s"
  4967. "${c1} N?+???${c2}? %s")
  4968. ;;
  4969. "BunsenLabs")
  4970. if [[ "$no_color" != "1" ]]; then
  4971. c1=$(getColor 'blue')
  4972. fi
  4973. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  4974. startline="5"
  4975. logowidth="25"
  4976. fulloutput=(
  4977. "${c1} HC] "
  4978. "${c1} H]]]] "
  4979. "${c1} H]]]]]]4 "
  4980. "${c1} @C]]]]]]]]* "
  4981. "${c1} @]]]]]]]]]]xd "
  4982. "${c1} @]]]]]]]]]]]]]d %s"
  4983. "${c1} 0]]]]]]]]]]]]]]]] %s"
  4984. "${c1} kx]]]]]]x]]x]]]]]%% %s"
  4985. "${c1} #x]]]]]]]]]]]]]x]]]d %s"
  4986. "${c1} #]]]]]]qW x]]x]]]]]4 %s"
  4987. "${c1} k]x]]xg %%x]]]]]]%% %s"
  4988. "${c1} Wx]]]W x]]]]]]] %s"
  4989. "${c1} #]]]4 xx]]x]] %s"
  4990. "${c1} px] ]]]]]x %s"
  4991. "${c1} Wx] x]]x]] %s"
  4992. "${c1} &x x]]]] %s"
  4993. "${c1} m x]]]] %s"
  4994. "${c1} x]x] %s"
  4995. "${c1} x]]] %s"
  4996. "${c1} ]]]] %s"
  4997. "${c1} x]x %s"
  4998. "${c1} x]q %s"
  4999. "${c1} ]g %s"
  5000. "${c1} q %s")
  5001. ;;
  5002. "SteamOS")
  5003. if [[ "$no_color" != "1" ]]; then
  5004. c1=$(getColor 'grey') # Gray
  5005. c2=$(getColor 'purple') # Dark Purple
  5006. c3=$(getColor 'light purple') # Light Purple
  5007. fi
  5008. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; c3="${my_lcolor}"; fi
  5009. startline="0"
  5010. logowidth="37"
  5011. fulloutput=(
  5012. "${c2} .,,,,. %s"
  5013. "${c2} .,'onNMMMMMNNnn',. %s"
  5014. "${c2} .'oNM${c3}ANK${c2}MMMMMMMMMMMNNn'. %s"
  5015. "${c3} .'ANMMMMMMMXK${c2}NNWWWPFFWNNMNn. %s"
  5016. "${c3} ;NNMMMMMMMMMMNWW'' ${c2},.., 'WMMM, %s"
  5017. "${c3} ;NMMMMV+##+VNWWW' ${c3}.+;'':+, 'WM${c2}W, %s"
  5018. "${c3} ,VNNWP+${c1}######${c3}+WW, ${c1}+: ${c3}:+, +MMM, %s"
  5019. "${c3} '${c1}+#############, +. ,+' ${c3}+NMMM %s"
  5020. "${c1} '*#########*' '*,,*' ${c3}.+NMMMM. %s"
  5021. "${c1} \`'*###*' ,.,;###${c3}+WNM, %s"
  5022. "${c1} .,;;, .;##########${c3}+W %s"
  5023. "${c1} ,',. '; ,+##############' %s"
  5024. "${c1} '###+. :,. .,; ,###############' %s"
  5025. "${c1} '####.. \`'' .,###############' %s"
  5026. "${c1} '#####+++################' %s"
  5027. "${c1} '*##################*' %s"
  5028. "${c1} ''*##########*'' %s"
  5029. "${c1} '''''' %s")
  5030. ;;
  5031. "SailfishOS")
  5032. if [[ "$no_color" != "1" ]]; then
  5033. c1=$(getColor 'dark grey') # Grey
  5034. fi
  5035. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  5036. startline="0"
  5037. logowidth="32"
  5038. fulloutput=(
  5039. "${c1} _a@b %s"
  5040. "${c1} _#b (b %s"
  5041. "${c1} _@@ @_ _, %s"
  5042. "${c1} _#^@ _#*^^*gg,aa@^^ %s"
  5043. "${c1} #- @@^ _a@^^ %s"
  5044. "${c1} @_ *g#b %s"
  5045. "${c1} ^@_ ^@_ %s"
  5046. "${c1} ^@_ @ %s"
  5047. "${c1} @(b (b %s"
  5048. "${c1} #b(b#^ %s"
  5049. "${c1} _@_#@^ %s"
  5050. "${c1} _a@a*^ %s"
  5051. "${c1} ,a@*^ %s")
  5052. ;;
  5053. "Qubes OS")
  5054. if [[ "$no_color" != "1" ]]; then
  5055. c1=$(getColor 'cyan')
  5056. c2=$(getColor 'blue')
  5057. c3=$(getColor 'light blue')
  5058. fi
  5059. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; c3="${my_lcolor}"; fi
  5060. startline="0"
  5061. logowidth="47"
  5062. fulloutput=(
  5063. "${c3} #### %s"
  5064. "${c3} ######## %s"
  5065. "${c3} ############ %s"
  5066. "${c3} ####### ####### %s"
  5067. "${c1} #${c3}###### ######${c2}# %s"
  5068. "${c1} ####${c3}### ###${c2}#### %s"
  5069. "${c1} ###### ${c2} ###### %s"
  5070. "${c1} ###### ${c2} ###### %s"
  5071. "${c1} ###### ${c2} ###### %s"
  5072. "${c1} ###### ${c2} ###### %s"
  5073. "${c1} ###### ${c2} ###### %s"
  5074. "${c1} ####### ${c2} ####### %s"
  5075. "${c1} ####### ${c2} ######### %s"
  5076. "${c1} ####### ${c2} ############## %s"
  5077. "${c1} ######${c2}###### ###### %s"
  5078. "${c1} ####${c2}#### ### %s"
  5079. "${c1} ##${c2}## %s"
  5080. "${c1} %s")
  5081. ;;
  5082. "PCLinuxOS")
  5083. if [[ "$no_color" != "1" ]]; then
  5084. c1=$(getColor 'blue') # Blue
  5085. c2=$(getColor 'light grey') # White
  5086. fi
  5087. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi
  5088. startline="0"
  5089. logowidth="50"
  5090. fulloutput=(
  5091. "${c1} %s"
  5092. "${c1} <NNN>%s"
  5093. "${c1} <NNY %s"
  5094. "${c1} <ooooo>--. (( %s"
  5095. "${c1} Aoooooooooooo>--. \\\\\\ %s"
  5096. "${c1} AooodNNNNNNNNNNNNNNNN>--. )) %s"
  5097. "${c2} (${c1} AoodNNNNNNNNNNNNNNNNNNNNNNN>-///' %s"
  5098. "${c2} \\\\\\\\${c1}AodNNNNNNNNNNNNNNNNNNNNNNNNNNNY/ %s"
  5099. "${c1} AodNNNNNNNNNNNNNNNNNNNNNNNNNNNNN %s"
  5100. "${c1} AdNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNA %s"
  5101. "${c1} (${c2}/)${c1}NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNA %s"
  5102. "${c2} //${c1}<NNNNNNNNNNNNNNNNNY' YNNY YNNNN %s"
  5103. "${c2} ,====#Y//${c1} \`<NNNNNNNNNNNY ANY YNA %s"
  5104. "${c1} ANY<NNNNYYN .NY YN. %s"
  5105. "${c1} (NNY NN (NND (NND %s"
  5106. "${c1} (NNU %s"
  5107. "${c1} %s")
  5108. ;;
  5109. "Exherbo")
  5110. if [[ "$no_color" != "1" ]]; then
  5111. c1=$(getColor 'dark grey') # Black
  5112. c2=$(getColor 'light blue') # Blue
  5113. c3=$(getColor 'light red') # Beige
  5114. fi
  5115. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; c3="${my_lcolor}"; fi
  5116. startline="0"
  5117. logowidth="46"
  5118. fulloutput=(
  5119. "${c1} , %s"
  5120. "${c1} OXo. %s"
  5121. "${c1} NXdX0: .cok0KXNNXXK0ko:. %s"
  5122. "${c1} KX '0XdKMMK;.xMMMk, .0MMMMMXx; ... %s"
  5123. "${c1} 'NO..xWkMMx kMMM cMMMMMX,NMWOxOXd. %s"
  5124. "${c1} cNMk NK .oXM. OMMMMO. 0MMNo kW. %s"
  5125. "${c1} lMc o: ., .oKNk; ;NMMWlxW' %s"
  5126. "${c1} ;Mc .. .,,' .0M${c2}g;${c1}WMN'dWMMMMMMO %s"
  5127. "${c1} XX ,WMMMMW. cM${c2}cfli${c1}WMKlo. .kMk %s"
  5128. "${c1} .Mo .WM${c2}GD${c1}MW. XM${c2}WO0${c1}MMk oMl %s"
  5129. "${c1} ,M: ,XMMWx::,''oOK0x; NM. %s"
  5130. "${c1} 'Ml ,kNKOxxxxxkkO0XXKOd:. oMk %s"
  5131. "${c1} NK .0Nxc${c3}:::::::::::::::${c1}fkKNk, .MW %s"
  5132. "${c1} ,Mo .NXc${c3}::${c1}qXWXb${c3}::::::::::${c1}oo${c3}::${c1}lNK. .MW %s"
  5133. "${c1} ;Wo oMd${c3}:::${c1}oNMNP${c3}::::::::${c1}oWMMMx${c3}:${c1}c0M; lMO %s"
  5134. "${c1} 'NO;W0c${c3}:::::::::::::::${c1}dMMMMO${c3}::${c1}lMk .WM' %s"
  5135. "${c1} xWONXdc${c3}::::::::::::::${c1}oOOo${c3}::${c1}lXN. ,WMd %s"
  5136. "${c1} 'KWWNXXK0Okxxo,${c3}:::::::${c1},lkKNo xMMO %s"
  5137. "${c1} :XMNxl,';:lodxkOO000Oxc. .oWMMo %s"
  5138. "${c1} 'dXMMXkl;,. .,o0MMNo' %s"
  5139. "${c1} ':d0XWMMMMWNNNNMMMNOl' %s"
  5140. "${c1} ':okKXWNKkl' %s")
  5141. ;;
  5142. "Red Star OS")
  5143. if [[ "$no_color" != "1" ]]; then
  5144. c1=$(getColor 'light red') # Red
  5145. fi
  5146. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  5147. startline="0"
  5148. logowidth="45"
  5149. fulloutput=(
  5150. "${c1} .. %s"
  5151. "${c1} .oK0l %s"
  5152. "${c1} :0KKKKd. %s"
  5153. "${c1} .xKO0KKKKd %s"
  5154. "${c1} ,Od' .d0000l %s"
  5155. "${c1} .c;. .'''... ..'. %s"
  5156. "${c1} .,:cloddxxxkkkkOOOOkkkkkkkkxxxxxxxxxkkkx: %s"
  5157. "${c1} ;kOOOOOOOkxOkc'...',;;;;,,,'',;;:cllc:,. %s"
  5158. "${c1} .okkkkd,.lko .......',;:cllc:;,,'''''. %s"
  5159. "${c1} .cdo. :xd' cd:. ..';'',,,'',,;;;,'. %s"
  5160. "${c1} . .ddl.;doooc'..;oc;'..';::;,'. %s"
  5161. "${c1} coo;.oooolllllllcccc:'. . %s"
  5162. "${c1} .ool''lllllccccccc:::::;. %s"
  5163. "${c1} ;lll. .':cccc:::::::;;;;' %s"
  5164. "${c1} :lcc:'',..';::::;;;;;;;,,. %s"
  5165. "${c1} :cccc::::;...';;;;;,,,,,,. %s"
  5166. "${c1} ,::::::;;;,'. ..',,,,'''. %s"
  5167. "${c1} ........ ...... %s"
  5168. "${c1} %s")
  5169. ;;
  5170. "SparkyLinux")
  5171. if [[ "$no_color" != "1" ]]; then
  5172. c1=$(getColor 'light gray') # Gray
  5173. fi
  5174. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  5175. startline="0"
  5176. logowidth="48"
  5177. fulloutput=(
  5178. "${c1} . \`-:-\` %s"
  5179. "${c1} .o\` .-///-\` %s"
  5180. "${c1} \`oo\` .:/++:. %s"
  5181. "${c1} os+\` -/+++:\` \`\`.........\`\`\` %s"
  5182. "${c1} /ys+\`./+++/-.-::::::----......\`\` %s"
  5183. "${c1} \`syyo\`++o+--::::-::/+++/-\`\` %s"
  5184. "${c1} -yyy+.+o+\`:/:-:sdmmmmmmmmdy+-\` %s"
  5185. "${c1} ::-\` :yyy/-oo.-+/\`ymho++++++oyhdmdy/\` %s"
  5186. "${c1} \`/yy+-\`.syyo\`+o..o--h..osyhhddhs+//osyy/\` %s"
  5187. "${c1} -ydhs+-oyy/.+o.-: \` \` :/::+ydhy+\`\`\`-os- %s"
  5188. "${c1} .sdddy::syo--/:. \`.:dy+-ohhho ./: %s"
  5189. "${c1} :yddds/:+oo+//:-\`- /+ +hy+.shhy: \`\` %s"
  5190. "${c1} \`:ydmmdysooooooo-.ss\`/yss--oyyo %s"
  5191. "${c1} \`./ossyyyyo+:-/oo:.osso- .oys %s"
  5192. "${c1} \`\`..-------::////.-oooo/ :so %s"
  5193. "${c1} \`...----::::::::--.\`/oooo: .o: %s"
  5194. "${c1} \`\`\`\`\`\`\` ++o+:\` \`:\` %s"
  5195. "${c1} ./+/-\` \` %s"
  5196. "${c1} \`-:-. %s"
  5197. "${c1} \`\` %s")
  5198. ;;
  5199. "Pardus")
  5200. if [[ "$no_color" != "1" ]]; then
  5201. c1=$(getColor 'yellow') # Light Yellow
  5202. c2=$(getColor 'dark grey') # Light Gray
  5203. fi
  5204. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  5205. startline="1"
  5206. logowidth="45"
  5207. fulloutput=(
  5208. ""
  5209. "${c1} .smNdy+- \`.:/osyyso+:.\` -+ydmNs. %s"
  5210. "${c1} /Md- -/ymMdmNNdhso/::/oshdNNmdMmy/. :dM/ %s"
  5211. "${c1} mN. oMdyy- -y \`-dMo .Nm %s"
  5212. "${c1} .mN+\` sMy hN+ -: yMs \`+Nm. %s"
  5213. "${c1} \`yMMddMs.dy \`+\` sMddMMy\` %s"
  5214. "${c1} +MMMo .\` . oMMM+ %s"
  5215. "${c1} \`NM/ \`\`\`\`\`.\` \`.\`\`\`\`\` +MN\` %s"
  5216. "${c1} yM+ \`.-:yhomy ymohy:-.\` +My %s"
  5217. "${c1} yM: yo oy :My %s"
  5218. "${c1} +Ms .N\` \`N. +h sM+ %s"
  5219. "${c1} \`MN - -::::::- : :o:+\`NM\` %s"
  5220. "${c1} yM/ sh -dMMMMd- ho +y+My %s"
  5221. "${c1} .dNhsohMh-//: /mm/ ://-yMyoshNd\` %s"
  5222. "${c1} \`-ommNMm+:/. oo ./:+mMNmmo:\` %s"
  5223. "${c1} \`/o+.-somNh- :yy: -hNmos-.+o/\` %s"
  5224. "${c1} ./\` .s/\`s+sMdd+\`\`+ddMs+s\`/s. \`/. %s"
  5225. "${c1} : -y. -hNmddmNy. .y- : %s"
  5226. "${c1} -+ \`..\` +- %s"
  5227. "%s")
  5228. ;;
  5229. "SwagArch")
  5230. if [[ "$no_color" != "1" ]]; then
  5231. c1=$(getColor 'white') # White
  5232. c2=$(getColor 'light blue') # Light Blue
  5233. fi
  5234. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  5235. startline="0"
  5236. logowidth="48"
  5237. fulloutput=(
  5238. "${c1} %s"
  5239. "${c1} .;ldkOKXXNNNNXXK0Oxoc,. %s"
  5240. "${c1} ,lkXMMNK0OkkxkkOKWMMMMMMMMMM; %s"
  5241. "${c1} 'K0xo ..,;:c:. \`'lKMMMMM0 %s"
  5242. "${c1} .lONMMMMMM' \`lNMk' %s"
  5243. "${c1} ;WMMMMMMMMMO. ${c2}....::... %s"
  5244. "${c1} OMMMMMMMMMMMMKl. ${c2}.,;;;;;ccccccc, %s"
  5245. "${c1} \`0MMMMMMMMMMMMMM0: ${c2}.. .ccccccc. %s"
  5246. "${c1} 'kWMMMMMMMMMMMMMNo. ${c2}.,:' .ccccccc. %s"
  5247. "${c1} \`c0MMMMMMMMMMMMMN,${c2},:c; :cccccc: %s"
  5248. "${c1} ckl. \`lXMMMMMMMMMX${c2}occcc:.. ;ccccccc. %s"
  5249. "${c1} dMMMMXd, \`OMMMMMMWk${c2}ccc;:''\` ,ccccccc: %s"
  5250. "${c1} XMMMMMMMWKkxxOWMMMMMNo${c2}ccc; .cccccccc. %s"
  5251. "${c1} \`':ldxO0KXXXXXK0Okdo${c2}cccc. :cccccccc. %s"
  5252. "${c2} :ccc:' \`cccccccc:, %s"
  5253. "${c2} '' %s"
  5254. "${c2} %s")
  5255. ;;
  5256. "EuroLinux")
  5257. if [[ "$no_color" != "1" ]]; then
  5258. c1=$(getColor 'light blue')
  5259. fi
  5260. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}";fi;
  5261. startline="0"
  5262. logowidth="39"
  5263. fulloutput=(
  5264. "${c1} %s"
  5265. "${c1} DZZZZZZZZZZZZZ %s"
  5266. "${c1} ZZZZZZZZZZZZZZZZZZZ %s"
  5267. "${c1} ZZZZZZZZZZZZZZZZZZZZ %s"
  5268. "${c1} OZZZZZZZZZZZZZZZZZZZZ %s"
  5269. "${c1} Z ZZZ 8ZZZZZZZZZZZZ %s"
  5270. "${c1} ZZZ ZZZZZZZZZZ %s"
  5271. "${c1} ZZZZZN ZZZZZZZZZ %s"
  5272. "${c1} ZZZZZZZ ZZZZZZZZ %s"
  5273. "${c1}ZZZZZZZZ OZZZZZZZ %s"
  5274. "${c1}ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ %s"
  5275. "${c1}ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ %s"
  5276. "${c1}ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ %s"
  5277. "${c1}ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ %s"
  5278. "${c1}ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ %s"
  5279. "${c1}ZZZZZZZZ %s"
  5280. "${c1} ZZZZZZZZ %s"
  5281. "${c1} OZZZZZZZZO %s"
  5282. "${c1} ZZZZZZZZZZZ %s"
  5283. "${c1} OZZZZZZZZZZZZZZZN %s"
  5284. "${c1} ZZZZZZZZZZZZZZZZ %s"
  5285. "${c1} DZZZZZZZZZZZZZZZ %s"
  5286. "${c1} ZZZZZZZZZZZZZ %s"
  5287. "${c1} NZZZZZZZZ %s"
  5288. "${c1} %s")
  5289. ;;
  5290. "OBRevenge")
  5291. if [[ "$no_color" != "1" ]]; then
  5292. c1=$(getColor 'red') # White
  5293. c2=$(getColor 'light blue') # Light Blue
  5294. fi
  5295. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  5296. startline="0"
  5297. logowidth="48"
  5298. fulloutput=(
  5299. "${c1} _@@@@ @@@g_ %s"
  5300. "${c1} _@@@@@@ @@@@@@ %s"
  5301. "${c1} _@@@@@@M W@@@@@@_ %s"
  5302. "${c1} j@@@@P ^W@@@@ %s"
  5303. "${c1} @@@@L____ _____Q@@@@ %s"
  5304. "${c1} Q@@@@@@@@@@j@@@@@@@@@@ %s"
  5305. "${c1} @@@@@ T@j@ T@@@@@ %s"
  5306. "${c1} @@@@@ ___Q@J@ _@@@@@ %s"
  5307. "${c1} @@@@@fMMM@@j@jggg@@@@@@ %s"
  5308. "${c1} @@@@@ j@j@^MW@P @@@@ %s"
  5309. "${c1} Q@@@@@ggg@@f@ @@@@@@L %s"
  5310. "${c1} ^@@@@WWMMP @ Q@@@@ %s"
  5311. "${c1} @@@@@_ _@@@@l %s"
  5312. "${c1} W@@@@@g_____g@@@@@P %s"
  5313. "${c1} @@@@@@@@@@@@@@@@l %s"
  5314. "${c1} ^W@@@@@@@@@@@P %s"
  5315. "${c1} ^TMMMMTll %s"
  5316. "${c1} %s")
  5317. ;;
  5318. "Parrot Security")
  5319. if [[ "$no_color" != "1" ]]; then
  5320. c1=$(getColor 'light blue') # Light Blue
  5321. fi
  5322. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  5323. startline="0"
  5324. logowidth="43"
  5325. fulloutput=(
  5326. "${c1} ,:oho/-. %s"
  5327. "${c1} mMMMMMMMMMMMNmmdhy- %s"
  5328. "${c1} dMMMMMMMMMMMMMMMMMMs. %s"
  5329. "${c1} +MMsohNMMMMMMMMMMMMMm/ %s"
  5330. "${c1} .My .+dMMMMMMMMMMMMMh. %s"
  5331. "${c1} + :NMMMMMMMMMMMMNo %s"
  5332. "${c1} \`yMMMMMMMMMMMMMm: %s"
  5333. "${c1} /NMMMMMMMMMMMMMy. %s"
  5334. "${c1} .hMMMMMMMMMMMMMN+ %s"
  5335. "${c1} \`\`-NMMMMMMMMMd- %s"
  5336. "${c1} /MMMMMMMMMMMs. %s"
  5337. "${c1} mMMMMMMMsyNMN/ %s"
  5338. "${c1} +MMMMMMMo :sNh. %s"
  5339. "${c1} \`NMMMMMMm -o/ %s"
  5340. "${c1} oMMMMMMM. %s"
  5341. "${c1} \`NMMMMMM+ %s"
  5342. "${c1} +MMd/NMh %s"
  5343. "${c1} mMm -mN\` %s"
  5344. "${c1} /MM \`h: %s"
  5345. "${c1} dM\` . %s"
  5346. "${c1} :M- %s"
  5347. "${c1} d: %s"
  5348. "${c1} -+ %s"
  5349. "${c1} - %s")
  5350. ;;
  5351. "Amazon Linux")
  5352. if [[ "$no_color" != "1" ]]; then
  5353. c1=$(getColor 'light orange') # Orange
  5354. fi
  5355. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  5356. startline="0"
  5357. logowidth="40"
  5358. fulloutput=(
  5359. "${c1} .,:cc:,. %s"
  5360. "${c1} .:okXWMMMMMMWXko:. %s"
  5361. "${c1} .:kNMMMMMMMMMMMMMMMMMMNkc. %s"
  5362. "${c1} cc,. \`':ox0XWWXOxo:'\` .,c; %s"
  5363. "${c1} KMMMMXOdc,. '' .,cdOXWMMMO %s"
  5364. "${c1} KMMMMMMMMMMWXO. .OXWMMMMMMMMMMO %s"
  5365. "${c1} KMMMMMMMMMMMMM, ,MMMMMMMMMMMMMO %s"
  5366. "${c1} KMMMMMMMMMMMMM, ,MMMMMMMMMMMMMO %s"
  5367. "${c1} KMMMMMMMMMMMMM, ,MMMMMMMMMMMMMO %s"
  5368. "${c1} KMMMMMMMMMMMMM, ,MMMMMMMMMMMMMO %s"
  5369. "${c1} KMMMMMMMMMMMMM, ,MMMMMMMMMMMMMO %s"
  5370. "${c1} KMMMMMMMMMMMMM, ,MMMMMMMMMMMMMk %s"
  5371. "${c1} KMMMMMMMMMMMMM, ,MMMMMMMMMMMMMd %s"
  5372. "${c1} \`:lx0WMMMMMMMM, ,MMMMMMMMW0xl:\` %s"
  5373. "${c1} \`'lx0NMM, ,MMN0xc'\` %s"
  5374. "${c1} \`'' ''\` %s")
  5375. ;;
  5376. "Source Mage GNU/Linux")
  5377. if [[ "$no_color" != "1" ]]; then
  5378. c1=$(getColor 'dark gray')
  5379. fi
  5380. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  5381. startline="1"
  5382. logowidth="40"
  5383. fulloutput=(
  5384. "${c1} "
  5385. "${c1} -sdNMNds: %s"
  5386. "${c1} .shmNMMMMMMNNNNh. %s"
  5387. "${c1} \` \':sNNNNNNNNNNm- %s"
  5388. "${c1} .NNNNNNmmmmmdo. %s"
  5389. "${c1} -mNmmmmmmmmmmddd: %s"
  5390. "${c1} +mmmmmmmddddddddh- %s"
  5391. "${c1} :mmdddddddddhhhhhy. %s"
  5392. "${c1} -ddddddhhhhhhhhyyyo %s"
  5393. "${c1} .hyhhhhhhhyyyyyyyys: %s"
  5394. "${c1} .\`shyyyyyyyyyssssso %s"
  5395. "${c1} \`/yyyysssssssoooo. %s"
  5396. "${c1} .osssssooooo+++/ %s"
  5397. "${c1} \`:+oooo+++++///. %s"
  5398. "${c1} \`://++//////::- %s"
  5399. "${c1} ..-/// .//::::::--. %s"
  5400. "${c1} \`\`\`\` \`\`\` :::--------\` %s"
  5401. "${c1} \`------....\` %s"
  5402. "${c1} \`.........\` %s"
  5403. "${c1} \`......\` %s")
  5404. ;;
  5405. "OS Elbrus")
  5406. if [[ "$no_color" != "1" ]]; then
  5407. c1=$(getColor 'light blue') # Green
  5408. fi
  5409. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  5410. startline="1"
  5411. logowidth="33"
  5412. fulloutput=(""
  5413. "${c1} ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ %s"
  5414. "${c1} ██▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀██ %s"
  5415. "${c1} ██ ██ %s"
  5416. "${c1} ██ ███████ ███████ ██ %s"
  5417. "${c1} ██ ██ ██ ██ ██ ██ %s"
  5418. "${c1} ██ ██ ██ ██ ██ ██ %s"
  5419. "${c1} ██ ██ ██ ██ ██ ██ %s"
  5420. "${c1} ██ ██ ██ ██ ██ ██ %s"
  5421. "${c1} ██ ██ ███████ ███████ %s"
  5422. "${c1} ██ ██ ██ %s"
  5423. "${c1} ██ ██▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄██ %s"
  5424. "${c1} ██ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀██ %s"
  5425. "${c1} ██ ██ %s"
  5426. "${c1} ███████████████████████████ %s"
  5427. " %s")
  5428. ;;
  5429. "PureOS")
  5430. if [[ "$no_color" != "1" ]]; then
  5431. c1=$(getColor 'dark grey') # "Black"
  5432. fi
  5433. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  5434. startline="1"
  5435. logowidth="44"
  5436. fulloutput=(""
  5437. " %s"
  5438. "${c1} dmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmd %s"
  5439. "${c1} dNm//////////////////////////////////mNd %s"
  5440. "${c1} dNd dNd %s"
  5441. "${c1} dNd dNd %s"
  5442. "${c1} dNd dNd %s"
  5443. "${c1} dNd dNd %s"
  5444. "${c1} dNd dNd %s"
  5445. "${c1} dNd dNd %s"
  5446. "${c1} dNd dNd %s"
  5447. "${c1} dNd dNd %s"
  5448. "${c1} dNm//////////////////////////////////mNd %s"
  5449. "${c1} dmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmd %s"
  5450. " %s")
  5451. ;;
  5452. "januslinux")
  5453. if [[ "$no_color" != "1" ]]; then
  5454. c1=$(getColor 'white') # white
  5455. fi
  5456. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  5457. startline="1"
  5458. logowidth="25"
  5459. fulloutput=(""
  5460. " %s"
  5461. "${c1} ________________ %s"
  5462. "${c1} |\ \ %s"
  5463. "${c1} | \ \ %s"
  5464. "${c1} | \ \ %s"
  5465. "${c1} | \ ______________\ %s"
  5466. "${c1} | | | %s"
  5467. "${c1} | | | %s"
  5468. "${c1} | | | %s"
  5469. "${c1} \ | januslinux | %s"
  5470. "${c1} \ | | %s"
  5471. "${c1} \ | | %s"
  5472. "${c1} \|______________| %s"
  5473. " %s")
  5474. ;;
  5475. *)
  5476. if [[ "${kernel}" =~ "Linux" ]]; then
  5477. if [[ "$no_color" != "1" ]]; then
  5478. c1=$(getColor 'white') # White
  5479. c2=$(getColor 'dark grey') # Light Gray
  5480. c3=$(getColor 'yellow') # Light Yellow
  5481. fi
  5482. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; c3="${my_lcolor}"; fi
  5483. startline="0"
  5484. logowidth="28"
  5485. fulloutput=(
  5486. "${c2} %s"
  5487. "${c2} %s"
  5488. "${c2} %s"
  5489. "${c2} ##### %s"
  5490. "${c2} ####### %s"
  5491. "${c2} ##${c1}O${c2}#${c1}O${c2}## %s"
  5492. "${c2} #${c3}#####${c2}# %s"
  5493. "${c2} ##${c1}##${c3}###${c1}##${c2}## %s"
  5494. "${c2} #${c1}##########${c2}## %s"
  5495. "${c2} #${c1}############${c2}## %s"
  5496. "${c2} #${c1}############${c2}### %s"
  5497. "${c3} ##${c2}#${c1}###########${c2}##${c3}# %s"
  5498. "${c3} ######${c2}#${c1}#######${c2}#${c3}###### %s"
  5499. "${c3} #######${c2}#${c1}#####${c2}#${c3}####### %s"
  5500. "${c3} #####${c2}#######${c3}##### %s"
  5501. "${c2} %s"
  5502. "${c2} %s"
  5503. "${c2} %s")
  5504. elif [[ "${kernel}" =~ "Hurd" || "${kernel}" =~ "GNU" || "${OSTYPE}" == "gnu" ]]; then
  5505. if [[ "$no_color" != "1" ]]; then
  5506. c1=$(getColor 'dark grey') # Light Gray
  5507. fi
  5508. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  5509. startline="0"
  5510. logowidth="37"
  5511. fulloutput=(
  5512. "${c1} _-\`\`\`\`\`-, ,- '- . %s"
  5513. "${c1} .' .- - | | - -. \`. %s"
  5514. "${c1} /.' / \`. \\ %s"
  5515. "${c1} :/ : _... ..._ \`\` : %s"
  5516. "${c1} :: : /._ .\`:'_.._\\. || : %s"
  5517. "${c1} :: \`._ ./ ,\` : \\ . _.'' . %s"
  5518. "${c1} \`:. / | -. \\-. \\\\\_ / %s"
  5519. "${c1} \\:._ _/ .' .@) \\@) \` \`\\ ,.' %s"
  5520. "${c1} _/,--' .- .\\,-.\`--\`. %s"
  5521. "${c1} ,'/'' (( \\ \` ) %s"
  5522. "${c1} /'/' \\ \`-' ( %s"
  5523. "${c1} '/'' \`._,-----' %s"
  5524. "${c1} ''/' .,---' %s"
  5525. "${c1} ''/' ;: %s"
  5526. "${c1} ''/'' ''/ %s"
  5527. "${c1} ''/''/'' %s"
  5528. "${c1} '/'/' %s"
  5529. "${c1} \`; %s")
  5530. # Source: https://www.gnu.org/graphics/alternative-ascii.en.html
  5531. # Copyright (C) 2003, Vijay Kumar
  5532. # Permission is granted to copy, distribute and/or modify this image under the
  5533. # terms of the GNU General Public License as published by the Free Software
  5534. # Foundation; either version 2 of the License, or (at your option) any later
  5535. # version.
  5536. else
  5537. if [[ "$no_color" != "1" ]]; then
  5538. c1=$(getColor 'light green') # Light Green
  5539. fi
  5540. if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
  5541. startline="0"
  5542. logowidth="44"
  5543. fulloutput=(
  5544. "${c1} %s"
  5545. "${c1} %s"
  5546. "${c1} UUU UUU NNN NNN IIIII XXX XXXX%s"
  5547. "${c1} UUU UUU NNNN NNN III XX xXX %s"
  5548. "${c1} UUU UUU NNNNN NNN III XX xXX %s"
  5549. "${c1} UUU UUU NNN NN NNN III XXXX %s"
  5550. "${c1} UUU UUU NNN NN NNN III xXX %s"
  5551. "${c1} UUU UUU NNN NN NNN III xXXXX %s"
  5552. "${c1} UUU UUU NNN NNNNN III xXX XX %s"
  5553. "${c1} UUUuuuUUU NNN NNNN III xXX XX %s"
  5554. "${c1} UUUUU NNN NNN IIIII xXXx xXXx%s"
  5555. "${c1} %s"
  5556. "${c1} %s"
  5557. "${c1} %s"
  5558. "${c1} %s")
  5559. fi
  5560. ;;
  5561. esac
  5562. # Truncate lines based on terminal width.
  5563. if [ "$truncateSet" == "Yes" ]; then
  5564. missinglines=$((${#out_array[*]} + startline - ${#fulloutput[*]}))
  5565. for ((i=0; i<missinglines; i++)); do
  5566. fulloutput+=("${c1}$(printf '%*s' "$logowidth")%s")
  5567. done
  5568. for ((i=0; i<${#fulloutput[@]}; i++)); do
  5569. my_out=$(printf "${fulloutput[i]}$c0\n" "${out_array}")
  5570. my_out_full=$(echo "$my_out" | cat -v)
  5571. termWidth=$(tput cols)
  5572. SHOPT_EXTGLOB_STATE=$(shopt -p extglob)
  5573. read SHOPT_CMD SHOPT_STATE SHOPT_OPT <<< "${SHOPT_EXTGLOB_STATE}"
  5574. if [[ ${SHOPT_STATE} == "-u" ]]; then
  5575. shopt -s extglob
  5576. fi
  5577. stringReal="${my_out_full//\^\[\[@([0-9]|[0-9];[0-9][0-9])m}"
  5578. if [[ ${SHOPT_STATE} == "-u" ]]; then
  5579. shopt -u extglob
  5580. fi
  5581. if [[ "${#stringReal}" -le "${termWidth}" ]]; then
  5582. echo -e "${my_out}"$c0
  5583. elif [[ "${#stringReal}" -gt "${termWidth}" ]]; then
  5584. ((NORMAL_CHAR_COUNT=0))
  5585. for ((j=0; j<=${#my_out_full}; j++)); do
  5586. if [[ "${my_out_full:${j}:3}" == '^[[' ]]; then
  5587. if [[ "${my_out_full:${j}:5}" =~ ^\^\[\[[[:digit:]]m$ ]]; then
  5588. if [[ ${j} -eq 0 ]]; then
  5589. j=$((j + 5))
  5590. else
  5591. j=$((j + 4))
  5592. fi
  5593. elif [[ "${my_out_full:${j}:8}" =~ ^\^\[\[[[:digit:]]\;[[:digit:]][[:digit:]]m ]]; then
  5594. if [[ ${j} -eq 0 ]]; then
  5595. j=$((j + 8))
  5596. else
  5597. j=$((j + 7))
  5598. fi
  5599. fi
  5600. else
  5601. ((NORMAL_CHAR_COUNT++))
  5602. if [[ ${NORMAL_CHAR_COUNT} -ge ${termWidth} ]]; then
  5603. echo -e "${my_out:0:$((j - 5))}"$c0
  5604. break 1
  5605. fi
  5606. fi
  5607. done
  5608. fi
  5609. if [[ "$i" -ge "$startline" ]]; then
  5610. unset 'out_array[0]'
  5611. out_array=( "${out_array[@]}" )
  5612. fi
  5613. done
  5614. elif [[ "$portraitSet" = "Yes" ]]; then
  5615. for i in "${!fulloutput[@]}"; do
  5616. printf "${fulloutput[$i]}$c0\n"
  5617. done
  5618. printf "\n"
  5619. for ((i=0; i<${#fulloutput[*]}; i++)); do
  5620. [[ -z "$out_array[0]" ]] && continue
  5621. printf "%s\n" "${out_array[0]}"
  5622. unset 'out_array[0]'
  5623. out_array=( "${out_array[@]}" )
  5624. done
  5625. elif [[ "$display_logo" == "Yes" ]]; then
  5626. for i in "${!fulloutput[@]}"; do
  5627. printf "${fulloutput[i]}$c0\n"
  5628. done
  5629. else
  5630. if [[ "$lineWrap" = "Yes" ]]; then
  5631. availablespace=$(($(tput cols) - logowidth + 16)) #I dont know why 16 but it works
  5632. new_out_array=("${out_array[0]}")
  5633. for ((i=1; i<${#out_array[@]}; i++)); do
  5634. lines=$(echo "${out_array[i]}" | fmt -w $availablespace)
  5635. IFS=$'\n' read -rd '' -a splitlines <<<"$lines"
  5636. new_out_array+=("${splitlines[0]}")
  5637. for ((j=1; j<${#splitlines[*]}; j++)); do
  5638. line=$(echo -e "$labelcolor $textcolor ${splitlines[j]}")
  5639. new_out_array=( "${new_out_array[@]}" "$line" );
  5640. done
  5641. done
  5642. out_array=("${new_out_array[@]}")
  5643. fi
  5644. missinglines=$((${#out_array[*]} + startline - ${#fulloutput[*]}))
  5645. for ((i=0; i<missinglines; i++)); do
  5646. fulloutput+=("${c1}$(printf '%*s' "$logowidth")%s")
  5647. done
  5648. #n=${#fulloutput[*]}
  5649. for ((i=0; i<${#fulloutput[*]}; i++)); do
  5650. # echo "${out_array[@]}"
  5651. case $(awk 'BEGIN{srand();print int(rand()*(1000-1))+1 }') in
  5652. 411|188|15|166|609)
  5653. f_size=${#fulloutput[*]}
  5654. o_size=${#out_array[*]}
  5655. f_max=$(( 32768 / f_size * f_size ))
  5656. #o_max=$(( 32768 / o_size * o_size ))
  5657. for ((a=f_size-1; a>0; a--)); do
  5658. while (( (rand=RANDOM) >= f_max )); do :; done
  5659. rand=$(( rand % (a+1) ))
  5660. tmp=${fulloutput[a]} fulloutput[a]=${fulloutput[rand]} fulloutput[rand]=$tmp
  5661. done
  5662. for ((b=o_size-1; b>0; b--)); do
  5663. rand=$(( rand % (b+1) ))
  5664. tmp=${out_array[b]} out_array[b]=${out_array[rand]} out_array[rand]=$tmp
  5665. done
  5666. ;;
  5667. esac
  5668. printf "${fulloutput[i]}$c0\n" "${out_array[0]}"
  5669. if [[ "$i" -ge "$startline" ]]; then
  5670. unset 'out_array[0]'
  5671. out_array=( "${out_array[@]}" )
  5672. fi
  5673. done
  5674. fi
  5675. # Done with ASCII output
  5676. }
  5677. infoDisplay () {
  5678. textcolor="\033[0m"
  5679. [[ "$my_hcolor" ]] && textcolor="${my_hcolor}"
  5680. #TODO: Centralize colors and use them across the board so we only change them one place.
  5681. myascii="${distro}"
  5682. [[ "${asc_distro}" ]] && myascii="${asc_distro}"
  5683. case ${myascii} in
  5684. "Alpine Linux"|"Arch Linux - Old"|"ArcoLinux"|"blackPanther OS"|"Fedora"|"Korora"|"Chapeau"|"Mandriva"|"Mandrake"| \
  5685. "Chakra"|"ChromeOS"|"Sabayon"|"Slackware"|"Mac OS X"|"Trisquel"|"Kali Linux"|"Jiyuu Linux"|"Antergos"| \
  5686. "KaOS"|"Logos"|"gNewSense"|"Netrunner"|"NixOS"|"SailfishOS"|"Qubes OS"|"Kogaion"|"PCLinuxOS"| \
  5687. "Obarun"|"Siduction"|"Solus"|"SwagArch"|"Parrot Security"|"Zorin OS")
  5688. labelcolor=$(getColor 'light blue')
  5689. ;;
  5690. "Arch Linux"|"Artix Linux"|"Frugalware"|"Mageia"|"Deepin"|"CRUX"|"OS Elbrus")
  5691. labelcolor=$(getColor 'light cyan')
  5692. ;;
  5693. "Mint"|"LMDE"|"KDE neon"|"openSUSE"|"SUSE Linux Enterprise"|"LinuxDeepin"|"DragonflyBSD"|"Manjaro"| \
  5694. "Manjaro-tree"|"Android"|"Void Linux"|"DesaOS")
  5695. labelcolor=$(getColor 'light green')
  5696. ;;
  5697. "Ubuntu"|"FreeBSD"|"FreeBSD - Old"|"Debian"|"Raspbian"|"BSD"|"Red Hat Enterprise Linux"|"Oracle Linux"| \
  5698. "Peppermint"|"Cygwin"|"Msys"|"Fuduntu"|"Scientific Linux"|"DragonFlyBSD"|"BackTrack Linux"|"Red Star OS"| \
  5699. "SparkyLinux"|"OBRevenge"|"Source Mage GNU/Linux")
  5700. labelcolor=$(getColor 'light red')
  5701. ;;
  5702. "ROSA"|"januslinux")
  5703. labelcolor=$(getColor 'white')
  5704. ;;
  5705. "CrunchBang"|"Viperr"|"elementary"*)
  5706. labelcolor=$(getColor 'dark grey')
  5707. ;;
  5708. "Gentoo"|"Parabola GNU/Linux-libre"|"Funtoo"|"Funtoo-text"|"BLAG"|"SteamOS"|"Devuan")
  5709. labelcolor=$(getColor 'light purple')
  5710. ;;
  5711. "Haiku")
  5712. labelcolor=$(getColor 'green')
  5713. ;;
  5714. "NetBSD"|"Amazon Linux"|"Proxmox VE")
  5715. labelcolor=$(getColor 'orange')
  5716. ;;
  5717. "CentOS")
  5718. labelcolor=$(getColor 'yellow')
  5719. ;;
  5720. "Hyperbola GNU/Linux-libre"|"PureOS"|*)
  5721. labelcolor=$(getColor 'light grey')
  5722. ;;
  5723. esac
  5724. [[ "$my_lcolor" ]] && labelcolor="${my_lcolor}"
  5725. if [[ "$art" ]]; then
  5726. source "$art"
  5727. fi
  5728. if [[ "$no_color" == "1" ]]; then
  5729. labelcolor=""
  5730. bold=""
  5731. c0=""
  5732. textcolor=""
  5733. fi
  5734. # Some verbosity stuff
  5735. [[ "$screenshot" == "1" ]] && verboseOut "Screenshot will be taken after info is displayed."
  5736. [[ "$upload" == "1" ]] && verboseOut "Screenshot will be transferred/uploaded to specified location."
  5737. #########################
  5738. # Info Variable Setting #
  5739. #########################
  5740. if [[ "${distro}" == "Android" ]]; then
  5741. myhostname=$(echo -e "${labelcolor} ${hostname}"); out_array=( "${out_array[@]}" "$myhostname" )
  5742. mydistro=$(echo -e "$labelcolor OS:$textcolor $distro $distro_ver"); out_array=( "${out_array[@]}" "$mydistro" )
  5743. mydevice=$(echo -e "$labelcolor Device:$textcolor $device"); out_array=( "${out_array[@]}" "$mydevice" )
  5744. myrom=$(echo -e "$labelcolor ROM:$textcolor $rom"); out_array=( "${out_array[@]}" "$myrom" )
  5745. mybaseband=$(echo -e "$labelcolor Baseband:$textcolor $baseband"); out_array=( "${out_array[@]}" "$mybaseband" )
  5746. mykernel=$(echo -e "$labelcolor Kernel:$textcolor $kernel"); out_array=( "${out_array[@]}" "$mykernel" )
  5747. myuptime=$(echo -e "$labelcolor Uptime:$textcolor $uptime"); out_array=( "${out_array[@]}" "$myuptime" )
  5748. mycpu=$(echo -e "$labelcolor CPU:$textcolor $cpu"); out_array=( "${out_array[@]}" "$mycpu" )
  5749. mygpu=$(echo -e "$labelcolor GPU:$textcolor $cpu"); out_array=( "${out_array[@]}" "$mygpu" )
  5750. mymem=$(echo -e "$labelcolor RAM:$textcolor $mem"); out_array=( "${out_array[@]}" "$mymem" )
  5751. else
  5752. if [[ "${display[@]}" =~ "host" ]]; then
  5753. myinfo=$(echo -e "${labelcolor} ${myUser}$textcolor${bold}@${c0}${labelcolor}${myHost}")
  5754. out_array=( "${out_array[@]}" "$myinfo" )
  5755. ((display_index++))
  5756. fi
  5757. if [[ "${display[@]}" =~ "distro" ]]; then
  5758. if [ "$distro" == "Mac OS X" ]; then
  5759. sysArch="$(getconf LONG_BIT)bit"
  5760. prodVers=$(sw_vers | grep 'ProductVersion')
  5761. prodVers=${prodVers:16}
  5762. buildVers=$(sw_vers |grep 'BuildVersion')
  5763. buildVers=${buildVers:14}
  5764. if [ -n "$distro_more" ]; then
  5765. mydistro=$(echo -e "$labelcolor OS:$textcolor $distro_more $sysArch")
  5766. else
  5767. mydistro=$(echo -e "$labelcolor OS:$textcolor $sysArch $distro $prodVers $buildVers")
  5768. fi
  5769. elif [[ "$distro" == "Cygwin" || "$distro" == "Msys" ]]; then
  5770. distro="$(wmic os get caption | sed 's/\r//g; s/[ \t]*$//g; 2!d')"
  5771. if [[ "$(wmic os get version | grep -o '^10\.')" == "10." ]]; then
  5772. distro="$distro (v$(wmic os get version | grep '^10\.' | tr -d ' '))"
  5773. fi
  5774. sysArch=$(wmic os get OSArchitecture | sed 's/\r//g; s/[ \t]*$//g; 2!d')
  5775. mydistro=$(echo -e "$labelcolor OS:$textcolor $distro $sysArch")
  5776. else
  5777. if [ -n "$distro_more" ]; then
  5778. mydistro=$(echo -e "$labelcolor OS:$textcolor $distro_more")
  5779. else
  5780. mydistro=$(echo -e "$labelcolor OS:$textcolor $distro $sysArch")
  5781. fi
  5782. fi
  5783. out_array=( "${out_array[@]}" "$mydistro$wsl" )
  5784. ((display_index++))
  5785. fi
  5786. if [[ "${display[@]}" =~ "kernel" ]]; then
  5787. mykernel=$(echo -e "$labelcolor Kernel:$textcolor $kernel")
  5788. out_array=( "${out_array[@]}" "$mykernel" )
  5789. ((display_index++))
  5790. fi
  5791. if [[ "${display[@]}" =~ "uptime" ]]; then
  5792. myuptime=$(echo -e "$labelcolor Uptime:$textcolor $uptime")
  5793. out_array=( "${out_array[@]}" "$myuptime" )
  5794. ((display_index++))
  5795. fi
  5796. if [[ "${display[@]}" =~ "pkgs" ]]; then
  5797. mypkgs=$(echo -e "$labelcolor Packages:$textcolor $pkgs")
  5798. out_array=( "${out_array[@]}" "$mypkgs" )
  5799. ((display_index++))
  5800. fi
  5801. if [[ "${display[@]}" =~ "shell" ]]; then
  5802. myshell=$(echo -e "$labelcolor Shell:$textcolor $myShell")
  5803. out_array=( "${out_array[@]}" "$myshell" )
  5804. ((display_index++))
  5805. fi
  5806. if [[ -n "$DISPLAY" || "$distro" == "Mac OS X" ]]; then
  5807. if [ -n "${xResolution}" ]; then
  5808. if [[ "${display[@]}" =~ "res" ]]; then
  5809. myres=$(echo -e "$labelcolor Resolution:${textcolor} $xResolution")
  5810. out_array=( "${out_array[@]}" "$myres" )
  5811. ((display_index++))
  5812. fi
  5813. fi
  5814. if [[ "${display[@]}" =~ "de" ]]; then
  5815. if [[ "${DE}" != "Not Present" ]]; then
  5816. myde=$(echo -e "$labelcolor DE:$textcolor $DE")
  5817. out_array=( "${out_array[@]}" "$myde" )
  5818. ((display_index++))
  5819. fi
  5820. fi
  5821. if [[ "${display[@]}" =~ "wm" ]]; then
  5822. mywm=$(echo -e "$labelcolor WM:$textcolor $WM")
  5823. out_array=( "${out_array[@]}" "$mywm" )
  5824. ((display_index++))
  5825. fi
  5826. if [[ "${display[@]}" =~ "wmtheme" ]]; then
  5827. if [[ "${Win_theme}" != "Not Applicable" && "${Win_theme}" != "Not Found" ]]; then
  5828. mywmtheme=$(echo -e "$labelcolor WM Theme:$textcolor $Win_theme")
  5829. out_array=( "${out_array[@]}" "$mywmtheme" )
  5830. ((display_index++))
  5831. fi
  5832. fi
  5833. if [[ "${display[@]}" =~ "gtk" ]]; then
  5834. if [ "$distro" == "Mac OS X" ]; then
  5835. if [[ "$gtkFont" != "Not Applicable" && "$gtkFont" != "Not Found" ]]; then
  5836. if [ -n "$gtkFont" ]; then
  5837. myfont=$(echo -e "$labelcolor Font:$textcolor $gtkFont")
  5838. out_array=( "${out_array[@]}" "$myfont" )
  5839. ((display_index++))
  5840. fi
  5841. fi
  5842. else
  5843. if [[ "$gtk2Theme" != "Not Applicable" && "$gtk2Theme" != "Not Found" ]]; then
  5844. if [ -n "$gtk2Theme" ]; then
  5845. mygtk2="${gtk2Theme} [GTK2]"
  5846. fi
  5847. fi
  5848. if [[ "$gtk3Theme" != "Not Applicable" && "$gtk3Theme" != "Not Found" ]]; then
  5849. if [ -n "$mygtk2" ]; then
  5850. mygtk3=", ${gtk3Theme} [GTK3]"
  5851. else
  5852. mygtk3="${gtk3Theme} [GTK3]"
  5853. fi
  5854. fi
  5855. if [[ "$gtk_2line" == "yes" ]]; then
  5856. mygtk2=$(echo -e "$labelcolor GTK2 Theme:$textcolor $gtk2Theme")
  5857. out_array=( "${out_array[@]}" "$mygtk2" )
  5858. ((display_index++))
  5859. mygtk3=$(echo -e "$labelcolor GTK3 Theme:$textcolor $gtk3Theme")
  5860. out_array=( "${out_array[@]}" "$mygtk3" )
  5861. ((display_index++))
  5862. else
  5863. if [[ "$gtk2Theme" == "$gtk3Theme" ]]; then
  5864. if [[ "$gtk2Theme" != "Not Applicable" && "$gtk2Theme" != "Not Found" ]]; then
  5865. mygtk=$(echo -e "$labelcolor GTK Theme:$textcolor ${gtk2Theme} [GTK2/3]")
  5866. out_array=( "${out_array[@]}" "$mygtk" )
  5867. ((display_index++))
  5868. fi
  5869. else
  5870. mygtk=$(echo -e "$labelcolor GTK Theme:$textcolor ${mygtk2}${mygtk3}")
  5871. out_array=( "${out_array[@]}" "$mygtk" )
  5872. ((display_index++))
  5873. fi
  5874. fi
  5875. if [[ "$gtkIcons" != "Not Applicable" && "$gtkIcons" != "Not Found" ]]; then
  5876. if [ -n "$gtkIcons" ]; then
  5877. myicons=$(echo -e "$labelcolor Icon Theme:$textcolor $gtkIcons")
  5878. out_array=( "${out_array[@]}" "$myicons" )
  5879. ((display_index++))
  5880. fi
  5881. fi
  5882. if [[ "$gtkFont" != "Not Applicable" && "$gtkFont" != "Not Found" ]]; then
  5883. if [ -n "$gtkFont" ]; then
  5884. myfont=$(echo -e "$labelcolor Font:$textcolor $gtkFont")
  5885. out_array=( "${out_array[@]}" "$myfont" )
  5886. ((display_index++))
  5887. fi
  5888. fi
  5889. fi
  5890. fi
  5891. elif [[ "$fake_distro" == "Cygwin" || "$fake_distro" == "Msys" || "$fake_distro" == "Windows - Modern" ]]; then
  5892. if [[ "${display[@]}" =~ "res" && -n "$xResolution" ]]; then
  5893. myres=$(echo -e "$labelcolor Resolution:${textcolor} $xResolution")
  5894. out_array=( "${out_array[@]}" "$myres" )
  5895. ((display_index++))
  5896. fi
  5897. if [[ "${display[@]}" =~ "de" ]]; then
  5898. if [[ "${DE}" != "Not Present" ]]; then
  5899. myde=$(echo -e "$labelcolor DE:$textcolor $DE")
  5900. out_array=( "${out_array[@]}" "$myde" )
  5901. ((display_index++))
  5902. fi
  5903. fi
  5904. if [[ "${display[@]}" =~ "wm" ]]; then
  5905. mywm=$(echo -e "$labelcolor WM:$textcolor $WM")
  5906. out_array=( "${out_array[@]}" "$mywm" )
  5907. ((display_index++))
  5908. fi
  5909. if [[ "${display[@]}" =~ "wmtheme" ]]; then
  5910. if [[ "${Win_theme}" != "Not Applicable" && "${Win_theme}" != "Not Found" ]]; then
  5911. mywmtheme=$(echo -e "$labelcolor WM Theme:$textcolor $Win_theme")
  5912. out_array=( "${out_array[@]}" "$mywmtheme" )
  5913. ((display_index++))
  5914. fi
  5915. fi
  5916. elif [[ "$distro" == "Haiku" && -n "${xResolution}" && "${display[@]}" =~ "res" ]]; then
  5917. myres=$(echo -e "$labelcolor Resolution:${textcolor} $xResolution")
  5918. out_array=( "${out_array[@]}" "$myres" )
  5919. ((display_index++))
  5920. fi
  5921. if [[ "${fake_distro}" != "Cygwin" && "${fake_distro}" != "Msys" && "${fake_distro}" != "Windows - Modern" && "${display[@]}" =~ "disk" ]]; then
  5922. mydisk=$(echo -e "$labelcolor Disk:$textcolor $diskusage")
  5923. out_array=( "${out_array[@]}" "$mydisk" )
  5924. ((display_index++))
  5925. fi
  5926. if [[ "${display[@]}" =~ "cpu" ]]; then
  5927. mycpu=$(echo -e "$labelcolor CPU:$textcolor $cpu")
  5928. out_array=( "${out_array[@]}" "$mycpu" )
  5929. ((display_index++))
  5930. fi
  5931. if [[ "${display[@]}" =~ "gpu" ]] && [[ "$gpu" != "Not Found" ]]; then
  5932. mygpu=$(echo -e "$labelcolor GPU:$textcolor $gpu")
  5933. out_array=( "${out_array[@]}" "$mygpu" )
  5934. ((display_index++))
  5935. fi
  5936. if [[ "${display[@]}" =~ "mem" ]]; then
  5937. mymem=$(echo -e "$labelcolor RAM:$textcolor $mem")
  5938. out_array=( "${out_array[@]}" "$mymem" )
  5939. ((display_index++))
  5940. fi
  5941. if [[ "$use_customlines" = 1 ]]; then
  5942. customlines
  5943. fi
  5944. fi
  5945. if [[ "$display_type" == "ASCII" ]]; then
  5946. asciiText
  5947. else
  5948. if [[ "${display[@]}" =~ "host" ]]; then echo -e "$myinfo"; fi
  5949. if [[ "${display[@]}" =~ "distro" ]]; then echo -e "$mydistro"; fi
  5950. if [[ "${display[@]}" =~ "kernel" ]]; then echo -e "$mykernel"; fi
  5951. if [[ "${distro}" == "Android" ]]; then
  5952. echo -e "$mydevice"
  5953. echo -e "$myrom"
  5954. echo -e "$mybaseband"
  5955. echo -e "$mykernel"
  5956. echo -e "$myuptime"
  5957. echo -e "$mycpu"
  5958. echo -e "$mymem"
  5959. else
  5960. if [[ "${display[@]}" =~ "uptime" ]]; then echo -e "$myuptime"; fi
  5961. if [[ "${display[@]}" =~ "pkgs" && "$mypkgs" != "Unknown" ]]; then echo -e "$mypkgs"; fi
  5962. if [[ "${display[@]}" =~ "shell" ]]; then echo -e "$myshell"; fi
  5963. if [[ "${display[@]}" =~ "res" ]]; then
  5964. test -z "$myres" || echo -e "$myres"
  5965. fi
  5966. if [[ "${display[@]}" =~ "de" ]]; then
  5967. if [[ "${DE}" != "Not Present" ]]; then echo -e "$myde"; fi
  5968. fi
  5969. if [[ "${display[@]}" =~ "wm" ]]; then
  5970. test -z "$mywm" || echo -e "$mywm"
  5971. if [[ "${Win_theme}" != "Not Applicable" && "${Win_theme}" != "Not Found" ]]; then
  5972. test -z "$mywmtheme" || echo -e "$mywmtheme"
  5973. fi
  5974. fi
  5975. if [[ "${display[@]}" =~ "gtk" ]]; then
  5976. if [[ "$gtk_2line" == "yes" ]]; then
  5977. test -z "$mygtk2" || echo -e "$mygtk2"
  5978. test -z "$mygtk3" || echo -e "$mygtk3"
  5979. else
  5980. test -z "$mygtk" || echo -e "$mygtk"
  5981. fi
  5982. test -z "$myicons" || echo -e "$myicons"
  5983. test -z "$myfont" || echo -e "$myfont"
  5984. fi
  5985. if [[ "${display[@]}" =~ "disk" ]]; then echo -e "$mydisk"; fi
  5986. if [[ "${display[@]}" =~ "cpu" ]]; then echo -e "$mycpu"; fi
  5987. if [[ "${display[@]}" =~ "gpu" ]]; then echo -e "$mygpu"; fi
  5988. if [[ "${display[@]}" =~ "mem" ]]; then echo -e "$mymem"; fi
  5989. fi
  5990. fi
  5991. }
  5992. ##################
  5993. # Let's Do This!
  5994. ##################
  5995. if [[ -f "$HOME/.screenfetchOR" ]]; then
  5996. source "$HOME/.screenfetchOR"
  5997. fi
  5998. if [[ "$overrideDisplay" ]]; then
  5999. verboseOut "Found 'd' flag in syntax. Overriding display..."
  6000. OLDIFS=$IFS
  6001. IFS=';'
  6002. for i in ${overrideDisplay}; do
  6003. modchar="${i:0:1}"
  6004. if [[ "${modchar}" == "-" ]]; then
  6005. i=${i/${modchar}}
  6006. _OLDIFS=IFS
  6007. IFS=,
  6008. for n in $i; do
  6009. if [[ ! "${display[@]}" =~ "$n" ]]; then
  6010. echo "The var $n is not currently being displayed."
  6011. else
  6012. for e in "${!display[@]}"; do
  6013. if [[ ${display[e]} = "$n" ]]; then
  6014. unset 'display[e]'
  6015. fi
  6016. done
  6017. fi
  6018. done
  6019. IFS=$_OLDIFS
  6020. elif [[ "${modchar}" == "+" ]]; then
  6021. i=${i/${modchar}}
  6022. _OLDIFS=IFS
  6023. IFS=,
  6024. for n in $i; do
  6025. if [[ "${valid_display[@]}" =~ "$n" ]]; then
  6026. if [[ "${display[@]}" =~ "$n" ]]; then
  6027. echo "The $n var is already being displayed."
  6028. else
  6029. display+=("$n")
  6030. fi
  6031. else
  6032. echo "The var $n is not a valid display var."
  6033. fi
  6034. done
  6035. IFS=$_OLDIFS
  6036. else
  6037. IFS=$OLDIFS
  6038. i="${i//,/ }"
  6039. display=( "$i" )
  6040. fi
  6041. done
  6042. IFS=$OLDIFS
  6043. fi
  6044. for i in "${display[@]}"; do
  6045. if [[ -n "$i" ]]; then
  6046. if [[ $i =~ wm ]]; then
  6047. test -z "$WM" && detectwm
  6048. test -z "$Win_theme" && detectwmtheme
  6049. else
  6050. if [[ "${display[*]}" =~ "$i" ]]; then
  6051. if [[ "$errorSuppress" == "1" ]]; then
  6052. detect"${i}" 2>/dev/null
  6053. else
  6054. detect"${i}"
  6055. fi
  6056. fi
  6057. fi
  6058. fi
  6059. done
  6060. # Check for android
  6061. if [[ -f /system/build.prop && "${distro}" != "SailfishOS" ]]; then
  6062. distro="Android"
  6063. detectmem
  6064. detectuptime
  6065. detectkernel
  6066. detectdroid
  6067. infoDisplay
  6068. exit 0
  6069. fi
  6070. if [ "$gpu" = 'Not Found' ] ; then
  6071. DetectIntelGPU
  6072. fi
  6073. infoDisplay
  6074. [ "$screenshot" == "1" ] && takeShot
  6075. exit 0