summaryrefslogtreecommitdiff
path: root/src/get_args.py
diff options
context:
space:
mode:
authorChandler J <cjustice2000@gmail.com>2024-03-02 12:39:36 -0700
committerChandler J <cjustice2000@gmail.com>2024-03-02 12:39:36 -0700
commit2c98c5fe81cd649a6ae66dd3ed295f1cb2f46849 (patch)
treefce5790659b300d64f1b1bbdb93ea0dfb10cd69e /src/get_args.py
parentb956fdd8cd5a4dc0620d02d0f981e507a4ee85e5 (diff)
improved color picking procedure
Diffstat (limited to 'src/get_args.py')
-rw-r--r--src/get_args.py13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/get_args.py b/src/get_args.py
index 09c5279..ade7740 100644
--- a/src/get_args.py
+++ b/src/get_args.py
@@ -1,27 +1,20 @@
import user_interface
import os
-def get_args(args) -> tuple:
+def get_args(args, walls_dir) -> tuple:
# arguments that can be passed into program
- dmenu = False
- nolock = False
initialize = False
reconfigure = False
- nolock = False
if '-r' in args:
- img_path = user_interface.pickRandomWallpaper()
+ img_path = user_interface.pickRandomWallpaper(walls_dir)
else:
img_path = f"{os.getcwd()}/{args[1]}"
if '--initialize' in args:
initialize = True
if '--reconfigure' in args:
reconfigure = True
- if '--dmenu' in args:
- dmenu = True
- if '--nolock' in args:
- nolock = True
- return img_path, dmenu, nolock, initialize, reconfigure
+ return img_path, initialize, reconfigure
def usage(args) -> None:
print(f"""