From f56733efc2416b813d85337c1050ecf967020bef Mon Sep 17 00:00:00 2001 From: Artur Manuel Date: Sat, 3 Aug 2024 21:23:32 +0100 Subject: [PATCH] repo: update repo i am so confused how my stuff what not added (maybe i forgot to `git add .`) but its fixed i hope --- .gitignore | 5 ++++- whyfetch/__init__.py | 25 +++++++++++-------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index fdbcff4..95706ac 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ **/*.*~ -/dist/ \ No newline at end of file +**/#*# +**/.#* +/dist/ +/result diff --git a/whyfetch/__init__.py b/whyfetch/__init__.py index 0c5eb69..a42ab97 100644 --- a/whyfetch/__init__.py +++ b/whyfetch/__init__.py @@ -1,10 +1,5 @@ import whyfetch.system_properties as w -colours = { - "red": "\x1b[1;31m", - "blue": "\x1b[1;34m", - "white": "\x1b[1;39m", -} def separator_from_longest_prop(properties: list[w.Prop]): j: int = 0 @@ -18,6 +13,12 @@ def separator_from_longest_prop(properties: list[w.Prop]): return "━"*j +colours = { + "red": "\x1b[1;31m", + "blue": "\x1b[1;34m", + "white": "\x1b[1;39m", +} + def __main__(): kernel: w.Kernel = w.Kernel() ram: w.Ram = w.Ram() @@ -31,14 +32,10 @@ def __main__(): print(f'{colours["white"]}━━━━━━━━━━━━━━━{separator_from_longest_prop(properties)}') print(f' {colours["red"]}_.----._{colours["white"]} {username.prop.content}@{kernel.node}') - print(f' {colours["red"]}.\' \'.{colours["white"]} {kernel.prop.content}') - print(f'{colours["red"]}/{colours["white"]}._ _.--._ {colours["red"]}}\\ {os.prop.content}') + print(f' {colours["red"]}.\' \'.{colours["white"]} {kernel.prop.content}') + print(f'{colours["red"]}/{colours["white"]}._ _.--._ {colours["red"]}\\{colours["white"]} {os.prop.content}') print(f'|_ \'-\' _.._ `| {shell.prop.content}') - print(f'\\ `---\' `-/ {ram.prop.content}') - print(f' \'._ _.\' {uptime.prop.content}') - print(f' \'----\' {locale.prop.content}') + print(f'{colours["blue"]}\\{colours["white"]} `---\' `-{colours["blue"]}/{colours["white"]} {ram.prop.content}') + print(f' {colours["blue"]}\'._ _.\'{colours["white"]} {uptime.prop.content}') + print(f' {colours["blue"]}\'----\'{colours["white"]} {locale.prop.content}') print(f'━━━━━━━━━━━━━━━{separator_from_longest_prop(properties)}') - - - -