summaryrefslogtreecommitdiff
path: root/config/X/xmonad/autostart/.cyclepaper.sh
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-02-15 16:31:56 +0100
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-02-15 16:47:43 +0100
commit3b2a78935fd6550521f719a10e5b0fceb1ddb350 (patch)
tree7c50801d6bb5b7abba3df6352ed43df454a4dbcb /config/X/xmonad/autostart/.cyclepaper.sh
Not really but, First commit!
Diffstat (limited to 'config/X/xmonad/autostart/.cyclepaper.sh')
-rwxr-xr-xconfig/X/xmonad/autostart/.cyclepaper.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/config/X/xmonad/autostart/.cyclepaper.sh b/config/X/xmonad/autostart/.cyclepaper.sh
new file mode 100755
index 0000000..fb07bc9
--- /dev/null
+++ b/config/X/xmonad/autostart/.cyclepaper.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+wallpaper_dir="$HOME/Pictures/Wallpapers/nord"
+
+interval="15m"
+
+wallpapers=($(ls $wallpaper_dir))
+wp_count=${#wallpapers[@]}
+i=0
+
+while true; do
+ feh --bg-scale $wallpaper_dir/${wallpapers[$i]}
+ ((i++))
+ if [ $i -eq $wp_count ]
+ then
+ i=0
+ fi
+ sleep $interval
+done