base
This commit is contained in:
commit
35a141dcd6
13
main.py
Normal file
13
main.py
Normal 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}")
|
Loading…
Reference in New Issue
Block a user