base
This commit is contained in:
commit
35a141dcd6
1 changed files with 13 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue