summaryrefslogtreecommitdiff
path: root/src/get_args.py
blob: c4e8ade4c36a87256cca25114b0471301aa91344 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import user_interface

def get_args(args):

    dmenu = False
    nolock = False

    if '-r' in args:
        img_path = user_interface.pickRandomWallpaper()
    else:
        img_path = args[1]
    
    if '-dmenu' in args:
        dmenu = True
    if '--nolock' in args:
        nolock = True
    return img_path, dmenu, nolock