<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Gnome-Shell on Life</title><link>/tags/gnome-shell/</link><description>Recent content in Gnome-Shell on Life</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Wed, 21 Mar 2012 10:56:00 +0530</lastBuildDate><atom:link href="/tags/gnome-shell/index.xml" rel="self" type="application/rss+xml"/><item><title>Unity vs. GNOME Shell: The Small Things – Status Tray</title><link>/post/2012/2012-03-21-unity-vs-gnome-shell-the-small-things-status-tray/</link><pubDate>Wed, 21 Mar 2012 10:56:00 +0530</pubDate><guid>/post/2012/2012-03-21-unity-vs-gnome-shell-the-small-things-status-tray/</guid><description>&lt;p&gt;The GNOME Shell status tray is an interesting implementation written in JavaScript. Consequently, it is approachable to learn, write extensions for, and modify. However, one issue that bothered me was focus stealing.&lt;/p&gt;
&lt;p&gt;When clicking on a status tray icon and moving the mouse cursor diagonally down toward the open menu, focus would inadvertently switch to the next adjacent tray icon. This was rather jarring, exacerbated by the gap between the panel icon and the popover menu.&lt;/p&gt;</description></item><item><title>Changing Brightness from GNOME Shell</title><link>/post/2011/2011-09-07-changing-brightness-from-gnome-shell/</link><pubDate>Wed, 07 Sep 2011 23:23:00 +0530</pubDate><guid>/post/2011/2011-09-07-changing-brightness-from-gnome-shell/</guid><description>&lt;p&gt;&lt;code&gt;gnome-power-manager&lt;/code&gt; was rewritten for GNOME 3.2 and merged directly into &lt;code&gt;gnome-settings-daemon&lt;/code&gt; (g-s-d) as a plugin responsible for system power policy. Most power management is handled by UPower, with backlight brightness being a key exception. Backlight is managed at the session level by &lt;code&gt;gnome-settings-daemon&lt;/code&gt; via its power plugin using XRandR or standard &lt;code&gt;sysfs&lt;/code&gt;, depending on hardware and driver support.&lt;/p&gt;
&lt;p&gt;To read screen brightness over D-Bus:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;gdbus call --session &lt;span style="color:#ae81ff"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --dest org.gnome.SettingsDaemon &lt;span style="color:#ae81ff"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --object-path /org/gnome/SettingsDaemon/Power &lt;span style="color:#ae81ff"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --method org.gnome.SettingsDaemon.Power.Screen.GetPercentage
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Why bother with this? On a tablet device (such as the WeTab), brightness settings were buried deep in system menus and cumbersome to reach. With the custom GNOME Shell brightness extension (&lt;a href="http://people.redhat.com/rkhadgar/personal/gnome3-tablet/brightness.tar.xz"&gt;download archive&lt;/a&gt;), you can adjust screen brightness directly from the top bar. This requires patching &lt;code&gt;gnome-settings-daemon&lt;/code&gt; to emit the &lt;code&gt;Changed&lt;/code&gt; signal (&lt;a href="https://bugzilla.gnome.org/show_bug.cgi?id=658493"&gt;GNOME Bug 658493&lt;/a&gt;).&lt;/p&gt;</description></item></channel></rss>