From 08c7a537e0539f6974d1b2f99a338ce29bf2f2e1 Mon Sep 17 00:00:00 2001 From: Mosder Date: Sun, 13 Sep 2026 21:19:34 +0200 Subject: desktop: normalized wallpapers --- .../.config/hypr/scripts/randomize-wallpapers.sh | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'desktop/home/mosder/.config/hypr/scripts') diff --git a/desktop/home/mosder/.config/hypr/scripts/randomize-wallpapers.sh b/desktop/home/mosder/.config/hypr/scripts/randomize-wallpapers.sh index c7bd651..b08b0b4 100755 --- a/desktop/home/mosder/.config/hypr/scripts/randomize-wallpapers.sh +++ b/desktop/home/mosder/.config/hypr/scripts/randomize-wallpapers.sh @@ -1,16 +1,15 @@ #!/usr/bin/bash -WALLPAPER_DIR_2K="$HOME/wallpapers/2k" -WALLPAPER_DIR_HD="$HOME/wallpapers/hd" +WALLPAPER_DIR="$HOME/wallpapers" # 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) +WALLPAPER_MAIN=$(find $WALLPAPER_DIR -type f | shuf -n 1) +WALLPAPER_SECOND=$(find $WALLPAPER_DIR -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 +SYMLINK_MAIN=$WALLPAPER_DIR/.current_main +SYMLINK_SECOND=$WALLPAPER_DIR/.current_second +rm $SYMLINK_MAIN +rm $SYMLINK_SECOND +ln -s $WALLPAPER_MAIN $SYMLINK_MAIN +ln -s $WALLPAPER_SECOND $SYMLINK_SECOND -- cgit v1.2.3