aboutsummaryrefslogtreecommitdiff
path: root/.local/share/wallpapers/feh-slideshow.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.local/share/wallpapers/feh-slideshow.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/.local/share/wallpapers/feh-slideshow.py b/.local/share/wallpapers/feh-slideshow.py
new file mode 100644
index 0000000..2e33a37
--- /dev/null
+++ b/.local/share/wallpapers/feh-slideshow.py
@@ -0,0 +1,10 @@
+#!/usr/bin/python
+
+import os
+import random
+
+WALLPAPER_DIR="/home/ryan/.local/share/wallpapers"
+
+wallpapers = os.listdir(WALLPAPER_DIR)
+
+os.system('feh --bg-center %s' % random.choice(wallpapers))