Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'd like to tweak my Conky so it automatically displays the days of the week correctly. So for example, if TODAY were Tuesday, it would look like this:

Tuesday

Wednesday

Thursday

Friday

[etc.]

And then tomorrow, automatically, it would look like this:

Wednesday

Thursday

Friday

[etc.]

I know I can get it to display today's date like this:

${time %A}

But how do I get it to display tomorrow's date?

Thanks so much for any help/suggestions.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

You can use the $execi Conky command to make what you want.

This command executes a shell command with specific interval and displays the output in conky.

For your need, you can execute the standard date command :

date -d tomorrow

This will return the tomorrow date using the standard output, but you can specify your output format using date parameters (see man date)

So what you need to enter in your .conkyrc script is :

${execi 3600 date -d tomorrow}

The interval is in seconds, I set it to 3600 but change it with your ideal interval

share|improve this answer
    
This worked beautifully. Thanks so much! –  begtognen Jan 3 '11 at 9:20
    
I'm wondering if it's possible to use the same command for time? I'm asking because currently I have ${time %I:%M %p} ${font sans:style=bold:size=24}${color orange}6:30 PM appointment and it'd be great to have something that tells me how long I have until my appointment happens. (Apologies for the one long paragraph. I'm still really struggling with how to format.) –  begtognen Feb 1 '11 at 22:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.