Different wallpaper for each workspace LM Mate

Solved
Lume_56 Posted messages 46 Status Membre -  
Lume_56 Posted messages 46 Status Membre -

Hello,

I am using Linux Mint 20 Mate and I would like to assign a different wallpaper to each workspace. Many distributions offer this feature, but the one I am using does not.

I also have a Notebook running Linux Mint 20.04. I had found a script that allowed customizing each wallpaper. Unfortunately, it does not work with version 22 (i.e., Ubuntu 24.04).

Here is the script (the creator has disappeared from the Linux Mint forum).

#!/bin/bash # Wallpaper changer WDIS 1.0 # https://forum-francophone-linuxmint.fr/viewtopic.php?t=12808 # Script to change the wallpaper when switching desktops. # desktop_dir="/home/bernard/Images/wallpapers" # full path to the images folder; desktop_img[0]="1.jpg" # full name of the image to display desktop_img[1]="2.jpg" desktop_img[2]="3.jpg" desktop_img[3]="4.jpg" desktop_img[4]="5.jpg" desktop_img[5]="6.jpg" desktop_img[6]="7.jpg" desktop_img[7]="8.jpg" # add more images and desktops if you have more desktops setdesktop() { gsettings set org.mate.background picture-filename "$desktop_dir$1" } xprop -root -spy _NET_CURRENT_DESKTOP | ( while read -r; do desk=${REPLY:${#REPLY}-1:1} setdesktop ${desktop_img[$desk]} done ) # gsettings set org.gnome.desktop.background picture-uri "file://$desktop_dir$1" # for Cinnamon # gsettings set org.mate.background picture-filename "$desktop_dir$1" # for MATE 

As soon as I run the script (with LM 22 mate), the wallpaper turns completely black.

Maybe a problem with gsettings?

My config:

"Linux Mint 22 Wilma" kernel 6.8.0-48-generic #48-Ubuntu

Thank you for your help.

2 réponses

Lume_56 Posted messages 46 Status Membre 1
 

Hello,

I found a solution with this video

https://www.youtube.com/watch?v=9GO86EdDJ5c

and the script.

https://askubuntu.com/questions/945092/how-to-have-a-different-background-for-each-workspace-in-mate

0
Lume_56 Posted messages 46 Status Membre 1
 

I don't see a button/command to mark the topic as resolved...

0
Lume_56 Posted messages 46 Status Membre 1
 

I found it!

0