dotfiles/.config/hypr/scripts/random_wallpaper
Sergio Laín 4812602708
feat(hyprland): wallpaper switcher
using rofi and the browser-extended plugin to select a wallpaper for the system
also made a random wallpaper script for the start of the system
2023-10-07 22:56:02 +02:00

10 lines
327 B
Bash
Executable file

#!/usr/bin/bash
function load_wp() {
IMAGE=$(fd -e png -e jpg --base-directory "$HOME/.config/hypr/themes/luna/walls/" --type f . | shuf -n 1)
swww img --transition-type wipe --transition-pos top-right --transition-duration 3.8 --transition-step 255 $HOME/.config/hypr/themes/luna/walls/"$IMAGE"
}
swww init
load_wp