RSS

Tweak Gnome 3.4 número 01: Tamaño de barra de título (title bar size)

15 May

Si tienes instalado Gnome 3.4 en tu sistema, verás que el tema predeterminado de gnome, llamado Adwaita, está perfectamente integrado en todos lados, pero que hay de los bordes de ventana y su tamaño excesivo?. Por suerte todo gnome 3.4 y su apariencia está basada en CSS como los sitios web, así que cambiarla no toma mucho tiempo. Para cambiar los temas predefinidos basta con editar el archivo css correcto y tendrás una personalización perfecta a tu gusto. Sin embargo, el cambiar el borde de ventana es un poco más complicado ya que hay que cambiar varios números en el archivo ya que el borde de ventana (Metacity es el encargado) usa archivos XML. Así que para cambiar el borde de ventana de tamaño se usa el siguiente comando:

sudo sed -i '/title_vertical_pad/s|value="[0-9]\{1,2\}"|value="0"|g' /usr/share/themes/Adwaita/metacity-1/metacity-theme-3.xml

Pongan atención en la parte que dice value=»0″ ya que ese es el valor que hay cambiar, yo lo tengo en 5 para que no sea tan pequeño. También pongan atención a que esto modifica el archivo del tema general así que es mejor hacer un respaldo de este antes de correr el comando o reinstalar el tema por default de gnome para que lo re-escriba por ustedes.

English:

If you have Gnome 3.4, you’ll see that Adwaita (default theme) is perfectly integrated with everything, but there are things that jump to the eye like the huge size of the window borders. Luckyly we can edit simple CSS files to change such things that we don’t like, unfortunetly that’s not the case for window borders, those are manage by XML files, easy to edit but tedious. If you’d like to change this, use the next command to fix the size of the window borders by a smaller one. Note the part that says value=»0″, change the 0 to the size of your linking, I have mine on 5, not to small but no so big. Remember to backup the file first or if you want to return to the default size just re-install the gnome default themes and it will overwrite it for you.

sudo sed -i '/title_vertical_pad/s|value="[0-9]\{1,2\}"|value="0"|g' /usr/share/themes/Adwaita/metacity-1/metacity-theme-3.xml
 
Deja un comentario

Publicado por en 15 May 2012 en Gnome, Linux, Tutoriales

 

Etiquetas: , , , , ,

Deja un comentario