Add script

This commit is contained in:
Nova Cat 2024-11-13 15:56:07 -08:00
parent 9b1bad7c81
commit c271bd4167

9
swline Executable file
View file

@ -0,0 +1,9 @@
#!/bin/env python3
import os
import sys
import pwd
import platform
username = pwd.getpwuid(os.getuid()).pw_name
session = "@"
status = "\\[\\033[34m\\] UwU" if int(sys.argv[1]) == 0 else (f"\\[\\033[31m\\] >m<" if int(sys.argv[1]) == 127 else f"\\[\\033[31m\\] OwO {sys.argv[1]}")
print(f"\\[\\033[01;32m\\]{username} {session} {platform.node()}\\n\\[\\033[01;34m\\]\\w\\[\\033[00m\\]{status} \\[\\033[00m\\]\\[\\033[32m\\]$\\[\\033[00m\\] ")