Update deprecated functions and other things
This commit is contained in:
parent
52d93922b2
commit
74c86f8566
19
rc.lua
19
rc.lua
@ -26,7 +26,7 @@ end
|
||||
-- Handle runtime errors after startup
|
||||
do
|
||||
local in_error = false
|
||||
awesome.add_signal("debug::error", function (err)
|
||||
awesome.connect_signal("debug::error", function (err)
|
||||
-- Make sure we don't go into an endless error loop
|
||||
if in_error then return end
|
||||
in_error = true
|
||||
@ -152,6 +152,9 @@ mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesom
|
||||
|
||||
mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon,
|
||||
menu = mymainmenu })
|
||||
|
||||
-- Menubar configuration
|
||||
menubar.utils.terminal = terminal -- Set the terminal for applications that require it
|
||||
-- }}}
|
||||
|
||||
-- {{{ Wibox
|
||||
@ -194,7 +197,7 @@ function add_calendar(inc_offset)
|
||||
})
|
||||
end
|
||||
|
||||
mytextclock:add_signal("mouse::leave", remove_calendar)
|
||||
mytextclock:connect_signal("mouse::leave", remove_calendar)
|
||||
|
||||
mytextclock:buttons(awful.util.table.join(
|
||||
-- Current month on click
|
||||
@ -216,8 +219,8 @@ mytaglist.buttons = awful.util.table.join(
|
||||
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.viewprev),
|
||||
awful.button({ }, 5, awful.tag.viewnext)
|
||||
awful.button({ }, 4, function(t) awful.tag.viewprev(awful.tag.getscreen(t)) end),
|
||||
awful.button({ }, 5, function(t) awful.tag.viewnext(awful.tag.getscreen(t)) end)
|
||||
)
|
||||
|
||||
mytasklist = {}
|
||||
@ -611,9 +614,9 @@ shifty.config.clientkeys = clientkeys
|
||||
|
||||
-- {{{ Signals
|
||||
-- Signal function to execute when a new client appears.
|
||||
client.add_signal("manage", function (c, startup)
|
||||
client.connect_signal("manage", function (c, startup)
|
||||
-- Enable sloppy focus
|
||||
c:add_signal("mouse::enter", function(c)
|
||||
c:connect_signal("mouse::enter", function(c)
|
||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||
and awful.client.focus.filter(c) then
|
||||
client.focus = c
|
||||
@ -633,6 +636,6 @@ client.add_signal("manage", function (c, startup)
|
||||
end
|
||||
end)
|
||||
|
||||
client.add_signal("focus", function(c) c.border_color = beautiful.border_focus end)
|
||||
client.add_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
|
||||
client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
|
||||
client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
|
||||
-- }}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user