1. Inicio
  2. Tecnologia
  3. Linux
  4. Modificar Reloj Gnome

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.

<span size="smaller" color="#FD4747"> %a %d %b </span>  <b>%H:%M</b>

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 :

%aWeekday name, abbreviated
%AWeekday name
%bMonth name, abbreviated
%BMonth name
%cPreferred date-and-time representation for the current locale
%CCentury number, expressed as a two-digit integer in the range 00-99
%dDay of the month, expressed as a two-digit integer in the range 01-31
%DSame as %m/%d/%y
%eDay of the month, expressed as an unpadded one-digit or two-digit integer in the range1-31
%hSame as %b
%HHour, expressed as a two-digit integer in 24-hour clock format in the range00-24
%IHour, expressed as a two-digit integer in 12-hour clock format in the range00-12
%jDay of the year, expressed as a three-digit integer in the range 001-366
%mMonth, expressed as an integer in the range01-12
%MMinute, expressed as an integer in the range00-59
%nNewline character (ASCII0×10)
%pThe string’AM’or’PM’ as appropriate for the given time (may be translated for the current locale)
%rTime in 12-hour clock format with seconds; same as %I:%M:%S %p
%RTime in 24-hour clock format without seconds; same as %H:%M
%SSeconds, expressed as a two-digit decimal number in the range 00-59
%tTab character (ASCII0×9)
%TTime in 24-hour clock format with seconds; same as %H:%M:S
%uWeekday expressed as a single-digit integer in the range 1-7, where Monday is day1
%UWeek number, expressed as an integer in the range 00-53, where the first Sunday is the first day of the first week
%VWeek 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)
%WWeek number, expressed as an integer in the range 00-53, where the first Monday is the first day of the first week
%xDate expressed in the preferred representation for the current locale, not including the time
%XTime expressed in the preferred representation for the current locale, not including the date
%yYear, expressed as a two-digit integer in the range 00-99
%YYear, expressed as a two-digit integer in the range 1970-2037
%ZCurrent 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.