aboutsummaryrefslogtreecommitdiff
path: root/desktop/.config/hypr/scripts/randomize-wallpapers.sh
diff options
context:
space:
mode:
authorMosder <xmosder12@gmail.com>2026-01-12 13:32:23 +0100
committerMosder <xmosder12@gmail.com>2026-01-12 13:32:23 +0100
commitb369f8d42a3806a7bc47ceca9b02245f6ff8557a (patch)
treede55cbf00914ee4f4d4fcaa76758a39aa87ee087 /desktop/.config/hypr/scripts/randomize-wallpapers.sh
parentf00280f737ef09b5bb9b79f09c57deaf57b6c327 (diff)
parent1b6019803990b4aeae967b24f1b5e12d12020ba2 (diff)
Merge remote-tracking branch 'refs/remotes/origin/master'
Diffstat (limited to 'desktop/.config/hypr/scripts/randomize-wallpapers.sh')
-rwxr-xr-xdesktop/.config/hypr/scripts/randomize-wallpapers.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/desktop/.config/hypr/scripts/randomize-wallpapers.sh b/desktop/.config/hypr/scripts/randomize-wallpapers.sh
new file mode 100755
index 0000000..c7bd651
--- /dev/null
+++ b/desktop/.config/hypr/scripts/randomize-wallpapers.sh
@@ -0,0 +1,16 @@
+#!/usr/bin/bash
+
+WALLPAPER_DIR_2K="$HOME/wallpapers/2k"
+WALLPAPER_DIR_HD="$HOME/wallpapers/hd"
+
+# Get random wallpapers
+WALLPAPER_2K=$(find $WALLPAPER_DIR_2K -type f | shuf -n 1)
+WALLPAPER_HD=$(find $WALLPAPER_DIR_HD -type f | shuf -n 1)
+
+# Create symlinks to new random wallpapers
+SYMLINK_2K=$WALLPAPER_DIR_2K/.current
+SYMLINK_HD=$WALLPAPER_DIR_HD/.current
+rm $SYMLINK_2K
+rm $SYMLINK_HD
+ln -s $WALLPAPER_2K $SYMLINK_2K
+ln -s $WALLPAPER_HD $SYMLINK_HD