From f1bfc14ed0e997dbbb1d87a52feb9c8d849c6cfc Mon Sep 17 00:00:00 2001 From: Roman Date: Sat, 12 Aug 2023 12:50:51 +0900 Subject: [PATCH] Minor changes --- waypaper/arguments.py | 6 ++---- waypaper/changer.py | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/waypaper/arguments.py b/waypaper/arguments.py index 27728bf..348d5dd 100644 --- a/waypaper/arguments.py +++ b/waypaper/arguments.py @@ -7,14 +7,12 @@ parser = argparse.ArgumentParser( prog = 'waypaper', description = 'GUI wallpaper setter for Wayland and X11. It works as a frontend for feh, swaybg, and swww.', - epilog = 'For more information, visit: https://github.com/anufrievroman/waypaper' - ) + epilog = 'For more information, visit: https://github.com/anufrievroman/waypaper') parser.add_argument("-v", "--version", help="print version of the program", action="store_true") parser.add_argument("--restore", help="restore last wallpaper.", action="store_true") parser.add_argument("--fill", help="specify how to fill the screen with chosen image.", choices=FILL_OPTIONS) -parser.add_argument("--backend", help="specify which backend to use to set wallpaper.", - choices=BACKEND_OPTIONS) +parser.add_argument("--backend", help="specify which backend to use to set wallpaper.", choices=BACKEND_OPTIONS) args = parser.parse_args() diff --git a/waypaper/changer.py b/waypaper/changer.py index 6744bf2..51c8d1f 100644 --- a/waypaper/changer.py +++ b/waypaper/changer.py @@ -3,7 +3,7 @@ import subprocess def change_wallpaper(image_path, fill_option, color, backend): - """Run a system command swaybg -i image_path -m fill_option &""" + """Run a system command to change the wallpaper depending on the backend""" try: # swaybg backend: if backend == "swaybg":