<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Nicolás Brailovsky &#187; Gnome</title>
	<atom:link href="http://nicolasb.com.ar/category/linux/gnome/feed/" rel="self" type="application/rss+xml" />
	<link>http://nicolasb.com.ar</link>
	<description>A modern blog</description>
	<lastBuildDate>Thu, 02 Sep 2010 12:47:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ubuntu: Dual screen still FUBAR&#8217;d</title>
		<link>http://nicolasb.com.ar/2010/04/ubuntu-dual-screen-still-fubard/</link>
		<comments>http://nicolasb.com.ar/2010/04/ubuntu-dual-screen-still-fubard/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 10:00:37 +0000</pubDate>
		<dc:creator>nico</dc:creator>
				<category><![CDATA[Gnome]]></category>

		<guid isPermaLink="false">http://nicolasb.com.ar/?p=767</guid>
		<description><![CDATA[I&#8217;m quite sure I have written about this before but I&#8217;m too lazy to search for the article right now. Well, dual screens in Ubuntu still sucks. Much less than ever before, granted, but it still works quite bad. In my specific case the whole desktop is shown, in both monitors (which by itself is [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m quite sure I have written about this before but I&#8217;m too lazy to search for the article right now. Well, dual screens in Ubuntu still sucks. Much less than ever before, granted, but it still works quite bad. In my specific case the whole desktop is shown, in both monitors (which by itself is a huge improvement over previous versions) but the working area is clipped to the notebook&#8217;s monitor size. Not nice.</p>
<p><a href="http://nicolasb.com.ar/archivos/2010/02/Jack-Rabbit.jpg"><img class="aligncenter size-medium wp-image-768" title="Jack Rabbit" src="http://nicolasb.com.ar/archivos/2010/02/Jack-Rabbit-300x201.jpg" alt="" width="300" height="201" /></a></p>
<p>To fix this problem (more like hacking it away, actually) I keep a handy bash script in the top left corner on my desktop:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">xrandr &#8211;output HDMI<span class="nu0">-2</span> &#8211;right-of HDMI<span class="nu0">-1</span> &#8211;mode 1680&#215;1050 &#8211;rotate normal</div>
</li>
</ol>
</div>
<p>Also, as I have two nice rotable monitors at work it&#8217;s nice that now Ubuntu supports actually rotating the picture displayed in the monitor (thanks Ubuntu for coming up to speed&#8230; with windows 98, that is). Obviously I keep another script for this, as it doesn&#8217;t really work by default:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">xrandr &#8211;output HDMI<span class="nu0">-1</span> &#8211;left-of HDMI<span class="nu0">-2</span> &#8211;mode 1680&#215;1050 &#8211;rotate left</div>
</li>
<li class="li1">
<div class="de1">xrandr &#8211;output HDMI<span class="nu0">-2</span> &#8211;left-of HDMI<span class="nu0">-1</span> &#8211;mode 1680&#215;1050 &#8211;rotate normal</div>
</li>
</ol>
</div>
<p>Even though I love bashing Ubuntu (and bash) I&#8217;m quite confident most, if not all, of this issues will be gone in future versions of the OS.</p>
]]></content:encoded>
			<wfw:commentRss>http://nicolasb.com.ar/2010/04/ubuntu-dual-screen-still-fubard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing default file associations in gnome</title>
		<link>http://nicolasb.com.ar/2010/04/changing-default-file-associations-in-gnome/</link>
		<comments>http://nicolasb.com.ar/2010/04/changing-default-file-associations-in-gnome/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 10:00:20 +0000</pubDate>
		<dc:creator>nico</dc:creator>
				<category><![CDATA[Gnome]]></category>

		<guid isPermaLink="false">http://nicolasb.com.ar/?p=545</guid>
		<description><![CDATA[It&#8217;s been a long time since I posted a Linux related tip. Not in the mood I guess&#8230; well, this is one which really annoyed me, until I found out how easy it is: I hate some of the default file associations in gnome. Movieplayer, for example, is a horrible choice. Breaking and devolving with [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a long time since I posted a Linux related tip. Not in the mood I guess&#8230; well, this is one which really annoyed me, until I found out how easy it is: I hate some of the default file associations in gnome. Movieplayer, for example, is a horrible choice. Breaking and devolving with each new distro release, I have decided to settle with vlc as my default movie player, yet I couldn&#8217;t easily change the default file type association. After fiddling around with the thingy in gnome resembling a regedit (ugh) I found out the easy way:</p>
<p>* Right click the file for which you want to change default associations and click properties<br />
* Select &#8220;open with&#8221; tab<br />
* &#8230;<br />
* Profit!</p>
<p><a href="http://nicolasb.com.ar/archivos/2010/02/gnomo_joven.jpg"><img class="aligncenter size-medium wp-image-752" title="gnomo_joven" src="http://nicolasb.com.ar/archivos/2010/02/gnomo_joven-278x300.jpg" alt="" width="278" height="300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://nicolasb.com.ar/2010/04/changing-default-file-associations-in-gnome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nice Ubuntu fonts + Vim Tip</title>
		<link>http://nicolasb.com.ar/2009/09/nice-ubuntu-fonts-vim-tip/</link>
		<comments>http://nicolasb.com.ar/2009/09/nice-ubuntu-fonts-vim-tip/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 10:00:29 +0000</pubDate>
		<dc:creator>nico</dc:creator>
				<category><![CDATA[Gnome]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Vim]]></category>
		<category><![CDATA[Vim Tips]]></category>

		<guid isPermaLink="false">http://nicolasb.com.ar/?p=544</guid>
		<description><![CDATA[Type ":set guifont?" to see your font's name.
Type set guifont=Inconsolata to get a nice font.]]></description>
			<content:encoded><![CDATA[<table border="0">
<tbody>
<tr>
<td><a href="http://nicolasb.com.ar/archivos/2009/09/manuscrito.jpg"><img class="aligncenter size-medium wp-image-547" title="manuscrito" src="http://nicolasb.com.ar/archivos/2009/09/manuscrito-216x300.jpg" alt="manuscrito" width="108" height="150" /></a></td>
<td>It&#8217;s not unusual to hear someone complain about Ubuntu fonts. Apparently they are ugly. I guess that depends very much on a personal opinion, however not everyone knows there are alternative fonts in the common repositories (I think multiverse even has non-free fonts ported from Windows).</td>
</tr>
</tbody>
</table>
<p>Someone recommended me <a href="http://www.levien.com/type/myfonts/inconsolata.html">Inconsolata</a> as a nice programming font (it&#8217;s monospaced). I&#8217;m using it right now and it&#8217;s not bad. Let&#8217;s see how can you install it:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">sudo</span> apt-get <span class="kw2">install</span> ttf-inconsolata</div>
</li>
</ol>
</div>
<p><a href="http://nicolasb.com.ar/archivos/2009/09/incoshow.png"><img class="aligncenter size-medium wp-image-546" title="incoshow" src="http://nicolasb.com.ar/archivos/2009/09/incoshow-300x157.png" alt="incoshow" width="300" height="157" /></a></p>
<p>Easy and it looks even better when used with gVim. You can go to Edit &gt; Select font to change the font preference, however this won&#8217;t set a new default for the next time you start gVim. To do this we need to add it to the .vimrc, and again, to do this we need to know the font&#8217;s name.</p>
<p>Type &#8220;:set guifont?&#8221; to see the font&#8217;s name. In my case it&#8217;s &#8220;Inconsolata Medium 14&#8243; (I changed size and type). Now add the following to your .vimrc:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">if has(&#8216;gui_running&#8217;)
</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp;set guifont=Inconsolata\ Medium\ 14
</div>
</li>
<li class="li1">
<div class="de1">&nbsp;endif</div>
</li>
</ol>
</div>
<p>Notice I added a backslash before the spaces, otherwise Vim will try to parse Medium and 14 as separated parameters to &#8220;Inconsolata&#8221;, which obviously won&#8217;t understand. Have fun with your new fonts.</p>
]]></content:encoded>
			<wfw:commentRss>http://nicolasb.com.ar/2009/09/nice-ubuntu-fonts-vim-tip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu: Dual monitors</title>
		<link>http://nicolasb.com.ar/2009/08/ubuntu-dual-monitors/</link>
		<comments>http://nicolasb.com.ar/2009/08/ubuntu-dual-monitors/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 10:00:33 +0000</pubDate>
		<dc:creator>nico</dc:creator>
				<category><![CDATA[Gnome]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://nicolasb.com.ar/?p=354</guid>
		<description><![CDATA[There&#8217;s nothing better than feeling like a super villain by having a dual monitor setup. OK, three may be better, you probably couldn&#8217;t hold back the evil laughter, but my laptop won&#8217;t support three screens.

Fortunately, in Ubuntu JJ having a dual screen setup is a breeze. Just plug the two monitors and hope it works. [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s nothing better than feeling like a super villain by having a dual monitor setup. OK, three may be better, you probably couldn&#8217;t hold back the evil laughter, but my laptop won&#8217;t support three screens.</p>
<p><a href="http://nicolasb.com.ar/archivos/2009/06/dilbert.gif"><img class="aligncenter size-full wp-image-454" title="dilbert" src="http://nicolasb.com.ar/archivos/2009/06/dilbert.gif" alt="dilbert" width="600" height="207" /></a></p>
<p>Fortunately, in Ubuntu JJ having a dual screen setup is a breeze. Just <strong>plug the two monitors</strong> and hope it works. Of course, it may not. If that&#8217;s the case you can go to <strong>System &gt; Preferences &gt; Screen</strong> for a nice GUI, which will let you select each screen&#8217;s resolution and position. Nothing better for productivity than having your monitors swapped, or even better, flipped upside down.</p>
<p>Well, sometimes &#8220;Screen Preferences&#8221; won&#8217;t work either, too bad. In that&#8217; case you&#8217;ll have to get dirty with <strong><a href="www.x.org/wiki/Projects/XRandR" target="_blank">xrandr</a></strong>. It&#8217;s not too difficult but it&#8217;s console based (you&#8217;re not scared of the console, are you?).</p>
<p>Though the man page for xrandr is a little bit intimidating at first you&#8217;ll just have to do it once, so I won&#8217;t write about using it, I will just copy &amp; paste a script I keep in my desktop to fix the screen whenever it brakes (my lapop tends to foobar my screen when being docked or undocked, not sure why)</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">xrandr &#8211;output HDMI<span class="nu0">-2</span> &#8211;right-of HDMI<span class="nu0">-1</span> &#8211;mode 1680&#215;1050 &#8211;rotate normal</div>
</li>
</ol>
</div>
<p>I am sure you can figure out the rest on your own &#8211; enjoy the dual screen setup!</p>
]]></content:encoded>
			<wfw:commentRss>http://nicolasb.com.ar/2009/08/ubuntu-dual-monitors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing default shortcuts in gnome</title>
		<link>http://nicolasb.com.ar/2009/01/changing-default-shortcuts-in-gnome/</link>
		<comments>http://nicolasb.com.ar/2009/01/changing-default-shortcuts-in-gnome/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 18:48:00 +0000</pubDate>
		<dc:creator>nico</dc:creator>
				<category><![CDATA[Gnome]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://nicolasb.com.ar/blog/?p=83</guid>
		<description><![CDATA[Another of those thing I usually forget: changing default shortcut actions in gnome. In this case, I&#8217;m using MOC as my music player (see apt-get install new computer II and while it&#8217;s great it won&#8217;t integrate nicely with gnome. Fortunately (as most GNU/Linux applications do) it can be commanded via CLI so it isn&#8217;t hard [...]]]></description>
			<content:encoded><![CDATA[<p>Another of those thing I usually forget: changing default shortcut actions in gnome. In this case, I&#8217;m using <a href="http://moc.daper.net/">MOC</a> as my music player (see <a href="http://nicolasb.com.ar/blog/2008/12/apt-get-install-new-computer-ii/">apt-get install new computer II</a> and while it&#8217;s great it won&#8217;t integrate nicely with gnome. Fortunately (as most GNU/Linux applications do) it can be commanded via CLI so it isn&#8217;t hard to change this.</p>
<p>Now, gnome keyboard shortcuts already have defined actions, so how can we change them to invoke  a custom command? Easy enough:</p>
<ol>
<li>Open gconf-editor</li>
<li>Go to apps &gt; metacity &gt; keybinding_commands</li>
<li>Set a command from the list. In my case I&#8217;m going to set command_1 to &#8220;mocp -S&#8221;, command_2 to &#8220;mocp -f&#8221; and command_3 to &#8220;mocp -r&#8221;</li>
<li>Go to apps &gt; metacity &gt; global_keybinding</li>
<li>Set the corresponding run_command_* to the keyboard shortcut. For me that&#8217;s 0xA2 for run_command_1, 0xE9 for run_command_2 and 0xEA for run_command_3; beware it changes between keyboards.</li>
</ol>
<p><strong>Troubleshooting tips:</strong></p>
<ul>
<li>If you use gconf-editor for a key binding don&#8217;t use it again System &gt; Preferences &gt; Key bindings</li>
<li>For hex value keybindings (like the ones I used on the example) use uppercase</li>
<li>If it&#8217;s not working and you can&#8217;t figure out why try with an already working command and a simple keybinding (e.g. gnome-screenshot and &lt;Ctrl&gt;p) then change each one in turn, see where it breaks. Divide and conquer!!</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://nicolasb.com.ar/2009/01/changing-default-shortcuts-in-gnome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
