Modificar Reloj en Gnome 2
Cambiar formato y apariencia
En Gnome es posible cambiar el aspecto del applet del Reloj por medio del uso de css y Strftime.
- Ejecutar gconf-editor (desde un terminal o con Alt+F2)
- Buscar en el panel de la izquierda apps → panel → applets → clock_screen0 → prefs
- Cambiar el valor del campo custom_format, por ejemplo con:
<span size="smaller" color="#FD4747"> %a %d %b </span> <b>%H:%M</b>
- Cambiar el valor del campo format por custom
- Cerrar el editor y veremos los cambios realizados
Para volver al formato original debemos dejar en blanco el campo custom_format y escribir 12-hour o 24-hour en el campo format.
El campo custom_format especifica el formato usado por el applet del reloj cuando el campo format contiene el valor custom. Se puede utilizar Css y Strftime para cambiar la apariencia del applet.
El campo format especifica el formato del Reloj. Los posibles valores son 12-hour, 24-hout, internet, unix y custom
Información sobre CSS en : CSS Learning
Referencia sobre Strftime :
%a | Weekday name, abbreviated |
%A | Weekday name |
%b | Month name, abbreviated |
%B | Month name |
%c | Preferred date-and-time representation for the current locale |
%C | Century number, expressed as a two-digit integer in the range 00-99 |
%d | Day of the month, expressed as a two-digit integer in the range 01-31 |
%D | Same as %m/%d/%y |
%e | Day of the month, expressed as an unpadded one-digit or two-digit integer in the range1-31 |
%h | Same as %b |
%H | Hour, expressed as a two-digit integer in 24-hour clock format in the range00-24 |
%I | Hour, expressed as a two-digit integer in 12-hour clock format in the range00-12 |
%j | Day of the year, expressed as a three-digit integer in the range 001-366 |
%m | Month, expressed as an integer in the range01-12 |
%M | Minute, expressed as an integer in the range00-59 |
%n | Newline character (ASCII0×10) |
%p | The string’AM’or’PM’ as appropriate for the given time (may be translated for the current locale) |
%r | Time in 12-hour clock format with seconds; same as %I:%M:%S %p |
%R | Time in 24-hour clock format without seconds; same as %H:%M |
%S | Seconds, expressed as a two-digit decimal number in the range 00-59 |
%t | Tab character (ASCII0×9) |
%T | Time in 24-hour clock format with seconds; same as %H:%M:S |
%u | Weekday expressed as a single-digit integer in the range 1-7, where Monday is day1 |
%U | Week number, expressed as an integer in the range 00-53, where the first Sunday is the first day of the first week |
%V | Week number, expressed as an integer in the range 00-53, where week01 is the first week with four or more of its days within the year, and Monday as the first day of the week (ISO 8601:1998 format) |
%W | Week number, expressed as an integer in the range 00-53, where the first Monday is the first day of the first week |
%x | Date expressed in the preferred representation for the current locale, not including the time |
%X | Time expressed in the preferred representation for the current locale, not including the date |
%y | Year, expressed as a two-digit integer in the range 00-99 |
%Y | Year, expressed as a two-digit integer in the range 1970-2037 |
%Z | Current time zone or its name or abbreviation |
%% | Literal percent sign |
Cambiar color
En los foros de Ubuntu hay una solucion para cambiar el color del reloj http://ubuntuforums.org/showthread.php?t=342575:
Crear un archivo llamado .gtkrc-2.0 en su directorio raíz y copiar el siguiente código :
style "panel-clock"
{
fg[NORMAL] = "#000000"
}
widget "*.clock-applet-button.*" style "panel-clock"
(Cambiar #000000 por el color deseado.) Guardar el archivo y reinciar la sesión.