16 lines
456 B
Python
Executable File
16 lines
456 B
Python
Executable File
#!/usr/bin/python3
|
|
|
|
from wallpyperFuncs import *
|
|
|
|
def main():
|
|
if len(sys.argv) == 2 and sys.argv[1] in ("help","--help","-h"):
|
|
printHelpInfo()
|
|
else:
|
|
if len(sys.argv) == 1: setTheme()
|
|
elif len(sys.argv) == 2 and sys.argv[1] in ("quit", "stop"): killLastSession(); sys.exit(0)
|
|
elif len(sys.argv) == 3 and sys.argv[1] == "set": setTheme(sys.argv[2])
|
|
else: printHelpInfo()
|
|
|
|
if __name__ == '__main__':
|
|
main()
|