Choose style:

Author Topic: Wallpaper changer code  (Read 4982 times)

0 Members and 1 Guest are viewing this topic.

Offline rjm65

  • Veteran
  • ****
  • Posts: 1003
  • Karma: 300
  • I have Peppermint Fresh Breath. :P
    • View Profile
  • Peppermint version(s): Win-98 /Win-7/ Peppermint 9
Re: Wallpaper changer code
« Reply #15 on: March 30, 2014, 10:01:46 am »
This is the question I asked over on linux mint forum that they never replied too...
Would be so nice if they had a script for cinnamon like peppermint has....  :)
Robert
Peppermint 9 User

Gateway Solo 9300 Pro
IBM T40

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25260
  • Karma: 2793
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Wallpaper changer code
« Reply #16 on: March 30, 2014, 10:19:16 am »
Actually you can remove the "NUMBER" line from that script .. it's unnecessary.

It only needs to read:
Code: [Select]
#!/bin/bash
## Auto Wallpaper Changer
n=10
while [ $n -le 10 ]
do
sleep 30m &&
pcmanfm -w "$(find /home/YOUR_USERNAME/Pictures -type f | shuf -n1)"
done
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline rmcellig

  • Member
  • ***
  • Posts: 205
  • Karma: 13
  • New Forum User
    • View Profile
Re: Wallpaper changer code
« Reply #17 on: March 30, 2014, 11:17:11 am »
Thanks!! I'm doing my jazz radio show at the moment but I had another question. Because I use Gnome-Schedule, how would I call the script using GS?

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25260
  • Karma: 2793
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Wallpaper changer code
« Reply #18 on: March 30, 2014, 11:43:53 am »
I don't know anything about gnome-schedule

But my guess would be either

a) you'd remove the "while loop" and "sleep" from the script, then get gnome-schedule to run the script on you chosen schedule.

or

b) remove the script altogether, and just get gnome schedule to run:
Code: [Select]
pcmanfm -w "$(find /home/YOUR_USERNAME/Pictures -type f | shuf -n1)"
on your chosen schedule
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline rmcellig

  • Member
  • ***
  • Posts: 205
  • Karma: 13
  • New Forum User
    • View Profile
Re: Wallpaper changer code
« Reply #19 on: March 30, 2014, 04:23:50 pm »
Thanks for the one line solution. I will try it out. This is what I was looking for. So simple. I'll post back if this works or not. Thanks again!!!!!