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): 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