summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-12-28 06:48:59 +1100
committerDylan Araps <dylan.araps@gmail.com>2017-12-28 06:48:59 +1100
commit6b0d4a36de821b9838f32465d0c510cfe27afa56 (patch)
treeb8cd8db9eed216a8292578ba6b276fe3723e7c60
parent95b934497bfeb62c7f501c19bb3720e280b0c39d (diff)
args: Add -s to skip sending colors
-rw-r--r--pywal/__main__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/pywal/__main__.py b/pywal/__main__.py
index ed6e069..1de3bf8 100644
--- a/pywal/__main__.py
+++ b/pywal/__main__.py
@@ -62,6 +62,9 @@ def get_args(args):
arg.add_argument("-R", action="store_true",
help="Restore previous colorscheme.")
+ arg.add_argument("-s", action="store_true",
+ help="Skip changing colors in terminals.")
+
arg.add_argument("-t", action="store_false",
help="Deprecated: Does nothing and is no longer needed.")
@@ -125,7 +128,8 @@ def process_args(args):
colors_plain["colors"]["color0"] = args.b
if args.i or args.f:
- sequences.send(colors_plain)
+ if not args.s:
+ sequences.send(colors_plain)
if not args.n:
wallpaper.change(colors_plain["wallpaper"])