Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
anufrievroman committed Aug 12, 2023
1 parent 0a8f61a commit f1bfc14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions waypaper/arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

2 changes: 1 addition & 1 deletion waypaper/changer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit f1bfc14

Please sign in to comment.