From deff2be563581ef60f3f71e2ebeffdae543f67f5 Mon Sep 17 00:00:00 2001 From: Laurie Date: Mon, 18 Jan 2010 15:56:06 +0000 Subject: Changed logos to multi line list, should improve memory usage slightly --- archey | 102 +++++++++++++++++++++++++++++++---------------------------------- 1 file changed, 49 insertions(+), 53 deletions(-) diff --git a/archey b/archey index ea7aaec..1685053 100644 --- a/archey +++ b/archey @@ -260,59 +260,55 @@ colors = {'Arch Linux': (color, color, color, result[0], color, result[1], color 'Ubuntu': 'color3, color3, color2, color3, color2, color3, result[0], color, color2, color3, result[1], color, color2, color3, result[2], color, color2, result[3], color, color2, result[4], color, color2, result[5], color, color2, result[6], color2, color, color2, result[7], color2, color, color2, result[8], color2, color, result[9], color2, color, color3, result[10], color2, color, color3, result[11], color, color3, result[12], color, color3, result[13], color, color3, result[14], color, color3, color, color3, color, color, color3, color, color3, color, color3, color, color, color, clear'} ###### Result ####### -logos = {'Arch Linux': ["%s ", -"%s + ", -"%s # %s", -"%s ### %s", -"%s ##### %s", -"%s ###### %s", -"%s ; #####; %s", -"%s +##.##### %s", -"%s +########## %s", -"%s ######%s#####%s##; %s", -"%s ###%s############%s+ %s", -"%s #%s###### ####### %s", -"%s .######; ;###;`\". %s", -"%s .#######; ;#####. %s", -"%s #########. .########` %s", -"%s ######' '###### %s", -"%s ;#### ####; %s", -"%s ##' '## ", -"%s #' `# ", -"%s "], - 'Ubuntu': [" ", -"%s ++++++ ", -"%s ++++++++ ", -"%s ++++++++++ %s++++++++ ", -"%s ++++++++++++ %s++++++++ %s", -"%s ++ %s++++++++++++ %s++++++ %s", -"%s +++++ %s++++++++++++ %s^^^^ %s", -"%s +++++++ %s+++++++++++++++++++ %s", -"%s +++++++++ %s+++++++++++ %s", -"%s ++++++++++ %s++++++++++ %s", -"%s ++++++++ %s++++++++++ %s", -"%s ++++++ %s++++++ %s++++++++++ %s", -"%s ++++++++ %s+++++ %s+++++++++ %s", -"%s +++++++++ %s++++ %s", -"%s ++++++++ %s+++++ %s+++++++++ %s", -"%s ++++++ %s++++++ %s++++++++++ %s", -"%s ++++++++ %s++++++++++ %s", -"%s +++++++++ %s++++++++++ %s", -"%s +++++++++ %s++++++++++++ %s", -"%s +++++++ %s+++++++++++++++++++ ", -"%s +++++ %s++++++++++++ %s,,,, ", -"%s ++ %s++++++++++++ %s++++++ ", -"%s ++++++++++++ %s++++++++ ", -"%s ++++++++++ %s++++++++ ", -"%s ++++++++ ", -"%s ++++++ ", -"%s "]} - -logo = '' -for line in logos[os]: - logo += line + '\n' - -print logo % colors[os] +logos = {'Arch Linux': ['''%s +%s + +%s # %s +%s ### %s +%s ##### %s +%s ###### %s +%s ; #####; %s +%s +##.##### %s +%s +########## %s +%s ######%s#####%s##; %s +%s ###%s############%s+ %s +%s #%s###### ####### %s +%s .######; ;###;`\". %s +%s .#######; ;#####. %s +%s #########. .########` %s +%s ######' '###### %s +%s ;#### ####; %s +%s ##' '## +%s #' `# +%s '''], + 'Ubuntu': [''' +%s ++++++ +%s ++++++++ +%s ++++++++++ %s++++++++ +%s ++++++++++++ %s++++++++ %s +%s ++ %s++++++++++++ %s++++++ %s +%s +++++ %s++++++++++++ %s^^^^ %s +%s +++++++ %s+++++++++++++++++++ %s +%s +++++++++ %s+++++++++++ %s +%s ++++++++++ %s++++++++++ %s +%s ++++++++ %s++++++++++ %s +%s ++++++ %s++++++ %s++++++++++ %s +%s ++++++++ %s+++++ %s+++++++++ %s +%s +++++++++ %s++++ %s +%s ++++++++ %s+++++ %s+++++++++ %s +%s ++++++ %s++++++ %s++++++++++ %s +%s ++++++++ %s++++++++++ %s +%s +++++++++ %s++++++++++ %s +%s +++++++++ %s++++++++++++ %s +%s +++++++ %s+++++++++++++++++++ +%s +++++ %s++++++++++++ %s,,,, +%s ++ %s++++++++++++ %s++++++ +%s ++++++++++++ %s++++++++ +%s ++++++++++ %s++++++++ +%s ++++++++ +%s ++++++ +%s ''']} + +print logos % colors[os] if screen == 'True': screenshot() -- cgit v1.2.3-54-g00ecf