1

Hyprland and the Variety wallpaper manager

 1 year ago
source link: https://www.lorenzobettini.it/2023/05/hyprland-and-the-variety-wallpaper-manager/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Hyprland and the Variety wallpaper manager

I’ve just started experimenting with the Wayland compositor Hyprland and wanted to use my favorite wallpaper manager, Variety. Unfortunately, Variety does not support Hyprland out of the box. However, it’s easy to make it work also on Wayland.

I’m going to use Arch Linux in this blog post.

First of all, you must install “swaybg”, a wallpaper tool for Wayland compositors, and “variety”:

sudo pacman -S swaybg variety

Now, start variety and do the first-time configuration. Currently, trying to change the wallpaper will not work.

Variety creates the directory “~/.config/variety/scripts”. Edit the file “set_wallpaper” inside that directory and search for the block starting like this:

if [[ -n $SWAYSOCK ]]; then

Change it like that (you could also remove the part about SWAYSOCK if you want or if you don’t plan to use “sway” at all):

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

This relies on the XDG_CURRENT_DESKTOP environment variable to be set accordingly, which should be like that automatically; you might want to check that:

echo $XDG_CURRENT_DESKTOP
Hyprland

Restart Variety, and now you can change the wallpaper!

Stay tuned for more posts on Hyprland 🙂

Like this:

Loading...

This entry was posted in Tips and Tricks and tagged Arch, Hyprland, linux, variety on May 31, 2023.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK