<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://forum.ubuntu-fr.org/extern.php?action=feed&amp;tid=400154&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / [awesome]installation et configuration (surtout config :P )]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=400154</link>
		<description><![CDATA[Les sujets les plus récents dans [awesome]installation et configuration (surtout config :P ).]]></description>
		<lastBuildDate>Tue, 29 Jan 2013 09:26:54 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  [awesome]installation et configuration (surtout config :P )]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12381501#p12381501</link>
			<description><![CDATA[<p>Oui, compiler awesome et en faire un paquet n&#039;est pas très difficile, je manque juste de temps <img src="http://forum.ubuntu-fr.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>Je vais essayer de trouver une petite heure quand même <img src="http://forum.ubuntu-fr.org/img/smilies/hmm.png" width="15" height="15" alt="hmm" /></p><p>Edit: voila qui est fait, compilation sans soucis, plus qu&#039;à voir si mes fonctions calculatrice, orthographe et menu de toutes les fenêtres sont compatibles...</p><p>Re Edit: mes modifications de rc.lua sont compatibles 3.5 <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Je les remets si ça intéresse quelqu&#039;un: Une calculatrice, un petit vérificateur d&#039;orthographe et un menu des applis ouvertes</p><div class="codebox"><pre><code> awful.key({ modkey }, &quot;F7&quot;, function ()
        awful.prompt.run({ prompt = &quot;Calculate: &quot; }, mypromptbox[mouse.screen].widget,
        function (expr)
            result = awful.util.eval(&quot;return (&quot; .. expr .. &quot;)&quot;)
            naughty.notify({text = expr .. &#039; = &lt;span color=&quot;white&quot;&gt;&#039; .. result .. &quot;&lt;/span&gt;&quot;,
                            timeout = 10,
                            position = &quot;top_left&quot; })
            end)
        end),

 awful.key({ modkey }, &quot;F8&quot;, function ()
        awful.prompt.run({ prompt = &quot;Spell: &quot; }, mypromptbox[mouse.screen].widget,
            function (expr)
              result = awful.util.pread(&quot;echo &quot; .. expr .. &quot;| aspell -a -l fr --suggest | sed -e &#039;s/[:,]/\\n/g&#039; -e &#039;s/*/Mot correct/&#039; | sed -e &#039;/^@/d&#039; -e &#039;/^\\&amp;/d&#039; &quot;)
                naughty.notify({text = result,
                            timeout = 20,
                            position = &quot;top_left&quot; })
            end)
        end),

 awful.key({ modkey,      }, &quot;z&quot;,
        function ()
            awful.menu.menu_keys.down = { &quot;Down&quot;, &quot;Alt_L&quot; }
            local cmenu = awful.menu.clients({width=400}, {keygrabber=true, coords={x=0, y=10}})
        end),</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (fredr)]]></author>
			<pubDate>Tue, 29 Jan 2013 09:26:54 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12381501#p12381501</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [awesome]installation et configuration (surtout config :P )]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12381141#p12381141</link>
			<description><![CDATA[<p>J&#039;utilise Archlinux donc je ne suis pas trop au courant pour Ubuntu.<br />Tout ce que j&#039;ai trouvé après une brève recherche c&#039;est ce PPA pour Ubuntu &lt;= 12.10: <a href="https://launchpad.net/~aguignard/+archive/ppa/">https://launchpad.net/~aguignard/+archive/ppa/</a><br />Ceci dit, je n&#039;ai jamais créé de paquet deb mais ça ne doit pas être compliqué d&#039;en faire un à partir du du dernier en date non ?</p>]]></description>
			<author><![CDATA[dummy@example.com (Rolinh)]]></author>
			<pubDate>Tue, 29 Jan 2013 08:26:03 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12381141#p12381141</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [awesome]installation et configuration (surtout config :P )]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12380771#p12380771</link>
			<description><![CDATA[<p>non, non, j&#039;ai toujours un awesome installé, même si je suis passé sous raring, mais j&#039;ai pas trop de temps pour tester, juste une config de base (même plus aucun widget perso). </p><p>J&#039;ai pas testé la 3.5, il n&#039;y a pas de dépôt pour raring. Si tu en connait un?</p><p>Fred</p>]]></description>
			<author><![CDATA[dummy@example.com (fredr)]]></author>
			<pubDate>Tue, 29 Jan 2013 06:32:05 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12380771#p12380771</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [awesome]installation et configuration (surtout config :P )]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12379271#p12379271</link>
			<description><![CDATA[<p>Hop, voilà ce que ça donne <a href="http://www.youtube.com/watch?feature=player_detailpage&amp;v=v0itXbwHVXY">en vidéo</a>.<br />Pas encore tout ce que je veux mais c&#039;est un bon début.</p><p>PS: l&#039;est mort ce thread?</p>]]></description>
			<author><![CDATA[dummy@example.com (Rolinh)]]></author>
			<pubDate>Mon, 28 Jan 2013 23:13:15 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12379271#p12379271</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [awesome]installation et configuration (surtout config :P )]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12350181#p12350181</link>
			<description><![CDATA[<p>J&#039;ai ajouté une petite note d&#039;avertissement sur la page du Wiki: je ne vais pas adapté mes widgets à Awesome 3.5 étant donné qu&#039;ils souffrent du manque d&#039;une couche d&#039;abstraction pour récupérer les informations du matériel. En attendant, j&#039;ai presque réussi à recréer tous mes widgets via Vicious (certains sont incomplets comme celui pour la batterie car Vicious ne fournit pas autant d&#039;informations).<br /><a href="http://pix.toile-libre.org/?img=1359201843.png"><span class="postimg"><img src="http://pix.toile-libre.org/upload/thumb/1359201843.png" alt="1359201843.png" /></span></a></p>]]></description>
			<author><![CDATA[dummy@example.com (Rolinh)]]></author>
			<pubDate>Sat, 26 Jan 2013 12:04:59 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12350181#p12350181</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [awesome]installation et configuration (surtout config :P )]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12336271#p12336271</link>
			<description><![CDATA[<p>Salut à tous,</p><p>J&#039;ignore si certains d&#039;entre-vous utilisaient certains de mes widgets (Precious) mais pour la version 3.5, ils sont devenu obsolètes (comme toutes les autres lib de widgets d&#039;ailleurs). Toute la partie widget d&#039;Awesome a été repensée/refaite et cela implique donc une réécriture complète.<br />De toute façon, il fallait que je réécrive cette lib puisqu&#039;il me manquait une couche d&#039;abstraction matérielle. Enfin bon, j&#039;ignore quand j&#039;aurais le temps de faire ça. En attendant, les libs de widgets blingbling et Vicious sont déjà compatibles Awesome 3.5. Je ne connaissais pas blingbling mais ça à l&#039;air très &quot;fancy&quot;. ^^</p><p>Pour ceux qui sont déjà passée sous Awesome 3.5, c&#039;était pas trop douloureux ? Pour ma part, au vu de ma conf, j&#039;ai pas encore fini de la porter... (hé, les changements de versions d&#039;Awesome sont ma foi douloureux quand la config s&#039;éloigne beaucoup de celle proposée par défaut. J&#039;ai tous mes thèmes (~5) à refaire aussi. <img src="http://forum.ubuntu-fr.org/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Rolinh)]]></author>
			<pubDate>Fri, 25 Jan 2013 08:55:55 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12336271#p12336271</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [awesome]installation et configuration (surtout config :P )]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12002291#p12002291</link>
			<description><![CDATA[<p>un petit up pour la sortir de Awesome 3.5<br /><a href="https://linuxfr.org/news/awesome-3-5">https://linuxfr.org/news/awesome-3-5</a> <img src="http://forum.ubuntu-fr.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Kanor)]]></author>
			<pubDate>Thu, 27 Dec 2012 15:26:52 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12002291#p12002291</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [awesome]installation et configuration (surtout config :P )]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=9339401#p9339401</link>
			<description><![CDATA[<div class="quotebox"><cite>Rolinh a écrit&#160;:</cite><blockquote><div><p>Personnellement, je n&#039;ai absolument rien compris...</p></div></blockquote></div><p>+1</p>]]></description>
			<author><![CDATA[dummy@example.com (fredr)]]></author>
			<pubDate>Sun, 20 May 2012 19:01:36 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=9339401#p9339401</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [awesome]installation et configuration (surtout config :P )]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=9338921#p9338921</link>
			<description><![CDATA[<p>Personnellement, je n&#039;ai absolument rien compris...</p>]]></description>
			<author><![CDATA[dummy@example.com (Rolinh)]]></author>
			<pubDate>Sun, 20 May 2012 18:36:10 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=9338921#p9338921</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [awesome]installation et configuration (surtout config :P )]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=9337321#p9337321</link>
			<description><![CDATA[<p>bonjour petite question j&#039;aimerais pouvoir glissé icone au milieu de la barre en au sur le bureau mais soi il parte a gauche soi a droit y a t&#039;il un moyen ?<br />Merci d&#039;avance.</p>]]></description>
			<author><![CDATA[dummy@example.com (ricorde)]]></author>
			<pubDate>Sun, 20 May 2012 17:02:45 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=9337321#p9337321</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [awesome]installation et configuration (surtout config :P )]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=9187561#p9187561</link>
			<description><![CDATA[<p>Ami awesome vous avez une idée pour ce topic <br /><a href="http://forum.ubuntu-fr.org/viewtopic.php?id=913921">http://forum.ubuntu-fr.org/viewtopic.php?id=913921</a><br />j&#039;aime bien l&#039;idée</p>]]></description>
			<author><![CDATA[dummy@example.com (Kanor)]]></author>
			<pubDate>Wed, 09 May 2012 13:59:24 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=9187561#p9187561</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [awesome]installation et configuration (surtout config :P )]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=8735621#p8735621</link>
			<description><![CDATA[<p>Salut,</p><p>Je remonte un peu le topic après passage sous 12.04</p><p>2 captures d&#039;écrans:</p><p><a href="http://uppix.net/6/e/8/44fe1804ea6431a6036437f5fb986.html"><span class="postimg"><img src="http://uppix.net/6/e/8/44fe1804ea6431a6036437f5fb986t.jpg" alt="44fe1804ea6431a6036437f5fb986t.jpg" /></span></a></p><p><a href="http://uppix.net/b/0/c/39997f16013a8c67d1f44a3a27b84.html"><span class="postimg"><img src="http://uppix.net/b/0/c/39997f16013a8c67d1f44a3a27b84t.jpg" alt="39997f16013a8c67d1f44a3a27b84t.jpg" /></span></a></p><p>Le thème gtk est MeditereaneanNight et les icônes: Gnome-Brave.</p><p>Voici mon rc.lua:</p><div class="codebox"><pre class="vscroll"><code>-- Standard awesome library
require(&quot;awful&quot;)
require(&quot;awful.autofocus&quot;)
require(&quot;awful.rules&quot;)
-- Theme handling library
require(&quot;beautiful&quot;)
-- Notification library
require(&quot;naughty&quot;)
require(&quot;vicious&quot;)
require(&quot;scratch&quot;)
require(&quot;revelation&quot;)

-- {{{ Variable definitions
-- Themes define colours, icons, and wallpapers
beautiful.init(&quot;/home/frederic/.config/awesome/theme.lua&quot;)

-- This is used later as the default terminal and editor to run.
terminal = &quot;gnome-terminal&quot;
editor = &quot;gvim&quot;
editor_cmd = editor

-- applications menu
require(&#039;freedesktop.utils&#039;)
freedesktop.utils.terminal = terminal
freedesktop.utils.icon_theme = { &#039;gnome-brave&#039; ,&#039;gnome&#039;}
require(&#039;freedesktop.menu&#039;)
menu_items = freedesktop.menu.new()

-- Default modkey.
-- Usually, Mod4 is the key with a logo between Control and Alt.
-- If you do not like this or do not have such a key,
-- I suggest you to remap Mod4 to another key using xmodmap or other tools.
-- However, you can use another modifier like Mod1, but it may interact with others.
modkey = &quot;Mod4&quot;

-- Table of layouts to cover with awful.layout.inc, order matters.
layouts =
{
    awful.layout.suit.tile,
    awful.layout.suit.tile.left,
    awful.layout.suit.tile.bottom,
    awful.layout.suit.tile.top,
    awful.layout.suit.fair,
    awful.layout.suit.fair.horizontal,
    awful.layout.suit.spiral,
    awful.layout.suit.spiral.dwindle,
    awful.layout.suit.max,
    awful.layout.suit.max.fullscreen,
    awful.layout.suit.magnifier,
    awful.layout.suit.floating
}
-- }}}

-- {{{ Tags
-- Define a tag table which hold all screen tags.
tags = {}

-- Each screen has its own tag table.
    tags[1] = awful.tag({ 1, 2, 3, 4, 5, 6, 7, 8, 9 }, 1, layouts[1])

for s = 2, screen.count() do
    -- Each screen has its own tag table.
    tags[2] = awful.tag({ 1, 2, 3, 4, 5, 6, 7, 8, 9 }, 2, layouts[1])
end

-- }}}

-- {{{ Menu
-- Create a laucher widget and a main menu

mysysmenu = {
    {&quot;Système&quot;, &quot;gnome-system-monitor&quot;},
    {&quot;MC&quot;, terminal .. &quot; -e mc&quot;},
    {&quot;Sudo MC&quot;, terminal .. &quot; -e &#039;sudo mc&#039;&quot;},
    {&quot;Synaptic&quot;, &quot;gksu synaptic&quot;},
    {&quot;Logout&quot;, &#039;/home/frederic/dialog.sh&#039;},
}

SSH = {
    {&quot;Sun local&quot;, terminal.. &quot; -e &#039;ssh 172.16.110.151 -l fredremy -X&#039;&quot;},
    {&quot;Sun Web&quot;, terminal.. &quot; -e &#039;ssh serveur.herslibramont.be -p 2222 -l fredremy -X&#039;&quot;},
}

FTP = {
    {&quot;Sun local&quot;, terminal.. &quot; -e &#039;mc /home/frederic /#ftp:fredremy@172.16.110.151&#039;&quot;},
}



myawesomemenu = {
   { &quot;manual&quot;, terminal .. &quot; -e man awesome&quot;, freedesktop.utils.lookup_icon({ icon = &#039;help&#039; }) },
     { &quot;edit config&quot;, editor_cmd .. &quot; &quot; .. awful.util.getdir(&quot;config&quot;) .. &quot;/rc.lua&quot;, freedesktop.utils.lookup_icon({ icon = &#039;package_settings&#039; }) },
     { &quot;restart&quot;, awesome.restart, freedesktop.utils.lookup_icon({ icon = &#039;gtk-refresh&#039; }) },
     { &quot;quit&quot;, awesome.quit, freedesktop.utils.lookup_icon({ icon = &#039;gtk-quit&#039; }) }
}

table.insert(menu_items, { &quot;FTP&quot;, FTP, beautiful.awesome_icon })
table.insert(menu_items, { &quot;SSH&quot;, SSH, beautiful.awesome_icon })
table.insert(menu_items, { &quot;My SysMenu&quot;, mysysmenu, beautiful.awesome_icon })
table.insert(menu_items, { &quot;awesome&quot;, myawesomemenu, beautiful.awesome_icon })
table.insert(menu_items, { &quot;open terminal&quot;, terminal, freedesktop.utils.lookup_icon({icon = &#039;terminal&#039;}) })

 mymainmenu = awful.menu.new({ items = menu_items, width = 250 })

mylauncher = awful.widget.launcher({ image = image(beautiful.awesome_icon),
                                     menu = mymainmenu })
-- }}}

-- {{{ Wibox

-- Create fraxcpumenu, and add all available governors to it
fraxcpumenu = {}
local fh= io.open(&quot;/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors&quot;, &quot;r&quot;)
if fh ~= nil then 
   govstr= fh:read()
   fh:close()
   local i= 1
   for w in string.gmatch(govstr, &quot;%a+&quot;) do
      fraxcpumenu[i]= { w, &quot;sudo cpufreq-selector -c 0 -g &quot;..w}
      i= i + 1
   end
end
fraxcpumenu = awful.menu.new( { items= fraxcpumenu }  )

-- Create fraxcpu widget
fraxcpu=  widget({ type = &quot;textbox&quot;, name = &quot;fraxcpu&quot;, align = &quot;right&quot; })
fraxcpu.text= &#039;fraxcpu&#039;

sepa=  widget({ type = &quot;textbox&quot; })
sepa.text= &#039; | &#039;
sepa2=  widget({ type = &quot;textbox&quot; })
sepa2.text= &#039;°C | &#039;

-- Function for updating the fraxcpu widget
fraxcpuupd=1
function hook_fraxcpu (tbw)
   if not fraxcpuupd then return(nil) end
   local freq=&#039;&#039;
   local fre2=&#039;&#039; 
   local gov= &#039;&#039;
   local fh= io.open(&quot;/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor&quot;, &quot;r&quot;)
   if fh then
      gov= fh:read()..&#039;:&#039;
      fh:close()
   end
   fh= io.open(&quot;/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq&quot;, &quot;r&quot;)
   fl= io.open(&quot;/sys/devices/system/cpu/cpu1/cpufreq/scaling_cur_freq&quot;, &quot;r&quot;)
   if fh then
      freq= fh:read()
      fre2= fl:read()
      fh:close()
      fl:close()
      freq= tostring(math.ceil(tonumber(freq)/1000))
      fre2= tostring(math.ceil(tonumber(fre2)/1000))
   else
      fraxcpuupd= nil
      fh= io.open(&quot;/proc/cpuinfo&quot;, &quot;r&quot;)
      if fh then
     for l in fh:lines() do
        freq= string.match(l, &#039;^%s*cpu MHz%s*:%s*([0-9]+)&#039;)
        if freq ~= nil then break end
        freq= &#039;&#039;
     end
      end
   end
   tbw.text= gov..freq..&#039;:&#039;..fre2
end

-- Mouse button bindings for fraxcpu widget
fraxcpu:buttons(awful.util.table.join(
                                awful.button({ }, 1, function () awful.menu.toggle(fraxcpumenu) end),
                    awful.button({ }, 2, function () hook_fraxcpu(fraxcpu) end),
                    awful.button({ }, 3, function () hook_fraxcpu(fraxcpu) end)))


-- Create a systray
mysystray = widget({ type = &quot;systray&quot; })
-- Create a textclock widget
mytextclock = widget({ type = &quot;textbox&quot; })
vicious.register(mytextclock, vicious.widgets.date, &quot;%a %d %b | %H:%M&quot;)
 mywibox = {}
mypromptbox = {}
mylayoutbox = {}
mytaglist = {}
mytaglist.buttons = awful.util.table.join(
                    awful.button({ }, 1, awful.tag.viewonly),
                    awful.button({ modkey }, 1, awful.client.movetotag),
                    awful.button({ }, 3, awful.tag.viewtoggle),
                    awful.button({ modkey }, 3, awful.client.toggletag),
                    awful.button({ }, 4, awful.tag.viewnext),
                    awful.button({ }, 5, awful.tag.viewprev)
                    )
mytasklist = {}
mytasklist.buttons = awful.util.table.join(
                     awful.button({ }, 1, function (c)
                                              if not c:isvisible() then
                                                  awful.tag.viewonly(c:tags()[1])
                                              end
                                              client.focus = c
                                              c:raise()
                                          end),
                     awful.button({ }, 3, function ()
                                              if instance then
                                                  instance:hide()
                                                  instance = nil
                                              else
                                                  instance = awful.menu.clients({ width=250 })
                                              end
                                          end),
                     awful.button({ }, 4, function ()
                                              awful.client.focus.byidx(1)
                                              if client.focus then client.focus:raise() end
                                          end),
                     awful.button({ }, 5, function ()
                                              awful.client.focus.byidx(-1)
                                              if client.focus then client.focus:raise() end
                                          end))

for s = 1, screen.count() do
    -- Create a promptbox for each screen
   mypromptbox[s] = awful.widget.prompt({ layout = awful.widget.layout.horizontal.leftright })
    -- Create an imagebox widget which will contains an icon indicating which layout we&#039;re using.
    -- We need one layoutbox per screen.
    mylayoutbox[s] = awful.widget.layoutbox(s)
    mylayoutbox[s]:buttons(awful.util.table.join(
                           awful.button({ }, 1, function () awful.layout.inc(layouts, 1) end),
                           awful.button({ }, 3, function () awful.layout.inc(layouts, -1) end),
                           awful.button({ }, 4, function () awful.layout.inc(layouts, 1) end),
                           awful.button({ }, 5, function () awful.layout.inc(layouts, -1) end)))
    -- Create a taglist widget
    mytaglist[s] = awful.widget.taglist(s, awful.widget.taglist.label.all, mytaglist.buttons)

    -- Create a tasklist widget
    mytasklist[s] = awful.widget.tasklist(function(c)
                                              return awful.widget.tasklist.label.currenttags(c, s)
                                          end, mytasklist.buttons)

    -- Create the wibox
    mywibox[s] = awful.wibox({ position = &quot;top&quot;, screen = s })
    -- Add widgets to the wibox - order matters
    mywibox[s].widgets = {
        {
            mylauncher,
               sepa, 
            mytaglist[s],
               sepa, 
            mypromptbox[s],
            layout = awful.widget.layout.horizontal.leftright
        },
        mylayoutbox[s],
           sepa, 
        s == 1 and mysystray or nil,
        s == 1 and sepa or nil,
        mytasklist[s],
        layout = awful.widget.layout.horizontal.rightleft
    }
end
-- }}}

 
-- Initialize widget
memwidget = widget({ type = &quot;textbox&quot; })
-- Register widget
vicious.register(memwidget, vicious.widgets.mem, &quot;RAM: $1% ($2MB/$3MB)&quot;, 10)
-- Initialize widget
cpuwidget = widget({ type = &quot;textbox&quot; })
-- Register widget
vicious.register(cpuwidget, vicious.widgets.cpu, &quot;CPU0: $2% CPU1: $3% CPU2: $4% CPU3: $5%&quot;)
-- Initialize widget
temp0widget = widget({ type = &quot;textbox&quot; })
-- Register widget
vicious.register(temp0widget, vicious.widgets.thermal, &quot;CORE: $1°C&quot;, 10, {&quot;coretemp.0&quot;, &quot;core&quot;})
-- GPU TEMP
mon_fan =  widget({ type = &quot;textbox&quot; })

-- hard disk temp
hddTempVal = widget({ type = &quot;textbox&quot; })
vicious.register(hddTempVal, vicious.widgets.hddtemp, &#039;SDA: ${/dev/sda}°C&#039;, 10)

-- bat
batwidget = widget({ type = &quot;textbox&quot; })
vicious.register(batwidget, vicious.widgets.bat, &#039;BAT: $1 $2%&#039;, 20, &quot;BAT0&quot;)

-- volume
volumewidget = widget({ type = &quot;textbox&quot; })
vicious.register(volumewidget, vicious.widgets.volume, &#039;SOUND: $1% $2&#039;, 10, &quot;Master&quot;)


bottom_wibox={}
bottom_wibox = awful.wibox({ position = &quot;bottom&quot;, screen = 1, width=&quot;95%&quot;, align=&quot;center&quot; })
awful.wibox.rounded_corners (bottom_wibox, 17)
awful.widget.layout.margins[cpuwidget] = { left = 10 } 
awful.widget.layout.margins[mytextclock] = { right = 10 } 
bottom_wibox.widgets = {
    {
     cpuwidget,
     sepa, 
     fraxcpu, 
     sepa,
     temp0widget,
     sepa,
     mon_fan, 
     sepa,   
     hddTempVal,   
     sepa,   
     memwidget,
     sepa,
     batwidget,
     sepa,
     volumewidget,
      layout = awful.widget.layout.horizontal.leftright
  },
   mytextclock,
  layout = awful.widget.layout.horizontal.rightleft
  }    

            
-- FIN MOI
--
--
-- {{{ Mouse bindings
root.buttons(awful.util.table.join(
    awful.button({ }, 3, function () mymainmenu:toggle() end),
    awful.button({ }, 4, awful.tag.viewnext),
    awful.button({ }, 5, awful.tag.viewprev)
))
-- }}}

-- {{{ Key bindings
globalkeys = awful.util.table.join(
    awful.key({ modkey,           }, &quot;Left&quot;,   awful.tag.viewprev       ),
    awful.key({ modkey,           }, &quot;Right&quot;,  awful.tag.viewnext       ),
    awful.key({ modkey,           }, &quot;Escape&quot;, awful.tag.history.restore),

    awful.key({ modkey,           }, &quot;j&quot;,
        function ()
            awful.client.focus.byidx( 1)
            if client.focus then client.focus:raise() end
        end),
    awful.key({ modkey,           }, &quot;k&quot;,
        function ()
            awful.client.focus.byidx(-1)
            if client.focus then client.focus:raise() end
        end),
    awful.key({ modkey,           }, &quot;w&quot;, function () mymainmenu:show({keygrabber=true}) end),

    -- Layout manipulation
    awful.key({ modkey, &quot;Shift&quot;   }, &quot;j&quot;, function () awful.client.swap.byidx(  1)    end),
    awful.key({ modkey, &quot;Shift&quot;   }, &quot;k&quot;, function () awful.client.swap.byidx( -1)    end),
    awful.key({ modkey, &quot;Control&quot; }, &quot;j&quot;, function () awful.screen.focus_relative( 1) end),
    awful.key({ modkey, &quot;Control&quot; }, &quot;k&quot;, function () awful.screen.focus_relative(-1) end),
    awful.key({ modkey,           }, &quot;u&quot;, awful.client.urgent.jumpto),
    awful.key({ modkey,           }, &quot;Tab&quot;,
        function ()
            awful.client.focus.history.previous()
            if client.focus then
                client.focus:raise()
            end
        end),

awful.key({ modkey,      }, &quot;z&quot;,
    function ()
        awful.menu.menu_keys.down = { &quot;Down&quot;, &quot;Alt_L&quot; }
        local cmenu = awful.menu.clients({width=400}, {keygrabber=true, coords={x=0, y=10}})
    end),


    -- Standard program
    awful.key({ modkey,           }, &quot;Return&quot;, function () awful.util.spawn(terminal) end),
    awful.key({ modkey,&quot;Control&quot;   }, &quot;e&quot;, function () awful.util.spawn(&quot;firefox&quot;) end),
    awful.key({ modkey,&quot;Shift&quot;   }, &quot;e&quot;, function () awful.util.spawn(&quot;thunderbird&quot;) end),
    awful.key({ modkey, }, &quot;e&quot;, function () awful.util.spawn(&quot;nautilus --no-desktop&quot;) end),
    awful.key({ modkey }, &quot;d&quot;, function () awful.util.spawn(&quot;gnome-screensaver-command --lock&quot;) end),
    awful.key({ modkey, &quot;Control&quot; }, &quot;r&quot;, awesome.restart),
    awful.key({ modkey, &quot;Shift&quot;   }, &quot;q&quot;, awesome.quit),
    awful.key({ modkey }, &quot;Next&quot;,  function () awful.client.moveresize( 20,  20, -40, -40) end),
    awful.key({ modkey }, &quot;Prior&quot;, function () awful.client.moveresize(-20, -20,  40,  40) end),
  awful.key({ modkey }, &quot;a&quot;,  revelation.revelation),
    awful.key({ modkey }, &quot;F12&quot;, function () scratch.drop(&quot;gnome-terminal&quot;, &quot;center&quot;, &quot;center&quot;, 0.75, 0.75) end),
    awful.key({ modkey }, &quot;F11&quot;, function () scratch.drop(&quot;nautilus --no-desktop&quot;, &quot;center&quot;, &quot;center&quot;, 0.75, 0.75) end),

    awful.key({ modkey,           }, &quot;l&quot;,     function () awful.tag.incmwfact( 0.05)    end),
    awful.key({ modkey,           }, &quot;h&quot;,     function () awful.tag.incmwfact(-0.05)    end),
    awful.key({ modkey, &quot;Shift&quot;   }, &quot;h&quot;,     function () awful.tag.incnmaster( 1)      end),
    awful.key({ modkey, &quot;Shift&quot;   }, &quot;l&quot;,     function () awful.tag.incnmaster(-1)      end),
    awful.key({ modkey, &quot;Control&quot; }, &quot;h&quot;,     function () awful.tag.incncol( 1)         end),
    awful.key({ modkey, &quot;Control&quot; }, &quot;l&quot;,     function () awful.tag.incncol(-1)         end),
    awful.key({ modkey,           }, &quot;space&quot;, function () awful.layout.inc(layouts,  1) end),
    awful.key({ modkey, &quot;Shift&quot;   }, &quot;space&quot;, function () awful.layout.inc(layouts, -1) end),

    -- Prompt
   awful.key({ modkey },            &quot;r&quot;,     function () mypromptbox[mouse.screen]:run() end),
    
awful.key({ modkey }, &quot;F7&quot;, function ()
    awful.prompt.run({ prompt = &quot;Calculate: &quot; }, mypromptbox[mouse.screen].widget,
        function (expr)
            result = awful.util.eval(&quot;return (&quot; .. expr .. &quot;)&quot;)
            naughty.notify({text = expr .. &#039; = &lt;span color=&quot;white&quot;&gt;&#039; .. result .. &quot;&lt;/span&gt;&quot;,
                            timeout = 10,
                            position = &quot;top_left&quot; })
        end)end),

    awful.key({ modkey }, &quot;F8&quot;, function ()
        awful.prompt.run({ prompt = &quot;Spell: &quot; }, mypromptbox[mouse.screen].widget,
            function (expr)
              result = awful.util.pread(&quot;echo &quot; .. expr .. &quot;| aspell -a -l fr --suggest | sed -e &#039;s/[:,]/\\n/g&#039; -e &#039;s/*/Mot correct/&#039; | sed -e &#039;/^@/d&#039; -e &#039;/^\\&amp;/d&#039; &quot;)
                naughty.notify({text = result,
                            timeout = 20,
                            position = &quot;top_left&quot; })
            end)
        end),
   
        awful.key({ modkey,  }, &quot;x&quot;,
              function ()
                  awful.prompt.run({ prompt = &quot;Run Lua code: &quot; },
                  mypromptbox[mouse.screen].widget,
                  awful.util.eval, nil,
                  awful.util.getdir(&quot;cache&quot;) .. &quot;/history_eval&quot;)
              end)
)

clientkeys = awful.util.table.join(
    awful.key({ modkey,           }, &quot;f&quot;,      function (c) c.fullscreen = not c.fullscreen  end),
    awful.key({ modkey, &quot;Shift&quot;   }, &quot;c&quot;,      function (c) c:kill()                         end),
    awful.key({ modkey, &quot;Control&quot; }, &quot;space&quot;,  awful.client.floating.toggle                     ),
    awful.key({ modkey, &quot;Control&quot; }, &quot;Return&quot;, function (c) c:swap(awful.client.getmaster()) end),
    awful.key({ modkey,           }, &quot;o&quot;,      awful.client.movetoscreen                        ),
    awful.key({ modkey, &quot;Shift&quot;   }, &quot;r&quot;,      function (c) c:redraw()                       end),
    awful.key({ modkey,           }, &quot;t&quot;,      function (c) c.ontop = not c.ontop            end),
    awful.key({ modkey,           }, &quot;n&quot;,      function (c) c.minimized = not c.minimized    end),
    awful.key({ modkey,           }, &quot;m&quot;,
        function (c)
            c.maximized_horizontal = not c.maximized_horizontal
            c.maximized_vertical   = not c.maximized_vertical
        end)
)

-- Compute the maximum number of digit we need, limited to 9
keynumber = 0
for s = 1, screen.count() do
   keynumber = math.min(9, math.max(#tags[s], keynumber));
end

-- Bind all key numbers to tags.
-- Be careful: we use keycodes to make it works on any keyboard layout.
-- This should map on the top row of your keyboard, usually 1 to 9.
for i = 1, keynumber do
    globalkeys = awful.util.table.join(globalkeys,
        awful.key({ modkey }, &quot;#&quot; .. i + 9,
                  function ()
                        local screen = mouse.screen
                        if tags[screen][i] then
                            awful.tag.viewonly(tags[screen][i])
                        end
                  end),
        awful.key({ modkey, &quot;Control&quot; }, &quot;#&quot; .. i + 9,
                  function ()
                      local screen = mouse.screen
                      if tags[screen][i] then
                          awful.tag.viewtoggle(tags[screen][i])
                      end
                  end),
        awful.key({ modkey, &quot;Shift&quot; }, &quot;#&quot; .. i + 9,
                  function ()
                      if client.focus and tags[client.focus.screen][i] then
                          awful.client.movetotag(tags[client.focus.screen][i])
                      end
                  end),
        awful.key({ modkey, &quot;Control&quot;, &quot;Shift&quot; }, &quot;#&quot; .. i + 9,
                  function ()
                      if client.focus and tags[client.focus.screen][i] then
                          awful.client.toggletag(tags[client.focus.screen][i])
                      end
                  end))
end

clientbuttons = awful.util.table.join(
    awful.button({ }, 1, function (c) client.focus = c; c:raise() end),
    awful.button({ modkey }, 1, awful.mouse.client.move),
    awful.button({ modkey }, 3, awful.mouse.client.resize))

-- Set keys
root.keys(globalkeys)
-- }}}

-- {{{ Rules
awful.rules.rules = {
    -- All clients will match this rule.
    { rule = { },
      properties = { border_width = beautiful.border_width,
                     border_color = beautiful.border_normal,
                     focus = true,
                     keys = clientkeys,
                     buttons = clientbuttons } },
    { rule = { class = &quot;MPlayer&quot; },
      properties = { floating = true } },
    { rule = { class = &quot;pinentry&quot; },
      properties = { floating = true } },
    { rule = { class = &quot;gimp&quot; },
      properties = { floating = true } },
    { rule = { class = &quot;Firefox&quot; },
      properties = { tag = tags[1][1] } },
    { rule = { class = &quot;Thunderbird&quot; },
      properties = { tag = tags[1][2] } },
    { rule = { class = &quot;Nautilus&quot; },
      properties = { tag = tags[1][3] } },
}
-- }}}

-- {{{ Signals
-- Signal function to execute when a new client appears.
client.add_signal(&quot;manage&quot;, function (c, startup)
    -- Add a titlebar
    -- awful.titlebar.add(c, { modkey = modkey })

    -- Enable sloppy focus
    c:add_signal(&quot;mouse::enter&quot;, function(c)
        if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
            and awful.client.focus.filter(c) then
            client.focus = c
        end
    end)

    if not startup then
        -- Set the windows at the slave,
        -- i.e. put it at the end of others instead of setting it master.
        -- awful.client.setslave(c)

        -- Put windows in a smart way, only if they does not set an initial position.
        if not c.size_hints.user_position and not c.size_hints.program_position then
            awful.placement.no_overlap(c)
            awful.placement.no_offscreen(c)
        end
    end
end)

client.add_signal(&quot;focus&quot;, function(c) c.border_color = beautiful.border_focus end)
client.add_signal(&quot;unfocus&quot;, function(c) c.border_color = beautiful.border_normal end)

-- Update the fraxcpu widget every second
mytimer2 = timer { timeout = 1 }
mytimer2:add_signal(&quot;timeout&quot;, function () hook_fraxcpu(fraxcpu) end)
mytimer2:start()

function get_fan()
  local f = io.open(&#039;/sys/class/hwmon/hwmon1/device/fan1_input&#039;)
  local v = f:read()
  f:close()
  mon_fan.text = &quot;FAN: &quot;..v..&quot;RPM&quot;
end

mytimer = timer { timeout = 10 }
mytimer:add_signal(&quot;timeout&quot;, function () get_fan() end)
mytimer:start()

function run_once(prg)
    if not prg then
        do return nil end
    end
    awful.util.spawn_with_shell(&quot;pgrep -f -u $USER -x &quot; .. prg .. &quot; || (&quot; .. prg .. &quot;)&quot;)
end

run_once(&quot;gnome-settings-daemon&quot;)
run_once(&quot;bluetooth-applet&quot;)
run_once(&quot;nm-applet&quot;)
run_once(&quot;conky&quot;)

-- }}}</code></pre></div><p>Avec quelques fonctions:<br />Exposé: Meta a<br />Menu: Meta w <br />Parcourir les applis ouvertes: Meta z<br />Calculatrice: Meta F7<br />Orthographe d&#039;un mot MEta F8<br />Frax CPU qui permet jouer sur les governor du cpu...<br />...</p><p>Fred</p>]]></description>
			<author><![CDATA[dummy@example.com (fredr)]]></author>
			<pubDate>Sat, 07 Apr 2012 08:21:15 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=8735621#p8735621</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [awesome]installation et configuration (surtout config :P )]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=8113481#p8113481</link>
			<description><![CDATA[<p>Oui, j&#039;ai procédé à quelques changements. Pour le nom, j&#039;ai pensé qu&#039;avec Vicious et Obvious, il me fallait un truc en &quot;ious&quot; pis Precious est venu assez naturellement. <img src="http://forum.ubuntu-fr.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /><br />Je viens de finir ma sessions d&#039;examens donc il faut s&#039;attendre à pas mal de changements dans le dépôt des widgets ces jours prochain. Je compte ajouter des informations supplémentaires via pop-up au survol d&#039;à peu près tous les widgets (comme ce que j&#039;ai déjà fait pour la batterie et pacman en fait). Je vais voir aussi pour faire en sorte que les widgets LAN et WLAN affichent des informations plus pertinentes (débit up/down en vert ou off en rouge sinon, ou quelque chose de similaire). Une fois tout ceci fait, je vais faire en sorte de les rendre tous le plus générique possible afin qu&#039;il n&#039;y ait pas vraiment besoin de toucher au code pour les utiliser (par exemple, auto-détection de où se trouvent les informations concernant la batterie).<br />Bref, je compte pas mal m&#039;amuser. <img src="http://forum.ubuntu-fr.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Rolinh)]]></author>
			<pubDate>Fri, 10 Feb 2012 17:53:38 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=8113481#p8113481</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [awesome]installation et configuration (surtout config :P )]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=8110141#p8110141</link>
			<description><![CDATA[<p>@rolinh : J&#039;ai récupéré tes updates, ton dépôt à pas mal changé depuis la dernière fois <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Le temps que j&#039;intègre tout ça et j&#039;essaierai de mettre ma config awesome sur mon dépôt git aussi. Bref, pas demain non plus, mais je m&#039;y atèle !</p><p>Sinon le nom &quot;precious&quot; c&#039;est pas mal je trouve <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Vlam)]]></author>
			<pubDate>Fri, 10 Feb 2012 13:33:39 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=8110141#p8110141</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [awesome]installation et configuration (surtout config :P )]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=8109941#p8109941</link>
			<description><![CDATA[<p>Salut Kanor, j&#039;utilise Libreoffice tous les jours ou presque et j&#039;ai des bugs dû à l&#039;application elle même (.....), mais pas celui-ci.</p><p>Tu sais déjà si on parle de gtk2 ou gtk3?</p>]]></description>
			<author><![CDATA[dummy@example.com (Vlam)]]></author>
			<pubDate>Fri, 10 Feb 2012 13:16:25 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=8109941#p8109941</guid>
		</item>
	</channel>
</rss>
