pywal/wal.py

26 lines
1.2 KiB
Python
Raw Normal View History

2017-06-16 16:50:13 +02:00
import argparse
def get_args():
parser = argparse.ArgumentParser(description='wal - Generate colorschemes on the fly')
parser.add_argument('-a', help='Set terminal background transparency. *Only works in URxvt*', metavar='0-100', type=int)
parser.add_argument('-c', help='Delete all cached colorschemes.', action='store_true')
parser.add_argument('-f', help='Load colors directly from a colorscheme file.', metavar='"/path/to/colors"')
parser.add_argument('-i', help='Which image or directory to use.', metavar='"/path/to/img.jpg"')
parser.add_argument('-n', help='Skip setting the wallpaper.', action='store_true')
parser.add_argument('-o', help='External script to run after "wal".', metavar='script_name')
parser.add_argument('-q', help='Quiet mode, don\'t print anything.', action='store_true')
parser.add_argument('-r', help='Reload current colorscheme.', action='store_true')
parser.add_argument('-t', help='Fix artifacts in VTE Terminals. (Termite, xfce4-terminal)', action='store_true')
parser.add_argument('-x', help='Use extended 16-color palette.', action='store_true')
args = parser.parse_args()
return args
def main():
args = get_args()
return 0
main()