tiny tiny changes

This commit is contained in:
Ferit Yiğit BALABAN 2023-05-10 15:08:51 +03:00
parent 3a07958db7
commit 0c24bc40be
Signed by: fyb
GPG Key ID: E21FEB2C244CB7EB

View File

@ -7,7 +7,7 @@ import os
from subprocess import run from subprocess import run
IMG_LOC = '/home/ferit/sources/neco.png' IMG_LOC = '/home/ferit/shoka/500-599 pictures/505 clipart/windowschan_s.png'
def clr(text: str): def clr(text: str):
@ -27,9 +27,9 @@ def clr(text: str):
'': info, '': info,
'': info, '': info,
'': info, '': info,
'': info, '': info,
'': info, '': info,
'': info, '󰢮': info,
'': info, '': info,
'': info, '': info,
'ferit@navi': title, 'ferit@navi': title,
@ -108,22 +108,23 @@ def main():
│  {distro_name}│ │  {distro_name}│
│  {kernel_version}│ │  {kernel_version}│
│  {shell_name}│ │  {shell_name}│
{package_count}│ {package_count}│
├──────── Hardware ────────┤ ├──────── Hardware ────────┤
│  AMD Ryzen 7 5800H │ │  AMD Ryzen 7 5800H │
NV GeForce RTX3050 Ti │ 󰢮 NV GeForce RTX3050 Ti │
│  {memory_usage}│ │  {memory_usage}│
│  {uptime}│ │  {uptime}│
╰──────────────────────────╯ ╰──────────────────────────╯
''' '''
txt_padded = '' txt_padded = ''
img_width = 15 img_width = 16
line_count = 0 line_count = 0
for line in txt.splitlines(): for line in txt.splitlines():
txt_padded += ((' ' * img_width) + line + '\n') txt_padded += ((' ' * img_width) + line + '\n')
line_count += 1 line_count += 1
run(['/usr/bin/kitty', 'icat', '--align', 'left', IMG_LOC]) print('')
run(['/usr/bin/kitty', 'icat', '--mirror', 'horizontal', '--align', 'left', IMG_LOC])
run(['printf', "\e[%sA\e[999999D", str(line_count)]) run(['printf', "\e[%sA\e[999999D", str(line_count)])
clr(txt_padded) clr(txt_padded)