Peppermint | Linux OS Community Forum
 
It is currently Tue Sep 17, 2019 10:33 am

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Wallpaper Changer (SOLVED)
PostPosted: Mon Mar 10, 2014 7:58 pm 
Offline
User avatar

Joined: Tue Feb 04, 2014 11:54 am
Posts: 56
I would like to change my wallpaper every boot up... I tried most of the changers and only one called variety works with peppermint but it uses 50 megs of ram to run... I found a script that works on my lxde setup machine but that won't work on peppermint so I was wondering if someone could re write the codes to work in peppermint 3.... thanks....
here is the code...
First lets make a desktop icon.

To create a desktop icon right click on the desktop and create a blank file. Name the file whatever you want just end it with .desktop I usually name the icon randomwallpaper.desktop

Once the file is created right click on it and open it with leafpad.

Copy and paste the following code in it

Code:
Code:
[Desktop Entry]
Version=1.0
Name=Random Wallpaper
Comment=Randomly change LXDE wallpaper.
Exec=bash -c 'pcmanfm -w "$(find ~/Pictures/Wallpapers -type f | shuf -n1)"'
Terminal=false
Type=Application
Categories=Utility;
Icon=wallpaper


Once the code is pasted close and save it.

Now I'm going to assume your new icon is on the desktop

We will place this icon in two place...

One in your autostart folder (which provide a random background on startup)

And the other one will go in your applications folder (which will provide access to it through your accessories menu.)

Open your terminal and enter these commands

Code:
cd Desktop
cp randomwallpaper.desktop ~/.config/autostart
sudo mv randomwallpaper.desktop /usr/share/applications


Open up desktop session settings (preferences menu) and make sure the Random Desktop icon is checked if you want it to change your desktop background on startup.

Finally and important... create a folder named Wallpapers inside your Pictures folder and place your desktop backgrounds in there..


Last edited by rjm65 on Tue Mar 11, 2014 11:16 am, edited 2 times in total.

Top
 Profile  
 
 

 Post subject: Re: Wallpaper Changer
PostPosted: Mon Mar 10, 2014 8:53 pm 
Offline
User avatar

Joined: Tue Apr 17, 2012 12:25 pm
Posts: 5521
Location: Cornwall, England
I'm pretty sure you need to specify FULL path in .desktop files.

so change:-

Code:
Exec=bash -c 'pcmanfm -w "$(find ~/Pictures/Wallpapers -type f | shuf -n1)"'

to
Code:
Exec=bash -c 'pcmanfm -w "$(find /home/username/Pictures/Wallpapers -type f | shuf -n1)"'

(obviously replace "username" with your actual Peppermint username)
in your .desktop files

=======================================================

If that doesn't work, what's the output from running the following command in a terminal:
Code:
bash -c 'pcmanfm -w "$(find /home/username/Pictures/Wallpapers -type f | shuf -n1)"'

(obviously replace "username" with your actual Peppermint username)

And did it change your wallpaper ?

_________________
Please be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
 Post subject: Re: Wallpaper Changer
PostPosted: Tue Mar 11, 2014 11:13 am 
Offline
User avatar

Joined: Tue Feb 04, 2014 11:54 am
Posts: 56
That was the answer I needed, it worked... thanks... :)


Top
 Profile  
 
 Post subject: Re: Wallpaper Changer (SOLVED)
PostPosted: Tue Mar 11, 2014 12:36 pm 
Offline
User avatar

Joined: Tue Apr 17, 2012 12:25 pm
Posts: 5521
Location: Cornwall, England
You're welcome .. thanks for marking the topic solved :)

_________________
Please be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

Powered by php B.B. © 2000, 2002, 2005, 2007 php B.B. Group
Template made by DEVPPL