<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>run_once</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -426,13 +426,20 @@ awful.hooks.arrange.register(function (screen)
     end
 end)
 
--- Hook called every minute
-awful.hooks.timer.register(60, function ()
-    mytextbox.text = os.date(&quot; %a %b %d, %H:%M &quot;)
-end)
+-- Clock
+function update_clock()
+    mytextbox.text = os.date(&quot; %a %d. %b %Y, &lt;span color=\&quot;#eeeeee\&quot;&gt;%H:%M&lt;/span&gt; &quot;)
+end
+
+-- Call it on start
+update_clock()
+
+-- Then every minute
+awful.hooks.timer.register(60, update_clock)
 -- }}}
 
 -- Autostart these apps
-os.execute(&quot;nm-applet &amp;&quot;)
-os.execute(&quot;kopete &amp;&quot;)
-os.execute(&quot;kmix &amp;&quot;)
+-- (run_once is simple shell script that runs given program only if it is not already running)
+os.execute(&quot;run_once nm-applet &amp;&quot;)
+os.execute(&quot;run_once kopete &amp;&quot;)
+os.execute(&quot;run_once kmix &amp;&quot;)</diff>
      <filename>rc.lua</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ab708808c193e042ffcd26582e2fc9515a16bcb9</id>
    </parent>
  </parents>
  <author>
    <name>Adam Cig&#225;nek</name>
    <email>adam.ciganek@gmail.com</email>
  </author>
  <url>http://github.com/metatribe/awesomerc/commit/cb67621dc7f3262bf4118b090280d3a94dd3972c</url>
  <id>cb67621dc7f3262bf4118b090280d3a94dd3972c</id>
  <committed-date>2009-03-19T14:24:48-07:00</committed-date>
  <authored-date>2009-03-19T14:24:48-07:00</authored-date>
  <message>Autostart apps are run only when not already running (thanks to run_once script)</message>
  <tree>f0b5542eeeabcf5f04426cb046b8d0108e26a0de</tree>
  <committer>
    <name>Adam Cig&#225;nek</name>
    <email>adam.ciganek@gmail.com</email>
  </committer>
</commit>
