This commit is contained in:
Arthur 2022-06-18 22:24:03 +05:00
commit 35a141dcd6
1 changed files with 13 additions and 0 deletions

13
main.py Normal file
View File

@ -0,0 +1,13 @@
import os
import random
PATH = '/home/arthur/img/Wallpapers/gif/'# path to media
files = os.listdir(PATH)
media = random.choices(files)[0]
if media[-4:] != '.gif':
os.system(f"feh --bg-scale {PATH}{media}")
else:
os.system(f"back4.sh auto {PATH}{media}")