X-Git-Url: https://git.phdru.name/?p=xsetbg.git;a=blobdiff_plain;f=xsetbg.py;h=706e183ef2cad8338877b5a6c59bfa04a419c2c5;hp=1f318c7265edf8fc13e7cebf76eaeae94b357abb;hb=839045f02d15aa1ffb272eb60dff01a5a8f9bd69;hpb=d51261dfda7db275699888e204d9f4ee1356e81a diff --git a/xsetbg.py b/xsetbg.py index 1f318c7..706e183 100644 --- a/xsetbg.py +++ b/xsetbg.py @@ -129,6 +129,12 @@ def change(force=False): if ext in ('tif', 'tiff'): program_options[0] = 'xsetbg' + if ext == 'webp': + program_options = ['display', '-backdrop', + '-background', random.choice(borders), + '-window', 'root', + row.full_name.encode(fs_encoding)] + rc = subprocess.call(program_options) if rc: error("cannot execute xli!")