[Solved] Hotkey command to randomly change wallpaper in LM16

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
RytronII
Level 4
Level 4
Posts: 363
Joined: Wed May 18, 2011 4:46 am
Location: Emerald Isle

[Solved] Hotkey command to randomly change wallpaper in LM16

Post by RytronII »

Hi.

Has anyone got a hotkey command to randomly change wallpaper in Linux Mint 16?

I used to use this in previous releases but it no longer works now. mateconftool seems to be gone.

Code: Select all

bash -c 'mateconftool-2 --type string --set /desktop/mate/background/picture_filename "$(find ~/Documents/Wallpaper -type f | shuf -n1)"'
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Husse: "Don't fix it if it ain't broken, don't break it if you can't fix it."
Image
LinAk59

Re: Hotkey command to randomly change wallpaper in Linux Min

Post by LinAk59 »

Hi!
Try gsettings

Code: Select all

bash -c 'gsettings set  org.mate.background picture-filename "$(find ~/Documents/Wallpaper -type f | shuf -n1)"'
/ Anders
User avatar
RytronII
Level 4
Level 4
Posts: 363
Joined: Wed May 18, 2011 4:46 am
Location: Emerald Isle

Re: Hotkey command to randomly change wallpaper in Linux Min

Post by RytronII »

LinAk59 wrote:Hi!
Try gsettings

Code: Select all

bash -c 'gsettings set  org.mate.background picture-filename "$(find ~/Documents/Wallpaper -type f | shuf -n1)"'
/ Anders
Sweet! Works a treat.

Thank you LinAk59.

:wink:
Husse: "Don't fix it if it ain't broken, don't break it if you can't fix it."
Image
Locked

Return to “MATE”