diff options
Diffstat (limited to 'desktop')
| -rw-r--r-- | desktop/home/mosder/.config/hypr/hyprpaper.conf | 8 | ||||
| -rwxr-xr-x | desktop/home/mosder/.config/hypr/scripts/randomize-wallpapers.sh | 19 |
2 files changed, 13 insertions, 14 deletions
diff --git a/desktop/home/mosder/.config/hypr/hyprpaper.conf b/desktop/home/mosder/.config/hypr/hyprpaper.conf index 782d4f5..098ecb0 100644 --- a/desktop/home/mosder/.config/hypr/hyprpaper.conf +++ b/desktop/home/mosder/.config/hypr/hyprpaper.conf @@ -1,14 +1,14 @@ $MAIN_MONITOR = DP-1 $SECOND_MONITOR = HDMI-A-1 -$WALLPAPER_2K = $HOME/wallpapers/2k/.current -$WALLPAPER_HD = $HOME/wallpapers/hd/.current +$WALLPAPER_MAIN = $HOME/wallpapers/.current_main +$WALLPAPER_SECOND = $HOME/wallpapers/.current_second wallpaper { monitor = $MAIN_MONITOR - path = $WALLPAPER_2K + path = $WALLPAPER_MAIN } wallpaper { monitor = $SECOND_MONITOR - path = $WALLPAPER_HD + path = $WALLPAPER_SECOND } splash = false 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 |
