summaryrefslogtreecommitdiff
path: root/src/get_args.py
blob: 6be2ab9c6b02191d97248bd45ca3ccbba2fe005f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import user_interface
import os
def get_args(args) -> tuple:
    
    dmenu = False
    nolock = False

    if '-r' in args:
        img_path = user_interface.pickRandomWallpaper()
    else:
        img_path = f"{os.getcwd()}/{args[1]}"
    
    if '-dmenu' in args:
        dmenu = True
    if '--nolock' in args:
        nolock = True
    return img_path, dmenu, nolock