32 end |
32 end |
33 |
33 |
34 -- Handle runtime errors after startup |
34 -- Handle runtime errors after startup |
35 do |
35 do |
36 awesome.connect_signal("debug::error", my.notify_error) |
36 awesome.connect_signal("debug::error", my.notify_error) |
|
37 awesome.connect_signal("debug::deprecation", my.notify_error) |
|
38 awesome.connect_signal("debug::index::miss", |
|
39 function (obj, key) |
|
40 my.notify_error("Invalid key " .. key .. " on object") |
|
41 end) |
|
42 awesome.connect_signal("debug::newindex::miss", |
|
43 function (obj, key, value) |
|
44 my.notify_error("Trying to set key " .. key .. " on object") |
|
45 end) |
37 end |
46 end |
38 -- }}} |
47 -- }}} |
39 |
48 |
40 -- Variable definitions |
49 -- Variable definitions |
41 -- Themes define colours, icons, and wallpapers |
50 -- Themes define colours, icons, and wallpapers |
360 end |
369 end |
361 left_layout:add(mytaglist[s]) |
370 left_layout:add(mytaglist[s]) |
362 left_layout:add(mypromptbox[s]) |
371 left_layout:add(mypromptbox[s]) |
363 |
372 |
364 local right_layout = wibox.layout.fixed.horizontal() |
373 local right_layout = wibox.layout.fixed.horizontal() |
|
374 if (s == 1) then right_layout:add(mynetwidget) end |
|
375 if (s == 1) then right_layout:add(mysystray) end |
|
376 right_layout:add(mytextclock) |
365 right_layout:add(mylayoutbox[s]) |
377 right_layout:add(mylayoutbox[s]) |
366 if (s == 1) then right_layout:add(mynetwidget) end |
|
367 right_layout:add(mytextclock) |
|
368 if (s == 1) then right_layout:add(mysystray) end |
|
369 |
378 |
370 local layout = wibox.layout.align.horizontal() |
379 local layout = wibox.layout.align.horizontal() |
371 layout:set_left(left_layout) |
380 layout:set_left(left_layout) |
372 layout:set_middle(mytasklist[s]) |
381 layout:set_middle(mytasklist[s]) |
373 layout:set_right(right_layout) |
382 layout:set_right(right_layout) |
374 mywibox[s]:set_widget(layout) |
383 mywibox[s]:set_widget(layout) |
375 |
|
376 mywibox[s].screen = s |
|
377 end |
384 end |
378 |
385 |
379 -- SHIFTY: initialize shifty |
386 -- SHIFTY: initialize shifty |
380 -- the assignment of shifty.taglist must always be after its actually |
387 -- the assignment of shifty.taglist must always be after its actually |
381 -- initialized with awful.widget.taglist.new() |
388 -- initialized with awful.widget.taglist.new() |
644 -- keychains.start(5) |
651 -- keychains.start(5) |
645 |
652 |
646 -- Hook function to execute when focusing a client. |
653 -- Hook function to execute when focusing a client. |
647 client.connect_signal("focus", |
654 client.connect_signal("focus", |
648 function(c) |
655 function(c) |
649 -- my.notify_error("Client focus:\n" .. debug.traceback()) |
|
650 if not awful.client.ismarked(c) then |
656 if not awful.client.ismarked(c) then |
651 c.border_color = beautiful.border_focus |
657 c.border_color = beautiful.border_focus |
652 c.opacity = 1.0 |
658 c.opacity = 1.0 |
653 end |
659 end |
654 end) |
660 end) |