diff options
| author | chqn <chandler@cock.li> | 2023-12-14 20:13:24 -0700 |
|---|---|---|
| committer | chqn <chandler@cock.li> | 2023-12-14 20:13:24 -0700 |
| commit | 2eaf90df29b101a55be46099417faadf86bd3eb6 (patch) | |
| tree | 8c1568c3c662f780dccbe9e7d4fccca9618e3c1c /src/get_args.py | |
| parent | c11972edf3e08112d94083f0d3ccb7abec77df19 (diff) | |
more sensible way of organizing things
Diffstat (limited to 'src/get_args.py')
| -rw-r--r-- | src/get_args.py | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/get_args.py b/src/get_args.py index 0001abb..c4e8ade 100644 --- a/src/get_args.py +++ b/src/get_args.py @@ -1,10 +1,17 @@ import user_interface def get_args(args): - if len(args) != 2: - pass - elif '-r' in args: + + dmenu = False + nolock = False + + if '-r' in args: img_path = user_interface.pickRandomWallpaper() else: img_path = args[1] - return img_path + + if '-dmenu' in args: + dmenu = True + if '--nolock' in args: + nolock = True + return img_path, dmenu, nolock |
