diff options
| author | Mosder <git@mosder.eu> | 2026-09-13 21:19:34 +0200 |
|---|---|---|
| committer | Mosder <git@mosder.eu> | 2026-09-13 21:19:34 +0200 |
| commit | 08c7a537e0539f6974d1b2f99a338ce29bf2f2e1 (patch) | |
| tree | 834f23bea2e56a4594d31956a4cbcaba7a4e27ae /desktop/home/mosder/.config/hypr/scripts/randomize-wallpapers.sh | |
| parent | 8522b9e22721b374dac8e37e76e2177c5d1019a9 (diff) | |
desktop: normalized wallpapers
Diffstat (limited to 'desktop/home/mosder/.config/hypr/scripts/randomize-wallpapers.sh')
| -rwxr-xr-x | desktop/home/mosder/.config/hypr/scripts/randomize-wallpapers.sh | 19 |
1 files changed, 9 insertions, 10 deletions
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 |
