Guest, Monday 22 October 2012 à 13:02
|
|
|
is it possible to configure the starting day of the week in the calendar app.
In ISO the week starts with Monday ... |
fabounet, Monday 22 October 2012 à 16:49
|
|
Subscription date : 30 November 2007
Messages : 17118
|
+1 for Monday.
I'm afraid there is no option for that at themoment, but you can easily hack the script (it's written in Bash)
the script is located is ~/.config/cairo-dock/third-party/Calendar |
matttbe, Monday 22 October 2012 à 17:44
|
|
Subscription date : 24 January 2009
Messages : 12573
|
I think it's better to use ncal which checks the current local in order to know if the week has to starts with Monday or Sunday: |
Guest, Monday 22 October 2012 à 19:59
|
|
|
Ok. Thanks.
So the follwing patch will do it
~/.config/cairo-dock/third-party/Calendar$ diff Calendar.sh.orig Calendar.sh
50c50
< which cal > /dev/null
---
> which ncal > /dev/null
52,53c52,53
< #dbus-send --session --dest=$DBUS_NAME $DBUS_PATH $DBUS_INTERFACE.applet.ShowDialog string:"`cal -h`" int32:$time_dialog_cal_today
< MESSAGE="<tt>`cal -h`</tt>"
---
> #dbus-send --session --dest=$DBUS_NAME $DBUS_PATH $DBUS_INTERFACE.applet.ShowDialog string:"`ncal -hC`" int32:$time_dialog_cal_today
> MESSAGE="<tt>`ncal -hC`</tt>"
63c63
< call ShowDialog "string:\"ERROR: 'cal' isn't installed\"" "int32:5"
---
> call ShowDialog "string:\"ERROR: 'ncal' isn't installed\"" "int32:5"
82c82
< which cal > /dev/null
---
> which ncal > /dev/null
84c84
< MESSAGE="<tt>`cal -h -3`</tt>"
---
> MESSAGE="<tt>`ncal -hC -3`</tt>"
93,94c93,94
< echo "$APP_NAME applet -> Script Name : $SCRIPT_NAME -> 'cal' isn't installed"
< call ShowDialog "string:\"ERROR: 'cal' isn't installed\"" "int32:5"
---
> echo "$APP_NAME applet -> Script Name : $SCRIPT_NAME -> 'ncal' isn't installed"
> call ShowDialog "string:\"ERROR: 'ncal' isn't installed\"" "int32:5" |
matttbe, Tuesday 23 October 2012 à 19:59
|
|
Subscription date : 24 January 2009
Messages : 12573
|
Yes, thank you, it seems it's what I did but it seems I didn't push this modification or there were some problems... I'll fix that asap! |
fabounet, Thursday 25 October 2012 à 16:24
|
|
Subscription date : 30 November 2007
Messages : 17118
|
is ncal a usual gnu tool as cal ? |
matttbe, Thursday 25 October 2012 à 22:02
|
|
Subscription date : 24 January 2009
Messages : 12573
|
Yes, it seems that it's the same tool following the first line of 'man cal':cal, ncal — displays a calendar and the date of Easter |
|