awesome/rc.lua
changeset 12 ffc02bf394cb
parent 11 7226709dc4c4
child 13 e9e2f624cd99
--- a/awesome/rc.lua	Sun Jun 14 22:18:07 2015 -0400
+++ b/awesome/rc.lua	Sat Jun 20 16:21:25 2015 -0400
@@ -34,6 +34,15 @@
 -- Handle runtime errors after startup
 do
    awesome.connect_signal("debug::error", my.notify_error)
+   awesome.connect_signal("debug::deprecation", my.notify_error)
+   awesome.connect_signal("debug::index::miss",
+                          function (obj, key)
+                             my.notify_error("Invalid key " .. key .. " on object")
+   end)
+   awesome.connect_signal("debug::newindex::miss",
+                          function (obj, key, value)
+                             my.notify_error("Trying to set key " .. key .. " on object")
+   end)
 end
 -- }}}
 
@@ -362,18 +371,16 @@
    left_layout:add(mypromptbox[s])
 
    local right_layout = wibox.layout.fixed.horizontal()
+   if (s == 1) then right_layout:add(mynetwidget) end
+   if (s == 1) then right_layout:add(mysystray) end
+   right_layout:add(mytextclock)
    right_layout:add(mylayoutbox[s])
-   if (s == 1) then right_layout:add(mynetwidget) end
-   right_layout:add(mytextclock)
-   if (s == 1) then right_layout:add(mysystray) end
 
    local layout = wibox.layout.align.horizontal()
    layout:set_left(left_layout)
    layout:set_middle(mytasklist[s])
    layout:set_right(right_layout)
    mywibox[s]:set_widget(layout)
-
-   mywibox[s].screen = s
 end
 
 -- SHIFTY: initialize shifty
@@ -646,7 +653,6 @@
 -- Hook function to execute when focusing a client.
 client.connect_signal("focus", 
                   function(c)
-                     -- my.notify_error("Client focus:\n" .. debug.traceback())
                      if not awful.client.ismarked(c) then
                         c.border_color = beautiful.border_focus
                         c.opacity = 1.0