xfetch/xfetch.py

28 lines
910 B
Python
Raw Permalink Normal View History

2022-04-25 10:52:12 -04:00
#!/usr/bin/python
# xfetch is a simple neofetch alternative that aims to make modification, should the user know basic python, very easy.
2021-11-15 19:48:37 -05:00
# Please refer to the README.md if you are looking to install
import platform
2021-11-29 12:30:16 -05:00
xascii = '''___ ___
\ \ / /
\ V /
> <
/ . \
/__/ \__\ '''
2021-11-16 08:35:29 -05:00
# The xascii variable allows the user to easily change the ascii art by pasting it between the triple quotes
2021-11-15 19:48:37 -05:00
my_system = platform.uname()
print(xascii) # Prints the X ascii art
print("xfetch") # Prints xinfo
2021-11-15 19:48:37 -05:00
print("===============") # Prints the separator line
print(f"OS: {my_system.system}") # Prints the OS
print(f"Host: {my_system.node}") # Prints the user's hostname
print(f"Kernel: {my_system.release}") # Prints the kernel's version
print(f"Architecture: {my_system.machine}") # Prints the CPU's architecture
2021-11-16 08:35:29 -05:00
print("===============") # Prints the separator line
2021-11-15 19:48:37 -05:00
# xinfo is licensed under the GNU GPL