<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>unitstep.net &#187; linux mint</title>
	<atom:link href="http://unitstep.net/blog/category/linux-mint/feed/" rel="self" type="application/rss+xml" />
	<link>http://unitstep.net</link>
	<description>the home of peter chng</description>
	<pubDate>Sun, 30 Nov 2008 23:12:11 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
	<language>en</language>
			<item>
		<title>Fixing the small title bar text in GNOME with Compiz enabled</title>
		<link>http://unitstep.net/blog/2008/05/29/fixing-the-small-title-bar-text-in-gnome-with-compiz-enabled/</link>
		<comments>http://unitstep.net/blog/2008/05/29/fixing-the-small-title-bar-text-in-gnome-with-compiz-enabled/#comments</comments>
		<pubDate>Fri, 30 May 2008 00:34:38 +0000</pubDate>
		<dc:creator>Peter Chng</dc:creator>
		
		<category><![CDATA[compiz]]></category>

		<category><![CDATA[fix]]></category>

		<category><![CDATA[linux mint]]></category>

		<category><![CDATA[ubuntu]]></category>

		<category><![CDATA[effects]]></category>

		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://unitstep.net/?p=327</guid>
		<description><![CDATA[If you&#8217;re running GNOME and have enabled Compiz effects, you may have noticed that title bar text - the descriptions at the top of windows - have inexplicably got smaller.  This problem is especially relevant and noticeable in Linux Mint and other Ubuntu-based  distributions, as I learned when setting up a machine for [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re running GNOME and have enabled <a href="http://compiz.org/">Compiz effects</a>, you may have noticed that title bar text - the descriptions at the top of windows - have inexplicably got smaller.  This problem is especially relevant and noticeable in <a href="http://www.linuxmint.com/">Linux Mint</a> and other <a href="http://www.ubuntu.com/">Ubuntu-based </a> distributions, as I learned when setting up a machine for my Mom to use.  You can see an example of the small/broken title bar text size below. (This was with the default settings)</p>
<p class="image"><a rel="lightbox" href='http://unitstep.net/wordpress/wp-content/uploads/2008/05/titlebar-before-fix.jpg' title="Small (broken) title bar text"><img src="http://unitstep.net/wordpress/wp-content/uploads/2008/05/titlebar-before-fix-300x204.jpg" alt="Small (broken) title bar text" title="Small (broken) title bar text" /></a></p>
<p>A quick fix would be just to increase the title bar font size in the appearance settings, but this would result in larger-than-normal title bar text if you were to disable the Compiz effects.  This smaller text is actually a slight bug, and can be fixed by entering the command <code>compiz --version</code> in the terminal.  After doing this, you&#8217;ll see the title bar text increase back to the normal size - invoking <code>compiz</code> seems to cause the manager to reset the size back. However, the changes do not persist after a reboot or after logging back in and it&#8217;s impractical to have to do this every time. </p>
<p>As with all tedious tasks, the best way to accomplish them is with a script.  Here&#8217;s a nice workaround.</p>
<p>It turns out other people were having the same problem as I.  Searching lead to a thread which <a href="http://ubuntuforums.org/showthread.php?t=599192">suggested the <code>compiz --version</code> command</a> and another which suggested <a href="http://ubuntuforums.org/showthread.php?t=507217">using a bash script</a>.  </p>
<p>Combining the two, I came up with this.  Simply follow these steps and the fix should automatically be enabled after every time you login.</p>
<ol>
<li>
<h4>Make the script file</h4>
<p>Create a file and name it something like &#8220;compiz-fix&#8221;.  Open it in your favourite text editor (<a href="http://en.wikipedia.org/wiki/Nano_%28text_editor%29">nano</a> is my current favourite, after dealing with systems at work that only have <a href="http://en.wikipedia.org/wiki/Vi">vi</a>).</p>
<p>Enter the following lines:</p>
<pre><code>sleep 10
compiz --version</code></pre>
<p>These two commands enable the fix to work.  Here, we&#8217;re waiting/sleeping for 10 seconds after login to make sure that Compiz has time to start up - or else the <code>compiz --version</code> command will have no effect.  You may have to change the sleep period on your system depending on how long it takes to login, but 10 seconds should be enough.
</li>
<li>
<h4>Make the script executable</h4>
<p>This is straightforward, simply open a terminal window and <a href="http://www.freeos.com/guides/lsst/ch02sec01.html">chmod +x {script-file-name}</a>.
</li>
<li>
<h4>Make the script run at startup</h4>
<p>In Linux Mint this is done by going to <strong>Preferences -> Sessions</strong> and then adding an entry to the &#8220;Startup Programs&#8221; tab. </p>
<p>The command should be something like this:</p>
<pre><code>bash /home/&lt;user_name&gt;/compiz-fix</code></pre>
<p>This is assuming you&#8217;ve saved the &#8220;compiz-fix&#8221; script under your home directory.
</li>
</ol>
<p>And then you&#8217;re done! You should now notice the proper title bar text size every time you login, as seen below:</p>
<p class="image"><a rel="lightbox" href='http://unitstep.net/wordpress/wp-content/uploads/2008/05/titlebar-after-fix.jpg' title="Properly sized title bar text"><img src="http://unitstep.net/wordpress/wp-content/uploads/2008/05/titlebar-after-fix-300x207.jpg" alt="Properly sized title bar text" title="Properly sized title bar text" /></a></p>
<p>This fix was used in Linux Mint 4.0 (Darya) but should also apply to Ubuntu 7.10 (Gutsy Gibbon), upon which it is based and possibly also Ubuntu 8.04 (Hardy Heron) and Linux Mint 5.0, assuming the problem hasn&#8217;t already been fixed.</p>
<hr/>Copyright &copy; 2008 <strong><a href="http://unitstep.net">unitstep.net</a></strong>. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. Please contact <strong><a href="mailto:webmaster@unitstep.net">webmaster@unitstep.net</a></strong> for more information.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">Plugin</a> by <a href="http://www.taragana.com/">Taragana</a></span>]]></content:encoded>
			<wfw:commentRss>http://unitstep.net/blog/2008/05/29/fixing-the-small-title-bar-text-in-gnome-with-compiz-enabled/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
