summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-06-19 18:20:57 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-06-19 18:20:57 +1000
commitb2af5c914d4ba636bd1f84861c422fd33a15f0a4 (patch)
tree6dcdc02577a6e634b63aba7f1cc702d100e9e12e
parent4c37388aa2dcea7ae3f97d488ff8a0fd5cd218fd (diff)
Args: Add -n
-rwxr-xr-xwal.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/wal.py b/wal.py
index b7530cb..12b5aea 100755
--- a/wal.py
+++ b/wal.py
@@ -48,8 +48,8 @@ def get_args():
arg.add_argument('-i', metavar='"/path/to/img.jpg"',
help='Which image or directory to use.')
- # arg.add_argument('-n', action='store_true',
- # help='Skip setting the wallpaper.')
+ arg.add_argument('-n', action='store_true',
+ help='Skip setting the wallpaper.')
arg.add_argument('-o', metavar='"script_name"',
help='External script to run after "wal".')
@@ -400,7 +400,8 @@ def main():
colors = get_colors(image)
# Set the wallpaper.
- set_wallpaper(image)
+ if not args.n:
+ set_wallpaper(image)
# Set the colors.
send_sequences(colors, args.t)