<?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>Tue, 20 Dec 2011 09:00:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Starting Ubuntu in console mode</title>
		<link>http://nicolasb.com.ar/2011/10/starting-ubuntu-in-console-mode/</link>
		<comments>http://nicolasb.com.ar/2011/10/starting-ubuntu-in-console-mode/#comments</comments>
		<pubDate>Thu, 13 Oct 2011 10:00:00 +0000</pubDate>
		<dc:creator>nico</dc:creator>
				<category><![CDATA[Console]]></category>
		<category><![CDATA[Gnome]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://nicolasb.com.ar/?p=1297</guid>
		<description><![CDATA[Like it or not, Ubuntu is so easy to install that even for servers is very comfortable to just mount the iso and create as many virtual machines as you may need. Sometimes you already have an iso for Ubuntu, but are too lazy to download the server version. For those occasions you can either [...]]]></description>
			<content:encoded><![CDATA[<p>Like it or not, Ubuntu is so easy to install that even for servers is very comfortable to just mount the iso and create as many virtual machines as you may need. Sometimes you already have an iso for Ubuntu, but are too lazy to download the server version. For those occasions you can either decide to waste precious RAM running a GUI for a server that will never need it, or you can remove all traces of the graphical login. Like this:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">sudo</span> update-rc.d -f gdm remove</div>
</li>
</ol>
</div>
<p>This will remove GDM from the startup scripts, meaning you can still fire up the graphical interface (*) if you want, but it will start Ubuntu without loading any graphics stuff. This is very useful to save on RAM, startup time and processing power, which even if not that useful for a desktop machine is incredible beneficial when you have several virtual machines running in a single physical server.</p>
<p>(*) More precisely, if you have users that need it. Remember though, if it can&#8217;t be done in console mode, it ain&#8217;t worth doing.</p>
<p><a href="http://nicolasb.com.ar/archivos/2011/08/gandalf.jpg"><img class="aligncenter size-medium wp-image-1568" title="gandalf" src="http://nicolasb.com.ar/archivos/2011/08/gandalf-300x200.jpg" alt="http://www.makarras.org/2008/06/17/gandalf/" width="300" height="200" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://nicolasb.com.ar/2011/10/starting-ubuntu-in-console-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DIY gnome applets</title>
		<link>http://nicolasb.com.ar/2011/09/diy-gnome-applets/</link>
		<comments>http://nicolasb.com.ar/2011/09/diy-gnome-applets/#comments</comments>
		<pubDate>Thu, 29 Sep 2011 10:00:01 +0000</pubDate>
		<dc:creator>nico</dc:creator>
				<category><![CDATA[Gnome]]></category>

		<guid isPermaLink="false">http://nicolasb.com.ar/?p=1294</guid>
		<description><![CDATA[We all know Gnome, and similar GUIs, are there only as a fancy console multiplexer, but even so it&#8217;s useful to have widgets in your menus or dockbars to display useful data, like the release date of DNF (*). Gnome has a limited amount of applets from which you can choose, and most of them [...]]]></description>
			<content:encoded><![CDATA[<p>We all know Gnome, and similar GUIs, are there only as a fancy console multiplexer, but even so it&#8217;s useful to have widgets in your menus or dockbars to display useful data, like the release date of DNF (*). Gnome has a limited amount of applets from which you can choose, and most of them are crap or limited in their customization. You can always create your own widgets, but that&#8217;s a pain in the ass for lazy people like me. Fortunately we lazy people can now use something an order of magnitude more useful than widgets in Gnome : we can use console commands!</p>
<p>Using something called <a href="http://code.google.com/p/compa/">Compa</a> you can add a meta-widget, that will display the output of any CLI program. This means, of course, that you have all the power of the console to use in your custom made widgets. Need to check your laptop&#8217;s battery? No need to search for a widget anymore, just <a href="http://nicolasb.com.ar/2009/05/everything-is-a-file-aka-battery-state-on-linux/">cat /proc/acpi/battery/BAT0/state</a>. Need to check the weather? Just wget your favorite forecast page and parse it with grep, sed an awk. OK, maybe that&#8217;s a little bit too much.</p>
<p>Once more this proves that anything can be done in console mode &#8211; and whatever you can&#8217;t isn&#8217;t worth doing anyway.</p>
<p><a href="http://nicolasb.com.ar/archivos/2011/04/rube-goldberg.jpg"><img class="aligncenter size-medium wp-image-1419" title="photo posted on post-gazette.com" src="http://nicolasb.com.ar/archivos/2011/04/rube-goldberg-300x209.jpg" alt="" width="300" height="209" /></a></p>
<p>(*) Wow, this article has been written a LONG time ago!</p>
]]></content:encoded>
			<wfw:commentRss>http://nicolasb.com.ar/2011/09/diy-gnome-applets/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Activating tildes and accents for a USA keyboard layout in Ubuntu</title>
		<link>http://nicolasb.com.ar/2011/09/activating-tildes-and-accents-for-a-usa-keyboard-layout-in-ubuntu/</link>
		<comments>http://nicolasb.com.ar/2011/09/activating-tildes-and-accents-for-a-usa-keyboard-layout-in-ubuntu/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 10:00:31 +0000</pubDate>
		<dc:creator>nico</dc:creator>
				<category><![CDATA[Gnome]]></category>

		<guid isPermaLink="false">http://nicolasb.com.ar/?p=1300</guid>
		<description><![CDATA[Wow. This time the title of the post may actually be longer than its contents. How do you enable accents and tildes in Ubuntu? You need it to type cool characters like á, Ó or ñ (hey, my name has one of these!). If you are on Windows I think you have to install a [...]]]></description>
			<content:encoded><![CDATA[<p>Wow. This time the title of the post may actually be longer than its contents. How do you enable accents and tildes in Ubuntu? You need it to type cool characters like á, Ó or ñ (hey, my name has one of these!).</p>
<p>If you are on Windows I think you have to install a new map, and then guess where the key would be. Or use an alt+something magic spell. In Ubuntu, it works by default you just need to add a compose key, Go to System &gt; Preferences &gt; Keyboard &gt; Options &gt; compose key position, select right alt (or whatever you fancy), there you go, now it works. Try it by typing alt + &#8216; + a.</p>
<p><a href="http://nicolasb.com.ar/archivos/2011/08/ComputerCat.jpg"><img class="aligncenter size-full wp-image-1560" title="ComputerCat" src="http://nicolasb.com.ar/archivos/2011/08/ComputerCat.jpg" alt="" width="300" height="304" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://nicolasb.com.ar/2011/09/activating-tildes-and-accents-for-a-usa-keyboard-layout-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>I thought we had deprecated regedit</title>
		<link>http://nicolasb.com.ar/2011/02/i-thought-we-had-deprecated-regedit/</link>
		<comments>http://nicolasb.com.ar/2011/02/i-thought-we-had-deprecated-regedit/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 10:00:24 +0000</pubDate>
		<dc:creator>nico</dc:creator>
				<category><![CDATA[Gnome]]></category>
		<category><![CDATA[Grumpy]]></category>

		<guid isPermaLink="false">http://nicolasb.com.ar/?p=980</guid>
		<description><![CDATA[Guys, I thought we had already agreed on this a long time ago. Windows registry sucks. It&#8217;s a pain in the ass. Why TF is regedit still used in Gnome? I&#8217;d switch to KDE, if only I wasn&#8217;t so lazy.]]></description>
			<content:encoded><![CDATA[<p>Guys, I thought we had already agreed on this <a href="http://www.codinghorror.com/blog/2007/08/was-the-windows-registry-a-good-idea.html">a long time ago</a>. Windows registry sucks. It&#8217;s a pain in the ass.</p>
<p>Why TF is <a href="https://help.ubuntu.com/community/RestoreNautilusLocationBar">regedit</a> still used in Gnome? I&#8217;d switch to KDE, if only I wasn&#8217;t so lazy.</p>
<p><a href="http://nicolasb.com.ar/archivos/2009/10/grumpy-old-man.jpg"><img class="aligncenter size-medium wp-image-605" title="grumpy old man" src="http://nicolasb.com.ar/archivos/2009/10/grumpy-old-man-300x300.jpg" alt="" width="300" height="300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://nicolasb.com.ar/2011/02/i-thought-we-had-deprecated-regedit/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Redshift: Cool your monitor</title>
		<link>http://nicolasb.com.ar/2010/09/redshift-cool-your-monitor/</link>
		<comments>http://nicolasb.com.ar/2010/09/redshift-cool-your-monitor/#comments</comments>
		<pubDate>Tue, 21 Sep 2010 10:00:49 +0000</pubDate>
		<dc:creator>nico</dc:creator>
				<category><![CDATA[Gnome]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://nicolasb.com.ar/?p=973</guid>
		<description><![CDATA[I&#8217;ve been trying Redshift the last few days. It&#8217;s a really cool (pun intended) and simple program. It just sits there all day long, doing nothing. Yeap, it&#8217;s just one more pointless thing on your ps -ef list, up until noon, when it comes to life: it will adjust your monitor&#8217;s temperature, gradually, from a [...]]]></description>
			<content:encoded><![CDATA[<table>
<tbody>
<tr>
<td>I&#8217;ve been trying <a href="http://jonls.dk/redshift/">Redshift</a> the last few days. It&#8217;s a really cool (pun intended) and simple program. It just sits there all day long, doing nothing. Yeap, it&#8217;s just one more pointless thing on your ps -ef list, up until noon, when it comes to life: it will adjust your monitor&#8217;s temperature, gradually, from a cool color to a warmer color.</td>
<td><a href="http://nicolasb.com.ar/archivos/2010/08/redshift-icon-256.png"><img class="aligncenter size-full wp-image-1034" title="redshift-icon-256" src="http://nicolasb.com.ar/archivos/2010/08/redshift-icon-256.png" alt="" width="256" height="256" /></a></td>
</tr>
</tbody>
</table>
<p><strong>Say what?</strong><br />
I know what you are thinking. &#8220;Why the hell did I eat so much cake?&#8221;. And probably something like &#8220;WTF? Monitor temperature? Mine is running cool, k thx bye&#8221; too. The monitor temperature (color temperature, to be more accurate) is the percieved temperature of an object emiting light at the specific wavelength of that color:</p>
<p><a href="http://nicolasb.com.ar/archivos/2010/08/colour-temperature.gif"><img class="aligncenter size-medium wp-image-1031" title="colour-temperature" src="http://nicolasb.com.ar/archivos/2010/08/colour-temperature-289x300.gif" alt="" width="289" height="300" /></a></p>
<p>So, a blueish color means a higher temperature, and it&#8217;s the natural ambience light color you see during the day. Towards the night the color temperature begins too cool down towards a more orange color. This is the temperature Redshift changes.</p>
<p><strong>So what?</strong><br />
Fair question. After a couple million years our brains got used to seeing a hot color temperature during the day (do I have any reader that old?) so staring at a blue monitor all day will keep you awake all night long, the theory being that switching its temperature towards a reder color will help you sleep at night.</p>
<p><strong>Does it work?</strong><br />
Probably not, but that doesn&#8217;t make it any less cool (pun not intended). I think if you fine-tune this app to your sleeping hours it may be of some use, because otherwise you&#8217;ll get a very dark screen at 5pm (don&#8217;t you people know the timezone in Argentina is <a href="https://bugs.launchpad.net/ubuntu/+source/tzdata/+bug/278419">FOOBAR&#8217;d</a>).</p>
]]></content:encoded>
			<wfw:commentRss>http://nicolasb.com.ar/2010/09/redshift-cool-your-monitor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>1</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 [...]]]></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>

