Xfce Forum

Sub domains
 

You are not logged in.

#1 2013-05-27 15:54:02

xmouse
Member
Registered: 2013-05-27
Posts: 2

Quick Question on Wallpaper Changes By Day of Week

Thanks for your time.

I've seen a lot of threads googling about changing by a specific time or the standard system of changing based on time elapsed, but not changing based specifically on the day of the week.

Is this possible in XFCE without major hacking?  If not, what kind of hacking would need to be done?

Appreciate any insight!

Offline

#2 2013-05-27 16:35:25

PaperNick
Member
From: Bulgaria
Registered: 2013-05-26
Posts: 49

Re: Quick Question on Wallpaper Changes By Day of Week

I use variety and it works great on Xubuntu. This app has a lot of features.
Review

Try it out yourself! smile

Last edited by PaperNick (2013-05-27 18:52:36)

Offline

#3 2013-05-27 16:56:03

paolo321
Member
Registered: 2011-06-26
Posts: 121

Re: Quick Question on Wallpaper Changes By Day of Week

If you already know how to change it with a bash script, modify it to check week day before action.
Check date manpage , options %w and %u

Offline

#4 2013-05-27 17:42:20

MountainDewManiac
Member
From: USA police-state welfare-state
Registered: 2013-03-24
Posts: 355

Re: Quick Question on Wallpaper Changes By Day of Week

If you never shut down your computer, you could try the setting in Settings/Desktop, at the bottom of that window, "Change the background (in minutes)." Enter 1440 as the variable - 1,440 minutes is 24 hours.

I suspect that if you turn your computer off the counter gets reset, but that is only my assumption.

Offline

#5 2013-05-27 17:42:47

xmouse
Member
Registered: 2013-05-27
Posts: 2

Re: Quick Question on Wallpaper Changes By Day of Week

There's not a pacman-friendly solution to this I guess? (I'm on Arch).  If that's the case I'll go digging in the AUR.

paolo321 wrote:

If you already know how to change it with a bash script, modify it to check week day before action.
Check date manpage , options %w and %u

I don't actually, I wouldn't turn down some first person enlightenment but I've seen a lot of google pages about it so I don't want to ask lol...

MountainDewManiac wrote:

If you never shut down your computer, you could try the setting in Settings/Desktop, at the bottom of that window, "Change the background (in minutes)." Enter 1440 as the variable - 1,440 minutes is 24 hours.

I suspect that if you turn your computer off the counter gets reset, but that is only my assumption.

Yeah that's the problem, I need it to check the date and then display a picture when xfce loads, rather than run an incremental timer. smile

Last edited by xmouse (2013-05-27 17:45:56)

Offline

#6 2013-05-28 10:40:32

paolo321
Member
Registered: 2011-06-26
Posts: 121

Re: Quick Question on Wallpaper Changes By Day of Week

Don't know if something already exists... Surely somebody has already done a bash script like this :-)
Anyway:

date '+%u'

outputs a number from 1 (monday) to 7 (sunday) , then with a bash case statement you do what you need
This is the code I use to change wallpaper with command line

xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/image-path -s "$WALLPAPER_FILE"

If you just want to have seven wallpapers rotating, just put together these parts and run the script at every startup...

Last edited by paolo321 (2013-05-28 10:40:46)

Offline

Board footer

Powered by FluxBB