diff options
Diffstat (limited to 'src/get_args.py')
| -rw-r--r-- | src/get_args.py | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/src/get_args.py b/src/get_args.py index 6be2ab9..09c5279 100644 --- a/src/get_args.py +++ b/src/get_args.py @@ -2,16 +2,45 @@ import user_interface import os def get_args(args) -> 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() else: img_path = f"{os.getcwd()}/{args[1]}" - - if '-dmenu' in args: + 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 + return img_path, dmenu, nolock, initialize, reconfigure + +def usage(args) -> None: + print(f""" +Instant Rice - An automatic theming utilitiy + +Usage: python3 {args[0]} [Relative Image Path] [-r, --initialize, --reconfigure, --dmenu, --nolock] + +Example: rice ships.png --dmenu --nolock + +Optinal Arguments: +-r Pick a random image from the wallpaper folder specified in paths.py +--initialize Check all configurations files are present and written in a way compatible with instant rice +--reconfigure launch a TUI interface to change configuration settings of DE components (i3, polybar, rofi, etc) +--dmenu generate configuration for dmenu in i3 configuration (update dmenu keyboard shortcut) +--nolock skip generating image for i3lock + +It is recommended to alias Instant Rice to a convenient command in your shells config. +For bash this would look like + +alias rice='/home/chandler/Documents/InstantRice/src/instant_rice.py' + +visit chqn.xyz for other projects""") |
