Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Applets | Applets Another sugestion for the Calendar Applet
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Applets | Applets

Subjects Author Language Messages Last message
[Locked] Another sugestion for the Calendar Applet
rozen English 3 fabounet [Read]
14 August 2012 à 17:11

rozen, Sunday 05 August 2012 à 01:17


Subscription date : 20 December 2009
Messages : 19
Hi,

I am running cairo-dock 3.0.0 on Linux Mint 13 Cinnamon but use Xfce. I use Calendar and am grateful that the recent have been committed and now I have another change to propose. I would like the Calendar to display a single date digit in the first nine days of the month. My code for accomplishing this is as follows:

FIRST_CHAR=${DAY:0:1}
if [ 
$FIRST_CHAR == "0" ]
then
    DAY
=${DAY:1}
fi


inserted at the top of icon.sh between the following two lines:

DAY=$(date +%d)

# generate calendar-icon showing current day and month


This modification seems to work but I have not yet tested it throughout a whole month.

Thanks for Your Consideration,

Don

fabounet, Tuesday 07 August 2012 à 17:21


Subscription date : 30 November 2007
Messages : 17118
I think that we actually write the additional 0 on purpose
it seems better to me that the date always takes the same amount of space

matttbe, Friday 10 August 2012 à 16:28


Subscription date : 24 January 2009
Messages : 12573
The icons have been created to display 2 digits but yes, it can be better to only display one digit if it's possible.

Maybe with an option?

fabounet, Tuesday 14 August 2012 à 17:11


Subscription date : 30 November 2007
Messages : 17118
FALSE by default then

Applets | Applets

Subjects Author Language Messages Last message
[Locked] Another sugestion for the Calendar Applet
rozen English 3 fabounet [Read]
14 August 2012 à 17:11


Glx-Dock / Cairo-Dock List of forums Applets | Applets Another sugestion for the Calendar Applet Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.