diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2020-01-24 08:26:06 +0200 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2020-01-24 08:26:06 +0200 |
| commit | 42ad8f014dfe11defe094a3ce33b60f7ec27b83b (patch) | |
| tree | dcfb8a63a7e23a8bcf6bbdbc4c18bed563459148 /pywal/__main__.py | |
| parent | 11758b4548c3b696769f307d132348eaf17d5efe (diff) | |
| parent | db48957bde740e68dc64ceafef4e62ddc7018c6a (diff) | |
Merge branch 'master' of github.com:dylanaraps/pywal
Diffstat (limited to 'pywal/__main__.py')
| -rw-r--r-- | pywal/__main__.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pywal/__main__.py b/pywal/__main__.py index 0f0f077..91ead11 100644 --- a/pywal/__main__.py +++ b/pywal/__main__.py @@ -45,7 +45,7 @@ def get_args(): arg.add_argument("--theme", "-f", metavar="/path/to/file or theme_name", help="Which colorscheme file to use. \ - Use 'wal --theme' to list builtin themes.", + Use 'wal --theme' to list builtin and user themes.", const="list_themes", nargs="?") arg.add_argument("--iterative", action="store_true", @@ -82,6 +82,11 @@ def get_args(): arg.add_argument("-o", metavar="\"script_name\"", action="append", help="External script to run after \"wal\".") + arg.add_argument("-p", metavar="\"theme_name\"", + help="permanently save theme to " + "$XDG_CONFIG_HOME/wal/colorschemes with " + "the specified name") + arg.add_argument("-q", action="store_true", help="Quiet mode, don\'t print anything.") @@ -192,6 +197,9 @@ def parse_args(parser): if not args.n: wallpaper.change(colors_plain["wallpaper"]) + if args.p: + theme.save(colors_plain, args.p, args.l) + sequences.send(colors_plain, to_send=not args.s, vte_fix=args.vte) if sys.stdout.isatty(): |
