aboutsummaryrefslogtreecommitdiff
path: root/desktop/home/mosder/.config/hypr/scripts
diff options
context:
space:
mode:
authorMosder <xmosder12@gmail.com>2026-06-10 02:24:31 +0200
committerMosder <xmosder12@gmail.com>2026-06-10 02:24:31 +0200
commit1f2824b912b22a687fb0f1c56f82198128bef1ca (patch)
treea22c4425c43fcd111c441531b21e275b1fd97f3f /desktop/home/mosder/.config/hypr/scripts
parenta7fab53f802c8bacfce66fb3455145835e231460 (diff)
added and updated a lot of configs + refactored it to be more accessible
Diffstat (limited to 'desktop/home/mosder/.config/hypr/scripts')
-rwxr-xr-xdesktop/home/mosder/.config/hypr/scripts/randomize-wallpapers.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/desktop/home/mosder/.config/hypr/scripts/randomize-wallpapers.sh b/desktop/home/mosder/.config/hypr/scripts/randomize-wallpapers.sh
new file mode 100755
index 0000000..c7bd651
--- /dev/null
+++ b/desktop/home/mosder/.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