Add files via upload

This commit is contained in:
amogus3016
2021-11-15 19:48:37 -05:00
committed by GitHub
parent 72c1a3e71c
commit 2a69b3c0f4

23
xinfo.py Normal file
View File

@@ -0,0 +1,23 @@
# xinfo is a simple neofetch alternative that aims to make modification, should the user know basic python, very easy.
# Please refer to the README.md if you are looking to install
import platform
xascii = '''___ ___
\ \ / /
\ V /
> <
/ . \
/__/ \__\ '''
my_system = platform.uname()
print(xascii) # Prints the X ascii art
print("xinfo") # Prints xinfo
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
# xinfo is licensed under the GNU GPL