How can I get Variety working on Hyprland?

496 Views Asked by At

I'm trying to use Variety in Hyprland, but I haven't found an article or a Question anywhere on the web.

Can anyone tell me how I can integrate it in my hyprland.conf?

1

There are 1 best solutions below

0
lorenzo-bettini On BEST ANSWER

As detailed here https://www.lorenzobettini.it/2023/05/hyprland-and-the-variety-wallpaper-manager/ you must first install swaybg and then you edit the file ~/.config/variety/scripts/set_wallpaper by changing the line

if [[ -n $SWAYSOCK ]]; then

into something like

if [[ -n $SWAYSOCK || $XDG_CURRENT_DESKTOP == "Hyprland" ]] ; then

or simply (if you don't plan to use "sway")

if [[ $XDG_CURRENT_DESKTOP == "Hyprland" ]] ; then

Now, Variety can change your wallpaper.