From 2c98c5fe81cd649a6ae66dd3ed295f1cb2f46849 Mon Sep 17 00:00:00 2001 From: Chandler J Date: Sat, 2 Mar 2024 12:39:36 -0700 Subject: improved color picking procedure --- src/get_args.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'src/get_args.py') 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""" -- cgit v1.2.3